powerpc64le: Create divergent sysdep directory for powerpc64le.
[platform/upstream/glibc.git] / ChangeLog
1 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/powerpc64le/Implies: New file.
4         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
5         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
6         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
7         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
8         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
9         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
10         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
11         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
12         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
13         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
14         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
15         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
16         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
17         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
18         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
19         * sysdeps/powerpc/preconfigure: New file.
20         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
21         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
22
23 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
24
25         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
26         inclusion.
27         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
28         Remove.
29
30 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
31
32         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
33         (XPG3): Rename standard to XPG4.
34         * conform/Makefile: Likewise.
35         * conform/list-header-symbols.pl: Likewise.
36         * conform/data/aio.h-data: Likewise.
37         * conform/data/arpa/inet.h-data: Likewise.
38         * conform/data/complex.h-data: Likewise.
39         * conform/data/ctype.h-data: Likewise.
40         * conform/data/dlfcn.h-data: Likewise.
41         * conform/data/fcntl.h-data: Likewise.
42         * conform/data/fenv.h-data: Likewise.
43         * conform/data/float.h-data: Likewise.
44         * conform/data/fmtmsg.h-data: Likewise.
45         * conform/data/ftw.h-data: Likewise.
46         * conform/data/grp.h-data: Likewise.
47         * conform/data/inttypes.h-data: Likewise.
48         * conform/data/iso646.h-data: Likewise.
49         * conform/data/langinfo.h-data: Likewise.
50         * conform/data/libgen.h-data: Likewise.
51         * conform/data/limits.h-data: Likewise.
52         * conform/data/locale.h-data: Likewise.
53         * conform/data/math.h-data: Likewise.
54         * conform/data/mqueue.h-data: Likewise.
55         * conform/data/ndbm.h-data: Likewise.
56         * conform/data/net/if.h-data: Likewise.
57         * conform/data/netdb.h-data: Likewise.
58         * conform/data/netinet/in.h-data: Likewise.
59         * conform/data/poll.h-data: Likewise.
60         * conform/data/pthread.h-data: Likewise.
61         * conform/data/pwd.h-data: Likewise.
62         * conform/data/sched.h-data: Likewise.
63         * conform/data/search.h-data: Likewise.
64         * conform/data/semaphore.h-data: Likewise.
65         * conform/data/signal.h-data: Likewise.
66         * conform/data/spawn.h-data: Likewise.
67         * conform/data/stdbool.h-data: Likewise.
68         * conform/data/stdint.h-data: Likewise.
69         * conform/data/stdio.h-data: Likewise.
70         * conform/data/stdlib.h-data: Likewise.
71         * conform/data/string.h-data: Likewise.
72         * conform/data/strings.h-data: Likewise.
73         * conform/data/stropts.h-data: Likewise.
74         * conform/data/sys/mman.h-data: Likewise.
75         * conform/data/sys/resource.h-data: Likewise.
76         * conform/data/sys/select.h-data: Likewise.
77         * conform/data/sys/socket.h-data: Likewise.
78         * conform/data/sys/stat.h-data: Likewise.
79         * conform/data/sys/statvfs.h-data: Likewise.
80         * conform/data/sys/time.h-data: Likewise.
81         * conform/data/sys/timeb.h-data: Likewise.
82         * conform/data/sys/types.h-data: Likewise.
83         * conform/data/sys/uio.h-data: Likewise.
84         * conform/data/sys/un.h-data: Likewise.
85         * conform/data/sys/wait.h-data: Likewise.
86         * conform/data/syslog.h-data: Likewise.
87         * conform/data/termios.h-data: Likewise.
88         * conform/data/tgmath.h-data: Likewise.
89         * conform/data/time.h-data: Likewise.
90         * conform/data/ucontext.h-data: Likewise.
91         * conform/data/unistd.h-data: Likewise.
92         * conform/data/utmpx.h-data: Likewise.
93         * conform/data/varargs.h-data: Likewise.
94         * conform/data/wchar.h-data: Likewise.
95         * conform/data/wctype.h-data: Likewise.
96
97 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
98
99         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
100         version to 7 branch.
101
102 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
103
104         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
105         earlyclobber to output operand of sqrt insn.
106         (__ieee754_sqrtf): Ditto.
107
108 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
109
110         [BZ #21426]
111         * misc/bits/types/struct_iovec.h: New file.
112         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
113         * include/bits/types/struct_iovec.h: New file.
114         * bits/uio.h (struct iovec): Replace by inclusion of
115         <bits/types/struct_iovec.h>.
116         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
117         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
118         of <sys/uio.h>.
119         * nptl/tst-cancel4.c: Include <sys/uio.h>
120         * posix/test-errno.c: Likewise.
121         * support/resolv_test.c: Likewise.
122         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
123         Remove.
124         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
125         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
126         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
127
128         * conform/data/sys/socket.h-data (*_t): Allow.
129
130 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
131
132         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
133         assignment.
134
135 2017-04-24  Daurnimator  <quae@daurnimator.com>
136             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
137
138         [BZ #21340]
139         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
140         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
141         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
142         valid flags.
143         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
144         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
145         POSIX_SPAWN_SETSID.
146         * sysdeps/posix/spawni.c (__spawni): Likewise.
147         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
148         * NEWS: Add note about POSIX_SPAWN_SETSID support.
149
150 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
151
152         * sysdeps/generic/math_private.h: Move the declaration of many
153         functions to sysdeps/generic/math_private_calls.h.
154         * sysdeps/generic/math_private_calls.h: New file with the
155         declarations of the functions removed from math_private.h
156         macroized by floating-point type.
157
158 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
159
160         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
161         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
162         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
163         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
164         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
165         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
166
167 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
168
169         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
170         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
171         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
172         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
173         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
174         New Define.
175
176 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
177
178         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
179         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
180         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
181         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
182         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
183         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
184
185 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
186
187         * sysdeps/s390/multiarch/ifunc-resolve.h
188         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
189         * sysdeps/s390/multiarch/8bit-generic.c
190         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
191         define ifunc resolvers.
192
193 2017-04-21  Florian Weimer  <fweimer@redhat.com>
194
195         [BZ #20424]
196         * manual/memory.texi (Replacing malloc): New section.
197         (Allocating Storage For Program Data): Reference it.
198         (The GNU Allocator): Likewise.
199
200 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
201
202         * stdlib/Versions (__strtod_internal): List explicitly, not as
203         wildcard.
204         (__strtof_internal): Likewise.
205         (__strtold_internal): Likewise.
206         (__strtol_internal): Likewise.
207         (__strtoll_internal): Likewise.
208         (__strtoul_internal): Likewise.
209         (__strtoull_internal): Likewise.
210         (__strtoq_internal): Likewise.
211         (__strtouq_internal): Likewise.
212         * wcsmbs/Versions (__wcstod_internal): Likewise.
213         (__wcstof_internal): Likewise.
214         (__wcstold_internal): Likewise.
215         (__wcstol_internal): Likewise.
216         (__wcstoll_internal): Likewise.
217         (__wcstoul_internal): Likewise.
218         (__wcstoull_internal): Likewise.
219
220 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
221
222         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
223         struct timespec definition.
224
225 2017-04-19  Florian Weimer  <fweimer@redhat.com>
226
227         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
228
229 2017-04-19  Florian Weimer  <fweimer@redhat.com>
230
231         * inet/rcmd.c (rresvport_af): Fix typo in comment.
232         * inet/rexec.c (rexec_af): Likewise.
233
234 2017-04-19  Zack Weinberg  <zackw@panix.com>
235
236         * posix/tst-mmap-offset.c: Include stdint.h.
237         * resolv/tst-ns_name_compress.c: Include string.h.
238         * resolv/tst-resolv-edns.c: Include resolv.h.
239
240 2017-04-19  Florian Weimer  <fweimer@redhat.com>
241
242         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
243         with __glibc_likely.
244         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
245         Replace __builtin_expect with __glibc_unlikely.
246         * resolv/res_init.c (__res_vinit): Likewise.
247         * resolv/res_query.c (__libc_res_nquery): Likewise.
248         * resolv/res_send.c (__libc_res_nsend): Likewise.
249
250 2017-04-19  Florian Weimer  <fweimer@redhat.com>
251
252         [BZ #15722]
253         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
254         with SOCK_CLOEXEC.
255         * resolv/res_send.c (send_vc, reopen): Likewise.
256         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
257         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
258         Likewise.
259         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
260         * inet/rexec.c (rexec_af): Add comment.
261         * inet/rcmd.c (rresvport_af): Likewise.
262
263 2017-04-19  Florian Weimer  <fweimer@redhat.com>
264
265         * nscd/connections.c (have_accept4): Removed definition.
266         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
267         accept4 works.
268         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
269         ia64 because that was the first version with accept4 support.
270         * support/Makefile (libsupport-routines): Add xaccept4.
271         * support/xsocket.h (xaccept4): Declare.
272         * support/xaccept4.c: New file.
273         * socket/tst-accept4.c: New file.
274         * socket/Makefile (tests): Add tst-accept4.
275         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
276         definition.
277         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
278         comment.
279         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
280         implementation is available.
281         (accept4): Use the system call if available, otherwise use the
282         socket call.
283         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
284         Set to 3.2.18.
285         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
286         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
287         accept4 is unconditionally available in later 3.2 stable kernels.
288         (__ASSUME_ACCEPT4_SYSCALL): Define.
289         * sysdeps/unix/sysv/linux/kernel-features.h
290         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
291         definitions.
292         * sysdeps/unix/sysv/linux/i386/kernel-features.h
293         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
294
295 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
296
297         * conform/Makefile (tests-special): Do not make addition of
298         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
299         (generated): Do not make addition of $(conformtest-header-base)
300         conditional on [$(cross-compiling) = no].
301
302         [BZ #21267]
303         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
304         if defined by <asm/socket.h> and not previously defined.
305         (IOCSIZE_SHIFT): Likewise.
306         (IOC_IN): Likewise.
307         (IOC_INOUT): Likewise.
308         (IOC_OUT): Likewise.
309
310 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
311
312         [BZ #21396]
313         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
314         Prefer_No_AVX512 if AVX512ER isn't available.
315         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
316         (index_arch_Prefer_No_AVX512): Likewise.
317         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
318         AVX512 version if Prefer_No_AVX512 is set.
319         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
320         Likewise.
321         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
322         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
323         Likewise.
324         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
325         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
326         Likewise.
327         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
328         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
329         Likewise.
330
331 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
332
333         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
334         Prefer_No_VZEROUPPER if AVX512ER is available.
335         * sysdeps/x86/cpu-features.h
336         (bit_cpu_AVX512PF): New.
337         (bit_cpu_AVX512ER): Likewise.
338         (bit_cpu_AVX512CD): Likewise.
339         (bit_cpu_AVX512BW): Likewise.
340         (bit_cpu_AVX512VL): Likewise.
341         (index_cpu_AVX512PF): Likewise.
342         (index_cpu_AVX512ER): Likewise.
343         (index_cpu_AVX512CD): Likewise.
344         (index_cpu_AVX512BW): Likewise.
345         (index_cpu_AVX512VL): Likewise.
346         (reg_AVX512PF): Likewise.
347         (reg_AVX512ER): Likewise.
348         (reg_AVX512CD): Likewise.
349         (reg_AVX512BW): Likewise.
350         (reg_AVX512VL): Likewise.
351
352 2017-04-18  Florian Weimer  <fweimer@redhat.com>
353
354         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
355         O_CLOEXEC is defined.
356         * include/fcntl.h (__have_o_cloexec): Remove declaration.
357         * io/Makefile (aux): Remove.
358         * io/have_o_cloexec.c: Remove file.
359         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
360         defined and works.
361         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
362         defined.
363         * login/utmp_file.c (O_flags): Remove definition.
364         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
365         O_CLOEXEC works.
366         (pututline_file): Likewise.
367         * malloc/mtrace.c: Assume that O_CLOEXEC works.
368         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
369         definition.
370         (internal_setgrent): Assume that O_CLOEXEC works.
371         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
372         Remove definition.
373         (internal_setgrent): Assume that O_CLOEXEC works.
374         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
375         definition.
376         (internal_setpwent): Assume that O_CLOEXEC works.
377         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
378         definition.
379         (internal_setspent): Assume that O_CLOEXEC works.
380         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
381         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
382         O_CLOEXEC is defined and works.
383         * nss/Makefile (libnss_files-routines): Remove
384         files-have_o_cloexec.
385         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
386         defined.
387         * nss/nss_files/files-XXX.c (internal_setent): Assume that
388         O_CLOEXEC is defined and works.
389         * nss/nss_files/files-alias.c (internal_setent): Likewise.
390         * nss/nss_files/files-have_o_cloexec.c: Remove.
391         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
392         defined.
393         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
394         and works.
395         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
396         definition.
397         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
398         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
399         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
400         (__opendirat, __opendir): Adjust opendir_oflags call.
401         (check_have_o_cloexec): Remove.
402         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
403         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
404         defined.
405         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
406         Remove definition.
407
408 2017-04-18  Florian Weimer  <fweimer@redhat.com>
409
410         * include/unistd.h (__have_dup3): Remove declaration.
411         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
412         dup3 is available.
413         * libio/freopen64.c (freopen64): Likewise.
414         * socket/Makefile (aux): Remove have_sock_cloexec.
415         * socket/have_sock_cloexec.c: Remove file.
416         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
417         definition.
418         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
419         Likewise.
420         * sysdeps/nacl/kernel-features.h: Update comment.
421
422 2017-04-18  Florian Weimer  <fweimer@redhat.com>
423
424         * include/unistd.h (__have_pipe2): Remove declaration.
425         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
426         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
427         available.
428         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
429         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
430         Remove definition.
431
432 2017-04-18  Florian Weimer  <fweimer@redhat.com>
433
434         * malloc/malloc.c (cfree): Turn into compat symbol.
435         (__cfree): Remove alias.
436         * stdlib/stdlib.h (cfree): Remove declaration.
437         * malloc/malloc.h (cfree): Likewise.
438         * manual/memory.texi (Freeing after Malloc): Remove cfree.
439         * malloc/Versions (GLIBC_2.26): Add.
440
441 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
442
443         * sysdeps/powerpc/powerpc64/multiarch/Makefile
444         (sysdep_routines): Add strrchr-power8.
445         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
446         (strrchr): Add __strrchr_power8 to list of strrchr functions.
447         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
448         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
449         (strrchr): Add __strrchr_power8 to ifunc list.
450         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
451
452 2017-04-17  Rabin Vincent  <rabinv@axis.com>
453
454         [BZ #21357]
455         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
456         Call free() outside of mutex.
457
458 2017-04-13  Florian Weimer  <fweimer@redhat.com>
459
460         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
461         is defined.
462         * elf/rtld.c (process_envvars): Likewise.
463         * sysdeps/posix/shm_open.c (shm_open): Likewise.
464         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
465         O_NOFOLLOW directly.
466         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
467
468 2017-04-13  Florian Weimer  <fweimer@redhat.com>
469
470         [BZ #21369]
471         Remove EDNS fallback.
472         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
473         handling.
474         * resolv/res_send.c (send_dg): Likewise.
475         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
476         "tcp." prefixes.
477         (do_test): Send a "formerr."-prefixed query in an attempt to
478         trigger EDNS fallback.
479
480 2017-04-13  Florian Weimer  <fweimer@redhat.com>
481
482         [BZ #21361]
483         Limit EDNS buffer size to 1200 bytes.
484         * include/resolv.h (__res_nopt): Remove declaration.
485         * resolv/Makefile (tests): tst-resolv-edns.
486         (tst-resolv-edns): Link with -lresolv, -lpthread.
487         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
488         interval [512, 1200].
489         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
490         we can resize the buffer.
491         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
492         (__res_nopt): Declare.
493         * resolv/tst-resolv-edns.c: New file.
494         * resolv/resolv_test.h (struct resolv_edns_info): Define.
495         (struct resolv_response_context): Add edns member.
496         * resolv/resolv_test.c (struct query_info): Add edns member.
497         (parse_query): Extract EDNS information from the query.
498         (server_thread_udp_process_one): Propagate EDNS data.
499         (server_thread_tcp_client): Likewise.
500
501 2017-04-13  Florian Weimer  <fweimer@redhat.com>
502
503         [BZ #21359]
504         * resolv/ns_name.c (ns_name_pack): Do not require an additional
505         byte in the destination buffer.  Avoid out-of-bounds pointer
506         arithmetic.
507         * resolv/Makefile (tests): Add tst-ns_name_compress.
508         (tst-ns_name_compress): Link with -lresolv.
509         * resolv/tst-ns_name_compress.c: New file.
510         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
511         (response): Recognize LONG_NAME.
512         (do_test): Add LONG_NAME tests.
513         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
514         for ns_name_unpack.  Add tests for ns_name_pton and
515         ns_name_compress.
516
517 2017-04-13  Florian Weimer  <fweimer@redhat.com>
518
519         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
520         (res_nisourserver): Remove definition.
521         (p_section, res_npquery, res_nisourserver): Remove declaration.
522         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
523         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
524         ... here.
525         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
526         <resolv.h>.
527         * resolv/res_query.c: Likewise.
528         * resolv/res_debug.c (p_section): Define as static.
529
530 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
531
532         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
533         strncat-power8.
534         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
535         __strncat_power8 to ifunc list.
536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
537         (strncat): Add __strncat_power8 to list of strncat functions.
538         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
539
540 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
541
542         [BZ #21270]
543         * posix/tst-mmap-offset.c (do_prepare): New function.
544         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
545         (do_test_bz21270): New function.
546         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
547         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
548         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
549         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
550         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
551         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
552         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
553         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
554         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
555         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
556         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
557         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
558         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
559         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
560         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
561         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
562         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
563         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
564         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
565         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
566         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
567         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
568         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
569         from auto-generation list.
570         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
571         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
572         * sysdeps/unix/sysv/linux/mmap.c: New file.
573         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
574         offsets and support for mmap2 syscall.
575
576         * posix/globtest.sh: Add cleanup routine on trap 0.
577
578 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
579
580         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
581         implementation-specific function name and remove unneeded
582         macros definition.
583         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
584         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
585         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
586         name if not defined and pass as parameter to macros accordingly.
587         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
588         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
589
590         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
591         implementation-specific function name and remove unneeded
592         macros definition.
593         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
594         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
595         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
596         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
597         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
598         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
599         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
600         name if not defined and pass as parameter to macros accordingly.
601         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
602         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
603         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
604         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
605         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
606         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
607
608         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
609         implementation-specific function name and remove unneeded macros
610         definition.
611         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
612         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
613         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
614         function name if not defined and pass as parameter to macros
615         accordingly.
616         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
617         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
618
619         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
620         implementation-specific function name and remove unneeded macros
621         definition.
622         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
623         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
624         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
625         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
626         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
627         not defined and pass as parameter to macros accordingly.
628         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
629         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
630         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
631         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
632
633         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
634         strcasestr implementation name and remove unneeded macros definition.
635         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
636         strstr implementation name and remove unneeded macros definition.
637         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
638         name if not defined and pass as parameter to macros accordingly.
639         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
640
641         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
642         implementation-specific function name and remove unneeded macros
643         definition.
644         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
645         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
646         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
647         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
648         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
649         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
650         function name if not defined and pass as parameter to macros
651         accordingly.
652         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
653         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
654         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
655         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
656
657         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
658         the strlen implementation name and remove unneeded macros definition.
659         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
660         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
661         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
662         the strnlen implementation name and remove unneeded macros definition.
663         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
664         name if not defined and pass as parameter to macros accordingly.
665         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
666         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
667         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
668
669         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
670         the implementation-specific function name and remove unneeded
671         macros definition.
672         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
673         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
674         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
675         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
676         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
677         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
678         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
679         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
680         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
681         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
682         name if not defined and pass as parameter to macros accordingly.
683         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
684         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
685         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
686         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
687         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
688         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
689         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
690         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
691
692         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
693         implementation-specific function name and remove unneeded macros
694         definition.
695         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
696         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
697         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
698         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
699         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
700         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
701         function name if not defined.
702         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
703         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
704
705 2017-04-11  Paul Clarke  <pc@us.ibm.com>
706
707         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
708         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
709         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
710         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
711
712 2017-04-11  Florian Weimer  <fweimer@redhat.com>
713             Zack Weinberg  <zackw@panix.com>
714
715         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
716         readdir64 as thread-safe.  Update warning about readdir_r.
717
718 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
719
720         * sysdeps/unix/sysv/linux/x86/Implies: New file.
721         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
722         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
723         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
724         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
725         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
726         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
727
728 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
729
730         * sysdeps/i386/dl-procinfo.c: Include
731         <sysdeps/x86/dl-procinfo.c>.
732         * sysdeps/x86_64/dl-procinfo.c: Likewise.
733         * sysdeps/x86/dl-procinfo.c: New file.
734
735 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
736
737         * sysdeps/generic/math_private.h: Remove declarations of
738         many functions that are already declared in math.h.
739         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
740         declaration for __frexpl.
741         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
742         the declarations for __scalbnl and fabsl.
743
744 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
745
746         [BZ #20831]
747         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
748         of __mprotect to change protection on the excess portion
749         to disallow all access.
750
751 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
752
753         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
754         HAS_CPU_FEATURE to check for SSE.
755         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
756         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
757         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
758         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
759         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
760         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
761         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
762         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
763         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
764         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
765         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
766         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
767         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
768         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
769         (index_cpu_SSE): Likewise.
770         (reg_SSE): Likewise.
771
772 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
773
774         * posix/getopt1.c: Include <config.h>, not "config.h".
775
776 2017-04-07  Zack Weinberg  <zackw@panix.com>
777
778         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
779         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
780         Mention in top-of-file boilerplate that these files are shared
781         with gnulib.
782         * posix/getopt.h, posix/bits/getopt_posix.h:
783         Mention in top-of-file boilerplate that these files are NOT shared
784         with gnulib, unlike the rest of the getopt implementation.
785
786         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
787         New files, intended to be shared with gnulib.
788         * posix/bits/getopt_posix.h:
789         New file, not intended to be shared with gnulib.
790         * posix/getopt.h: Now just includes features.h,
791         bits/getopt_core.h, and bits/getopt_ext.h.  Will
792         no longer be shared with gnulib.
793         * include/bits/getopt_core.h, include/bits/getopt_ext.h
794         * include/bits/getopt_posix.h: New wrappers.
795         * posix/Makefile: Install new headers.
796         * posix/unistd.h, libio/stdio.h:
797         Include bits/getopt_posix.h instead of getopt.h.
798
799         * include/libc-symbols.h: For gnulib compatibility, define
800         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
801         _GL_ATTRIBUTE_CONST.
802         * posix/getopt.c (_getopt_initialize): Mark argc and argv
803         parameters with _GL_UNUSED.
804
805         * posix/getopt.c: When used standalone, define __libc_use_alloca
806         as always false and alloca to abort if called.
807         (process_long_option): Rewrite handling of ambiguous long options
808         to use a single boolean vector, not a linked list; use
809         __libc_use_alloca to decide whether to allocate this using alloca.
810         * posix/tst-getopt_long1.c: Adjust text of expected error message.
811
812         * posix/getopt.c (process_long_option): New function split out
813         from _getopt_internal_r.
814         (_getopt_internal_r): Replace both copies of the long-option
815         processing code with calls to process_long_option.
816         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
817         (do_test): Differentiate argv[0] in the two subtests.
818
819         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
820         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
821         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
822
823         * posix/getopt.h: Add backup definition of __nonnull for
824         consistency with gnulib.  Define __getopt_argv_const to const
825         if not already defined.
826         (getopt): Update doc comment from gnulib.  Prototype
827         unconditionally.  Add __nonnull annotation.
828         (__posix_getopt): Add __nonnull annotation.
829         (getopt_long, getopt_long_only): Use __getopt_argv_const in
830         prototypes for consistency with gnulib.  Add __nonnull
831         annotations.
832         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
833         (getopt_internal): Change 'argv' argument to type 'char **'.
834         Remove now-unnecessary casts.
835         (getopt, __posix_getopt): Eliminate repetition with a macro.
836         Cast 'argv' to 'char **' when calling _getopt_internal.
837         * posix/getopt1.c (getopt_long, getopt_long_only):
838         Use __getopt_argv_const for consistency with gnulib.
839         Cast 'argv' to 'char **' when calling _getopt_internal.
840         (_getopt_long_r, _getopt_long_only_r):
841         Change 'argv' argument to type 'char **'.
842         (main): Constify 'long_options'.
843         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
844         (_getopt_long_r, _getopt_long_only_r):
845         Change 'argv' argument to type 'char **'.
846
847         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
848         (locked_vfxprintf): New helper function. Handle arbitrary
849         multibyte strings, not just ASCII.
850         * include/stdio.h: Declare __fxprintf_nocancel.
851         * posix/getopt.c: When _LIBC is defined, define fprintf to
852         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
853         to _IO_funlockfile.  When neither _LIBC nor
854         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
855         funlockfile as no-ops.
856         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
857         the standalone error-printing code can now be used for libc as
858         well.  Add an flockfile/funlockfile pair around one case where
859         the error message is printed in several chunks.  Don't use fputc.
860         * posix/tst-getopt-cancel.c: New test.
861         * posix/Makefile: Run it.
862
863         * posix/getopt.c (_getopt_internal_r): Don't increment
864         d->optind a second time when reporting ambiguous -W options.
865
866         * posix/getopt_int.h: Include getopt.h.
867         Use impl-namespace names for all arguments to _getopt_internal and
868         _getopt_internal_r.
869         Declare __ordering enum outside the struct.
870         Harmonize comments with gnulib.
871         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
872         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
873         #ifdef TEST block and make unconditional.  Do not define NULL.
874         * posix/getopt.c: Partial merge from gnulib, covering the
875         initial includes and global declarations, commentary, and
876         a couple of semantically-neutral code changes.
877
878         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
879         Use '...' instead of `...' for quotation marks inside
880         comments and strings.
881
882         * config.h.in (USE_NONOPTION_FLAGS): Remove.
883         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
884         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
885         * posix/getopt_int.h: Likewise.
886         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
887         __libc_argc and __libc_argv externs, which were only used by
888         #ifdef USE_NONOPTION_FLAGS blocks.
889         * posix/getopt_init.c: Remove file.
890         * posix/Makefile (routines): Remove getopt_init.
891         * include/getopt.h: Don't declare __getopt_initialize_environment.
892         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
893         a comment.
894
895 2017-04-07  Florian Weimer  <fweimer@redhat.com>
896
897         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
898
899 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
900
901         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
902         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
903         to __wrap_.udiv.
904         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
905         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
906
907         * sysdeps/i386/symbol-hacks.h: New file.
908         * sysdeps/m68k/symbol-hacks.h: New file.
909         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
910         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
911         * sysdeps/unix/sysv/linux/i386/Makefile
912         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
913         [$(subdir) = csu] (sysdep-only-routines): Likewise.
914         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
915         * sysdeps/unix/sysv/linux/m68k/Makefile
916         [$(subdir) = csu] (sysdep_routines): Likewise.
917         [$(subdir) = csu] (sysdep-only-routines): Likewise.
918         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
920         [$(subdir) = csu] (sysdep_routines): Likewise.
921         [$(subdir) = csu] (sysdep-only-routines): Likewise.
922         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
923         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
924         [$(subdir) = csu] (sysdep_routines): Likewise.
925         [$(subdir) = csu] (sysdep-only-routines): Likewise.
926         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
927         * sysdeps/wordsize-32/Makefile: Remove file.
928         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
929         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
930
931 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
932
933         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
934         (TEST_FUNCTION_ARGV): New.
935
936 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
937
938         * elf/next.c: Import support/test-driver.c instead of
939         test-skeleton.c and delete TEST_FUNCTION macro definition.
940         * elf/nodelete.c: Likewise.
941         * elf/order2.c: Likewise.
942         * elf/tst-_dl_addr_inside_object.c: Likewise.
943         * elf/tst-addr1.c: Likewise.
944         * elf/tst-align.c: Likewise.
945         * elf/tst-align2.c: Likewise.
946         * elf/tst-audit11.c: Likewise.
947         * elf/tst-audit12.c: Likewise.
948         * elf/tst-audit2.c: Likewise.
949         * elf/tst-audit9.c: Likewise.
950         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
951         * elf/tst-deep1.c: Likewise.
952         * elf/tst-dl-iter-static.c: Likewise.
953         * elf/tst-dlmodcount.c: Likewise.
954         * elf/tst-dlmopen1.c: Likewise.
955         * elf/tst-dlmopen2.c: Likewise.
956         * elf/tst-dlmopen3.c: Likewise.
957         * elf/tst-dlopen-aout.c: Likewise.
958         * elf/tst-dlopenrpath.c: Likewise.
959         * elf/tst-dlsym-error.c: Likewise.
960         * elf/tst-execstack-needed.c: Likewise.
961         * elf/tst-execstack-prog.c: Likewise.
962         * elf/tst-execstack.c: Likewise.
963         * elf/tst-global1.c: Likewise.
964         * elf/tst-gnu2-tls1.c: Likewise.
965         * elf/tst-latepthread.c: Likewise.
966         * elf/tst-leaks1.c: Likewise.
967         * elf/tst-linkall-static.c: Likewise.
968         (do_test): New function.
969         * elf/tst-nodelete-opened.c: Likewise.
970         * elf/tst-nodelete.cc: Likewise.
971         * elf/tst-nodelete2.c: Likewise.
972         * elf/tst-noload.c: Likewise.
973         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
974         * elf/tst-order-main.c: Likewise.
975         * elf/tst-pathopt.c: Likewise.
976         * elf/tst-pie2.c: Likewise.
977         * elf/tst-piemod1.c: Likewise.
978         * elf/tst-prelink.c: Likewise.
979         * elf/tst-protected1a.c: Likewise.
980         * elf/tst-protected1b.c: Likewise.
981         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
982         and define _GNU_SOURCE macro.
983         (cmdline_process_function): New function.
984         * elf/tst-relsort1.c: Likewise.
985         * elf/tst-stackguard1.c: Likewise, import getopt.h,
986         and define _GNU_SOURCE macro.
987         (cmdline_process_function): New function.
988         * elf/tst-thrlock.c: Likewise.
989         * elf/tst-tls-dlinfo.c: Likewise.
990         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
991         * elf/tst-tls1.c: Likewise.
992         * elf/tst-tls10.c: Likewise.
993         * elf/tst-tls11.c: Likewise.
994         * elf/tst-tls12.c: Likewise.
995         * elf/tst-tls13.c: Likewise.
996         * elf/tst-tls14.c: Likewise.
997         * elf/tst-tls15.c: Likewise.
998         * elf/tst-tls16.c: Likewise.
999         * elf/tst-tls17.c: Likewise.
1000         * elf/tst-tls18.c: Likewise.
1001         * elf/tst-tls19.c: Likewise.
1002         * elf/tst-tls2.c: Likewise.
1003         * elf/tst-tls3.c: Likewise.
1004         * elf/tst-tls4.c: Likewise.
1005         * elf/tst-tls5.c: Likewise.
1006         * elf/tst-tls6.c: Likewise.
1007         * elf/tst-tls7.c: Likewise.
1008         * elf/tst-tls8.c: Likewise.
1009         * elf/tst-tls9.c: Likewise.
1010         * elf/tst-tlsalign-extern.c: Likewise.
1011         * elf/tst-tlsalign.c: Likewise.
1012         * elf/tst-unique1.c: Likewise.
1013         * elf/tst-unique2.c: Likewise.
1014         * elf/vismain.c: Likewise.
1015
1016 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1017
1018         * string/test-strnlen.c (do_page_tests): New function
1019         to check length of strings ending at the page boundary.
1020         (test_main): Added call to the do_page_tests function.
1021
1022 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1023             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1024
1025         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1026         (sysdep_routines): Add strnlen-power8.
1027         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1028         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1029         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1030         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1031         (__strnlen): Add __strnlen_power8 to ifunc list.
1032         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1033
1034 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1035
1036         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1037         the TEST_FUNCTION macro definition.
1038         * wcsmbs/tst-mbrtowc2.c: Likewise.
1039         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1040         * wcsmbs/tst-wchar-h.c: Likewise.
1041         * wcsmbs/tst-wcpncpy.c: Likewise.
1042         * wcsmbs/tst-wcrtomb.c: Likewise.
1043         * wcsmbs/tst-wcsnlen.c: Likewise.
1044         * wcsmbs/tst-wcstof.c: Likewise.
1045
1046 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1047
1048         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1049         CALL_THREAD_FCT macro usage.
1050         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1051         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1052         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1053
1054         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1055         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1056         (__ASSUME_REQUEUE_PI): Likewise.
1057         * sysdeps/unix/sysv/linux/kernel-features.h
1058         (__ASSUME_REQUEUE_PI): Likewise.
1059         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1060         (__ASSUME_REQUEUE_PI): Likewise.
1061         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1062         (__ASSUME_REQUEUE_PI): Likewise.
1063         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1064         (__ASSUME_REQUEUE_PI): Likewise.
1065
1066 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1067
1068         * resolv/tst-resolv-canonname.c: New file.
1069         * resolv/Makefile (tests): Add tst-resolv-canonname.
1070         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1071
1072 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1073
1074         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1075         Declare.
1076         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1077         (NS_MAXCDNAME): Remove definition.
1078         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1079         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1080         (NS_MAXCDNAME): Remove definition.
1081         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1082
1083 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1084
1085         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1086         call whose result is not used.
1087
1088 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1089
1090         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1091         * resolv/Makefile (tests): Add tst-ns_name.
1092         (tst-ns_name): Link with -lresolv.
1093         (tst-ns_name.out): Depend on the input data file.
1094
1095 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1096
1097         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1098         Clobber also r14.
1099
1100 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1101
1102         [BZ #21253]
1103         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1104         slack space by 32KiB.
1105
1106 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1107
1108         [BZ #21338]
1109         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1110         instead of incorrect do_set_arena_test
1111
1112 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1113
1114         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1115         * math/bits/math-finite.h: Likewise.
1116
1117 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1118
1119         [BZ #21289]
1120         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1121
1122 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1123
1124         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1125         non expected inotify_add_watch and quotactl return.
1126
1127 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1128
1129         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1130         to int32_t.
1131         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1132         as returning int32_t.
1133
1134 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1135
1136         * math/math.h: Include bits/math-finite.h once per
1137         floating-point type.
1138         * math/bits/math-finite.h: Macroize all declarations by
1139         floating-point type.
1140
1141 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1142
1143         [BZ #21182]
1144         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1145         near end of a page.
1146         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1147         overflow calculation.
1148
1149 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1150
1151         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1152         (IMPL) Call with 1 instead of 0 as argument.
1153
1154 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1155
1156         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1157         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1158         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1159         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1160         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1161         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1162         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1163         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1164         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1165         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1166         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1167         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1168         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1169         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1170         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1171         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1172         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1173         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1174         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1175         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1176         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1177         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1178         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1179         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1180         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1181         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1182         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1183         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1184         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1185         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1186         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1187         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1188         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1189         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1190         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1191         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1192         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1193         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1194         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1195         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1196         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1197         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1198         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1199         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1200         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1201         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1202         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1203         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1204         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1205         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1206         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1207         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1208         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1209         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1210         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1211         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1212         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1213         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1214         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1215         defined.
1216         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1217         __NR_setgroups32 if defined.
1218         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1219         if defined.
1220         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1221         __NR_setresgid32 is defined.
1222         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1223         __NR_setresuid32 if defined.
1224         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1225         __NR_setreuid32 if defined.
1226         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1227         defined.
1228         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1229         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1230         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1231         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1232         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1233         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1234         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1235         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1236         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1237         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1238         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1239         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1240         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1241         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1242         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1243         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1244         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1245         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1246         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1247         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1248         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1249         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1250         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1251         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1252         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1253         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1254         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1255         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1256         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1257         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1258         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1259         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1260         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1261         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1262         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1263         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1264         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1265         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1266         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1267         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1268         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1269         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1270         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1271         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1272         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1273         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1274         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1275         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1276         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1277         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1278         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1279         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1280         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1281         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1282         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1283         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1284         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1285         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1286         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1287         defined.
1288         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1289         __NR_setgroups32 if defined.
1290         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1291         if defined.
1292         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1293         __NR_setresgid32 is defined.
1294         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1295         __NR_setresuid32 if defined.
1296         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1297         __NR_setreuid32 if defined.
1298         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1299         defined.
1300
1301 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1302
1303         [BZ #21277]
1304         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1305         unconditionally.
1306         (IMAXBEL): Likewise.
1307         (IUTF8): Likewise.
1308
1309 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1310
1311         * sysdeps/aarch64/libm-test-ulps: Update.
1312
1313 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
1314
1315         * README.tunables: Updated descriptions.
1316         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
1317         * scripts/gen-tunables.awk: Updated the code related to the
1318         commit.
1319
1320 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
1321
1322         * benchtests/Makefile (string-benchset): Add memcpy-random.
1323         * benchtests/bench-memcpy-random.c: New file.
1324
1325 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1326
1327         * stdio-common/printf.h (register_printf_modifier): Change the
1328         order of __wur and __THROW.
1329         (register_printf_type): Likewise.
1330
1331 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1332
1333         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
1334         test_main ().
1335         (CMDLINE_PROCESS): Use function instead of defined macro.
1336         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
1337         <suppport/support.h> to use set_fortify_handler().
1338         * string/bug-envz1.c: Import support/test-driver.c instead of
1339         test-skeleton.c.
1340         * string/bug-strcoll2.c: Likewise.
1341         * string/bug-strtok1.c: Likewise.
1342         * string/stratcliff.c: Likewise.
1343         * string/test-ffs.c: Likewise.
1344         * string/test-memccpy.c: Likewise.
1345         * string/test-memchr.c: Likewise.
1346         * string/test-memcmp.c: Likewise.
1347         * string/test-memcpy.c: Likewise.
1348         * string/test-memmem.c: Likewise.
1349         * string/test-memmove.c: Likewise.
1350         * string/test-memrchr.c: Likewise.
1351         * string/test-memset.c: Likewise.
1352         * string/test-rawmemchr.c: Likewise.
1353         * string/test-strcasecmp.c: Likewise.
1354         * string/test-strcasestr.c: Likewise.
1355         * string/test-strcat.c: Likewise.
1356         * string/test-strchr.c: Likewise.
1357         * string/test-strcmp.c: Likewise.
1358         * string/test-strcpy.c: Likewise.
1359         * string/test-string.h: Likewise.
1360         * string/test-strlen.c: Likewise.
1361         * string/test-strncasecmp.c: Likewise.
1362         * string/test-strncat.c: Likewise.
1363         * string/test-strncmp.c: Likewise.
1364         * string/test-strncpy.c: Likewise.
1365         * string/test-strnlen.c: Likewise.
1366         * string/test-strpbrk.c: Likewise.
1367         * string/test-strrchr.c: Likewise.
1368         * string/test-strspn.c: Likewise.
1369         * string/test-strstr.c: Likewise.
1370         * string/tst-bswap.c: Likewise.
1371         * string/tst-cmp.c: Likewise.
1372         * string/tst-endian.c: Likewise.
1373         * string/tst-inlcall.c: Likewise.
1374         * string/tst-strcoll-overflow.c: Likewise.
1375         * string/tst-strfry.c: Likewise.
1376         * string/tst-strlen.c: Likewise.
1377         * string/tst-strtok.c: Likewise.
1378         * string/tst-strtok_r.c: Likewise.
1379         * string/tst-strxfrm.c: Likewise.
1380         * string/tst-strxfrm2.c: Likewise.
1381         * string/tst-svc.c: Likewise.
1382         * string/tst-svc2.c: Likewise.
1383
1384 2017-03-22  Zack Weinberg  <zackw@panix.com>
1385
1386         * stdio-common/bug25.c: Include stdlib.h.
1387         * support/tst-support_format_dns_packet.c: Include stdio.h,
1388         stdlib.h, and string.h.
1389         * support/tst-support_record_failure.c: Include string.h.
1390         * support/tst-support_record_failure-2.sh: Adjust line number
1391         expectations and correct a typo in an error message.
1392
1393 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         [BZ #21258]
1396         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
1397         Define only if _dl_runtime_resolve is defined to
1398         _dl_runtime_resolve_sse_vex.
1399         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
1400         Fallthrough to _dl_runtime_resolve_sse_vex.
1401
1402 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
1403
1404         * INSTALL: Regenerated.
1405
1406 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
1407
1408         * config.h.in: Add LINK_OBSOLETE_NSL.
1409         * config.make.in: Add build-obsolete-nsl.
1410         * configure.ac: Add obsolete-nsl option.
1411         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
1412         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
1413         * include/rpcsvc/nislib.h: Likewise.
1414         * include/rpcsvc/ypclnt.h: Likewise.
1415         * manual/install.texi: Document --enable-obsolete-nsl.
1416         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
1417         * nis/nis_add.c: Replace libnsl_hidden_def with
1418         libnsl_hidden_nolink_def.
1419         * nis/nis_addmember.c: Likewise.
1420         * nis/nis_call.c: Likewise.
1421         * nis/nis_clone_obj.c: Likewise.
1422         * nis/nis_defaults.c: Likeise.
1423         * nis/nis_domain_of_r.c: Likewise.
1424         * nis/nis_error.c: Likewise.
1425         * nis/nis_file.c: Likewise.
1426         * nis/nis_free.c: Likewise.
1427         * nis_local_names.c: Likewise.
1428         * nis/nis_lookup.c: Likewise.
1429         * nis/nis_modify.c: Likewise.
1430         * nis/nis_print.c: Likewise.
1431         * nis/nis_remove.c: Likewise.
1432         * nis/nis_table.c: Likewise.
1433         * nis/nis_util.c: Likewise.
1434         * nis/nis_xdr.c: Likewise.
1435         * nis/yp_xdr.c: Likewise.
1436         * nis/ypclnt.c: Likewise.
1437         * nis/ypupdate_xdr.c: Likewise.
1438         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
1439         * nis/nis_clone_dir.c: Likewise.
1440         * nis/nis_clone_res.c: Likewise.
1441         * nis/nis_creategroup.c: Likewise.
1442         * nis/nis_destroygroup.c: Likewise.
1443         * nis/nis_domain_of.c: Likewise.
1444         * nis/nis_getservlist.c: Likewise.
1445         * nis/nis_ismember.c: Likewise.
1446         * nis/nis_mkdir.c: Likewise.
1447         * nis/nis_ping.c: Likewise.
1448         * nis/nis_print_group_entry.c: Likewise.
1449         * nis/nis_removemember.c: Likewise.
1450         * nis/nis_rmdir.c: Likewise.
1451         * nis/nis_server.c: Likewise.
1452         * nis/nis_subr.c: Likewise.
1453         * nis/nis_verifygroup.c: Likewise.
1454
1455 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
1456
1457         * malloc/tst-interpose-aux.c (check_for_allocations):
1458         Move compiler barrier before free.
1459
1460 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
1461
1462         [BZ #21279]
1463         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1464         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1465         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
1466         x86_64-x32-linux.
1467         (mq_attr.mq_maxmsg): Likewise.
1468         (mq_attr.mq_msgsize): Likewise.
1469         (mq_attr.mq_curmsgs): Likewise.
1470
1471         [BZ #21278]
1472         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
1473         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1474         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
1475         mips-o32-linux.
1476
1477         [BZ #21268]
1478         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
1479         if [__USE_MISC]
1480         (NL3): Likewise.
1481
1482 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
1483
1484         [BZ #21275]
1485         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
1486         __stack to __stackbase.
1487         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
1488         checks so we can include defined(__ia64__) first.
1489
1490 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
1491
1492         * sysdeps/unix/sysv/linux/ttyname.h: New file.
1493         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
1494         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
1495         Call is_pty when the link does not exist or does not match, fail
1496         with ENODEV when it returns true.
1497         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
1498         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
1499         Call is_pty when the link does not exist or does not match, fail
1500         with ENODEV when it returns true.
1501
1502 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
1503
1504         [BZ #16437]
1505         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1506         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1507         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
1508         x86_64-x32-linux.
1509         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
1510         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
1511         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
1512
1513         [BZ #21261]
1514         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
1515         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
1516         names for all fields.
1517         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
1518         for jmp_buf field renaming.
1519         (_JMPBUF_UNWINDS_ADJ): Likewise.
1520
1521         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
1522         with allow-header.
1523
1524 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
1525
1526         * malloc/malloc.c (unlink): Add consistency check between size and
1527         next->prev->size, to further harden against 1-byte overflows.
1528
1529 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1530
1531         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
1532         CPU_FEATURES_CPU_P.
1533
1534 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
1535
1536         [BZ #21259]
1537         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
1538         unconditionally, not just for [__USE_MISC].
1539
1540         [BZ #17786]
1541         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
1542         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
1543         mips-o32-linux.
1544
1545         [BZ #21260]
1546         * sysdeps/unix/sysv/linux/alpha/Makefile
1547         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1548         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
1549
1550         * conform/conformtest.pl ($cross): New variable.
1551         (--cross): New command-line option.
1552         (runtest): Skip test execution when cross-compiling.
1553         * conform/Makefile (conformtest-cross): New variable.
1554         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
1555         conformtest.pl.
1556
1557         * conform/conformtest.pl ($xfail_str): New variable.
1558         (--xfail=): New command-line option.
1559         (top level): Handle expectations starting xfail[cond]-.
1560         * conform/Makefile (conformtest-xfail): New variable.
1561         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
1562         conformtest.pl.
1563
1564 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1565
1566         * conform/conformtest.pl: Use compilation instead of execution
1567         tests for testing values of constants and usability in #if.
1568
1569 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1570
1571         * math/auto-libm-test-in: Mark some catan and catanh as
1572         xfail-rounding:ibm128-libgcc.
1573         * math/auto-libm-test-out-catan: Regenerate.
1574         * math/auto-libm-test-out-catanh: Likewise.
1575
1576 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
1577
1578         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
1579         (__END_NAMESPACE_STD): Likewise.
1580         (__USING_NAMESPACE_STD): Likewise.
1581         (__BEGIN_NAMESPACE_C99): Likewise.
1582         (__END_NAMESPACE_C99): Likewise.
1583         (__USING_NAMESPACE_C99): Likewise.
1584         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
1585         undefine macro.
1586         (_Mdouble_END_NAMESPACE): Likewise.
1587         * ctype/ctype.h: Do not handle C++ namespaces.
1588         * libio/bits/stdio-ldbl.h: Likewise.
1589         * libio/stdio.h: Likewise.
1590         * locale/locale.h: Likewise.
1591         * math/bits/mathcalls.h: Likewise.
1592         * setjmp/setjmp.h: Likewise.
1593         * signal/signal.h: Likewise.
1594         * stdlib/bits/stdlib-float.h: Likewise.
1595         * stdlib/bits/stdlib-ldbl.h: Likewise.
1596         * stdlib/stdlib.h: Likewise.
1597         * string/string.h: Likewise.
1598         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
1599         * time/bits/types/clock_t.h: Likewise.
1600         * time/bits/types/struct_tm.h: Likewise.
1601         * time/bits/types/time_t.h: Likewise.
1602         * time/time.h: Likewise.
1603         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1604         * wcsmbs/uchar.h: Likewise.
1605         * wcsmbs/wchar.h: Likewise.
1606         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
1607         * wctype/wctype.h: Do not handle C++ namespaces.
1608         * scripts/begin-end-check.pl: Remove.
1609         * Makefile (installed-headers): Likewise.
1610         (tests-special): Do not add $(objpfx)begin-end-check.out.
1611         ($(objpfx)begin-end-check.out): Remove.
1612
1613 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
1614             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1615
1616         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
1617         (DL_PLATFORM_INIT): New define.
1618         (dl_platform_init): New function.
1619         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
1620         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
1621         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
1622         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
1623         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
1624
1625 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
1626
1627         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
1628         instead of PIC.
1629
1630 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1631
1632         [BZ #21094]
1633         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
1634         24+24+24-bit pi for wider range of values around pi/2.
1635         * math/auto-libm-test-in: Add more tests of cos and tan.
1636         * math/auto-libm-test-out-cos: Regenerated.
1637         * math/auto-libm-test-out-tan: Likewise.
1638
1639 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
1640
1641         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
1642         (RTLD_START): Don't record stack end address in _dl_start_user.
1643
1644 2017-03-15  Alexey Neyman  <stilor@att.net>
1645
1646         [BZ #21088]
1647         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
1648         around definitions match those around use.
1649
1650 2017-03-15  Alexey Neyman  <stilor@att.net>
1651
1652         * configure.ac: Avoid empty subexpression in grep.
1653         * configure: Regenerate.
1654
1655 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1656
1657         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
1658         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
1659         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
1660         (test_wrp_rv): Fix format.
1661         (test_wrp_rv2): New macro.
1662         (do_test): Handle mlock return on 64 bits kernels with 32 bits
1663         binaries.
1664
1665 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
1666
1667         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
1668         Use a union when storing pointers.
1669         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
1670         cast result when passing to INIT_VEC_PTRS_LOOP.
1671         (VECTOR_WRAPPER_fFF_3): Likewise.
1672         (VECTOR_WRAPPER_fFF_4): Likewise.
1673
1674 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1675
1676         * include/bits/mathcalls-helper-functions.h: New file.
1677         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
1678         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
1679         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
1680         math/bits/mathcalls-helper-functions.h.
1681         * math/bits/mathcalls-helper-functions.h: New file.
1682         * math/math.h: Include bits/mathcalls-helper-functions.h for
1683         float, double, and long double.
1684
1685 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1686
1687         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
1688         instead of feraiseexcept.
1689
1690 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1691
1692         [BZ #21243]
1693         * support/temp_file.c (support_delete_temp_files): Add comment
1694         about ignored errors.
1695
1696 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1697
1698         [BZ #21244]
1699         * support/xclose.c: New file.
1700         * support/Makefile (libsupport-routines): Add xclose.
1701         * support/xunistd.h (xclose): Declare.
1702         * support/resolv_test.c (server_thread_tcp_client)
1703         (server_thread_tcp, make_server_sockets, resolv_test_start)
1704         (resolv_test_end): Call xclose instead of close.
1705         * support/support_enter_network_namespace.c
1706         (support_enter_network_namespace): Likewise.
1707         * support/support_run_diff.c (write_to_temp_file): Likewise.
1708
1709 2017-03-15  Florian Weimer  <fweimer@redhat.com>
1710
1711         * support/support_format_dns_packet.c (support_format_dns_packet):
1712         Handle CNAME records in the response.  Extract RDATA names from
1713         rdata, not the whole packet.  Check AAAA record length.
1714         * support/tst-support_format_dns_packet.c: New file.
1715         * support/Makefile (tests): Add tst-support_format_dns_packet.
1716         (tst-support_format_dns_packet): Link against libresolv.
1717
1718 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1719
1720         [BZ #21232]
1721         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
1722         posix_fadvise64 weak_alias for static build.
1723
1724 2017-03-14  Andreas Schwab  <schwab@suse.de>
1725
1726         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
1727         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
1728         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
1729         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
1730         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
1731         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
1732         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
1733         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
1734
1735 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1736
1737         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
1738         posix error code.
1739         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
1740
1741 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1742
1743         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
1744         no_isolate usage for SH.
1745
1746 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
1747
1748         [BZ #15105]
1749         [BZ #19463]
1750         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
1751         * inet/rcmd.c (rcmd_af): Likewise.
1752         * inet/rexec.c   (rexec_af): Likewise.
1753         * intl/dcigettext.c (_LIBC): Likewise.
1754         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
1755         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
1756         * locale/setlocale.c (setlocale): Likewise.
1757         * posix/spawn_faction_addopen.c
1758         (posix_spawn_file_actions_addopen): Likewise.
1759         * stdlib/putenv.c (putenv): Use __strndup.
1760         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
1761         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
1762         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
1763         (__Need_M_And_C) Remove define/undef.
1764         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
1765         (__malloc_and_calloc_defined): Remove define.
1766         * string/bits/string2.h (__strdup): Remove define.
1767         (strdup): Likewise.
1768         (__strndup): Likewise.
1769         (strndup): Likewise.
1770
1771 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
1772
1773         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
1774         macro.
1775         (IPV6_ADDR_PREFERENCES): Likewise.
1776         (IPV6_MINHOPCOUNT): Likewise.
1777         (IPV6_ORIGDSTADDR): Likewise.
1778         (IPV6_RECVORIGDSTADDR): Likewise.
1779         (IPV6_TRANSPARENT): Likewise.
1780         (IPV6_UNICAST_IF): Likewise.
1781         (IPV6_RECVFRAGSIZE): Likewise.
1782
1783 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
1784
1785         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
1786
1787 2017-03-12  Alexey Neyman <stilor@att.net>
1788
1789         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
1790         in R_SH_DIR32 case is always false when inlined from
1791         dl-conflict.c. Ifdef out to prevent GCC from insertin an
1792
1793 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
1794
1795         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1796         (__ASSUME_RECV_SYSCALL): Replace duplicate by
1797         __ASSUME_SEND_SYSCALL.
1798
1799 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
1800
1801         * sunrpc/Makefile: don't build and install rpcsvc header
1802         files, rpcgen and librpcsvc.a by default.
1803
1804 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
1805
1806         * math/auto-libm-test-out-catan: Regenerated.
1807         * math/auto-libm-test-out-catanh: Likewise.
1808         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1809
1810 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
1811
1812         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
1813         for long double with corrected test expectations.
1814
1815 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1816
1817         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
1818         Define.
1819         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
1820         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
1821         * sysdeps/unix/sysv/linux/nios2/sysdep.h
1822         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1823         * sysdeps/unix/sysv/linux/tile/sysdep.h
1824         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
1825         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1826         (__ASSUME_RECV_SYSCALL): Define.
1827         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1828         (__ASSUME_RECV_SYSCALL): Likewise.
1829         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1830         (__ASSUME_RECV_SYSCALL): Likewise.
1831         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1832         (__ASSUME_RECV_SYSCALL): Likewise.
1833         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1834         (__ASSUME_RECV_SYSCALL): Likewise.
1835         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1836         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
1837         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1838         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1839         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1840         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
1841         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
1842         auto-generation list.
1843         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1844         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1845         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
1846         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1847         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1848         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
1849         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
1850         __ASSUME_SENDTO_SYSCALL.
1851         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
1852         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
1853         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
1854
1855         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
1856         auto-generation list.
1857         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1858         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1859         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1860         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1861         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1862         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1863         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1864         * sysdeps/unix/sysv/linux/kernel-features.h
1865         (__ASSUME_SENDTO_SYSCALL): Define by default.
1866         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1867         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
1868         __NR_sendto.
1869         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1870         (__ASSUME_SENDTO_SYSCALL): Likewise.
1871         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1872         (__ASSUME_SENDTO_SYSCALL): Likewise.
1873         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1874         (__ASSUME_SENDTO_SYSCALL): Remove definition.
1875         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1876         (__ASSUME_SENDTO_SYSCALL): Likewise.
1877         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
1878         (__ASSUME_SENDTO_SYSCALL): Likewise.
1879         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
1880
1881         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
1882         auto-generation list.
1883         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1884         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1885         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1886         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1887         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1888         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1889         (__ASSUME_RECV_SYSCALL): New define.
1890         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1891         (__ASSUME_RECV_SYSCALL): Likewise.
1892         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1893         (__ASSUME_RECV_SYSCALL): Likewise.
1894         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1895         (__ASSUME_RECV_SYSCALL): Likewise.
1896         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1897         (__ASSUME_RECV_SYSCALL): Likewise.
1898         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1899         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1900         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1901         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1902         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1903         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
1904         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
1905         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
1906         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
1907         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
1908         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
1909         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
1910
1911         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
1912         auto-generation list.
1913         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1914         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1915         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1916         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1917         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1918         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1919         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1920         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1921         (__ASSUME_RECVFROM_SYSCALL): Define by default.
1922         * sysdeps/unix/sysv/linux/kernel-features.h
1923         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
1924         __NR_recvfrom.
1925         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1926         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1927         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1928         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1929         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1930         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
1931         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1932         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1933         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1934         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1935         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1936         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1937         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
1938
1939         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
1940         auto-generation list.
1941         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1942         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1943         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1944         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1945         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1946         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1947         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1948         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
1949         * sysdeps/unix/sysv/linux/kernel-features.h
1950         (__ASSUME_CONNECT_SYSCALL): Define.
1951         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1952         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
1953         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1954         (__ASSUME_CONNECT_SYSCALL): Likewise.
1955         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1956         (__ASSUME_CONNECT_SYSCALL): Likewise.
1957         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1958         (__ASSUME_CONNECT_SYSCALL): Likewise.
1959
1960         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
1961         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
1962         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
1963         auto-generation list.
1964         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1965         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
1966         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1967         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1968         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1969         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1970         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1971         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1972         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1973         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1974         * sysdeps/unix/sysv/linux/kernel-features.h
1975         (__ASSUME_ACCEPT_SYSCALL): New define.
1976         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1977         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1978         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
1979         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1980         (__ASSUME_ACCEPT_SYSCALL): Define.
1981         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1982         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1983         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1984         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
1985         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1986         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1987         (__ASSUME_ACCEPT_SYSCALL): Undefine.
1988         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1989         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
1990
1991 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
1992             Zack Weinberg  <zackw@panix.com>
1993
1994         * posix/test-errno.c: New file.
1995         * posix/Makefile (tests): Add test-errno.
1996         * sysdeps/unix/sysv/linux/test-errno.c: New file.
1997         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
1998
1999 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2000
2001         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2002
2003 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2004
2005         * time/tzset.c (compute_offset): Open-code min macro.
2006         (min, max, sign): Remove.
2007
2008 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2009
2010         [BZ #15576]
2011         Remove TZNAME_MAX limit from sysconf.
2012         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2013         declaration.
2014         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2015         compute_tzname_max.
2016         (compute_tzname_max): Remove.
2017         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2018         (update_vars): Do not update __tzname_cur_max.
2019         (tzset_internal): Remove argument.
2020         (__tzset): Adjust call to tzset_internal.
2021         (__tz_convert): Likewise.
2022
2023         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2024         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2025         * manual/conf.texi (Sysconf Definition): Update comment.
2026
2027 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2028
2029         [BZ #21209]
2030         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2031         AT_SECURE processes.
2032         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2033         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2034         (test_child): Likewise.
2035         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2036
2037 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2038
2039         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2040
2041 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2042
2043         * sysdeps/s390/atomic-machine.h
2044         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2045         (__arch_compare_and_exchange_val_8_acq,
2046         __arch_compare_and_exchange_val_16_acq,
2047         __arch_compare_and_exchange_val_32_acq,
2048         __arch_compare_and_exchange_val_64_acq):
2049         Delete macro.
2050         (atomic_compare_and_exchange_val_acq,
2051         atomic_compare_and_exchange_val_rel,
2052         atomic_compare_and_exchange_bool_acq,
2053         catomic_compare_and_exchange_bool_acq,
2054         atomic_exchange_acq, atomic_exchange_rel,
2055         atomic_exchange_and_add_acq,
2056         atomic_exchange_and_add_rel,
2057         catomic_exchange_and_add, atomic_or_val,
2058         atomic_or, catomic_or, atomic_bit_test_set,
2059         atomic_and_val, atomic_and, catomic_and):
2060         Define macros with help of C11 atomic builtins.
2061
2062 2017-03-03  Justus Winter <justus@gnupg.org>
2063
2064         * sysdeps/mach/hurd/ftruncate64.c: New file.
2065         * sysdeps/mach/hurd/truncate64.c: Likewise.
2066
2067 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2068
2069         * time/tzfile.c (NOID): Do not define.
2070         * time/tzset.c (NOID): Likewise.
2071
2072 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2073
2074         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2075
2076 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2077
2078         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2079
2080 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2081
2082         [BZ #21015]
2083         * manual/install.texi (Configuring and compiling): Document
2084         --enable-bind-now.
2085         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2086         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2087         (format.lds): Likewise.
2088         [bind-now] (LDFLAGS-c.so): Remove.
2089         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2090         be R_X86_64_GLOB_DAT.
2091         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2092         relocation can be R_386_GLOB_DAT.
2093         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2094         relocaiton can be R_ALPHA_GLOB_DAT.
2095         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2096
2097 2017-03-01  Zack Weinberg  <zackw@panix.com>
2098
2099         * include/libc-pointer-arith.h: New file.  Define
2100         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2101         PTR_ALIGN_DOWN here.
2102         * include/libc-internal.h: Definitions of above macros
2103         moved from here.  Don't include libc-diag.h anymore either.
2104         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2105         Don't include libc-internal.h.
2106
2107         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2108         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2109         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2110         * string/strcoll_l.c, sysdeps/nacl/brk.c
2111         * sysdeps/unix/clock_settime.c
2112         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2113         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2114         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2115         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2116         Don't include libc-internal.h.
2117
2118         * elf/get-dynamic-info.h, iconv/loop.c
2119         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2120         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2121         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2122         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2123         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2124         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2125         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2126         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2127         * sysdeps/ieee754/ldbl-128/k_tanl.c
2128         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2129         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2130         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2131         Include libc-diag.h instead of libc-internal.h.
2132
2133         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2134         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2135         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2136         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2137         * sysdeps/unix/sysv/linux/spawni.c
2138         * sysdeps/x86_64/nptl/tls.h:
2139         Include libc-pointer-arith.h instead of libc-internal.h.
2140
2141         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2142         * sysdeps/x86_64/atomic-machine.h:
2143         Add multiple include guard.
2144
2145         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2146         * string/strcasestr.c: No need to include config.h.
2147         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2148         sys/auxv.h. Don't include sysdep.h.
2149         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2150
2151         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2152         DL_LOOKUP_ADDRESS.
2153         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2154         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2155         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2156         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2157         of ARTIFICIAL_LIMIT.
2158         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2159         declaration of __clone2.
2160
2161 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2162
2163         * scripts/backport-support.sh (latest_commit): New file.
2164
2165 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2166
2167         [BZ #20257]
2168         * inet/Makefile (routines): Add deadline.
2169         (tests-static): Add tst-deadline.
2170         * inet/net-internal.h (struct deadline_current_time)
2171         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2172         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2173         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2174         * inet/deadline.c: New file.
2175         * inet/tst-deadline.c: Likewise.
2176         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2177         tst-udp-timeout, tst-udp-garbage.
2178         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2179         explicitly.
2180         (tst-udp-garbage): Likewise.  Also link against thread library.
2181         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2182         struct layout is part of the ABI.
2183         (clntudp_call): Rework timeout handling.
2184         * sunrpc/tst-udp-garbage.c: New file.
2185         * sunrpc/tst-udp-nonblocking.c: Likewise.
2186         * sunrpc/tst-udp-timeout.c: Likewise.
2187
2188 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2189
2190         [BZ #5010]
2191         * sunrpc/svc.c (svc_is_mapped): Remove.
2192         (svc_unregister): Obtain mapped status while the service is still
2193         registered.
2194         * sunrpc/Makefile [have-thread-library] (tests): Add
2195         tst-svc_register.
2196         (tst-svc_register): Link against libc.so explicitly and the thread
2197         library.
2198         * sunrpc/tst-svc_register.c: New file.
2199
2200 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2201
2202         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2203         * sysdeps/pthread/bits/sigthread.h: Likewise.
2204
2205 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2206
2207         [BZ #21115]
2208         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2209         * sunrpc/Makefile (tests): Add tst-udp-error.
2210         (tst-udp-error): Link against libc.so explicitly.
2211         * sunrpc/tst-udp-error: New file.
2212
2213 2017-02-25  Zack Weinberg  <zackw@panix.com>
2214
2215         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2216         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2217
2218         * sysdeps/generic/math_ldbl.h
2219         * sysdeps/ia64/fpu/math_ldbl.h
2220         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2221         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2222         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2223         * sysdeps/powerpc/fpu/math_ldbl.h
2224         * sysdeps/x86_64/fpu/math_ldbl.h:
2225         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2226         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2227         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2228         Add copyright notices.
2229
2230         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2231         Don't use EXTRACT_WORDS64.
2232
2233         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2234         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2235         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2236         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2237         Include math_ldbl.h, not math_private.h.
2238
2239 2017-02-25  Zack Weinberg  <zackw@panix.com>
2240
2241         * include/libc-diag.h: New file.  Define ignore_value,
2242         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2243         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2244
2245         * include/libc-internal.h: Definitions of above macros moved from
2246         here.  Include libc-diag.h.  Add copyright notice.
2247
2248         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2249         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2250         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2251         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2252         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2253         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2254         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2255         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2256         Include libc-diag.h instead of libc-internal.h.
2257
2258         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2259         call to unsetenv (NULL).
2260         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2261         call to pthread_mutexattr_destroy (NULL).
2262
2263 2017-02-25  Zack Weinberg  <zackw@panix.com>
2264
2265         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2266         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2267         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2268         gets was removed from C++ in C++14.
2269         * include/stdio.h: Remove redundant declaration of gets.
2270         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2271         be declared, since we are testing it.
2272         * stdio-common/Makefile (tst-gets.c): Compile with
2273         -Wno-deprecated-declarations.
2274         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2275         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2276         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2277         Compile with -Wno-deprecated-declarations.
2278
2279 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2280
2281         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2282         numbers.
2283
2284 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2285
2286         * resolv/tst-resolv-qtypes.c (domain):
2287         Change type to const pointer to const char.
2288
2289 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2290
2291         * math/Makefile (libm-tests-generated): Remove variable.
2292         (libm-tests-base-normal): New variable.
2293         (libm-tests-base-finite): Likewise.
2294         (libm-tests-base-inline): Likewise.
2295         (libm-tests-base): Likewise.
2296         (libm-tests-normal): Likewise.
2297         (libm-tests-finite): Likewise.
2298         (libm-tests-inline): Likewise.
2299         (libm-tests-vector): Likewise.
2300         (libm-tests): Define in terms of these new variables.
2301         (libm-tests-for-type): New variable.
2302         (libm-tests.o): Move definition.
2303         (tests): Move addition of $(libm-tests).
2304         (generated): Update for new and removed libm test files.
2305         ($(objpfx)libm-test.c): Remove target.
2306         ($(objpfx)libm-have-vector-test.h): Likewise.
2307         (CFLAGS-test-double-vlen2.c): Remove variable.
2308         (CFLAGS-test-double-vlen4.c): Likewise.
2309         (CFLAGS-test-double-vlen8.c): Likewise.
2310         (CFLAGS-test-float-vlen4.c): Likewise.
2311         (CFLAGS-test-float-vlen8.c): Likewise.
2312         (CFLAGS-test-float-vlen16.c): Likewise.
2313         (CFLAGS-test-float.c): Likewise.
2314         (CFLAGS-test-float-finite.c): Likewise.
2315         (CFLAGS-libm-test-support-float.c): Likewise.
2316         (CFLAGS-test-double.c): Likewise.
2317         (CFLAGS-test-double-finite.c): Likewise.
2318         (CFLAGS-libm-test-support-double.c): Likewise.
2319         (CFLAGS-test-ldouble.c): Likewise.
2320         (CFLAGS-test-ldouble-finite.c): Likewise.
2321         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2322         (libm-test-inline-cflags): New variable.
2323         (CFLAGS-test-ifloat.c): Remove variable.
2324         (CFLAGS-test-idouble.c): Likewise.
2325         (CFLAGS-test-ildouble.c): Likewise.
2326         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
2327         dependencies.
2328         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
2329         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
2330         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
2331         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
2332         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
2333         Likewise.
2334         (dependencies on libm-test-support-*.o): Remove.
2335         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
2336         rules using iterators.
2337         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
2338         Likewise.
2339         ($(objpfx)libm-test-support-$(o).o): Likewise.
2340         ($(addprefix $(objpfx),$(filter-out $(tests-static)
2341         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
2342         instead.
2343         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
2344         define rule instead.
2345         * math/README.libm-test: Update.
2346         * math/libm-test-acos.inc: Include libm-test-driver.c.
2347         (do_test): New function.
2348         * math/libm-test-acosh.inc: Include libm-test-driver.c.
2349         (do_test): New function.
2350         * math/libm-test-asin.inc: Include libm-test-driver.c.
2351         (do_test): New function.
2352         * math/libm-test-asinh.inc: Include libm-test-driver.c.
2353         (do_test): New function.
2354         * math/libm-test-atan.inc: Include libm-test-driver.c.
2355         (do_test): New function.
2356         * math/libm-test-atan2.inc: Include libm-test-driver.c.
2357         (do_test): New function.
2358         * math/libm-test-atanh.inc: Include libm-test-driver.c.
2359         (do_test): New function.
2360         * math/libm-test-cabs.inc: Include libm-test-driver.c.
2361         (do_test): New function.
2362         * math/libm-test-cacos.inc: Include libm-test-driver.c.
2363         (do_test): New function.
2364         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
2365         (do_test): New function.
2366         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
2367         (do_test): New function.
2368         * math/libm-test-carg.inc: Include libm-test-driver.c.
2369         (do_test): New function.
2370         * math/libm-test-casin.inc: Include libm-test-driver.c.
2371         (do_test): New function.
2372         * math/libm-test-casinh.inc: Include libm-test-driver.c.
2373         (do_test): New function.
2374         * math/libm-test-catan.inc: Include libm-test-driver.c.
2375         (do_test): New function.
2376         * math/libm-test-catanh.inc: Include libm-test-driver.c.
2377         (do_test): New function.
2378         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
2379         (do_test): New function.
2380         * math/libm-test-ccos.inc: Include libm-test-driver.c.
2381         (do_test): New function.
2382         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
2383         (do_test): New function.
2384         * math/libm-test-ceil.inc: Include libm-test-driver.c.
2385         (do_test): New function.
2386         * math/libm-test-cexp.inc: Include libm-test-driver.c.
2387         (do_test): New function.
2388         * math/libm-test-cimag.inc: Include libm-test-driver.c.
2389         (do_test): New function.
2390         * math/libm-test-clog.inc: Include libm-test-driver.c.
2391         (do_test): New function.
2392         * math/libm-test-clog10.inc: Include libm-test-driver.c.
2393         (do_test): New function.
2394         * math/libm-test-conj.inc: Include libm-test-driver.c.
2395         (do_test): New function.
2396         * math/libm-test-copysign.inc: Include libm-test-driver.c.
2397         (do_test): New function.
2398         * math/libm-test-cos.inc: Include libm-test-driver.c.
2399         (do_test): New function.
2400         * math/libm-test-cosh.inc: Include libm-test-driver.c.
2401         (do_test): New function.
2402         * math/libm-test-cpow.inc: Include libm-test-driver.c.
2403         (do_test): New function.
2404         * math/libm-test-cproj.inc: Include libm-test-driver.c.
2405         (do_test): New function.
2406         * math/libm-test-creal.inc: Include libm-test-driver.c.
2407         (do_test): New function.
2408         * math/libm-test-csin.inc: Include libm-test-driver.c.
2409         (do_test): New function.
2410         * math/libm-test-csinh.inc: Include libm-test-driver.c.
2411         (do_test): New function.
2412         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
2413         (do_test): New function.
2414         * math/libm-test-ctan.inc: Include libm-test-driver.c.
2415         (do_test): New function.
2416         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
2417         (do_test): New function.
2418         * math/libm-test-erf.inc: Include libm-test-driver.c.
2419         (do_test): New function.
2420         * math/libm-test-erfc.inc: Include libm-test-driver.c.
2421         (do_test): New function.
2422         * math/libm-test-exp.inc: Include libm-test-driver.c.
2423         (do_test): New function.
2424         * math/libm-test-exp10.inc: Include libm-test-driver.c.
2425         (do_test): New function.
2426         * math/libm-test-exp2.inc: Include libm-test-driver.c.
2427         (do_test): New function.
2428         * math/libm-test-expm1.inc: Include libm-test-driver.c.
2429         (do_test): New function.
2430         * math/libm-test-fabs.inc: Include libm-test-driver.c.
2431         (do_test): New function.
2432         * math/libm-test-fdim.inc: Include libm-test-driver.c.
2433         (do_test): New function.
2434         * math/libm-test-floor.inc: Include libm-test-driver.c.
2435         (do_test): New function.
2436         * math/libm-test-fma.inc: Include libm-test-driver.c.
2437         (do_test): New function.
2438         * math/libm-test-fmax.inc: Include libm-test-driver.c.
2439         (do_test): New function.
2440         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
2441         (do_test): New function.
2442         * math/libm-test-fmin.inc: Include libm-test-driver.c.
2443         (do_test): New function.
2444         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
2445         (do_test): New function.
2446         * math/libm-test-fmod.inc: Include libm-test-driver.c.
2447         (do_test): New function.
2448         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
2449         (do_test): New function.
2450         * math/libm-test-frexp.inc: Include libm-test-driver.c.
2451         (do_test): New function.
2452         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
2453         (do_test): New function.
2454         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
2455         (do_test): New function.
2456         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
2457         (do_test): New function.
2458         * math/libm-test-hypot.inc: Include libm-test-driver.c.
2459         (do_test): New function.
2460         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
2461         (do_test): New function.
2462         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
2463         (do_test): New function.
2464         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
2465         (do_test): New function.
2466         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
2467         (do_test): New function.
2468         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
2469         (do_test): New function.
2470         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
2471         (do_test): New function.
2472         * math/libm-test-isinf.inc: Include libm-test-driver.c.
2473         (do_test): New function.
2474         * math/libm-test-isless.inc: Include libm-test-driver.c.
2475         (do_test): New function.
2476         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
2477         (do_test): New function.
2478         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
2479         (do_test): New function.
2480         * math/libm-test-isnan.inc: Include libm-test-driver.c.
2481         (do_test): New function.
2482         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
2483         (do_test): New function.
2484         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
2485         (do_test): New function.
2486         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
2487         (do_test): New function.
2488         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
2489         (do_test): New function.
2490         * math/libm-test-iszero.inc: Include libm-test-driver.c.
2491         (do_test): New function.
2492         * math/libm-test-j0.inc: Include libm-test-driver.c.
2493         (do_test): New function.
2494         * math/libm-test-j1.inc: Include libm-test-driver.c.
2495         (do_test): New function.
2496         * math/libm-test-jn.inc: Include libm-test-driver.c.
2497         (do_test): New function.
2498         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
2499         (do_test): New function.
2500         * math/libm-test-llogb.inc: Include libm-test-driver.c.
2501         (do_test): New function.
2502         * math/libm-test-llrint.inc: Include libm-test-driver.c.
2503         (do_test): New function.
2504         * math/libm-test-llround.inc: Include libm-test-driver.c.
2505         (do_test): New function.
2506         * math/libm-test-log.inc: Include libm-test-driver.c.
2507         (do_test): New function.
2508         * math/libm-test-log10.inc: Include libm-test-driver.c.
2509         (do_test): New function.
2510         * math/libm-test-log1p.inc: Include libm-test-driver.c.
2511         (do_test): New function.
2512         * math/libm-test-log2.inc: Include libm-test-driver.c.
2513         (do_test): New function.
2514         * math/libm-test-logb.inc: Include libm-test-driver.c.
2515         (do_test): New function.
2516         * math/libm-test-lrint.inc: Include libm-test-driver.c.
2517         (do_test): New function.
2518         * math/libm-test-lround.inc: Include libm-test-driver.c.
2519         (do_test): New function.
2520         * math/libm-test-modf.inc: Include libm-test-driver.c.
2521         (do_test): New function.
2522         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
2523         (do_test): New function.
2524         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
2525         (do_test): New function.
2526         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
2527         (do_test): New function.
2528         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
2529         (do_test): New function.
2530         * math/libm-test-nextup.inc: Include libm-test-driver.c.
2531         (do_test): New function.
2532         * math/libm-test-pow.inc: Include libm-test-driver.c.
2533         (do_test): New function.
2534         * math/libm-test-remainder.inc: Include libm-test-driver.c.
2535         (do_test): New function.
2536         * math/libm-test-remquo.inc: Include libm-test-driver.c.
2537         (do_test): New function.
2538         * math/libm-test-rint.inc: Include libm-test-driver.c.
2539         (do_test): New function.
2540         * math/libm-test-round.inc: Include libm-test-driver.c.
2541         (do_test): New function.
2542         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
2543         (do_test): New function.
2544         * math/libm-test-scalb.inc: Include libm-test-driver.c.
2545         (do_test): New function.
2546         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
2547         (do_test): New function.
2548         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
2549         (do_test): New function.
2550         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
2551         (do_test): New function.
2552         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
2553         (do_test): New function.
2554         * math/libm-test-signbit.inc: Include libm-test-driver.c.
2555         (do_test): New function.
2556         * math/libm-test-significand.inc: Include libm-test-driver.c.
2557         (do_test): New function.
2558         * math/libm-test-sin.inc: Include libm-test-driver.c.
2559         (do_test): New function.
2560         * math/libm-test-sincos.inc: Include libm-test-driver.c.
2561         (do_test): New function.
2562         * math/libm-test-sinh.inc: Include libm-test-driver.c.
2563         (do_test): New function.
2564         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
2565         (do_test): New function.
2566         * math/libm-test-tan.inc: Include libm-test-driver.c.
2567         (do_test): New function.
2568         * math/libm-test-tanh.inc: Include libm-test-driver.c.
2569         (do_test): New function.
2570         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
2571         (do_test): New function.
2572         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
2573         (do_test): New function.
2574         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
2575         (do_test): New function.
2576         * math/libm-test-trunc.inc: Include libm-test-driver.c.
2577         (do_test): New function.
2578         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
2579         (do_test): New function.
2580         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
2581         (do_test): New function.
2582         * math/libm-test-y0.inc: Include libm-test-driver.c.
2583         (do_test): New function.
2584         * math/libm-test-y1.inc: Include libm-test-driver.c.
2585         (do_test): New function.
2586         * math/libm-test-yn.inc: Include libm-test-driver.c.
2587         (do_test): New function.
2588         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
2589         (HAVE_VECTOR): Remove macro.
2590         (START): Do not call HAVE_VECTOR.
2591         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
2592         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
2593         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
2594         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
2595         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
2596         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
2597         * math/test-math-vector.h (FUNC_TEST): New macro.
2598         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
2599         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
2600         (double-vlen4-funcs): Likewise.
2601         (double-vlen4-avx2-funcs): Likewise.
2602         (double-vlen8-funcs): Likewise.
2603         (float-vlen4-funcs): Likewise.
2604         (float-vlen8-funcs): Likewise.
2605         (float-vlen8-avx2-funcs): Likewise.
2606         (float-vlen16-funcs): Likewise.
2607         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
2608         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
2609         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
2610         macro.
2611         (TEST_VECTOR_sin): Likewise.
2612         (TEST_VECTOR_sincos): Likewise.
2613         (TEST_VECTOR_log): Likewise.
2614         (TEST_VECTOR_exp): Likewise.
2615         (TEST_VECTOR_pow): Likewise.
2616         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
2617         Likewise.
2618         (TEST_VECTOR_sin): Likewise.
2619         (TEST_VECTOR_sincos): Likewise.
2620         (TEST_VECTOR_log): Likewise.
2621         (TEST_VECTOR_exp): Likewise.
2622         (TEST_VECTOR_pow): Likewise.
2623         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
2624         Likewise.
2625         (TEST_VECTOR_sinf): Likewise.
2626         (TEST_VECTOR_sincosf): Likewise.
2627         (TEST_VECTOR_logf): Likewise.
2628         (TEST_VECTOR_expf): Likewise.
2629         (TEST_VECTOR_powf): Likewise.
2630         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
2631         Likewise.
2632         (TEST_VECTOR_sinf): Likewise.
2633         (TEST_VECTOR_sincosf): Likewise.
2634         (TEST_VECTOR_logf): Likewise.
2635         (TEST_VECTOR_expf): Likewise.
2636         (TEST_VECTOR_powf): Likewise.
2637         * math/gen-libm-have-vector-test.sh: Remove file.
2638         * math/libm-test.inc: Likewise.
2639         * math/libm-test-support-double.c: Likewise.
2640         * math/libm-test-support-float.c: Likewise.
2641         * math/libm-test-support-ldouble.c: Likewise.
2642         * math/test-double-finite.c: Likewise.: Likewise.
2643         * math/test-double.c: Likewise.
2644         * math/test-float-finite.c: Likewise.
2645         * math/test-float.c: Likewise.
2646         * math/test-idouble.c: Likewise.
2647         * math/test-ifloat.c: Likewise.
2648         * math/test-ildouble.c: Likewise.
2649         * math/test-ldouble-finite.c: Likewise.
2650         * math/test-ldouble.c: Likewise.
2651         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
2652         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
2653         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
2654         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
2655         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
2656         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
2657         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
2658         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
2659         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
2660         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
2661
2662 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2663            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2664
2665         * math/Makefile: Add wrappers to gen-libm-calls.
2666         * math/w_acos_template.c: New file.
2667         * math/w_acosh_template.c: Likewise.
2668         * math/w_asin_template.c: Likewise.
2669         * math/w_atan2_template.c: Likewise.
2670         * math/w_atanh_template.c: Likewise.
2671         * math/w_cosh_template.c: Likewise.
2672         * math/w_exp10_template.c: Likewise.
2673         * math/w_exp2_template.c: Likewise.
2674         * math/w_exp_template.c: Likewise.
2675         * math/w_fmod_template.c: Likewise.
2676         * math/w_hypot_template.c: Likewise.
2677         * math/w_j0_template.c: Likewise.
2678         * math/w_j1_template.c: Likewise.
2679         * math/w_jn_template.c: Likewise.
2680         * math/w_lgamma_r_template.c: Likewise.
2681         * math/w_lgamma_template.c: Likewise.
2682         * math/w_log10_template.c: Likewise.
2683         * math/w_log2_template.c: Likewise.
2684         * math/w_log_template.c: Likewise.
2685         * math/w_pow_template.c: Likewise.
2686         * math/w_remainder_template.c: Likewise.
2687         * math/w_sinh_template.c: Likewise.
2688         * math/w_sqrt_template.c: Likewise.
2689         * math/w_tgamma_template.c: Likewise.: Likewise.
2690         * sysdeps/generic/math-type-macros-double.h
2691         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
2692         the new wrappers.
2693         * sysdeps/generic/math-type-macros-float.h: Likewise.
2694         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
2695
2696 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
2697
2698         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
2699         New enum constant and macro.
2700
2701         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2702         kernel version to 4.10.
2703
2704 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
2705
2706         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
2707
2708 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2709
2710         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2711
2712 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2713
2714         * sysdeps/powerpc/tst-set_ppr.c: New file.
2715         Implement test cases for __ppc_set_ppr_* functions.
2716         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
2717         in the list of tests.
2718
2719 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
2720
2721         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
2722         instead of test-skeleton.c.
2723         (do_test): Replaced pthread_create and pthread_join with
2724         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
2725         Removed unneeded status variable.
2726         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
2727         instead of test-skeleton.c.
2728         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
2729
2730 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
2731
2732         [BZ #20313]
2733         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
2734         201605L, for Unicode 9.
2735
2736 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
2737
2738         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
2739         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
2740         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
2741         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
2742         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
2743         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
2744
2745 2017-02-19  Zack Weinberg  <zackw@panix.com>
2746
2747         * rt/tst-mqueue4.c: Include stdint.h.
2748
2749 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2750
2751         * sysdeps/arm/libm-test-ulps: Update.
2752         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2753         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2754         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2755
2756 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2757
2758         [BZ #21029]
2759         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
2760         * sysdeps/unix/sysv/linux/i386/Makefile
2761         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
2762         (uses-6-syscall-arguments): Remove.
2763         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
2764         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
2765         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
2766         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
2767         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
2768         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
2769         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
2770         [$(subdir) = misc] (cflags-pselect.o): Likewise.
2771         [$(subdir) = misc] (cflags-pselect.os): Likewise.
2772         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
2773         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
2774         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
2775         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
2776         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
2777         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
2778         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
2779         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
2780         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
2781         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
2782         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
2783         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
2784         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
2785         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
2786         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
2787         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
2788         Likewise.
2789         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
2790         Likewise.
2791         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
2792         Likewise.
2793         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
2794         Likewise.
2795         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
2796         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
2797         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
2798         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
2799         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
2800         ebp on inline assembly.
2801         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
2802         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
2803         Set if CAN_USE_REGISTER_ASM_EBP is set.
2804
2805 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2806
2807         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
2808         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
2809
2810 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
2811
2812         * math/auto-libm-test-in: Add tests of catan and catanh.
2813         * math/auto-libm-test-out-catan: New generated file.
2814         * math/auto-libm-test-out-catanh: Likewise.
2815         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
2816         Move tests with finite inputs, except divide-by-zero cases, to
2817         auto-libm-test-in.
2818         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
2819         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
2820         (libm-test-funcs-noauto): Remove catan and catanh.
2821         * sysdeps/i386/fpu/libm-test-ulps: Update.
2822         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2824
2825         * math/auto-libm-test-in: Add tests of casin and casinh.
2826         * math/auto-libm-test-out-casin: New generated file.
2827         * math/auto-libm-test-out-casinh: Likewise.
2828         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
2829         Move tests with finite inputs to auto-libm-test-in.
2830         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
2831         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
2832         (libm-test-funcs-noauto): Remove casin and casinh.
2833         * sysdeps/i386/fpu/libm-test-ulps: Update.
2834         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2836
2837         * math/auto-libm-test-in: Add tests of cacos and cacosh.
2838         * math/auto-libm-test-out-cacos: New generated file.
2839         * math/auto-libm-test-out-cacosh: Likewise.
2840         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
2841         Move tests with finite inputs to auto-libm-test-in.
2842         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
2843         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
2844         (libm-test-funcs-noauto): Remove cacos and cacosh.
2845         * sysdeps/i386/fpu/libm-test-ulps: Update.
2846         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2848
2849         Revert:
2850         2017-02-16  Zack Weinberg  <zackw@panix.com>
2851
2852         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2853         Don't include init-arch.h.
2854         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2855         Don't include init-arch.h.
2856
2857 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2858
2859         [BZ #21171]
2860         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
2861         +Inf and raise divide-by-zero when x is negative.
2862         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
2863         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
2864         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
2865         -Inf and raise divide-by-zero when x = +-0.
2866         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2867         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2868         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2869         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2870         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2871         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2872         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2873
2874 2017-02-16  Zack Weinberg  <zackw@panix.com>
2875
2876         * scripts/build-many-glibcs.py (bot_build_mail): If the
2877         bot_config does not contain all of the necessary email-
2878         related settings, just print a warning and continue.
2879
2880 2017-02-16  Zack Weinberg  <zackw@panix.com>
2881
2882         * crypt/md5.h: Test _LIBC with #if defined, not #if.
2883         * dirent/opendir-tst1.c: Include sys/stat.h.
2884         * dirent/tst-fdopendir.c: Include sys/stat.h.
2885         * dirent/tst-fdopendir2.c: Include stdlib.h.
2886         * dirent/tst-scandir.c: Include stdbool.h.
2887         * elf/tst-auditmod1.c: Include link.h and stddef.h.
2888         * elf/tst-tls15.c: Include stdlib.h.
2889         * elf/tst-tls16.c: Include stdlib.h.
2890         * elf/tst-tls17.c: Include stdlib.h.
2891         * elf/tst-tls18.c: Include stdlib.h.
2892         * iconv/tst-iconv6.c: Include endian.h.
2893         * iconvdata/bug-iconv11.c: Include limits.h.
2894         * io/test-utime.c: Include stdint.h.
2895         * io/tst-faccessat.c: Include sys/stat.h.
2896         * io/tst-fchmodat.c: Include sys/stat.h.
2897         * io/tst-fchownat.c: Include sys/stat.h.
2898         * io/tst-fstatat.c: Include sys/stat.h.
2899         * io/tst-futimesat.c: Include sys/stat.h.
2900         * io/tst-linkat.c: Include sys/stat.h.
2901         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
2902         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
2903         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
2904         * io/tst-openat.c: Include stdbool.h.
2905         * io/tst-readlinkat.c: Include sys/stat.h.
2906         * io/tst-renameat.c: Include sys/stat.h.
2907         * io/tst-symlinkat.c: Include sys/stat.h.
2908         * io/tst-unlinkat.c: Include stdbool.h.
2909         * libio/bug-memstream1.c: Include stdlib.h.
2910         * libio/bug-wmemstream1.c: Include stdlib.h.
2911         * libio/tst-fwrite-error.c: Include stdlib.h.
2912         * libio/tst-memstream1.c: Include stdlib.h.
2913         * libio/tst-memstream2.c: Include stdlib.h.
2914         * libio/tst-memstream3.c: Include stdlib.h.
2915         * malloc/tst-interpose-aux.c: Include stdint.h.
2916         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
2917         * nptl/tst-basic7.c: Include limits.h.
2918         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
2919         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
2920         * nptl/tst-cancel4_1.c: Include stddef.h.
2921         * nptl/tst-cancel4_2.c: Include stddef.h.
2922         * nptl/tst-cond16.c: Include limits.h.
2923         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
2924         * nptl/tst-cond18.c: Include limits.h.
2925         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
2926         * nptl/tst-cond4.c: Include stdint.h.
2927         * nptl/tst-cond6.c: Include stdint.h.
2928         * nptl/tst-stack2.c: Include limits.h.
2929         * nptl/tst-stackguard1.c: Include stddef.h.
2930         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
2931         * nptl/tst-tls4moda.c: Include stddef.h.
2932         Don't include stdio.h, unistd.h, or tls.h.
2933         * nptl/tst-tls4modb.c: Include stddef.h.
2934         Don't include stdio.h, unistd.h, or tls.h.
2935         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
2936         * posix/tst-getaddrinfo2.c: Include stdio.h.
2937         * posix/tst-getaddrinfo5.c: Include stdio.h.
2938         * posix/tst-pathconf.c: Include sys/stat.h.
2939         * posix/tst-posix_fadvise-common.c: Include stdint.h.
2940         * posix/tst-preadwrite-common.c: Include sys/stat.h.
2941         * posix/tst-regex.c: Include stdint.h.
2942         Don't include spawn.h or spawn_int.h.
2943         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
2944         * posix/tst-vfork3.c: Include sys/stat.h.
2945         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
2946         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
2947         * resolv/tst-resolv-search.c: Include stdlib.h.
2948         * stdio-common/tst-fmemopen2.c: Include stdint.h.
2949         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
2950         * stdlib/test-canon.c: Include sys/stat.h.
2951         * stdlib/tst-tls-atexit.c: Include stdbool.h.
2952         * string/test-memchr.c: Include stdint.h.
2953         * string/tst-cmp.c: Include stdint.h.
2954         * sysdeps/pthread/tst-timer.c: Include stdint.h.
2955         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
2956         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
2957         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
2958         Don't include init-arch.h.
2959         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
2960         Don't include init-arch.h.
2961         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
2962         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
2963         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
2964         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
2965         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
2966         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
2967         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
2968         * time/clocktest.c: Include stdint.h.
2969         * time/tst-posixtz.c: Include stdint.h.
2970         * timezone/tst-timezone.c: Include stdint.h.
2971
2972 2017-02-16  Zack Weinberg  <zackw@panix.com>
2973
2974         * string/string.h [__USE_MISC]: Include strings.h.
2975         (__bzero, bcmp, bcopy, bzero, index, rindex)
2976         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
2977         (ffs, ffsl, ffsll): Don't declare.
2978         * string/strings.h: Do not suppress the file if string.h has
2979         already been included.
2980         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
2981         annotations.
2982         (index, rindex): Define inline forwarders even if
2983         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
2984         (ffs): Use __attribute_const__.
2985         (ffsl, ffsll): Declare here.
2986         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
2987         have now been standardized.
2988         * include/string.h (__bzero): Declare here.
2989
2990         * bits/types.h: Move to posix/bits.
2991         * include/bits/types.h: New wrapper.
2992
2993 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2994
2995         * string/bits/string2.h (strcmp): Remove define.
2996         (__strcmp_cg): Likewise.
2997         (strncmp): Likewise.
2998
2999 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3000
3001         * include/string.h: Add __cplusplus check.
3002
3003 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3004
3005         [BZ #21134]
3006         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3007         "divide by zero" exception when the input is zero.
3008         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3009         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3010         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3011         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3012         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3013
3014 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3015
3016         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3017         and include ...
3018         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3019         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3020         to, and include ...
3021         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3022         file.
3023         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3024         and include ...
3025         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3026         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3027         and include ...
3028         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3029         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3030         and include ...
3031         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3032         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3033         and include ...
3034         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3035         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3036         to, and include ...
3037         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3038         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3039         and include ...
3040         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3041
3042 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3043
3044         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3045         here.
3046         * math/libm-test-support.c (libm_test_init): Do not call
3047         INIT_ARCH_EXT here.
3048         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3049         (main): Call INIT_ARCH_EXT.
3050
3051 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3052
3053         [BZ #21130]
3054         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3055         with the "invalid" exception raised when x is -Inf.
3056         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3057
3058 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3059
3060         * string/bits/string2.h (strchr): Remove define.
3061
3062 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3063
3064         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3065         tst-avx512.
3066         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3067         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3068         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3069         ($(objpfx)tst-sse): New rule.
3070         ($(objpfx)tst-avx): Likewise.
3071         ($(objpfx)tst-avx512): Likewise.
3072         (CFLAGS-tst-avx-aux.c): New.
3073         (CFLAGS-tst-avxmod.c): Likewise.
3074         (CFLAGS-tst-avx512-aux.c): Likewise.
3075         (CFLAGS-tst-avx512mod.c): Likewise.
3076         * sysdeps/x86_64/tst-avx-aux.c: New file.
3077         * sysdeps/x86_64/tst-avx.c: Likewise.
3078         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3079         * sysdeps/x86_64/tst-avx512.c: Likewise.
3080         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3081         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3082         * sysdeps/x86_64/tst-sse.c: Likewise.
3083         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3084
3085 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3086
3087         * math/auto-libm-test-in: Add more tests of csin and csinh.
3088         * math/auto-libm-test-out-csin: Regenerated.
3089         * math/auto-libm-test-out-csinh: Likewise.
3090         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3091         auto-libm-test-in.
3092         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3093
3094 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3095
3096         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3097         libm-compat-calls-auto.
3098         (libm-compat-calls): Likewise.
3099         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3100         w_lgamma_compatF and k_standardF (merged from the items above).
3101         (libm-routines): Use libm-compat-calls, instead of
3102         libm-compat-calls-auto, with type-foreach.
3103
3104 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3105
3106         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3107         macro.
3108         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3109         (CFLAGS-test-ifloat.c): ... this.  Remove
3110         -U__LIBC_INTERNAL_MATH_INLINES.
3111         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3112         (CFLAGS-test-idouble.c): ... this.  Remove
3113         -U__LIBC_INTERNAL_MATH_INLINES.
3114         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3115         (CFLAGS-test-ildouble.c): ... this.  Remove
3116         -U__LIBC_INTERNAL_MATH_INLINES.
3117
3118 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3119
3120         * math/libm-test-support.c: New file.  Content from
3121         math/libm-test-driver.c.
3122         * math/libm-test-support.h: Likewise.
3123         * math/libm-test-support-double.c: New file.
3124         * math/libm-test-support-float.c: Likewise.
3125         * math/libm-test-support-ldouble.c: Likewise.
3126         * math/libm-test-driver.c: Remove main comment and header
3127         includes.  Include libm-test-support.h.
3128         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3129         (flag_test_errno): Remove static.
3130         (flag_test_exceptions): Likewise.
3131         (flag_test_finite): Likewise.
3132         (flag_test_inline): Likewise.
3133         (flag_test_mathvec): Likewise.
3134         (test_msg): Likewise.
3135         (NO_EXCEPTION): Remove.
3136         (INVALID_EXCEPTION): Likewise.
3137         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3138         (OVERFLOW_EXCEPTION): Likewise.
3139         (UNDERFLOW_EXCEPTION): Likewise.
3140         (INEXACT_EXCEPTION): Likewise.
3141         (INVALID_EXCEPTION_OK): Likewise.
3142         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3143         (OVERFLOW_EXCEPTION_OK): Likewise.
3144         (UNDERFLOW_EXCEPTION_OK): Likewise.
3145         (NO_INEXACT_EXCEPTION): Likewise.
3146         (EXCEPTIONS_OK): Likewise.
3147         (IGNORE_ZERO_INF_SIGN): Likewise.
3148         (TEST_NAN_SIGN): Likewise.
3149         (TEST_NAN_PAYLOAD): Likewise.
3150         (NO_TEST_INLINE): Likewise.
3151         (XFAIL_TEST): Likewise.
3152         (ERRNO_UNCHANGED): Likewise.
3153         (ERRNO_EDOM): Likewise.
3154         (ERRNO_ERANGE): Likewise.
3155         (IGNORE_RESULT): Likewise.
3156         (NON_FINITE): Likewise.
3157         (TEST_SNAN): Likewise.
3158         (NO_TEST_MATHVEC): Likewise.
3159         (__CONCATX): Likewise.
3160         (TYPE_MIN): Likewise.
3161         (TYPE_TRUE_MIN): Likewise.
3162         (TYPE_MAX): Likewise.
3163         (MIN_EXP): Likewise.
3164         (MAX_EXP): Likewise.
3165         (MANT_DIG): Likewise.
3166         (FSTR_MAX): Likewise.
3167         (ulp_idx): Likewise.
3168         (qtype_str): Remove static.
3169         (TEST_COND_binary32): Remove.
3170         (TEST_COND_binary64): Likewise.
3171         (TEST_COND_binary128): Likewise.
3172         (TEST_COND_ibm128): Likewise.
3173         (TEST_COND_intel96): Likewise.
3174         (TEST_COND_m68k96): Likewise.
3175         (TEST_COND_ibm128_libgcc): Likewise.
3176         (XFAIL_IBM128_LIBGCC): Likewise.
3177         (PAYLOAD_DIG): Likewise.
3178         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3179         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3180         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3181         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3182         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3183         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3184         (TEST_COND_long32): Likewise.
3185         (TEST_COND_long64): Likewise.
3186         (TEST_COND_before_rounding): Likewise.
3187         (TEST_COND_after_rounding): Likewise.
3188         (ulps_file_name): Likewise.
3189         (ulps_file): Likewise.
3190         (output_ulps): Likewise.
3191         (output_dir): Likewise.
3192         (noErrors): Likewise.
3193         (noTests): Likewise.
3194         (noExcTests): Likewise.
3195         (noErrnoTests): Likewise.
3196         (verbose): Likewise.
3197         (output_max_error): Likewise.
3198         (output_points): Likewise.
3199         (ignore_max_ulp): Likewise.
3200         (max_error): Likewise.
3201         (real_max_error): Likewise.
3202         (imag_max_error): Likewise.
3203         (prev_max_error): Likewise.
3204         (prev_real_max_error): Likewise.
3205         (prev_imag_max_error): Likewise.
3206         (max_valid_error): Likewise.
3207         (TYPE_DECIMAL_DIG): Likewise.
3208         (TYPE_HEX_DIG): Likewise.
3209         (fmt_ftostr): Likewise.
3210         (compare_ulp_data): Likewise.
3211         (find_ulps): Likewise.
3212         (init_max_error): Likewise.
3213         (set_max_error): Likewise.
3214         (print_float): Likewise.
3215         (print_screen): Likewise.
3216         (print_screen_max_error): Likewise.
3217         (update_stats): Likewise.
3218         (print_function_ulps): Likewise.
3219         (print_complex_function_ulps): Likewise.
3220         (fpstack_test): Likewise.
3221         (print_max_error): Likewise.
3222         (print_complex_max_error): Likewise.
3223         (test_single_exception): Likewise.
3224         (test_exceptions): Likewise.
3225         (test_single_errno): Likewise.
3226         (test_errno): Likewise.
3227         (ULPDIFF): Likewise.
3228         (ulp): Likewise.
3229         (check_float_internal): Likewise.
3230         (check_float): Likewise.
3231         (check_complex): Likewise.
3232         (check_int): Likewise.
3233         (check_long): Likewise.
3234         (check_bool): Likewise.
3235         (check_longlong): Likewise.
3236         (check_intmax_t): Likewise.
3237         (check_uintmax_t): Likewise.
3238         (enable_test): Likewise.
3239         (matherr): Likewise.
3240         (initialize): Likewise.
3241         (options): Likewise.
3242         (doc): Remove static.
3243         (argp): Likewise.
3244         (parse_opt): Remove.
3245         (check_ulp): Likewise.
3246         (libm_test_init): Likewise.
3247         (libm_test_finish): Likewise.
3248         * math/Makefile (libm-test-support): New variable.
3249         (test-extras): Add libm-test-support files.
3250         (extra-test-objs): Likewise.
3251         (CFLAGS-libm-test-support-float.c): New variable.
3252         (CFLAGS-libm-test-support-double.c): Likewise.
3253         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3254         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3255         libm-test-support objects.
3256
3257 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3258
3259         * math/Makefile (libm-calls): Move w_exp...
3260         (libm-compat-calls-auto): Here.
3261
3262         * math/w_expl.c: Add suffix "_compat" to filename.
3263         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3264         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3265         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3266         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3267         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3268         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3269         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3270         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3271
3272         * math/w_expl_compat.c: New file, copied from above.
3273         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3274         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3275         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3276         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3277         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3278         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3279         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3280         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3281
3282         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3283         to filename.
3284         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3285
3286         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3287         copied from above and adjusted for the new filenames.
3288         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3289
3290 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3291
3292         * math/Makefile (libm-calls): Move w_lgammaF...
3293         (libm-compat-calls-auto): Here.
3294
3295         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3296         * math/w_lgammaf.c: Likewise.
3297         * math/w_lgammal.c: Likewise.
3298
3299         * math/w_lgamma_compat2.c: New file, copied from above.
3300         * math/w_lgammaf_compat2.c: Likewise.
3301         * math/w_lgammal_compat2.c: Likewise.
3302
3303 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3304
3305         * math/Makefile (libm-calls): Move w_lgammaF_r...
3306         (libm-compat-calls-auto): Here.
3307
3308         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
3309         * math/w_lgammaf_r.c: Likewise.
3310         * math/w_lgammal_r.c: Likewise.
3311         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3312         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3313         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3314
3315         * math/w_lgamma_r_compat.c: New file, copied from above.
3316         * math/w_lgammaf_r_compat.c: Likewise.
3317         * math/w_lgammal_r_compat.c: Likewise.
3318         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
3319         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
3320         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
3321
3322         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
3323         to filename.
3324         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
3325
3326         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
3327         copied from above and adjusted for the new filenames.
3328         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3329
3330 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
3331
3332         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
3333         calculation in SYSCALL_ERROR_HANDLER().
3334
3335 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
3336
3337         * manual/contrib.texi: Fix typo.
3338
3339 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3340
3341         [BZ #21109]
3342         * elf/dl-tunable-types.h (tunable_callback_t): Accept
3343         tunable_val_t as argument.
3344         * elf/dl-tunables.c (__tunable_set_val): Add comment.
3345         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
3346         argument.
3347         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
3348
3349 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
3350
3351         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
3352         Add PTRACE_EVENT_STOP.
3353         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3354         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3355         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3356         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3357         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3358         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3359
3360 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
3361
3362         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
3363         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
3364         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
3365         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
3366         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
3367         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
3368         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
3369         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
3370         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
3371         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
3372
3373         [BZ #21112]
3374         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
3375         12 bits zero.
3376         (cp_l): Update for new value of cp_h.
3377         * math/auto-libm-test-in: Add another test of pow.
3378         * math/auto-libm-test-out-pow: Regenerated.
3379
3380 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3381
3382         * manual/contrib.texi: Fix typo.
3383
3384 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3385
3386         [BZ #15998]
3387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3388         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
3389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3390
3391 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3392
3393         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
3394         STRCHR as __strchr_power8.
3395         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
3396         strlen as __strlen_power8.
3397
3398 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3399
3400         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
3401         unaligned load for shorter strings.
3402         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
3403
3404 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3405
3406         * math/libm-test-driver.c (flag_test_errno): New variable.
3407         (flag_test_exceptions): Likewise.
3408         (flag_test_finite): Likewise.
3409         (flag_test_inline): Likewise.
3410         (flag_test_mathvec): Likewise.
3411         (test_msg): Likewise.
3412         (ulp_idx): Likewise.
3413         (qtype_str): Likewise.
3414         (ULP_IDX): Remove macro.
3415         (QTYPE_STR): Likewise.
3416         (find_ulps): Use ulp_idx not ULP_IDX.
3417         (print_function_ulps): Use qtype_str, printed with %s, not
3418         QTYPE_STR, printed with concatentation to format string.
3419         (print_complex_function_ulps): Likewise.
3420         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
3421         (test_errno): Use flag_test_errno not TEST_ERRNO.
3422         (enable_test): Use flag_test_inline, flag_test_finite and
3423         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
3424         TEST_MATHVEC.
3425         (libm_test_init): New function.  Factored out of main.
3426         (libm_test_finish): Likewise.
3427         (main): Call libm_test_init and libm_test_finish and move most
3428         code to those functions.
3429
3430         * math/libm-test-driver.c (STRX): New macro.
3431         (STR): Likewise.
3432         (STR_FLOAT): Likewise.
3433         (STR_VEC_LEN): Likewise.
3434         (TEST_MSG): Likewise.  Define here instead of expecting to be
3435         defined by including file.
3436         * math/test-double-finite.c (TEST_MSG): Remove macro.
3437         * math/test-double-vlen2.h (TEST_MSG): Likewise.
3438         * math/test-double-vlen4.h (TEST_MSG): Likewise.
3439         * math/test-double-vlen8.h (TEST_MSG): Likewise.
3440         * math/test-double.c (TEST_MSG): Likewise.
3441         * math/test-float-finite.c (TEST_MSG): Likewise.
3442         * math/test-float-vlen16.h (TEST_MSG): Likewise.
3443         * math/test-float-vlen4.h (TEST_MSG): Likewise.
3444         * math/test-float-vlen8.h (TEST_MSG): Likewise.
3445         * math/test-float.c (TEST_MSG): Likewise.
3446         * math/test-idouble.c (TEST_MSG): Likewise.
3447         * math/test-ifloat.c (TEST_MSG): Likewise.
3448         * math/test-ildouble.c (TEST_MSG): Likewise.
3449         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
3450         * math/test-ldouble.c (TEST_MSG): Likewise.
3451
3452         * math/libm-test.inc: Move all tests of individual functions to
3453         libm-test-*.inc and #include libm-test-*.c files.
3454         (acos_test_data): Remove.
3455         (acos_test): Likewise.
3456         (acosh_test_data): Likewise.
3457         (acosh_test): Likewise.
3458         (asin_test_data): Likewise.
3459         (asin_test): Likewise.
3460         (asinh_test_data): Likewise.
3461         (asinh_test): Likewise.
3462         (atan_test_data): Likewise.
3463         (atan_test): Likewise.
3464         (atanh_test_data): Likewise.
3465         (atanh_test): Likewise.
3466         (atan2_test_data): Likewise.
3467         (atan2_test): Likewise.
3468         (cabs_test_data): Likewise.
3469         (cabs_test): Likewise.
3470         (cacos_test_data): Likewise.
3471         (cacos_test): Likewise.
3472         (cacosh_test_data): Likewise.
3473         (cacosh_test): Likewise.
3474         (canonicalize_test_data): Likewise.
3475         (canonicalize_test): Likewise.
3476         (carg_test_data): Likewise.
3477         (carg_test): Likewise.
3478         (casin_test_data): Likewise.
3479         (casin_test): Likewise.
3480         (casinh_test_data): Likewise.
3481         (casinh_test): Likewise.
3482         (catan_test_data): Likewise.
3483         (catan_test): Likewise.
3484         (catanh_test_data): Likewise.
3485         (catanh_test): Likewise.
3486         (cbrt_test_data): Likewise.
3487         (cbrt_test): Likewise.
3488         (ccos_test_data): Likewise.
3489         (ccos_test): Likewise.
3490         (ccosh_test_data): Likewise.
3491         (ccosh_test): Likewise.
3492         (ceil_test_data): Likewise.
3493         (ceil_test): Likewise.
3494         (cexp_test_data): Likewise.
3495         (cexp_test): Likewise.
3496         (cimag_test_data): Likewise.
3497         (cimag_test): Likewise.
3498         (clog_test_data): Likewise.
3499         (clog_test): Likewise.
3500         (clog10_test_data): Likewise.
3501         (clog10_test): Likewise.
3502         (conj_test_data): Likewise.
3503         (conj_test): Likewise.
3504         (copysign_test_data): Likewise.
3505         (copysign_test): Likewise.
3506         (cos_test_data): Likewise.
3507         (cos_test): Likewise.
3508         (cosh_test_data): Likewise.
3509         (cosh_test): Likewise.
3510         (cpow_test_data): Likewise.
3511         (cpow_test): Likewise.
3512         (cproj_test_data): Likewise.
3513         (cproj_test): Likewise.
3514         (creal_test_data): Likewise.
3515         (creal_test): Likewise.
3516         (csin_test_data): Likewise.
3517         (csin_test): Likewise.
3518         (csinh_test_data): Likewise.
3519         (csinh_test): Likewise.
3520         (csqrt_test_data): Likewise.
3521         (csqrt_test): Likewise.
3522         (ctan_test_data): Likewise.
3523         (ctan_test): Likewise.
3524         (ctanh_test_data): Likewise.
3525         (ctanh_test): Likewise.
3526         (erf_test_data): Likewise.
3527         (erf_test): Likewise.
3528         (erfc_test_data): Likewise.
3529         (erfc_test): Likewise.
3530         (exp_test_data): Likewise.
3531         (exp_test): Likewise.
3532         (exp10_test_data): Likewise.
3533         (exp10_test): Likewise.
3534         (pow10_test): Likewise.
3535         (exp2_test_data): Likewise.
3536         (exp2_test): Likewise.
3537         (expm1_test_data): Likewise.
3538         (expm1_test): Likewise.
3539         (fabs_test_data): Likewise.
3540         (fabs_test): Likewise.
3541         (fdim_test_data): Likewise.
3542         (fdim_test): Likewise.
3543         (floor_test_data): Likewise.
3544         (floor_test): Likewise.
3545         (fma_test_data): Likewise.
3546         (fma_test): Likewise.
3547         (fmax_test_data): Likewise.
3548         (fmax_test): Likewise.
3549         (fmaxmag_test_data): Likewise.
3550         (fmaxmag_test): Likewise.
3551         (fmin_test_data): Likewise.
3552         (fmin_test): Likewise.
3553         (fminmag_test_data): Likewise.
3554         (fminmag_test): Likewise.
3555         (fmod_test_data): Likewise.
3556         (fmod_test): Likewise.
3557         (fpclassify_test_data): Likewise.
3558         (fpclassify_test): Likewise.
3559         (frexp_test_data): Likewise.
3560         (frexp_test): Likewise.
3561         (fromfp_test_data): Likewise.
3562         (fromfp_test): Likewise.
3563         (fromfpx_test_data): Likewise.
3564         (fromfpx_test): Likewise.
3565         (getpayload_test_data): Likewise.
3566         (getpayload_test): Likewise.
3567         (hypot_test_data): Likewise.
3568         (hypot_test): Likewise.
3569         (ilogb_test_data): Likewise.
3570         (ilogb_test): Likewise.
3571         (iscanonical_test_data): Likewise.
3572         (iscanonical_test): Likewise.
3573         (iseqsig_test_data): Likewise.
3574         (iseqsig_test): Likewise.
3575         (isfinite_test_data): Likewise.
3576         (isfinite_test): Likewise.
3577         (finite_test): Likewise.
3578         (isgreater_test_data): Likewise.
3579         (isgreater_test): Likewise.
3580         (isgreaterequal_test_data): Likewise.
3581         (isgreaterequal_test): Likewise.
3582         (isinf_test_data): Likewise.
3583         (isinf_test): Likewise.
3584         (isless_test_data): Likewise.
3585         (isless_test): Likewise.
3586         (islessequal_test_data): Likewise.
3587         (islessequal_test): Likewise.
3588         (islessgreater_test_data): Likewise.
3589         (islessgreater_test): Likewise.
3590         (isnan_test_data): Likewise.
3591         (isnan_test): Likewise.
3592         (isnormal_test_data): Likewise.
3593         (isnormal_test): Likewise.
3594         (issignaling_test_data): Likewise.
3595         (issignaling_test): Likewise.
3596         (issubnormal_test_data): Likewise.
3597         (issubnormal_test): Likewise.
3598         (isunordered_test_data): Likewise.
3599         (isunordered_test): Likewise.
3600         (iszero_test_data): Likewise.
3601         (iszero_test): Likewise.
3602         (j0_test_data): Likewise.
3603         (j0_test): Likewise.
3604         (j1_test_data): Likewise.
3605         (j1_test): Likewise.
3606         (jn_test_data): Likewise.
3607         (jn_test): Likewise.
3608         (lgamma_test_data): Likewise.
3609         (lgamma_test): Likewise.
3610         (gamma_test): Likewise.
3611         (llogb_test_data): Likewise.
3612         (llogb_test): Likewise.
3613         (lrint_test_data): Likewise.
3614         (lrint_test): Likewise.
3615         (llrint_test_data): Likewise.
3616         (llrint_test): Likewise.
3617         (log_test_data): Likewise.
3618         (log_test): Likewise.
3619         (log10_test_data): Likewise.
3620         (log10_test): Likewise.
3621         (log1p_test_data): Likewise.
3622         (log1p_test): Likewise.
3623         (log2_test_data): Likewise.
3624         (log2_test): Likewise.
3625         (logb_test_data): Likewise.
3626         (logb_test): Likewise.
3627         (lround_test_data): Likewise.
3628         (lround_test): Likewise.
3629         (llround_test_data): Likewise.
3630         (llround_test): Likewise.
3631         (modf_test_data): Likewise.
3632         (modf_test): Likewise.
3633         (nearbyint_test_data): Likewise.
3634         (nearbyint_test): Likewise.
3635         (nextafter_test_data): Likewise.
3636         (nextafter_test): Likewise.
3637         (nextup_test_data): Likewise.
3638         (nextup_test): Likewise.
3639         (nextdown_test_data): Likewise.
3640         (nextdown_test): Likewise.
3641         (nexttoward_test_data): Likewise.
3642         (nexttoward_test): Likewise.
3643         (pow_test_data): Likewise.
3644         (pow_test): Likewise.
3645         (remainder_test_data): Likewise.
3646         (remainder_test): Likewise.
3647         (drem_test): Likewise.
3648         (remquo_test_data): Likewise.
3649         (remquo_test): Likewise.
3650         (rint_test_data): Likewise.
3651         (rint_test): Likewise.
3652         (round_test_data): Likewise.
3653         (round_test): Likewise.
3654         (roundeven_test_data): Likewise.
3655         (roundeven_test): Likewise.
3656         (scalb_test_data): Likewise.
3657         (scalb_test): Likewise.
3658         (scalbn_test_data): Likewise.
3659         (scalbn_test): Likewise.
3660         (ldexp_test): Likewise.
3661         (scalbln_test_data): Likewise.
3662         (scalbln_test): Likewise.
3663         (setpayload_test_data): Likewise.
3664         (setpayload_test): Likewise.
3665         (setpayloadsig_test_data): Likewise.
3666         (setpayloadsig_test): Likewise.
3667         (signbit_test_data): Likewise.
3668         (signbit_test): Likewise.
3669         (sin_test_data): Likewise.
3670         (sin_test): Likewise.
3671         (sincos_test_data): Likewise.
3672         (sincos_test): Likewise.
3673         (sinh_test_data): Likewise.
3674         (sinh_test): Likewise.
3675         (sqrt_test_data): Likewise.
3676         (sqrt_test): Likewise.
3677         (tan_test_data): Likewise.
3678         (tan_test): Likewise.
3679         (tanh_test_data): Likewise.
3680         (tanh_test): Likewise.
3681         (tgamma_test_data): Likewise.
3682         (tgamma_test): Likewise.
3683         (totalorder_test_data): Likewise.
3684         (totalorder_test): Likewise.
3685         (totalordermag_test_data): Likewise.
3686         (totalordermag_test): Likewise.
3687         (trunc_test_data): Likewise.
3688         (trunc_test): Likewise.
3689         (ufromfp_test_data): Likewise.
3690         (ufromfp_test): Likewise.
3691         (ufromfpx_test_data): Likewise.
3692         (ufromfpx_test): Likewise.
3693         (y0_test_data): Likewise.
3694         (y0_test): Likewise.
3695         (y1_test_data): Likewise.
3696         (y1_test): Likewise.
3697         (yn_test_data): Likewise.
3698         (yn_test): Likewise.
3699         (significand_test_data): Likewise.
3700         (significand_test): Likewise.
3701         * math/Makefile (auto-libm-test-out-files): Remove variable.
3702         (libm-test-funcs-noauto): New variable.
3703         (libm-test-funcs-all): Likewise.
3704         (libm-test-c-auto): Likewise.
3705         (libm-test-c-noauto): Likewise.
3706         (libm-tests-generated): Add $(libm-test-c-auto) and
3707         $(libm-test-c-noauto).
3708         (generated): Do not add auto-libm-test-out.
3709         (libm-test-c-auto-obj): New variable.
3710         (libm-test-c-noauto-obj): Likewise.
3711         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
3712         ($(libm-test-c-noauto-obj)): New static pattern rule.
3713         ($(libm-test-c-auto-obj)): Likewise.
3714         (libm-test-incs): New variable.
3715         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
3716         and pass it to gen-libm-have-vector-test.sh.
3717         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
3718         be passed on command line.
3719         * math/libm-test-acos.inc: New file.  Content from
3720         math/libm-test.inc.
3721         * math/libm-test-acosh.inc: Likewise.
3722         * math/libm-test-asin.inc: Likewise.
3723         * math/libm-test-asinh.inc: Likewise.
3724         * math/libm-test-atan.inc: Likewise.
3725         * math/libm-test-atan2.inc: Likewise.
3726         * math/libm-test-atanh.inc: Likewise.
3727         * math/libm-test-cabs.inc: Likewise.
3728         * math/libm-test-cacos.inc: Likewise.
3729         * math/libm-test-cacosh.inc: Likewise.
3730         * math/libm-test-canonicalize.inc: Likewise.
3731         * math/libm-test-carg.inc: Likewise.
3732         * math/libm-test-casin.inc: Likewise.
3733         * math/libm-test-casinh.inc: Likewise.
3734         * math/libm-test-catan.inc: Likewise.
3735         * math/libm-test-catanh.inc: Likewise.
3736         * math/libm-test-cbrt.inc: Likewise.
3737         * math/libm-test-ccos.inc: Likewise.
3738         * math/libm-test-ccosh.inc: Likewise.
3739         * math/libm-test-ceil.inc: Likewise.
3740         * math/libm-test-cexp.inc: Likewise.
3741         * math/libm-test-cimag.inc: Likewise.
3742         * math/libm-test-clog.inc: Likewise.
3743         * math/libm-test-clog10.inc: Likewise.
3744         * math/libm-test-conj.inc: Likewise.
3745         * math/libm-test-copysign.inc: Likewise.
3746         * math/libm-test-cos.inc: Likewise.
3747         * math/libm-test-cosh.inc: Likewise.
3748         * math/libm-test-cpow.inc: Likewise.
3749         * math/libm-test-cproj.inc: Likewise.
3750         * math/libm-test-creal.inc: Likewise.
3751         * math/libm-test-csin.inc: Likewise.
3752         * math/libm-test-csinh.inc: Likewise.
3753         * math/libm-test-csqrt.inc: Likewise.
3754         * math/libm-test-ctan.inc: Likewise.
3755         * math/libm-test-ctanh.inc: Likewise.
3756         * math/libm-test-erf.inc: Likewise.
3757         * math/libm-test-erfc.inc: Likewise.
3758         * math/libm-test-exp.inc: Likewise.
3759         * math/libm-test-exp10.inc: Likewise.
3760         * math/libm-test-exp2.inc: Likewise.
3761         * math/libm-test-expm1.inc: Likewise.
3762         * math/libm-test-fabs.inc: Likewise.
3763         * math/libm-test-fdim.inc: Likewise.
3764         * math/libm-test-floor.inc: Likewise.
3765         * math/libm-test-fma.inc: Likewise.
3766         * math/libm-test-fmax.inc: Likewise.
3767         * math/libm-test-fmaxmag.inc: Likewise.
3768         * math/libm-test-fmin.inc: Likewise.
3769         * math/libm-test-fminmag.inc: Likewise.
3770         * math/libm-test-fmod.inc: Likewise.
3771         * math/libm-test-fpclassify.inc: Likewise.
3772         * math/libm-test-frexp.inc: Likewise.
3773         * math/libm-test-fromfp.inc: Likewise.
3774         * math/libm-test-fromfpx.inc: Likewise.
3775         * math/libm-test-getpayload.inc: Likewise.
3776         * math/libm-test-hypot.inc: Likewise.
3777         * math/libm-test-ilogb.inc: Likewise.
3778         * math/libm-test-iscanonical.inc: Likewise.
3779         * math/libm-test-iseqsig.inc: Likewise.
3780         * math/libm-test-isfinite.inc: Likewise.
3781         * math/libm-test-isgreater.inc: Likewise.
3782         * math/libm-test-isgreaterequal.inc: Likewise.
3783         * math/libm-test-isinf.inc: Likewise.
3784         * math/libm-test-isless.inc: Likewise.
3785         * math/libm-test-islessequal.inc: Likewise.
3786         * math/libm-test-islessgreater.inc: Likewise.
3787         * math/libm-test-isnan.inc: Likewise.
3788         * math/libm-test-isnormal.inc: Likewise.
3789         * math/libm-test-issignaling.inc: Likewise.
3790         * math/libm-test-issubnormal.inc: Likewise.
3791         * math/libm-test-isunordered.inc: Likewise.
3792         * math/libm-test-iszero.inc: Likewise.
3793         * math/libm-test-j0.inc: Likewise.
3794         * math/libm-test-j1.inc: Likewise.
3795         * math/libm-test-jn.inc: Likewise.
3796         * math/libm-test-lgamma.inc: Likewise.
3797         * math/libm-test-llogb.inc: Likewise.
3798         * math/libm-test-llrint.inc: Likewise.
3799         * math/libm-test-llround.inc: Likewise.
3800         * math/libm-test-log.inc: Likewise.
3801         * math/libm-test-log10.inc: Likewise.
3802         * math/libm-test-log1p.inc: Likewise.
3803         * math/libm-test-log2.inc: Likewise.
3804         * math/libm-test-logb.inc: Likewise.
3805         * math/libm-test-lrint.inc: Likewise.
3806         * math/libm-test-lround.inc: Likewise.
3807         * math/libm-test-modf.inc: Likewise.
3808         * math/libm-test-nearbyint.inc: Likewise.
3809         * math/libm-test-nextafter.inc: Likewise.
3810         * math/libm-test-nextdown.inc: Likewise.
3811         * math/libm-test-nexttoward.inc: Likewise.
3812         * math/libm-test-nextup.inc: Likewise.
3813         * math/libm-test-pow.inc: Likewise.
3814         * math/libm-test-remainder.inc: Likewise.
3815         * math/libm-test-remquo.inc: Likewise.
3816         * math/libm-test-rint.inc: Likewise.
3817         * math/libm-test-round.inc: Likewise.
3818         * math/libm-test-roundeven.inc: Likewise.
3819         * math/libm-test-scalb.inc: Likewise.
3820         * math/libm-test-scalbln.inc: Likewise.
3821         * math/libm-test-scalbn.inc: Likewise.
3822         * math/libm-test-setpayload.inc: Likewise.
3823         * math/libm-test-setpayloadsig.inc: Likewise.
3824         * math/libm-test-signbit.inc: Likewise.
3825         * math/libm-test-significand.inc: Likewise.
3826         * math/libm-test-sin.inc: Likewise.
3827         * math/libm-test-sincos.inc: Likewise.
3828         * math/libm-test-sinh.inc: Likewise.
3829         * math/libm-test-sqrt.inc: Likewise.
3830         * math/libm-test-tan.inc: Likewise.
3831         * math/libm-test-tanh.inc: Likewise.
3832         * math/libm-test-tgamma.inc: Likewise.
3833         * math/libm-test-totalorder.inc: Likewise.
3834         * math/libm-test-totalordermag.inc: Likewise.
3835         * math/libm-test-trunc.inc: Likewise.
3836         * math/libm-test-ufromfp.inc: Likewise.
3837         * math/libm-test-ufromfpx.inc: Likewise.
3838         * math/libm-test-y0.inc: Likewise.
3839         * math/libm-test-y1.inc: Likewise.
3840         * math/libm-test-yn.inc: Likewise.
3841         * math/README.libm-test: Update.
3842
3843         * math/gen-auto-libm-tests.c: Update comment about use of program.
3844         (generate_output): Add argument FUNCTION.
3845         (main): Require extra argument.  Pass function name to
3846         generate_output.
3847         * math/Makefile (generated): Add auto-libm-test-out.
3848         (libm-test-funcs-auto): New variable.
3849         (auto-libm-test-out-files): New variable.
3850         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
3851         Concatenate those files to form $(objpfx)auto-libm-test-out and
3852         use it as input to gen-libm-test.pl.
3853         * math/README.libm-test: Update.
3854         * math/auto-libm-test-out: Remove.
3855         * math/auto-libm-test-out-acos: New generated file.
3856         * math/auto-libm-test-out-acosh: Likewise.
3857         * math/auto-libm-test-out-asin: Likewise.
3858         * math/auto-libm-test-out-asinh: Likewise.
3859         * math/auto-libm-test-out-atan: Likewise.
3860         * math/auto-libm-test-out-atan2: Likewise.
3861         * math/auto-libm-test-out-atanh: Likewise.
3862         * math/auto-libm-test-out-cabs: Likewise.
3863         * math/auto-libm-test-out-carg: Likewise.
3864         * math/auto-libm-test-out-cbrt: Likewise.
3865         * math/auto-libm-test-out-ccos: Likewise.
3866         * math/auto-libm-test-out-ccosh: Likewise.
3867         * math/auto-libm-test-out-cexp: Likewise.
3868         * math/auto-libm-test-out-clog: Likewise.
3869         * math/auto-libm-test-out-clog10: Likewise.
3870         * math/auto-libm-test-out-cos: Likewise.
3871         * math/auto-libm-test-out-cosh: Likewise.
3872         * math/auto-libm-test-out-cpow: Likewise.
3873         * math/auto-libm-test-out-csin: Likewise.
3874         * math/auto-libm-test-out-csinh: Likewise.
3875         * math/auto-libm-test-out-csqrt: Likewise.
3876         * math/auto-libm-test-out-ctan: Likewise.
3877         * math/auto-libm-test-out-ctanh: Likewise.
3878         * math/auto-libm-test-out-erf: Likewise.
3879         * math/auto-libm-test-out-erfc: Likewise.
3880         * math/auto-libm-test-out-exp: Likewise.
3881         * math/auto-libm-test-out-exp10: Likewise.
3882         * math/auto-libm-test-out-exp2: Likewise.
3883         * math/auto-libm-test-out-expm1: Likewise.
3884         * math/auto-libm-test-out-fma: Likewise.
3885         * math/auto-libm-test-out-hypot: Likewise.
3886         * math/auto-libm-test-out-j0: Likewise.
3887         * math/auto-libm-test-out-j1: Likewise.
3888         * math/auto-libm-test-out-jn: Likewise.
3889         * math/auto-libm-test-out-lgamma: Likewise.
3890         * math/auto-libm-test-out-log: Likewise.
3891         * math/auto-libm-test-out-log10: Likewise.
3892         * math/auto-libm-test-out-log1p: Likewise.
3893         * math/auto-libm-test-out-log2: Likewise.
3894         * math/auto-libm-test-out-pow: Likewise.
3895         * math/auto-libm-test-out-sin: Likewise.
3896         * math/auto-libm-test-out-sincos: Likewise.
3897         * math/auto-libm-test-out-sinh: Likewise.
3898         * math/auto-libm-test-out-sqrt: Likewise.
3899         * math/auto-libm-test-out-tan: Likewise.
3900         * math/auto-libm-test-out-tanh: Likewise.
3901         * math/auto-libm-test-out-tgamma: Likewise.
3902         * math/auto-libm-test-out-y0: Likewise.
3903         * math/auto-libm-test-out-y1: Likewise.
3904         * math/auto-libm-test-out-yn: Likewise.
3905
3906         * math/Makefile (generated): Do not include libm-test.stmp.
3907         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
3908         on $(objpfx)libm-test.stmp.
3909         ($(objpfx)libm-test.stmp): Remove rule.
3910         ($(objpfx)libm-test-ulps.h): New rule.
3911         ($(objpfx)libm-test.c): Likewise.
3912         ($(objpfx)libm-have-vector-test.h): Likewise.
3913         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
3914         individual generated files, not libm-test.stmp.
3915
3916         * math/gen-libm-test.pl ($output_dir): Remove variable.
3917         ($srcdir): Likewise.
3918         ($opt_a): New variable.
3919         ($opt_c): Likewise.
3920         ($opt_C): Likewise.
3921         ($opt_H): Likewise.
3922         (-n): Make option take argument and use it as NewUlps output.
3923         (-a): New option.  Use its argument for auto-libm-test-out input.
3924         (-c): New option.  Use its argument for libm-test.inc input.
3925         (-C): New option.  Use its argument for libm-test.c output.
3926         (-H): New option.  Use its argument for libm-test-ulps.h output.
3927         (top level): Only process inputs needed to generate outputs
3928         specified by command-line options.  Only generate outputs
3929         specified by command-line options.
3930         * math/README.libm-test: Update example gen-libm-test.pl command.
3931         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
3932         commands.
3933         (regen-ulps): Likewise.
3934
3935 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
3936
3937         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
3938         * include/string.h (index): Remove define.
3939         (rindex): Likewise.
3940         * misc/getttyent.c (__getttyent): Rename index to strchr.
3941         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
3942         * sunrpc/rpc_main.c (mkfile_output): Likewise.
3943
3944 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3945
3946         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
3947         * math/libm-test.inc: Move all contents, other than tests of
3948         individual functions, to libm-test-driver.c.
3949         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
3950         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
3951         [!FE_UPWARD] (FE_UPWARD): Likewise.
3952         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
3953         (NO_EXCEPTION): Likewise.
3954         (INVALID_EXCEPTION): Likewise.
3955         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3956         (OVERFLOW_EXCEPTION): Likewise.
3957         (UNDERFLOW_EXCEPTION): Likewise.
3958         (INEXACT_EXCEPTION): Likewise.
3959         (INVALID_EXCEPTION_OK): Likewise.
3960         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3961         (OVERFLOW_EXCEPTION_OK): Likewise.
3962         (UNDERFLOW_EXCEPTION_OK): Likewise.
3963         (NO_INEXACT_EXCEPTION): Likewise.
3964         (EXCEPTIONS_OK): Likewise.
3965         (IGNORE_ZERO_INF_SIGN): Likewise.
3966         (TEST_NAN_SIGN): Likewise.
3967         (TEST_NAN_PAYLOAD): Likewise.
3968         (NO_TEST_INLINE): Likewise.
3969         (XFAIL_TEST): Likewise.
3970         (ERRNO_UNCHANGED): Likewise.
3971         (ERRNO_EDOM): Likewise.
3972         (ERRNO_ERANGE): Likewise.
3973         (IGNORE_RESULT): Likewise.
3974         (NON_FINITE): Likewise.
3975         (TEST_SNAN): Likewise.
3976         (NO_TEST_MATHVEC): Likewise.
3977         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
3978         (__CONCATX): Likewise.
3979         (TYPE_MIN): Likewise.
3980         (TYPE_TRUE_MIN): Likewise.
3981         (TYPE_MAX): Likewise.
3982         (MIN_EXP): Likewise.
3983         (MAX_EXP): Likewise.
3984         (MANT_DIG): Likewise.
3985         (FSTR_MAX): Likewise.
3986         (ULP_IDX): Likewise.
3987         (QTYPE_STR): Likewise.
3988         (TEST_COND_binary32): Likewise.
3989         (TEST_COND_binary64): Likewise.
3990         (TEST_COND_binary128): Likewise.
3991         (TEST_COND_ibm128): Likewise.
3992         (TEST_COND_intel96): Likewise.
3993         (TEST_COND_m68k96): Likewise.
3994         (TEST_COND_ibm128_libgcc): Likewise.
3995         (XFAIL_IBM128_LIBGCC): Likewise.
3996         (PAYLOAD_DIG): Likewise.
3997         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3998         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3999         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4000         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4001         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4002         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4003         (TEST_COND_long32): Likewise.
4004         (TEST_COND_long64): Likewise.
4005         (TEST_COND_before_rounding): Likewise.
4006         (TEST_COND_after_rounding): Likewise.
4007         (lit_pi_3_m_4_d): Likewise.
4008         (lit_pi_3_m_4_ln10_m_d): Likewise.
4009         (lit_pi_2_ln10_m_d): Likewise.
4010         (lit_pi_4_ln10_m_d): Likewise.
4011         (lit_pi_ln10_d): Likewise.
4012         (lit_pi_2_d): Likewise.
4013         (lit_pi_4_d): Likewise.
4014         (lit_pi): Likewise.
4015         (lit_e): Likewise.
4016         (ulps_file_name): Likewise.
4017         (ulps_file): Likewise.
4018         (output_ulps): Likewise.
4019         (output_dir): Likewise.
4020         (noErrors): Likewise.
4021         (noTests): Likewise.
4022         (noExcTests): Likewise.
4023         (noErrnoTests): Likewise.
4024         (verbose): Likewise.
4025         (output_max_error): Likewise.
4026         (output_points): Likewise.
4027         (ignore_max_ulp): Likewise.
4028         (plus_zero): Likewise.
4029         (minus_zero): Likewise.
4030         (plus_infty): Likewise.
4031         (minus_infty): Likewise.
4032         (qnan_value_pl): Likewise.
4033         (qnan_value): Likewise.
4034         (snan_value_pl): Likewise.
4035         (snan_value): Likewise.
4036         (max_value): Likewise.
4037         (min_value): Likewise.
4038         (min_subnorm_value): Likewise.
4039         (snan_value_ld): Likewise.
4040         (max_error): Likewise.
4041         (real_max_error): Likewise.
4042         (imag_max_error): Likewise.
4043         (prev_max_error): Likewise.
4044         (prev_real_max_error): Likewise.
4045         (prev_imag_max_error): Likewise.
4046         (max_valid_error): Likewise.
4047         (TYPE_DECIMAL_DIG): Likewise.
4048         (TYPE_HEX_DIG): Likewise.
4049         (fmt_ftostr): Likewise.
4050         (compare_ulp_data): Likewise.
4051         (find_ulps): Likewise.
4052         (init_max_error): Likewise.
4053         (set_max_error): Likewise.
4054         (print_float): Likewise.
4055         (print_screen): Likewise.
4056         (print_screen_max_error): Likewise.
4057         (update_stats): Likewise.
4058         (print_function_ulps): Likewise.
4059         (print_complex_function_ulps): Likewise.
4060         (fpstack_test): Likewise.
4061         (print_max_error): Likewise.
4062         (print_complex_max_error): Likewise.
4063         (test_single_exception): Likewise.
4064         (test_exceptions): Likewise.
4065         (test_single_errno): Likewise.
4066         (test_errno): Likewise.
4067         (ULPDIFF): Likewise.
4068         (ulp): Likewise.
4069         (check_float_internal): Likewise.
4070         (check_float): Likewise.
4071         (check_complex): Likewise.
4072         (check_int): Likewise.
4073         (check_long): Likewise.
4074         (check_bool): Likewise.
4075         (check_longlong): Likewise.
4076         (check_intmax_t): Likewise.
4077         (check_uintmax_t): Likewise.
4078         (enable_test): Likewise.
4079         (struct test_f_f_data): Likewise.
4080         (struct test_ff_f_data): Likewise.
4081         (struct test_fj_f_data): Likewise.
4082         (struct test_fi_f_data): Likewise.
4083         (struct test_fl_f_data): Likewise.
4084         (struct test_if_f_data): Likewise.
4085         (struct test_fff_f_data): Likewise.
4086         (struct test_fiu_M_data): Likewise.
4087         (struct test_fiu_U_data): Likewise.
4088         (struct test_c_f_data): Likewise.
4089         (struct test_f_f1_data): Likewise.
4090         (struct test_fF_f1_data): Likewise.
4091         (struct test_ffI_f1_data): Likewise.
4092         (struct test_c_c_data): Likewise.
4093         (struct test_cc_c_data): Likewise.
4094         (struct test_f_i_data): Likewise.
4095         (struct test_ff_i_data): Likewise.
4096         (struct test_f_l_data): Likewise.
4097         (struct test_f_L_data): Likewise.
4098         (struct test_fFF_11_data): Likewise.
4099         (struct test_Ff_b1_data): Likewise.
4100         (IF_ROUND_INIT_): Likewise.
4101         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4102         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4103         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4104         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4105         (ROUND_RESTORE_): Likewise.
4106         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4107         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4108         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4109         (ROUND_RESTORE_FE_UPWARD): Likewise.
4110         (RM_): Likewise.
4111         (RM_FE_DOWNWARD): Likewise.
4112         (RM_FE_TONEAREST): Likewise.
4113         (RM_FE_TOWARDZERO): Likewise.
4114         (RM_FE_UPWARD): Likewise.
4115         (COMMON_TEST_SETUP): Likewise.
4116         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4117         (COMMON_TEST_CLEANUP): Likewise.
4118         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4119         (RUN_TEST_f_f): Likewise.
4120         (RUN_TEST_LOOP_f_f): Likewise.
4121         (RUN_TEST_fp_f): Likewise.
4122         (RUN_TEST_LOOP_fp_f): Likewise.
4123         (RUN_TEST_2_f): Likewise.
4124         (RUN_TEST_LOOP_2_f): Likewise.
4125         (RUN_TEST_ff_f): Likewise.
4126         (RUN_TEST_LOOP_ff_f): Likewise.
4127         (RUN_TEST_LOOP_fj_f): Likewise.
4128         (RUN_TEST_fi_f): Likewise.
4129         (RUN_TEST_LOOP_fi_f): Likewise.
4130         (RUN_TEST_fl_f): Likewise.
4131         (RUN_TEST_LOOP_fl_f): Likewise.
4132         (RUN_TEST_if_f): Likewise.
4133         (RUN_TEST_LOOP_if_f): Likewise.
4134         (RUN_TEST_fff_f): Likewise.
4135         (RUN_TEST_LOOP_fff_f): Likewise.
4136         (RUN_TEST_fiu_M): Likewise.
4137         (RUN_TEST_LOOP_fiu_M): Likewise.
4138         (RUN_TEST_fiu_U): Likewise.
4139         (RUN_TEST_LOOP_fiu_U): Likewise.
4140         (RUN_TEST_c_f): Likewise.
4141         (RUN_TEST_LOOP_c_f): Likewise.
4142         (RUN_TEST_f_f1): Likewise.
4143         (RUN_TEST_LOOP_f_f1): Likewise.
4144         (RUN_TEST_fF_f1): Likewise.
4145         (RUN_TEST_LOOP_fF_f1): Likewise.
4146         (RUN_TEST_fI_f1): Likewise.
4147         (RUN_TEST_LOOP_fI_f1): Likewise.
4148         (RUN_TEST_ffI_f1_mod8): Likewise.
4149         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4150         (RUN_TEST_Ff_b1): Likewise.
4151         (RUN_TEST_LOOP_Ff_b1): Likewise.
4152         (RUN_TEST_Ffp_b1): Likewise.
4153         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4154         (RUN_TEST_c_c): Likewise.
4155         (RUN_TEST_LOOP_c_c): Likewise.
4156         (RUN_TEST_cc_c): Likewise.
4157         (RUN_TEST_LOOP_cc_c): Likewise.
4158         (RUN_TEST_f_i): Likewise.
4159         (RUN_TEST_LOOP_f_i): Likewise.
4160         (RUN_TEST_f_i_tg): Likewise.
4161         (RUN_TEST_LOOP_f_i_tg): Likewise.
4162         (RUN_TEST_ff_b): Likewise.
4163         (RUN_TEST_LOOP_ff_b): Likewise.
4164         (RUN_TEST_ff_i_tg): Likewise.
4165         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4166         (RUN_TEST_f_b): Likewise.
4167         (RUN_TEST_LOOP_f_b): Likewise.
4168         (RUN_TEST_f_b_tg): Likewise.
4169         (RUN_TEST_LOOP_f_b_tg): Likewise.
4170         (RUN_TEST_f_l): Likewise.
4171         (RUN_TEST_LOOP_f_l): Likewise.
4172         (RUN_TEST_f_L): Likewise.
4173         (RUN_TEST_LOOP_f_L): Likewise.
4174         (RUN_TEST_fFF_11): Likewise.
4175         (RUN_TEST_LOOP_fFF_11): Likewise.
4176         (VEC_SUFF): Likewise.
4177         (STR_CONCAT): Likewise.
4178         (STR_CON3): Likewise.
4179         (HAVE_VECTOR): Likewise.
4180         (START): Likewise.
4181         (END): Likewise.
4182         (END_COMPLEX): Likewise.
4183         (ALL_RM_TEST): Likewise.
4184         (matherr): Likewise.
4185         (initialize): Likewise.
4186         (options): Likewise.
4187         (doc): Likewise.
4188         (parse_opt): Likewise.
4189         (argp): Likewise.
4190         (check_ulp): Likewise.
4191         (main): Likewise.
4192         (do_test): New function.  Call tests of individual functions
4193         previously called from main.
4194
4195         * math/libm-test.inc: Remove comment listing functions tested and
4196         not tested.
4197
4198 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4199
4200         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4201         (allocate_stack): Remove COLORING_INCREMENT usage.
4202         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4203         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4204
4205 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4206
4207         * manual/libm-err-tab.pl (@all_functions): Change to
4208         %all_functions.  Initialize as empty.
4209         (parse_ulps): Add to %all_functions based on functions found in
4210         ulps files.  Ignore results for non-default rounding modes and
4211         vector functions.
4212         (print_platforms): Use %all_platforms.
4213         * manual/math.texi (Errors in Math Functions): Document omissions
4214         from the table.
4215
4216         * math/Makefile (before-compile): Remove.
4217
4218 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4219
4220         [BZ #21075]
4221         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4222         unused assignment.
4223         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4224
4225 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4226
4227         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4228         Add __glibc_unlikely hint.
4229
4230 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4231
4232         [BZ #16640]
4233         * sysdeps/i386/i686/strtok.S: Remove file.
4234         * sysdeps/i386/i686/strtok_r.S: Likewise.
4235         * sysdeps/i386/strtok.S: Likewise.
4236         * sysdeps/i386/strtok_r.S: Likewise.
4237         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4238         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4239         * sysdeps/x86_64/strtok.S: Likewise.
4240         * sysdeps/x86_64/strtok_r.S: Likewise.
4241
4242         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4243         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4244         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4245         (__ASSUME_FADVISE64_AS_64_64): Define.
4246         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4247         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4248         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4249         __ALIGNMENT_ARG usage.
4250         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4251         __NR_fadvise64_64 if it is not defined.
4252
4253 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4254
4255         * version.h (RELEASE): Set to "development"
4256         (VERSION): Set to 2.25.90.
4257         * NEWS: Add 2.26 section.
4258
4259         * version.h (RELEASE): Set to "stable"
4260         (VERSION): Set to 2.25.
4261         * include/features.h (__GLIBC_MINOR__): Set to 25.
4262
4263         * manual/contrib.texi: Add more contributors from this release
4264         and past releases.
4265
4266         * NEWS (2.25): Add list of bugs fixed.
4267
4268         * NEWS: Add missing news items.
4269
4270 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4271
4272         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4273         parent if child exited in that manner.  Print WEXITSTATUS
4274         instead of the raw status.
4275         (do_test_prep): Rename to do_test.
4276         (do_test): Return the result of run_executable_sgid.
4277         (TEST_FUNCTION_ARGV): Adjust.
4278
4279 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4280             Florian Weimer  <fweimer@redhat.com>
4281             Carlos O'Donell  <carlos@redhat.com>
4282
4283         [BZ #20915]
4284         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4285         Do not initialize DTV.
4286         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4287
4288 2017-02-03  David S. Miller  <davem@davemloft.net>
4289
4290         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4292         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4293         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4294         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4295         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4298         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4299         (libm-sysdep_routines): Update.
4300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4305         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4306         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
4307         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
4308         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
4309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
4310         Likewise.
4311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
4313         Likewise.
4314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
4316         Likewise.
4317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
4319         Likewise.
4320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4322         (libm-sysdep_routines): Update.
4323
4324 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4325
4326         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
4327         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
4328         against unrelocated shared library.
4329         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4330
4331 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4332
4333         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
4334         * elf/tst-env-setuid-tunables.c
4335         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
4336         GLIBC_TUNABLES is removed in a setgid process.
4337
4338         [BZ #21073]
4339         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
4340         * elf/dl-tunables.c (tunables_strdup): Remove.
4341         (get_next_env): Also return the previous envp.
4342         (parse_tunables): Erase tunables of category
4343         TUNABLES_SECLEVEL_SXID_ERASE.
4344         (maybe_enable_malloc_check): Make MALLOC_CHECK_
4345         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
4346         (__tunables_init)[TUNABLES_FRONTEND ==
4347         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
4348         after parsing.
4349         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
4350         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
4351         * elf/dl-tunables.h (struct _tunable): Change member is_secure
4352         to security_level.
4353         * elf/dl-tunables.list: Add security_level annotations for all
4354         tunables.
4355         * scripts/gen-tunables.awk: Recognize and generate enum values
4356         for security_level.
4357         * elf/tst-env-setuid.c: New test case.
4358         * elf/tst-env-setuid-tunables: new test case.
4359         * elf/Makefile (tests-static): Add them.
4360
4361 2017-02-01  Richard Henderson  <rth@twiddle.net>
4362
4363         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
4364         adjusting the byte count.
4365
4366 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
4367
4368         * conform/Makefile (linknamespace-libs): Define.
4369
4370         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
4371         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
4372         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
4373         operands.
4374
4375 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
4376
4377         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
4378
4379 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
4380
4381         [BZ #21081]
4382         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4383         (L(stosb)): Add VZEROUPPER before ret.
4384
4385 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
4386             Alexey Makhalov <amakhalov@vmware.com>
4387             Florian Weimer <fweimer@redhat.com>
4388
4389         [BZ #20116]
4390         * nptl/pthread_create.c: Document concurrency notes.
4391         Enhance thread creation notes.
4392         (create_thread): Use bool *stopped_start.
4393         (START_THREAD_DEFN): Comment ownership of PD.
4394         (__pthread_create_2_1): Add local bool stopped_start and use
4395         that instead of pd->stopped_start where appropriate.
4396         * nptl/createthread.c (create_thread): Use bool *stopped_start.
4397         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
4398         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
4399         * nptl/tst-create-detached.c: New file.
4400         * nptl/Makefile (tests): Add tst-create-detached.
4401         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
4402         Reference the enhanced thread creation notes.
4403         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
4404         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
4405         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
4406         (__pthread_current_priority): Likewise.
4407         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
4408         xpthread_attr_init, xpthread_attr_setdetachstate, and
4409         xpthread_attr_setstacksize.
4410         * support/xpthread_attr_destroy.c: New file.
4411         * support/xpthread_attr_init.c: New file.
4412         * support/xpthread_attr_setdetachstate.c: New file.
4413         * support/xpthread_attr_setstacksize.c: New file.
4414         * support/xthread.h: Define prototypes for xpthread_attr_destroy
4415         xpthread_attr_init, xpthread_attr_setdetachstate, and
4416         xpthread_attr_setstacksize.
4417
4418 2017-01-27  Florian Weimer  <fweimer@redhat.com>
4419
4420         * nptl/Makefile (tests): Add tst-robust-fork.
4421         * nptl/tst-robust-fork.c: New file.
4422         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
4423         xpthread_mutex_consistent, xpthread_mutex_destroy,
4424         xpthread_mutex_init, xpthread_mutexattr_destroy,
4425         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
4426         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
4427         xpthread_mutexattr_settype.
4428         * support/xmmap.c: New file.
4429         * support/xmunmap.c: Likewise.
4430         * support/xpthread_mutex_consistent.c: Likewise.
4431         * support/xpthread_mutex_destroy.c: Likewise.
4432         * support/xpthread_mutex_init.c: Likewise.
4433         * support/xpthread_mutexattr_destroy.c: Likewise.
4434         * support/xpthread_mutexattr_init.c: Likewise.
4435         * support/xpthread_mutexattr_setprotocol.c: Likewise.
4436         * support/xpthread_mutexattr_setpshared.c: Likewise.
4437         * support/xpthread_mutexattr_setrobust.c: Likewise.
4438         * support/xpthread_mutexattr_settype.c: Likewise.
4439         * support/xthread.h (xpthread_mutexattr_destroy)
4440         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
4441         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
4442         (xpthread_mutexattr_settype, xpthread_mutex_init)
4443         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
4444         * support/xunistd.h (xmmap, xmunmap): Likewise.
4445
4446 2017-01-25  Florian Weimer  <fweimer@redhat.com>
4447
4448         * string/Makefile (xtests): Add comment.
4449         (LOCALES): Add en_GB.UTF-8.
4450         (tst-strcoll-overflow.out): Depend on generated locales.
4451         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
4452         (SIZE, TIMEOUT): Update comments.
4453         (do_test): Define as static.  Fail test if setlocale fails.
4454         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
4455         messages.
4456         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
4457         TIMEOUT at 300 seconds should be enough to run this test
4458         successfully.
4459
4460 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4461
4462         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
4463         /* FALLTHRU */ comments.
4464
4465 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
4466
4467         [BZ #21053]
4468         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
4469         constants instead of the old R* ones.
4470         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
4471         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
4472         (NGREG): ... to this, to fit in with other architectures.
4473         (gpregset_t): Use new NGREG macro.
4474         [__USE_GNU]: Remove condition; all architectures other than tile
4475         are unconditional.
4476         (R*): Rename to REG_R*.
4477
4478 2017-01-20  DJ Delorie  <dj@redhat.com>
4479
4480         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
4481         (tunable_set_val_if_valid_range_signed) ... this, and ...
4482         (tunable_set_val_if_valid_range_unsigned) ... this.
4483         (tunable_initialize): Call the correct one of the above based on type.
4484
4485 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
4488         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4489         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4490         * sysdeps/microblaze/libm-test-ulps: Likewise.
4491         * sysdeps/sh/libm-test-ulps: Likewise.
4492
4493         * math/README.libm-test: Update list of characters for input and
4494         output types.
4495
4496 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4497
4498         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4499         (__lll_unlock_elision): Fix adapt_count decrement.
4500
4501 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
4502
4503         * README.pretty-printers (Known issues): Warn about printers not
4504         always covering everything.
4505         * nptl/nptl-printers.py (MutexPrinter): Change output.
4506         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
4507
4508 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
4509
4510         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
4511         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4512         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
4513         (__lll_lock_elision): Do not test futex before starting a
4514         transaction.  Use __glibc_likely instead of __builtin_expect.
4515         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
4516         (__lll_trylock_elision): Do not test futex before starting a
4517         transaction.  Use __glibc_likely instead of __builtin_expect.
4518
4519 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4520
4521         * po/Makefile (update-translations): New target.
4522
4523 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4524
4525         [BZ #21061]
4526         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
4527
4528 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4529
4530         * elf/dl-tunables (get_next_env): Always advance envp.
4531         * stdlib/tst-empty-env.c: New test case.
4532         * stdlib/Makefile (tests): Use it.
4533
4534 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
4535
4536         [BZ #21047]
4537         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
4538         name for instruction.
4539         [!__SOFTFP__] (_FPU_SETCW): Likewise.
4540
4541 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4542
4543         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
4544         for make install.
4545
4546 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4547
4548         * po/bg.po: Merge from Translation Project.
4549         * po/fr.po: Likewise.
4550         * po/ko.po: Likewise.
4551         * po/nl.po: Likewise.
4552         * po/sv.po: Likewise.
4553
4554 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
4555
4556         * manual/install.texi (Tools for Compilation): Update GCC version
4557         known to work to build glibc.
4558         * INSTALL: Regenerated.
4559
4560 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
4561
4562         [BZ #21006]
4563         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
4564
4565 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
4566
4567         [BZ #21045]
4568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4569         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
4570         to __sigprocmask.
4571
4572 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
4573
4574         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
4575         wrap-around.
4576         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
4577
4578         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
4579
4580 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4581
4582         * NEWS: Fix typo.
4583
4584 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4585
4586         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
4587         barriers and comments.
4588         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
4589         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
4590         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4591
4592 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4593
4594         [BZ #19402]
4595         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
4596         mutexes.
4597
4598 2016-01-13  Torvald Riegel  <triegel@redhat.com>
4599
4600         [BZ #20985]
4601         * nptl/Makefile: Adapt.
4602         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4603         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4604         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
4605         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
4606         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
4607         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
4608         lll_robust* functions and adapt.
4609         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
4610         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
4611         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4612         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4613         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
4614         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4615         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
4616         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
4617         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
4618         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
4619         __lll_robust_timedlock, __lll_robust_unlock): Remove.
4620         * nptl/lowlevelrobustlock.c: Remove file.
4621         * nptl/lowlevelrobustlock.sym: Likewise.
4622         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
4623         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
4624
4625 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4626
4627         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4628
4629 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4630
4631         * po/cs.po: Merge translations from the Translation Project.
4632         * po/de.po: Likewise.
4633         * po/pl.po: Likewise.
4634         * po/ru.po: Likewise.
4635         * po/tr.po: Likewise.
4636         * po/uk.po: Likewise.
4637         * po/vi.po: Likewise.
4638         * po/zh_CN.po: Likewise.
4639
4640 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
4641
4642         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
4643
4644         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
4645         object.
4646
4647 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4648
4649         [BZ #16458]
4650         * bits/uintn-identity.h: New file.
4651         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
4652         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
4653         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
4654         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
4655         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
4656         * string/endian.h: Include <bits/uintn-identity.h>.
4657         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
4658         __uint16_identity.
4659         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
4660         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
4661         __uint32_identity.
4662         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
4663         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
4664         __uint64_identity.
4665         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
4666         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
4667         __uint16_identity.
4668         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
4669         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
4670         __uint32_identity.
4671         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
4672         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
4673         __uint64_identity.
4674         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
4675         * string/Makefile (headers): Add bits/uintn-identity.h.
4676         (tests): Add test-endian-types.
4677         * string/test-endian-types.c: New file.
4678         * inet/Makefile (tests): Add test-hnto-types.
4679         * inet/test-hnto-types.c: New file.
4680
4681 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4682
4683         * po/be.po: Update from Translation Project.
4684         * po/bg.po: Likewise.
4685         * po/ca.po: Likewise.
4686         * po/cs.po: Likewise.
4687         * po/da.po: Likewise.
4688         * po/de.po: Likewise.
4689         * po/el.po: Likewise.
4690         * po/eo.po: Likewise.
4691         * po/es.po: Likewise.
4692         * po/fi.po: Likewise.
4693         * po/fr.po: Likewise.
4694         * po/gl.po: Likewise.
4695         * po/hr.po: Likewise.
4696         * po/hu.po: Likewise.
4697         * po/ia.po: Likewise.
4698         * po/id.po: Likewise.
4699         * po/it.po: Likewise.
4700         * po/ja.po: Likewise.
4701         * po/ko.po: Likewise.
4702         * po/lt.po: Likewise.
4703         * po/nb.po: Likewise.
4704         * po/nl.po: Likewise.
4705         * po/pl.po: Likewise.
4706         * po/pt_BR.po: Likewise.
4707         * po/ru.po: Likewise.
4708         * po/rw.po: Likewise.
4709         * po/sk.po: Likewise.
4710         * po/sl.po: Likewise.
4711         * po/sv.po: Likewise.
4712         * po/tr.po: Likewise.
4713         * po/uk.po: Likewise.
4714         * po/vi.po: Likewise.
4715         * po/zh_CN.po: Likewise.
4716         * po/zh_TW.po: Likewise.
4717
4718 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
4719
4720         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
4721         -Wformat-truncation instead of -Wformat-length.
4722         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
4723         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
4724         GCC 7.
4725         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
4726         (do_test): Ignore -Wformat-truncation for GCC 7.
4727
4728         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
4729         buffer used to print long int value.
4730
4731         * elf/sotruss-lib.c (init): Increase space allocated for pid by
4732         one byte.  Print it with %ld, cast to long int.
4733
4734 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4735
4736         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
4737         (re.fullmatch, subprocess.run): Likewise.
4738
4739 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4740
4741         * po/libc.pot: Regenerate.
4742
4743 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4744
4745         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
4746         (min_strlen): Likewise.
4747         (disable_tunable): Likewise.
4748         (maybe_disable_malloc_check): Rename to
4749         maybe_enable_malloc_check.
4750         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
4751         if /etc/suid-debug file exists.
4752         (__tunables_init): Update caller.
4753         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
4754         secure.
4755
4756 2016-01-10  Torvald Riegel  <triegel@redhat.com>
4757
4758         * nptl/DESIGN-rwlock.txt: Remove.
4759         * nptl/lowlevelrwlock.sym: Remove.
4760         * nptl/Makefile: Add new tests.
4761         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
4762         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
4763         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
4764         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
4765         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
4766         PTHREAD_RWLOCK_FUTEX_USED): New.
4767         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
4768         implementation.
4769         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
4770         (__pthread_rwlock_rdlock): Adapt.
4771         * nptl/pthread_rwlock_timedrdlock.c
4772         (pthread_rwlock_timedrdlock): Adapt.
4773         * nptl/pthread_rwlock_timedwrlock.c
4774         (pthread_rwlock_timedwrlock): Adapt.
4775         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
4776         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
4777         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
4778         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
4779         (__pthread_rwlock_wrlock): Adapt.
4780         * nptl/tst-rwlock10.c: Adapt.
4781         * nptl/tst-rwlock11.c: Adapt.
4782         * nptl/tst-rwlock17.c: New file.
4783         * nptl/tst-rwlock18.c: New file.
4784         * nptl/tst-rwlock19.c: New file.
4785         * nptl/tst-rwlock2b.c: New file.
4786         * nptl/tst-rwlock8.c: Adapt.
4787         * nptl/tst-rwlock9.c: Adapt.
4788         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4789         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4790         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4791         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4792         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4793         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4794         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4795         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4796         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4797         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4798         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4799         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4800         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
4801         (pthread_rwlock_t): Adapt.
4802         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4803         (pthread_rwlock_t): Adapt.
4804         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
4805         * nptl/nptl-printers.py (): Adapt.
4806         * nptl/nptl_lock_constants.pysym: Adapt.
4807         * nptl/test-rwlock-printers.py: Adapt.
4808         * nptl/test-rwlockattr-printers.c: Adapt.
4809         * nptl/test-rwlockattr-printers.py: Adapt.
4810
4811 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
4812
4813         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
4814         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
4815         (fma_test_data): Likewise.
4816         (hypot_test_data): Likewise.
4817         (log1p_test_data): Likewise.
4818         (modf_test_data): Likewise.
4819         (pow_test_data): Likewise.
4820         (remainder_test_data): Likewise.
4821         (remquo_test_data): Likewise.
4822         (scalb_test_data): Likewise.
4823         (scalbn_test_data): Likewise.
4824         (scalbln_test_data): Likewise.
4825         * math/gen-libm-test.pl (parse_args): Transform
4826         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
4827         on the rounding mode.
4828
4829 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
4832         xfail-rounding:ibm128-libgcc automatically to tests overflowing
4833         and those that can underflow to zero.
4834         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
4835         add others.
4836         * math/auto-libm-test-out: Regenerated.
4837
4838         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
4839         supported.
4840         (feholdexcept_tests): Skip tests requiring exceptions or rounding
4841         modes support if not supported.
4842
4843         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
4844         Add libc.so PLT entry.
4845         (__tls_get_addr): Make ld.so PLT entry optional.
4846
4847 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4848
4849         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
4850         * string/bits/string3.h: ... here.
4851
4852 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
4853
4854         [BZ #21028]
4855         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
4856         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
4857         if EXCEPTION_TESTS returns false.
4858
4859 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4860
4861         [BZ #20558]
4862         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
4863         strings_fortified.h.
4864         [__USE_MISC] (bzero): Likewise.
4865         [__USE_MISC] (explicit_bzero): Likewise.
4866         * string/strings.h: Include strings_fortified.h.
4867         * string/Makefile (headers): Add strings_fortified.h.
4868         * string/bits/strings_fortified.h: New file.
4869         * include/bits/strings_fortified.h: Likewise.
4870
4871 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
4872
4873         * elf/tst-tls13.c (TIMEOUT): Remove.
4874         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
4875         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
4876         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
4877         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
4878         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
4879
4880         [BZ #21026]
4881         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
4882         (readahead): New syscall entry.
4883
4884 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
4885
4886         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
4887         around tests of strncat with large sizes.
4888
4889         * malloc/tst-malloc.c: Include <libc-internal.h>.
4890         (do_test): Disable -Walloc-size-larger-than= around tests of
4891         malloc with negative sizes.
4892         * malloc/tst-mcheck.c: Include <libc-internal.h>.
4893         (do_test): Disable -Walloc-size-larger-than= around tests of
4894         malloc and realloc with negative sizes.
4895         * malloc/tst-realloc.c: Include <libc-internal.h>.
4896         (do_test): Disable -Walloc-size-larger-than= around tests of
4897         realloc with negative sizes.
4898
4899         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
4900         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
4901         allowed to 16 ulps.
4902         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
4903         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
4904         * math/auto-libm-test-out: Regenerated.
4905
4906 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4907
4908         * math/Makefile (libm-calls): Move wrappers...
4909         (libm-compat-call-auto): Here.
4910         (libm-routines): Add items in libm-compat-calls-auto.
4911         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
4912         the filenames of the wrappers that have been renamed.
4913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
4914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
4915
4916         * math/w_acos.c: Add _compat suffix to filename.
4917         * math/w_acosf.c: Likewise.
4918         * math/w_acosh.c: Likewise.
4919         * math/w_acoshf.c: Likewise.
4920         * math/w_acoshl.c: Likewise.
4921         * math/w_acosl.c: Likewise.
4922         * math/w_asin.c: Likewise.
4923         * math/w_asinf.c: Likewise.
4924         * math/w_asinl.c: Likewise.
4925         * math/w_atan2.c: Likewise.
4926         * math/w_atan2f.c: Likewise.
4927         * math/w_atan2l.c: Likewise.
4928         * math/w_atanh.c: Likewise.
4929         * math/w_atanhf.c: Likewise.
4930         * math/w_atanhl.c: Likewise.
4931         * math/w_cosh.c: Likewise.
4932         * math/w_coshf.c: Likewise.
4933         * math/w_coshl.c: Likewise.
4934         * math/w_exp10.c: Likewise.
4935         * math/w_exp10f.c: Likewise.
4936         * math/w_exp10l.c: Likewise.
4937         * math/w_exp2.c: Likewise.
4938         * math/w_exp2f.c: Likewise.
4939         * math/w_exp2l.c: Likewise.
4940         * math/w_fmod.c: Likewise.
4941         * math/w_fmodf.c: Likewise.
4942         * math/w_fmodl.c: Likewise.
4943         * math/w_hypot.c: Likewise.
4944         * math/w_hypotf.c: Likewise.
4945         * math/w_hypotl.c: Likewise.
4946         * math/w_j0.c: Likewise.
4947         * math/w_j0f.c: Likewise.
4948         * math/w_j0l.c: Likewise.
4949         * math/w_j1.c: Likewise.
4950         * math/w_j1f.c: Likewise.
4951         * math/w_j1l.c: Likewise.
4952         * math/w_jn.c: Likewise.
4953         * math/w_jnf.c: Likewise.
4954         * math/w_jnl.c: Likewise.
4955         * math/w_log10.c: Likewise.
4956         * math/w_log10f.c: Likewise.
4957         * math/w_log10l.c: Likewise.
4958         * math/w_log2.c: Likewise.
4959         * math/w_log2f.c: Likewise.
4960         * math/w_log2l.c: Likewise.
4961         * math/w_log.c: Likewise.
4962         * math/w_logf.c: Likewise.
4963         * math/w_logl.c: Likewise.
4964         * math/w_pow.c: Likewise.
4965         * math/w_powf.c: Likewise.
4966         * math/w_powl.c: Likewise.
4967         * math/w_remainder.c: Likewise.
4968         * math/w_remainderf.c: Likewise.
4969         * math/w_remainderl.c: Likewise.
4970         * math/w_scalb.c: Likewise.
4971         * math/w_scalbf.c: Likewise.
4972         * math/w_scalbl.c: Likewise.
4973         * math/w_sinh.c: Likewise.
4974         * math/w_sinhf.c: Likewise.
4975         * math/w_sinhl.c: Likewise.
4976         * math/w_sqrt.c: Likewise.
4977         * math/w_sqrtf.c: Likewise.
4978         * math/w_sqrtl.c: Likewise.
4979         * math/w_tgamma.c: Likewise.
4980         * math/w_tgammaf.c: Likewise.
4981         * math/w_tgammal.c: Likewise.
4982
4983         * math/w_acos_compat.c: New file copied from above and
4984         adjusted for new #includes path
4985         * math/w_acosf_compat.c: Likewise.
4986         * math/w_acosh_compat.c: Likewise.
4987         * math/w_acoshf_compat.c: Likewise.
4988         * math/w_acoshl_compat.c: Likewise.
4989         * math/w_acosl_compat.c: Likewise.
4990         * math/w_asin_compat.c: Likewise.
4991         * math/w_asinf_compat.c: Likewise.
4992         * math/w_asinl_compat.c: Likewise.
4993         * math/w_atan2_compat.c: Likewise.
4994         * math/w_atan2f_compat.c: Likewise.
4995         * math/w_atan2l_compat.c: Likewise.
4996         * math/w_atanh_compat.c: Likewise.
4997         * math/w_atanhf_compat.c: Likewise.
4998         * math/w_atanhl_compat.c: Likewise.
4999         * math/w_cosh_compat.c: Likewise.
5000         * math/w_coshf_compat.c: Likewise.
5001         * math/w_coshl_compat.c: Likewise.
5002         * math/w_exp10_compat.c: Likewise.
5003         * math/w_exp10f_compat.c: Likewise.
5004         * math/w_exp10l_compat.c: Likewise.
5005         * math/w_exp2_compat.c: Likewise.
5006         * math/w_exp2f_compat.c: Likewise.
5007         * math/w_exp2l_compat.c: Likewise.
5008         * math/w_fmod_compat.c: Likewise.
5009         * math/w_fmodf_compat.c: Likewise.
5010         * math/w_fmodl_compat.c: Likewise.
5011         * math/w_hypot_compat.c: Likewise.
5012         * math/w_hypotf_compat.c: Likewise.
5013         * math/w_hypotl_compat.c: Likewise.
5014         * math/w_j0_compat.c: Likewise.
5015         * math/w_j0f_compat.c: Likewise.
5016         * math/w_j0l_compat.c: Likewise.
5017         * math/w_j1_compat.c: Likewise.
5018         * math/w_j1f_compat.c: Likewise.
5019         * math/w_j1l_compat.c: Likewise.
5020         * math/w_jn_compat.c: Likewise.
5021         * math/w_jnf_compat.c: Likewise.
5022         * math/w_jnl_compat.c: Likewise.
5023         * math/w_log10_compat.c: Likewise.
5024         * math/w_log10f_compat.c: Likewise.
5025         * math/w_log10l_compat.c: Likewise.
5026         * math/w_log2_compat.c: Likewise.
5027         * math/w_log2f_compat.c: Likewise.
5028         * math/w_log2l_compat.c: Likewise.
5029         * math/w_log_compat.c: Likewise.
5030         * math/w_logf_compat.c: Likewise.
5031         * math/w_logl_compat.c: Likewise.
5032         * math/w_pow_compat.c: Likewise.
5033         * math/w_powf_compat.c: Likewise.
5034         * math/w_powl_compat.c: Likewise.
5035         * math/w_remainder_compat.c: Likewise.
5036         * math/w_remainderf_compat.c: Likewise.
5037         * math/w_remainderl_compat.c: Likewise.
5038         * math/w_scalb_compat.c: Likewise.
5039         * math/w_scalbf_compat.c: Likewise.
5040         * math/w_scalbl_compat.c: Likewise.
5041         * math/w_sinh_compat.c: Likewise.
5042         * math/w_sinhf_compat.c: Likewise.
5043         * math/w_sinhl_compat.c: Likewise.
5044         * math/w_sqrt_compat.c: Likewise.
5045         * math/w_sqrtf_compat.c: Likewise.
5046         * math/w_sqrtl_compat.c: Likewise.
5047         * math/w_tgamma_compat.c: Likewise.
5048         * math/w_tgammaf_compat.c: Likewise.
5049         * math/w_tgammal_compat.c: Likewise.
5050
5051         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5052         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5053         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5054         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5055         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5056         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5057         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5058         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5059         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5060         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5061         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5062         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5063         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5064         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5065         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5066         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5067         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5068         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5069         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5070         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5071         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5072         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5073         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5074         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5075         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5076         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5077         * sysdeps/ia64/fpu/w_log.c: Likewise.
5078         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5079         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5080         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5081         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5082         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5083         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5084         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5085         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5086         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5087         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5088         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5089         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5090         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5091         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5092         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5093         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5094         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5095         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5096         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5097         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5098         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5099         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5100         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5101         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5102         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5103         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5104         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5105         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5106         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5107         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5108         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5109         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5110         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5111         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5112         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5113         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5114         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5115         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5116         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5117         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5118         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5119         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5120         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5121         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5122         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5123         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5124         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5125         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5126         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5127         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5128         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5129         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5130         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5131         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5132         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5133         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5134         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5135         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5136         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5137         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5138         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5139         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5140         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5141         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5142         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5143         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5144         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5145         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5146         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5147         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5148         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5149         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5150         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5152         Likewise.
5153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5154         Likewise.
5155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5157         Likewise.
5158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5159         Likewise.
5160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5161         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5162         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5163         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5164         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5165         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5166         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5171         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5172         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5173         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5174         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5175
5176         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5177         and adjusted for new #includes path
5178         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5179         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5180         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5181         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5182         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5183         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5184         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5185         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5186         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5187         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5188         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5189         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5190         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5191         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5192         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5193         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5194         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5195         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5196         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5197         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5198         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5199         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5200         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5201         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5202         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5203         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5204         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5205         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5206         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5207         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5208         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5209         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5210         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5211         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5212         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5213         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5214         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5215         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5216         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5217         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5218         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5219         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5220         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5221         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5222         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5223         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5224         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5225         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5226         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5227         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5228         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5229         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5230         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5231         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5232         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5233         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5234         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5235         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5236         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5237         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5238         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5239         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5240         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5241         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5242         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5243         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5244         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5245         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5246         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5247         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5248         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5249         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5250         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5251         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5252         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5253         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5254         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5255         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5256         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5257         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5258         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5259         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5260         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5261         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5262         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5263         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5264         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5265         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5266         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5267         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5268         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5269         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5270         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5271         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5272         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5273         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5274         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5275         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5276         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5278         Likewise.
5279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5280         Likewise.
5281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5282         Likewise.
5283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5284         Likewise.
5285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5286         Likewise.
5287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5288         Likewise.
5289         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5290         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5291         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5292         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5293         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5294         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5296         Likewise.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5298         Likewise.
5299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5300         Likewise.
5301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5302         Likewise.
5303         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5304         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5305         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5306         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5307
5308 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5309
5310         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
5311         __jmp_buf_internal_tag.
5312
5313         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
5314         preserve NaN payload if [__mips_nan2008].
5315         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5316
5317         [BZ #21022]
5318         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
5319
5320 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5321
5322         * sysdeps/i386/fpu/libm-test-ulps: Update.
5323
5324 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5325
5326         * sysdeps/ia64/strcat.c: Remove file.
5327         * sysdeps/powerpc/strcat.c: Likewise.
5328         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
5329         C implementation.
5330         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
5331         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
5332
5333 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5334             Steven Munroe  <sjmunroe@us.ibm.com>
5335             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5336
5337         [BZ #20822]
5338         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
5339         (__lll_lock_elision): Access adapt_count via C11 atomics.
5340         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
5341         (__lll_trylock_elision): Likewise.
5342         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5343         (__lll_unlock_elision):  Update adapt_count variable inside the
5344         critical section using C11 atomics.
5345
5346 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5347
5348         * math/test-fenvinline.c (do_test): Disable tests of raised
5349         exceptions if !EXCEPTION_TESTS (FLOAT).
5350
5351 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5352
5353         [BZ #19390]
5354         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
5355         maximum string size.
5356         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
5357         in pointer addition.
5358         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
5359         Likewise.
5360
5361 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5362
5363         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
5364         passed to tst-ldconfig-X.sh.
5365
5366 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
5367
5368         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
5369
5370 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5371
5372         [BZ #21019]
5373         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
5374         New syscall entry.
5375         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
5376         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
5377         lseek.
5378
5379         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
5380         power4 glibc for powerpc-linux-gnu.
5381
5382 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5383
5384         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
5385         semctl.
5386
5387 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5388
5389         * math/test-nearbyint-except.c: Include <stdbool.h>.
5390         (any_supported): New variable.
5391         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
5392         set any_supported.
5393         (do_test): Return 77 if no floating-point type supported
5394         exceptions.
5395
5396         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
5397         condition on [__mips_hard_float].
5398
5399 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5400
5401         [BZ #21014]
5402         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
5403         in pointer addition.
5404         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
5405
5406 2017-01-02  Torvald Riegel  <triegel@redhat.com>
5407
5408         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
5409         new condvar.
5410
5411 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5412
5413         * scripts/build-many-glibcs.py (Context.checkout): Default
5414         binutils version to 2.28 branch.
5415
5416 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5417
5418         * support/support_format_netent.c (support_format_netent): Work
5419         around alpha struct netent definition difference.
5420
5421 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5422
5423         * support/xwrite.c (xwrite): Use %td for pointer difference.
5424
5425 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5426
5427         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
5428         have-tunables only.
5429         (tests-static): Add tst-malloc-usable-static-tunables for
5430         have-tunables only.
5431
5432 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
5433
5434         * scripts/config.guess: Update to version 2017-01-01.
5435         * scripts/config.sub: Update to version 2017-01-01.
5436
5437         * NEWS: Update copyright dates.
5438         * catgets/gencat.c (print_version): Likewise.
5439         * csu/version.c (banner): Likewise.
5440         * debug/catchsegv.sh: Likewise.
5441         * debug/pcprofiledump.c (print_version): Likewise.
5442         * debug/xtrace.sh (do_version): Likewise.
5443         * elf/ldconfig.c (print_version): Likewise.
5444         * elf/ldd.bash.in: Likewise.
5445         * elf/pldd.c (print_version): Likewise.
5446         * elf/sotruss.sh: Likewise.
5447         * elf/sprof.c (print_version): Likewise.
5448         * iconv/iconv_prog.c (print_version): Likewise.
5449         * iconv/iconvconfig.c (print_version): Likewise.
5450         * locale/programs/locale.c (print_version): Likewise.
5451         * locale/programs/localedef.c (print_version): Likewise.
5452         * login/programs/pt_chown.c (print_version): Likewise.
5453         * malloc/memusage.sh (do_version): Likewise.
5454         * malloc/memusagestat.c (print_version): Likewise.
5455         * malloc/mtrace.pl: Likewise.
5456         * manual/libc.texinfo: Likewise.
5457         * nptl/version.c (banner): Likewise.
5458         * nscd/nscd.c (print_version): Likewise.
5459         * nss/getent.c (print_version): Likewise.
5460         * nss/makedb.c (print_version): Likewise.
5461         * posix/getconf.c (main): Likewise.
5462         * scripts/test-installation.pl: Likewise.
5463         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5464
5465         * All files with FSF copyright notices: Update copyright dates
5466         using scripts/update-copyrights.
5467         * intl/plural.c: Regenerated.
5468         * locale/programs/charmap-kw.h: Likewise.
5469         * locale/programs/locfile-kw.h: Likewise.
5470
5471 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5472
5473         [BZ #20593]
5474         Update DNS RR type definitions.
5475         * scripts/gen-rrtypes.py: New file.
5476         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
5477         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
5478         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
5479         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
5480         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
5481         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
5482         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
5483         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
5484         ns_t_ta, ns_t_dlv.
5485         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
5486         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
5487         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
5488         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
5489         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
5490         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
5491         Define.
5492         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
5493         entry for ns_t_zxfr.
5494
5495 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5496
5497         [BZ #18784]
5498         CVE-2015-5180
5499         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
5500         T_UNSPEC.  Adjust value.
5501         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
5502         * resolv/res_query.c (__libc_res_nquery): Likewise.
5503         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
5504         QTYPEs.
5505         * resolv/tst-resolv-qtypes.c: New file.
5506         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
5507         (tst-resolv-qtypes): Link against libresolv and libpthread.
5508
5509 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5510
5511         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
5512
5513 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5514
5515         * manual/tunables.texi: New chapter.
5516         * manual/Makefile (chapters): Add it.
5517         * manual/probes.texi (@node): Point to the Tunables chapter.
5518
5519         * Makeconfig (have-tunables): Check for non-negative instead
5520         of positive.
5521         * configure.ac: Add 'valstring' as a valid value for
5522         --enable-tunables.
5523         * configure: Regenerate.
5524         * elf/Makefile (have-tunables): Check for non-negative instead
5525         of positive.
5526         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
5527         dl-tunables.c.
5528         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
5529         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5530         (tunables_strdup): Likewise.
5531         (disable_tunables): Likewise.
5532         (parse_tunables): Likewise.
5533         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
5534         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
5535         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
5536         (TUNABLES_FRONTEND_yes): New macro, define as
5537         TUNABLES_FRONTEND_valstring by default.
5538         * manual/install.texi: Document new acceptable values for
5539         --enable-tunables.
5540         * INSTALL: Regenerate.
5541
5542         * config.make.in (have-loop-to-function): Define.
5543         * elf/Makefile (CFLAGS-dl-tunables.c): Add
5544         -fno-tree-loop-distribute-patterns.
5545         * elf/dl-tunables.c: Include libc-internals.h.
5546         (GLIBC_TUNABLES): New macro.
5547         (tunables_strdup): New function.
5548         (parse_tunables): New function.
5549         (min_strlen): New function.
5550         (__tunables_init): Use the new functions and macro.
5551         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
5552         * malloc/tst-malloc-usable-tunables.c: New test case.
5553         * malloc/tst-malloc-usable-static-tunables.c: New test case.
5554         * malloc/Makefile (tests, tests-static): Add tests.
5555
5556         * manual/install.texi: Add --enable-tunables option.
5557         * INSTALL: Regenerate.
5558         * README.tunables: New file.
5559         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
5560         (before-compile): Generate dl-tunable-list.h early.
5561         * config.h.in: Add HAVE_TUNABLES.
5562         * config.make.in: Add have-tunables.
5563         * configure.ac: Add --enable-tunables option.
5564         * configure: Regenerate.
5565         * csu/init-first.c (__libc_init_first): Move
5566         __libc_init_secure earlier...
5567         * csu/init-first.c (LIBC_START_MAIN):... to here.
5568         Include dl-tunables.h, libc-internal.h.
5569         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
5570         binaries.
5571         * elf/Makefile (dl-routines): Add dl-tunables.
5572         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
5573         namespace.
5574         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
5575         only when !HAVE_TUNABLES.
5576         * elf/rtld.c (process_envvars): Likewise.
5577         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
5578         (_dl_sysdep_start): Call __tunables_init.
5579         * elf/dl-tunable-types.h: New file.
5580         * elf/dl-tunables.c: New file.
5581         * elf/dl-tunables.h: New file.
5582         * elf/dl-tunables.list: New file.
5583         * malloc/tst-malloc-usable-static.c: New test case.
5584         * malloc/Makefile (tests-static): Add it.
5585         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
5586         Define TUNABLE_NAMESPACE.
5587         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
5588         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
5589         callback functions.
5590         (ptmalloc_init): Set tunable values.
5591         * scripts/gen-tunables.awk: New file.
5592         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
5593         (_dl_sysdep_start): Call __tunables_init.
5594
5595 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5596
5597         * resolv/resolv.h (RES_BLAST): Deprecate.
5598         * resolv/res_debug.c (p_option): Remove RES_BLAST.
5599         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
5600         to RES_BLAST.
5601
5602 2016-12-27  Florian Weimer  <fweimer@redhat.com>
5603
5604         [BZ #19582]
5605         Deprecate RES_USE_INET6.
5606         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
5607         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
5608         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
5609         RES_USE_INET6.
5610         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
5611         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
5612         (_nss_nisplus_gethostbyaddr_r): Likewise.
5613         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
5614         of res_use_inet6.
5615         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
5616         instead of RES_USE_INET6.
5617         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
5618         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
5619         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
5620         Likewise.
5621         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
5622         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
5623         Likewise.
5624         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
5625         (_nss_dns_gethostbyname_r): Likewise.
5626         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
5627         alternate RES_USE_INET6 handling.
5628         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
5629         instead of RES_USE_INET6.
5630         * resolv/res_init.c (res_setoptions): Likewise.
5631         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
5632         * resolv/resolv-internal.h: New file.
5633         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
5634         make the deprecation warning non-fatal.
5635         * resolv/README (Using the resolver in multi-threaded code): Drop
5636         reference to RES_USE_INET6.
5637         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
5638         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
5639
5640 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5641
5642         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
5643         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
5644         tst-resolv-search.
5645         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
5646         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
5647         with libresolv and libpthread.
5648         * resolv/tst-bug18665.c: New file.
5649         * resolv/tst-bug18665-tcp: Likewise.
5650         * resolv/tst-res_use_inet6: Likewise.
5651         * resolv/tst-resolv-basic: Likewise.
5652         * resolv/tst-resolv-network: Likewise.
5653         * resolv/tst-resolv-search: Likewise.
5654         * support/Makefile (libsupport-routines): Add check_addrinfo,
5655         check_dns_packet, check_hostent, check_netent, resolv_test,
5656         support_format_address_family, support_format_addrinfo,
5657         support_format_dns_packet, support_format_herrno,
5658         support_format_hostent, support_format_netent, support_run_diff,
5659         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
5660         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
5661         xstrdup, xwrite.
5662         * support/check_addrinfo.c: New file.
5663         * support/check_dns_packet.c: Likewise.
5664         * support/check_hostent.c: Likewise.
5665         * support/check_netent.c: Likewise.
5666         * support/check_nss.h: Likewise.
5667         * support/format_nss.h: Likewise.
5668         * support/resolv_test.c: Likewise.
5669         * support/resolv_test.h: Likewise.
5670         * support/run_diff.h: Likewise.
5671         * support/support_format_address_family.c: Likewise.
5672         * support/support_format_addrinfo.c: Likewise.
5673         * support/support_format_dns_packet.c: Likewise.
5674         * support/support_format_herrno.c: Likewise.
5675         * support/support_format_hostent.c: Likewise.
5676         * support/support_format_netent.c: Likewise.
5677         * support/support_run_diff.c: Likewise.
5678         * support/xaccept.c: Likewise.
5679         * support/xbind.c: Likewise.
5680         * support/xconnect.c: Likewise.
5681         * support/xfclose.c: Likewise.
5682         * support/xfopen.c: Likewise.
5683         * support/xgetsockname.c: Likewise.
5684         * support/xlisten.c: Likewise.
5685         * support/xmemstream.c: Likewise.
5686         * support/xmemstream.h: Likewise.
5687         * support/xpoll.c: Likewise.
5688         * support/xpthread_once.c: Likewise.
5689         * support/xrecvfrom.c: Likewise.
5690         * support/xsendto.c: Likewise.
5691         * support/xsetsockopt.c: Likewise.
5692         * support/xstdio.h: Likewise.
5693         * support/xstrdup.c: Likewise.
5694         * support/support.h (xstrdup): Declare.
5695         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
5696         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
5697         * support/xthread.h (xpthread_once): Likwise.
5698         * support/xunistd.h (xwrite): Declare.
5699
5700 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5701
5702         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
5703         (test_verbose): Declare.
5704         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
5705         * support/support_test_main.c (default_options): Likewise.
5706         (usage, support_test_main): Handle 'v'.
5707         (test_verbose): Define.
5708         * support/tst-support_record_failure.c (do_test): Use
5709         test_verbose.
5710         * support/tst-support_record_failure-2.sh (different_status): Add
5711         --verbose test.
5712
5713 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5714
5715         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
5716         test failures are recorded.
5717         * support/check.c (support_print_failure_impl): Call
5718         support_record_failure.
5719         (support_exit_failure_impl): Call support_record_failure if status
5720         indicates failure.
5721         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
5722         * support/xasprintf.c (xasprintf): Likewise.
5723         * support/xfork.c (xfork): Likewise.
5724         * support/xpthread_check_return.c (xpthread_check_return):
5725         Likewise.
5726         * support/xsocket.c (xsocket): Likeweise.
5727         * support/xwaitpid.c (xwaitpid): Likewise.
5728         * support/support_record_failure.c (struct test_failures): Adjust
5729         to coding style.
5730         * support/support_test_verify_impl.c (support_test_verify_impl):
5731         Adjust error messages.
5732         * support/tst-support_record_failure-2.sh (different_status):
5733         Adjust error messages.
5734
5735 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5736
5737         * support/namespace.h: New file.
5738         * support/support_become_root.c: Likewise.
5739         * support/support_enter_network_namespace.c: Likewise.
5740         * support/tst-support-namespace.c: Likewise.
5741         * support/xsocket.c: Likewise.
5742         * support/xsocket.h: Likewise.
5743         * support/Makefile (libsupport-routines): Add support_become_root,
5744         support_enter_network_namespace, xsocket.
5745         (tests): Add tst-support-namespace.
5746
5747 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5748
5749         [BZ #17252]
5750         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
5751         __USE_GNU.
5752
5753 2016-12-31  Torvald Riegel  <triegel@redhat.com>
5754
5755         [BZ #13165]
5756         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
5757         use new algorithm.
5758         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
5759         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
5760         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
5761         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
5762         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
5763         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
5764         __condvar_cleanup_waiting, __condvar_dec_grefs,
5765         __pthread_cond_wait_common): New.
5766         (__condvar_cleanup): Remove.
5767         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
5768         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
5769         Likewise.
5770         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
5771         Likewise.
5772         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
5773         * nptl/tst-cond1.c: Add comment.
5774         * nptl/tst-cond20.c (do_test): Adapt.
5775         * nptl/tst-cond22.c (do_test): Likewise.
5776         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
5777         structure.
5778         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5779         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5780         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5781         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
5782         Likewise.
5783         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5784         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5785         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5786         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5787         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5788         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
5789         Likewise.
5790         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
5791         Likewise.
5792         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
5793         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
5794         (COND_CLOCK_BITS): Adapt.
5795         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
5796         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
5797         __PTHREAD_COND_SHARED_MASK): New.
5798         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
5799         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
5800         * nptl/nptl_lock_constants.pysym: Adapt.
5801         * nptl/test-cond-printers.py: Adapt.
5802         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
5803         cond_compat_check_and_clear): Adapt.
5804         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
5805         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
5806         (__pthread_cond_timedwait): ... and move here.
5807         * nptl/DESIGN-condvar.txt: Remove file.
5808         * nptl/lowlevelcond.sym: Likewise.
5809         * nptl/pthread_cond_timedwait.c: Likewise.
5810         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
5811         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
5812         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
5813         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
5814         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
5815         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
5816         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
5817         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
5818         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
5819         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
5820         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
5821         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
5822         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
5823         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
5824         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
5825         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
5826
5827 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
5828
5829         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
5830         (fromfp): New declaration.
5831         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5832         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5833         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5834         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
5835         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
5836         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
5837         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
5838         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
5839         * math/math.h: Include <bits/types.h>.
5840         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
5841         constant and macro.
5842         (FP_INT_DOWNWARD): Likewise.
5843         (FP_INT_TOWARDZERO): Likewise.
5844         (FP_INT_TONEARESTFROMZERO): Likewise.
5845         (FP_INT_TONEAREST): Likewise.
5846         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
5847         (fromfpf): Likewise.
5848         (fromfpl): Likewise.
5849         (ufromfp): Likewise.
5850         (ufromfpf): Likewise.
5851         (ufromfpl): Likewise.
5852         (fromfpx): Likewise.
5853         (fromfpxf): Likewise.
5854         (fromfpxl): Likewise.
5855         (ufromfpx): Likewise.
5856         (ufromfpxf): Likewise.
5857         (ufromfpxl): Likewise.
5858         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
5859         s_fromfpxF and s_ufromfpxF.
5860         * math/gen-fromfp-tests.py: New file.
5861         * math/gen-fromfp-tests-inputs: Likewise.
5862         * math/libm-test.inc: Include <stdint.h>
5863         (check_intmax_t): New function.
5864         (check_uintmax_t): Likewise.
5865         (struct test_fiu_M_data): New type.
5866         (struct test_fiu_U_data): Likewise.
5867         (RUN_TEST_fiu_M): New macro.
5868         (RUN_TEST_LOOP_fiu_M): Likewise.
5869         (RUN_TEST_fiu_U): Likewise.
5870         (RUN_TEST_LOOP_fiu_U): Likewise.
5871         (fromfp_test_data): New array.
5872         (fromfp_test): New function.
5873         (fromfpx_test_data): New array.
5874         (fromfpx_test): New function.
5875         (ufromfp_test_data): New array.
5876         (ufromfp_test): New function.
5877         (ufromfpx_test_data): New array.
5878         (ufromfpx_test): New function.
5879         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
5880         ufromfpx_test.
5881         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
5882         characters.
5883         * math/test-tgmath-ret.c: Include <stdint.h>.
5884         (rm): New variable.
5885         (width): Likewise.
5886         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
5887         called function.
5888         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
5889         CHECK_RET_CONST_TYPE.
5890         (CHECK_RET_CONST_DOUBLE): Likewise.
5891         (CHECK_RET_CONST_LDOUBLE): Likewise.
5892         (CHECK_RET_CONST): Take extra arguments and pass them to calls
5893         macros.
5894         (fromfp): New CHECK_RET_CONST call.
5895         (ufromfp): Likewise.
5896         (fromfpx): Likewise.
5897         (ufromfpx): Likewise.
5898         (do_test): Call check_return_fromfp, check_return_ufromfp,
5899         check_return_fromfpx and check_return_ufromfpx.
5900         * math/test-tgmath.c: Include <stdint.h>
5901         (NCALLS): Increase to 138.
5902         (F(compile_test)): Initialize i.  Call fromfp functions.
5903         (F(fromfp)): New function.
5904         (F(fromfpx)): Likewise.
5905         (F(ufromfp)): Likewise.
5906         (F(ufromfpx)): Likewise.
5907         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
5908         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
5909         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
5910         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
5911         ufromfpxl.
5912         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
5913         ufromfp and ufromfpx.
5914         * math/fromfp.h: New file.
5915         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
5916         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
5917         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
5918         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
5919         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
5920         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
5921         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
5922         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
5923         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
5924         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
5925         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
5926         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
5927         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
5928         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
5929         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
5930         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
5931         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
5932         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
5933         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
5934         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
5935         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
5936         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
5937         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
5938         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
5939         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
5940         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
5941         ufromfp, fromfpx and ufromfpx.
5942         (CFLAGS-nldbl-fromfp.c): New variable.
5943         (CFLAGS-nldbl-fromfpx.c): Likewise.
5944         (CFLAGS-nldbl-ufromfp.c): Likewise.
5945         (CFLAGS-nldbl-ufromfpx.c): Likewise.
5946         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
5947         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
5948         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
5949         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
5950         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
5951         * sysdeps/nacl/libm.abilist: Update.
5952         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5953         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5954         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5955         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5956         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5957         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5958         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5959         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5960         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5961         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5962         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5963         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5965         Likewise.
5966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5967         Likewise.
5968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5969         Likewise.
5970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5971         Likewise.
5972         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5973         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5974         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5975         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5976         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5977         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5978         Likewise.
5979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5980         Likewise.
5981         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5982         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5983         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5984
5985 2016-12-30  Florian Weimer  <fweimer@redhat.com>
5986
5987         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
5988         compat-gethnamaddr.
5989         (CPPFLAGS): Remove.
5990         * resolv/gethnamaddr.c: Rename ...
5991         * resolv/compat-gethnamaddr.c: ... to this file.
5992         (_endhtent): Make static.
5993         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
5994         symbol.
5995         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
5996         compat symbol.
5997         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
5998         symbol.
5999         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6000         Turn into compat symbol.
6001         * include/resolv.h (_endhtent): Remove declaration.
6002
6003 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6004
6005         * bits/types.h (__intmax_t): New typedef.
6006         (__uintmax_t): Likewise.
6007         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6008         (intmax_t): Define using __intmax_t.
6009         (uintmax_t): Define using __uintmax_t.
6010
6011         * support/Makefile (tests-special): Make definition conditional on
6012         [$(run-built-tests) = yes].
6013         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6014         on [$(run-built-tests) = yes].
6015
6016 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6017
6018         * Rules (tests): Add tests-printers-programs to tests to be
6019         built.
6020
6021 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6022
6023         * sysvipc/Makefile (tests): Add test-sysvshm.
6024         * sysvipc/test-sysvshm.c: New file.
6025
6026         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6027         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6028         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6029         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6030         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6031         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6032         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6033         Likewise.
6034         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6035         Likewise.
6036         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6037         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6038         is defined.
6039
6040         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6041         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6042         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6043         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6044         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6045         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6046         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6047         Likewise.
6048         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6049         Likewise.
6050         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6051         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6052         defined.
6053
6054         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6055         oldshmctl.
6056         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6057         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6058         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6059         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6060         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6061         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6062         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6063         Likewise.
6064         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6065         Likewise.
6066         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6067         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6068         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6069         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6070         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6071         implementation.
6072         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6073         if it is defined.
6074
6075         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6076         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6077         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6078         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6079         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6080         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6081         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6082         Likewise.
6083         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6084         Likewise.
6085         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6086         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6087         Define to __NR_osf_shmat.
6088         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6089         defined.
6090
6091         * sysvipc/Makefile (tests): Add test-sysvsem.
6092         * sysvipc/test-sysvsem.c: New file.
6093
6094         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6095         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6096         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6097         Likewise.
6098         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6099         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6100         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6101         Likewise.
6102         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6103         Likewise.
6104         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6105         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6106         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6107         add a comment about s390 syscall difference from default one.
6108         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6109         syscall if it is defined.
6110
6111         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6112         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6113         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6114         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6115         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6116         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6117         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6118         Likewise.
6119         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6120         Likewise.
6121         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6122         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6123         defined.
6124
6125         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6126         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6127         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6128         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6129         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6130         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6131         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6132         Likewise.
6133         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6134         Likewise.
6135         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6136         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6137         if it is defined.
6138
6139         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6140         oldsemctl.
6141         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6142         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6143         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6144         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6145         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6146         implementation.
6147         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6148         syscall if it is defined.
6149         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6150         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6151         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6152         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6153         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6154         Likewise.
6155         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6156
6157         * sysvipc/Makefile (tests): Add test-sysvmsg.
6158         * sysvipc/test-sysvmsg.c: New file.
6159         * support/check.h (FAIL_UNSUPPORTED): New define.
6160
6161         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6162         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6163         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6164         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6165         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6166         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6167         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6168         Likewise.
6169         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6170         Likewise.
6171         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6172         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6173         define.
6174
6175         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6176         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6177         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6178         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6179         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6180         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6181         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6182         Likewise.
6183         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6184         Likewise.
6185         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6186         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6187         if defined.
6188
6189         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6190         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6191         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6192         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6193         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6194         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6195         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6196         Likewise.
6197         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6198         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6199         Likewise.
6200         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6201         if defined.
6202         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6203
6204         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6205         oldmsgctl.
6206         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6207         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6208         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6209         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6210         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6211         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6212         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6213         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6214         Likewise.
6215         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6216         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6217         implementation.
6218         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6219         if defined.
6220
6221         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6222         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6223         definition and define its own.
6224         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6225         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6226         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6227         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6228         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6229         definitions to common header.
6230         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6231         operation from ipc_ops.h.
6232
6233         * sysdeps/unix/sysv/linux/kernel-features.h
6234         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6235         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6236         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6237         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6238         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6239         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6240         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6241         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6242         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6243         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6244         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6245         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6246         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6247         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6248         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6249
6250 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6251
6252         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6253         overflow in pointer addition.
6254
6255 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6256
6257         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6258         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6259         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6260         (strchr): Add __strchr_power8 to list of strchr functions.
6261         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6262         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6263         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6264         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6265         (strchr): Add __strchr_power8 to ifunc list.
6266         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6267         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6268         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6269         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6270
6271 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6272
6273         * support/Makefile (libsupport-routines): Add
6274         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6275         (tests): Add tst-support_record_failure.
6276         (tests-special): tst-support_record_failure-2.
6277         (tst-support_record_failure-2.out): Depend on
6278         tst-support_record_failure-2.sh and tst-support_record_failure.
6279         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6280         (support_test_verify_impl, support_record_failure)
6281         (support_report_failure, support_report_failure_reset): Declare.
6282         * support/support_test_main.c (adjust_exit_status): New function.
6283         (support_test_main): Call it to incorporate record test failures.
6284         * support/support_test_verify_impl.c: New file.
6285         * support/support_record_failure.c: Likewise.
6286         * support/tst-support_record_failure.c: Likewise.
6287         * support/tst-support_record_failure-2.sh: Likewise.
6288         * support/xunistd.h: Likewise.
6289         * support/xfork.c: Likewise.
6290         * support/xwaitpid.c: Likewise.
6291
6292 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6293
6294         * scripts/check-c++-types.sh: Add comments.
6295
6296 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6297
6298         [BZ #19514]
6299         * resolv/res_send.c: Fix typo in comment.
6300         * sysdeps/i386/i386-mcount.S: Likewise.
6301         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6302         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6303         * sysdeps/sparc/sparc-mcount.S: Likewise.
6304
6305 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6306
6307         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
6308         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
6309         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
6310         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
6311         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
6312         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
6313         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
6314         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
6315
6316 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6317
6318         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
6319
6320 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6321
6322         [BZ #17252]
6323         * posix/unistd.h (getentropy): Declare.
6324
6325 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6326
6327         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
6328         Remove.
6329         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
6330         (cmd): Remove spoof, nospoof, spoofalert.
6331         (parse_line): Ignore spoof-related lines.
6332         (do_init): Do not process RESOLV_SPOOF_CHECK.
6333
6334 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6335
6336         [BZ #20964]
6337         sunrpc: Always obtain AF_INET addresses from NSS.
6338         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6339         * sunrpc/rpc_gethostbyname.c: New file.
6340         * sunrpc/Makefile (routines): Add it.
6341         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
6342         * sunrpc/clnt_simp.c (callrpc): Likewise.
6343         * sunrpc/getrpcport.c (getrpcport): Likewise.
6344
6345 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6346
6347         * sunrpc/rpcinfo.c: Remove.
6348         * sunrpc/Makefile: Remove comments referring to rpcinfo.
6349
6350 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6351
6352         [BZ #19387]
6353         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
6354         addition.
6355         * string/test-memchr.c (do_test): Remove alignment limitation.
6356         (test_main): Add test that trigger BZ #19387.
6357
6358 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6359
6360         [BZ #7065]
6361         Enable stack protectore if requested by ./configure.
6362         * Makeconfig (+stack-protector): New variable.
6363         (+cflags): Use it.
6364
6365 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6366
6367         [BZ #7065]
6368         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
6369         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
6370         (__rt_sigreturn_stub): Use inhibit_stack_protector.
6371         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6372         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
6373
6374 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6375
6376         [BZ #7065]
6377         * login/Makefile (pt_chown-cflags): Remove.
6378         * nscd/Makefile (CFLAGS-nscd): Likewise.
6379         * resolv/Makefile (CFLAGS-libresolv): Likewise.
6380
6381 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6382
6383         [BZ #7065]
6384         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
6385         non-libc-linking testcase.
6386
6387 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6388             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6389             Florian Weimer  <fweimer@redhat.com>
6390
6391         [BZ #7065]
6392         PLT avoidance for __stack_chk_fail*.
6393         * debug/Makefile (CFLAGS-stack_chk_fail.c)
6394         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
6395         * debug/stack_chk_fail.c (__stack_chk_fail): Add
6396         __stack_chk_fail_local alias.
6397         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
6398         (__stack_chk_fail): Turn into hidden reference to
6399         __stack_chk_fail_local.
6400
6401 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6402
6403         [BZ #7065]
6404         * configure.ac: Add check for unsupported stack-protection level.
6405         (libc_cv_predef_stack_protector): Remove.
6406         (no_ssp): New variable.
6407         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
6408         (stack_protector): Set to -fno-stack-protector similarly.
6409         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
6410         (libc_cv_asm_set_directive): Likewise.
6411         (libc_cv_protected_data): Likewise.
6412         (libc_cv_z_combreloc): Likewise.
6413         (libc_cv_hashstyle): Likewise.
6414         (libc_cv_has_glob_dat): Likewise.
6415         (libc_cv_output_format): Likewise.
6416         (libc_cv_output_format): Likewise.
6417         (libc_cv_ehdr_start): Likewise.
6418         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
6419         (LIBC_LINKER_FEATURE): Likewise.
6420         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
6421
6422 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6423
6424         [BZ #7065]
6425         * elf/Makefile (dummy-stack-chk-fail): New.
6426         (librtld.map): Use it.
6427
6428 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6429
6430         [BZ #7065]
6431         Compile the dynamic linker without stack protection.
6432         * elf/Makefile (elide-stack-protector): New.
6433         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
6434         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
6435         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
6436         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
6437
6438 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6439
6440         [BZ #7065]
6441         * config.make.in (have-ssp, no-stack-protector): New.
6442         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
6443         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
6444         (CFLAGS-sbrk.op): Likewise.
6445         (CFLAGS-brk.o): Likewise.
6446         (CFLAGS-brk.op): Likewise.
6447         * string/Makefile (CFLAGS-memcpy.c): Likewise.
6448         (CFLAGS-wordcopy.c): Likewise.
6449
6450 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6451
6452         [BZ #7065]
6453         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
6454         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
6455         * include/libc-symbols.h (inhibit_stack_protector): New macro.
6456         (__ifunc_resolver): Use it.
6457         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
6458         inhibit_stack_protector.
6459         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
6460         * elf/ifuncmain7.c (foo_ifunc): Likewise.
6461         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
6462         (foo_protected_ifunc): Likewise.
6463         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
6464         (foo_protected_ifunc): Likewise.
6465         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6466         * sysdeps/nacl/nacl_interface_query.c
6467         (nacl_interface_query_ifunc): Likewise.
6468         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6469         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
6470         Likewise.
6471         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
6472         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
6473         the generated vDSO syscall resolver.
6474
6475 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6476             Florian Weimer  <fweimer@redhat.com>
6477
6478         [BZ #7065]
6479         Initialize the stack guard earlier when linking statically.
6480         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
6481         (__pthread_initialize_minimal): Declare.
6482         * csu/libc-start.c (__pthread_initialize_minimal): Remove
6483         declaration.
6484         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
6485         stack canary and apply_irel initialization up.  Call
6486         __pthread_initialize_minimal only if linked in.
6487         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
6488         constant values.
6489         (__pthread_initialize_minimal): Remove.
6490         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
6491         (__pthread_initialize_minimal_internal): Do not call
6492         __libc_setup_tls.
6493
6494 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6495
6496         [BZ #7065]
6497         * configure.ac (libc_cv_ssp): Move up.
6498         (libc_cv_ssp_strong): Likewise.
6499         (libc_cv_ssp_all): New.
6500         (stack_protector): Augment, adding -fstack-protector-all.
6501         (no_stack_protector): New.
6502         (STACK_PROTECTOR_LEVEL): New.
6503         (AC_ARG_ENABLE(stack-protector)): New configure flag.
6504         * manual/install.texi (--enable-stack-protector): Document it.
6505         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
6506
6507 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
6508
6509         * README.pretty-printers: Must specify CPPFLAGS-* also.
6510         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
6511         (CPPFLAGS-test-mutex-printers.c): Define.
6512         (CPPFLAGS-test-condattr-printers.c): Define.
6513         (CPPFLAGS-test-cond-printers.c): Define.
6514         (CPPFLAGS-test-rwlockattr-printers.c): Define.
6515         (CPPFLAGS-test-rwlock-printers.c): Define.
6516
6517         * nss/Makefile [ifeq (yes,$(have-thread-library))]
6518         (tests): Add tst-cancel-getpwuid_r.
6519         * nss/tst-cancel-getpwuid_r.c: New file.
6520
6521         [BZ #11941]
6522         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
6523         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
6524         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
6525         tst-nodelete-dlclose.
6526         (modules-names): Add tst-nodelete-dlclose-dso and
6527         tst-nodelete-dlclose-plugin.
6528         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
6529         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
6530         ($(objpfx)tst-nodelete-dlclose): Define.
6531         ($(objpfx)tst-nodelete-dlclose.out): Define.
6532
6533 2016-12-23  Florian Weimer  <fweimer@redhat.com>
6534
6535         * scripts/test_printers_common.py: Log GDB output in case of
6536         Python detection failure.
6537
6538 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6539
6540         * configure.ac: Check for python3 or python.
6541         * configure: Regenerated.
6542         * config.make.in (PYTHON): New variable.
6543         * benchtests/Makefile: Don't define PYTHON.
6544         (bench): Define target only if PYTHON was defined.
6545         * Rules: Don't define PYTHON.
6546         Define pretty printer targets only if PYTHON was defined.
6547         (tests-printers): Add to tests-unsupported if PYTHON is not
6548         found.
6549         (python-flags, python-invoke): Remove.
6550         (tests-printers-out): Use PYTHON instead of python-invoke.
6551
6552 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6553
6554         [BZ #20978]
6555         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
6556         Compare name == NULL, not name != NULL.
6557
6558         * manual/texinfo.tex: Update to version 2016-09-18.18 with
6559         trailing whitespace removed.
6560         * scripts/config.guess: Update to version 2016-10-02.
6561         * scripts/config.sub: Update to version 2016-11-19.
6562         * scripts/install-sh: Update to version 2016-01-11.22.
6563         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
6564         * scripts/move-if-change: Update to version 2016-01-11 22:04.
6565
6566 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
6567
6568         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
6569         (do_one_test) Restore original string so iteration works.
6570         * string/string-inlines.c (do_test): Create better input strings.
6571         (test_main) Reduce number of testruns.
6572         * string/string-inlines.c (__old_strsep_1c): New function.
6573         (__old_strsep_2c): Likewise.
6574         (__old_strsep_3c): Likewise.
6575         * string/strsep.c (__strsep): Remove case of small delim string.
6576         Call strcspn directly rather than strpbrk.
6577         * string/bits/string2.h (__strsep): Remove define.
6578         (__strsep_1c): Remove.
6579         (__strsep_2c): Remove.
6580         (__strsep_3c): Remove.
6581         (strsep): Remove.
6582         * sysdeps/unix/sysv/linux/internal_statvfs.c
6583         (__statvfs_getflags): Rename to __strsep.
6584
6585 2016-12-21  Florian Weimer  <fweimer@redhat.com>
6586
6587         * csu/libc-tls.c (_dl_tls_setup): Remove.
6588         * elf/dl-tls.c (_dl_tls_setup): Likewise.
6589         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
6590         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
6591
6592 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6593
6594         [BZ #7065]
6595         * sysdeps/x86_64/Makefile [$(subdir) = elf]
6596         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
6597
6598 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
6599             Florian Weimer  <fweimer@redhat.com>
6600
6601         [BZ #7065]
6602         * csu/Makefile (tests): Empty assignment and document it.
6603         (tests-static): Remove.
6604         * csu/tst-empty.c: Move to...
6605         * misc/tst-empty.c: ... here.  Switch to new test driver.
6606         * csu/tst-atomic.c: Move to...
6607         * misc/tst-atomic.c: ... here.  Switch to new test driver.
6608         * csu/tst-atomic-long.c: Move to...
6609         * misc/tst-atomic-long.c: ... here.
6610         * misc/Makefile (tests): Add tst-empty, tst-atomic,
6611         tst-atomic-long.
6612         (tests-static): Add tst-empty.
6613
6614 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
6615
6616         * manual/nss.texi: Change incorrect @vtable to @table.
6617         * manual/arith.texi: Convert @tables of variables to @vtables
6618         and remove unnecessary indexing.
6619         * manual/filesys.texi: Likewise.
6620         * manual/llio.texi: Likewise.
6621         * manual/memory.texi: Likewise.
6622         * manual/process.texi: Likewise.
6623         * manual/resource.texi: Likewise.
6624         * manual/search.texi: Likewise.
6625         * manual/signal.texi: Likewise.
6626         * manual/socket.texi: Likewise.
6627         * manual/stdio.texi: Likewise.
6628         * manual/sysinfo.texi: Likewise.
6629         * manual/syslog.texi: Likewise.
6630         * manual/terminal.texi: Likewise.
6631         * manual/time.texi: Likewise.
6632         * manual/users.texi: Likewise.
6633
6634 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
6635
6636         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6637         (roundeven): New declaration.
6638         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
6639         macro.
6640         * math/Versions (roundeven): New libm symbol at version
6641         GLIBC_2.25.
6642         (roundevenf): Likewise.
6643         (roundevenl): Likewise.
6644         * math/Makefile (libm-calls): Add s_roundevenF.
6645         * math/libm-test.inc (roundeven_test_data): New array.
6646         (roundeven_test): New function.
6647         (main): Call roundeven_test.
6648         * math/test-tgmath.c (NCALLS): Increase to 134.
6649         (F(compile_test)): Call roundeven.
6650         (F(roundeven)): New function.
6651         * manual/arith.texi (Rounding Functions): Document roundeven,
6652         roundevenf and roundevenl.
6653         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
6654         * include/math.h (roundeven): Use libm_hidden_proto.
6655         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
6656         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
6657         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
6658         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
6659         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
6660         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
6661         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6662         roundeven.
6663         (CFLAGS-nldbl-roundeven.c): New variable.
6664         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
6665         * sysdeps/nacl/libm.abilist: Update.
6666         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6667         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6668         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6669         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6670         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6671         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6672         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6673         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6674         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6675         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6676         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6677         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6679         Likewise.
6680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6681         Likewise.
6682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6683         Likewise.
6684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6685         Likewise.
6686         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6687         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6688         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6689         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6690         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6692         Likewise.
6693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6694         Likewise.
6695         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6696         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6697         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6698
6699 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6700
6701         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
6702         preprocessor indentation inside #if.
6703
6704 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6705
6706         * math/libm-test.inc (fmt_ftostr): New function.
6707         (print_float, check_float_internal): Replace some uses of
6708         FTOSTR with uses of fmt_ftostr.
6709         (print_max_error, print_complex_max_error, print_function_ulps)
6710         (print_complex_function_ulps): Remove uses of the macros
6711         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
6712         * math/test-double.h (FTOSTR): Define to strfromd.
6713         (PRINTF_EXPR): Delete.
6714         (PRINTF_XEXPR): Likewise.
6715         (PRINTF_NEXPR): Likewise.
6716         * math/test-float.h (FTOSTR): Define to strfromf.
6717         (PRINTF_EXPR): Delete.
6718         (PRINTF_XEXPR): Likewise.
6719         (PRINTF_NEXPR): Likewise.
6720         * math/test-ldouble.h (FTOSTR): Define to strfroml.
6721         (PRINTF_EXPR): Delete.
6722         (PRINTF_XEXPR): Likewise.
6723         (PRINTF_NEXPR): Likewise.
6724
6725 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6726
6727         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
6728         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
6729         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6730         (__lll_lock_elision): Decrement adapt_count while unlocking
6731         instead of before locking.
6732         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6733         (__lll_trylock_elision): Likewise.
6734         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
6735         (__lll_unlock_elision): Likewise.
6736
6737 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6738
6739         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
6740         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
6741         Use __libc_tbegin_retry macro.
6742
6743 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6744
6745         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
6746         Add -msoft-float.
6747         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
6748         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
6749         Use __libc_t* transaction macros instead of __builtin_t*.
6750         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6751         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
6752
6753 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6754
6755         * sysdeps/unix/sysv/linux/s390/elision-lock.c
6756         (__lll_lock_elision): Use atomics to load / store adapt_count.
6757         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
6758         (__lll_trylock_elision): Likewise.
6759
6760 2016-12-20  Florian Weimer  <fweimer@redhat.com>
6761
6762         Do not require memset elimination in explicit_bzero test.
6763         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
6764         (enum test_expectation): Add NO_EXPECTATIONS.
6765         (subtests): NO_EXPECTATIONS for ordinary clear.
6766         (check_test_buffer): Handle NO_EXPECTATIONS.
6767         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
6768
6769 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
6770
6771         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6772         (fmaxmag): New declaration.
6773         (fminmag): Likewise.
6774         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
6775         macro.
6776         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
6777         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
6778         (fmaxmagf): Likewise.
6779         (fmaxmagl): Likewise.
6780         (fminmag): Likewise.
6781         (fminmagf): Likewise.
6782         (fminmagl): Likewise.
6783         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
6784         * math/s_fmaxmag_template.c: New file.
6785         * math/s_fminmag_template.c: Likewise.
6786         * math/libm-test.inc (fmaxmag_test_data): New array.
6787         (fmaxmag_test): New function.
6788         (fminmag_test_data): New array.
6789         (fminmag_test): New function.
6790         (main): Call fmaxmag_test and fminmag_test.
6791         * math/test-tgmath.c (NCALLS): Increase to 132.
6792         (F(compile_test)): Call fmaxmag and fminmag.
6793         (F(fminmag)): New function.
6794         (F(fmaxmag)): Likewise.
6795         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
6796         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
6797         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
6798         fminmag.
6799         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
6800         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
6801         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
6802         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
6803         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
6804         and fminmag.
6805         (CFLAGS-nldbl-fmaxmag.c): New variable.
6806         (CFLAGS-nldbl-fminmag.c): Likewise.
6807         * sysdeps/nacl/libm.abilist: Update.
6808         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6811         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6812         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6814         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6815         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6816         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6817         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6818         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6819         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6821         Likewise.
6822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6823         Likewise.
6824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6825         Likewise.
6826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6827         Likewise.
6828         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6829         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6830         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6831         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6832         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6833         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6834         Likewise.
6835         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6836         Likewise.
6837         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6838         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6839         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6840
6841 2016-12-19  Torvald Riegel  <triegel@redhat.com>
6842
6843         [BZ #20973]
6844         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
6845         wake-up in robust mutexes.
6846         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
6847
6848 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6849
6850         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
6851         (CFLAGS-bench-fmaxf.c): New rule.
6852         (CFLAGS-bench-fminf.c): Likewise.
6853         * benchtests/fmaxf-inputs: New file.
6854         * benchtests/fminf-inputs: Likewise.
6855
6856         * benchtests/Makefile (bench-math): Add fmin and fmax.
6857         (CFLAGS-bench-fmax.c): New rule.
6858         (CFLAGS-bench-fmin.c): Likewise.
6859         * benchtests/fmax-inputs: New file.
6860         * benchtests/fmin-inputs: Likewise.
6861
6862         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
6863         parenthesis.
6864         (CMDLINE_PROCESS): Define using function instead of macro.
6865         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
6866         of test-skeleton.
6867         * benchtests/bench-memchr.c: Likewise.
6868         * benchtests/bench-memcmp.c: Likewise.
6869         * benchtests/bench-memcpy-large.c: Likewise.
6870         * benchtests/bench-memcpy.c: Likewise.
6871         * benchtests/bench-memmem.c: Likewise.
6872         * benchtests/bench-memmove-large.c: Likewise.
6873         * benchtests/bench-memmove.c: Likewise.
6874         * benchtests/bench-memset-large.c: Likewise.
6875         * benchtests/bench-memset.c: Likewise.
6876         * benchtests/bench-rawmemchr.c: Likewise.
6877         * benchtests/bench-strcasecmp.c: Likewise.
6878         * benchtests/bench-strcasestr.c: Likewise.
6879         * benchtests/bench-strcat.c: Likewise.
6880         * benchtests/bench-strchr.c: Likewise.
6881         * benchtests/bench-strcmp.c: Likewise.
6882         * benchtests/bench-strcpy.c: Likewise.
6883         * benchtests/bench-strcpy_chk.c: Likewise.
6884         * benchtests/bench-strlen.c: Likewise.
6885         * benchtests/bench-strncasecmp.c: Likewise.
6886         * benchtests/bench-strncmp.c: Likewise.
6887         * benchtests/bench-strncpy.c: Likewise.
6888         * benchtests/bench-strnlen.c: Likewise.
6889         * benchtests/bench-strpbrk.c: Likewise.
6890         * benchtests/bench-strrchr.c: Likewise.
6891         * benchtests/bench-strsep.c: Likewise.
6892         * benchtests/bench-strspn.c: Likewise.
6893         * benchtests/bench-strstr.c: Likewise.
6894         * benchtests/bench-strtok.c: Likewise.
6895
6896 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6897
6898         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
6899         stepping identification.
6900         (init_cpu_features): Add handle of Haswell.
6901
6902 2016-11-25  Jim Meyering  <meyering@fb.com>
6903
6904         [BZ #20386]
6905         Let gcc detect assert(a = 1) errors.
6906         * assert/assert.h (assert): Rewrite, retaining the old definintion
6907         when required, but otherwise putting the expression as-is in an "if"
6908         expression (hence, with no added parentheses) within a statement
6909         expression.
6910
6911 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6912
6913         * benchtests/Makefile (binaries-benchset): Depend on libsupport
6914         DSO.
6915
6916 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
6917
6918         * Rules (python-flags, python-invoke): New.
6919         ($(test-printers-out)): Use $(python-flags).
6920
6921 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
6922
6923         * manual/arith.texi (Math Error Reporting): Document that sNaN
6924         arguments are not considered domain errors.
6925
6926 2016-12-16  Zack Weinberg <zackw@panix.com>
6927             Florian Weimer <fweimer@redhat.com>
6928             Nick Mathewson <nickm@torproject.org>
6929
6930         * string/explicit_bzero.c: New routine.
6931         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
6932         * string/Makefile (routines, strop-tests, tests): Add them.
6933         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
6934         * string/string.h [__USE_MISC]: Declare explicit_bzero.
6935
6936         * debug/explicit_bzero_chk.c: New routine.
6937         * debug/Makefile (routines): Add it.
6938         * debug/tst-chk1.c: Test fortification of explicit_bzero.
6939         * string/bits/string3.h: Fortify explicit_bzero.
6940
6941         * manual/string.texi: Document explicit_bzero.
6942         * NEWS: Mention addition of explicit_bzero.
6943
6944         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
6945         data before returning, using explicit_bzero.
6946         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
6947         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
6948         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
6949
6950         * include/string.h: Redirect internal uses of explicit_bzero
6951         to __explicit_bzero_chk[_internal].
6952         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
6953         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
6954         * sysdeps/arm/nacl/libc.abilist
6955         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
6956         * sysdeps/unix/sysv/linux/alpha/libc.abilist
6957         * sysdeps/unix/sysv/linux/arm/libc.abilist
6958         * sysdeps/unix/sysv/linux/hppa/libc.abilist
6959         * sysdeps/unix/sysv/linux/i386/libc.abilist
6960         * sysdeps/unix/sysv/linux/ia64/libc.abilist
6961         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
6962         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
6963         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
6964         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6965         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6966         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6967         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6968         * sysdeps/unix/sysv/linux/nios2/libc.abilist
6969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6973         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
6974         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
6975         * sysdeps/unix/sysv/linux/sh/libc.abilist
6976         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
6977         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
6978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
6979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
6980         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
6981         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
6982         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
6983         Add entries for explicit_bzero and __explicit_bzero_chk.
6984
6985 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
6986
6987         * math/fenv.h
6988         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
6989         (FE_SNANS_ALWAYS_SIGNAL): New macro.
6990         * math/test-fe-snans-always-signal.c: New file.
6991         * math/Makefile (tests): Add test-fe-snans-always-signal.
6992         (CFLAGS-test-fe-snans-always-signal.c): New variable.
6993         * manual/arith.texi (Infinity and NaN): Document
6994         FE_SNANS_ALWAYS_SIGNAL.
6995
6996 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6997
6998         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
6999         bracket.
7000
7001 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7002
7003         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7004         before calling execv.
7005
7006 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7007
7008         [BZ #20971]
7009         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7010         overflow in pointer addition.
7011         * string/test-memchr.c (do_test): Add an argument to pass as
7012         the size on memchr.
7013         (test_main): Add check for SIZE_MAX.
7014
7015 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7016
7017         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7018         (libm-calls): Add w_scalblnF.
7019         * math/w_scalbln.c: Remove.
7020         * math/w_scalblnf.c: Likewise.
7021         * math/w_scalblnl.c: Likewise.
7022         * math/w_scalbln_template.c: New file with type-generic
7023         implementation based on math/w_scalbln.c.
7024         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7025         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7026
7027 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7028
7029         [BZ #20947]
7030         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7031         either is a signaling NaN.
7032         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7033         follow fmaxl more closely.
7034         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7035         when either is a signaling NaN.
7036         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7037         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7038         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7039         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7040         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7041         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7042         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7043         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7044         (fmin_test_data): Likewise.
7045
7046 2016-12-15  Andreas Schwab  <schwab@suse.de>
7047
7048         * support/support_test_main.c (support_test_main): Don't shadow
7049         file-local variable test_pid.
7050
7051 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7052
7053         [BZ #20947]
7054         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7055         either is a signaling NaN.
7056         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7057
7058 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7059
7060         [BZ #20947]
7061         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7062         when either is a signaling NaN.
7063         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7064
7065         * bits/long-double.h: New file.
7066         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7067         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7068         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7069         * sysdeps/mips/bits/long-double.h: Likewise.
7070         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7071         * math/Makefile (headers): Add bits/long-double.h.
7072         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7073         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7074         <bits/wordsize.h>.
7075         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7076         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7077         * math/math.h: Do not include <bits/mathdef.h>.
7078         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7079         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7080         inclusion.
7081         * sysdeps/ia64/bits/mathdef.h: Remove file.
7082         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7083         * sysdeps/mips/bits/mathdef.h: Likewise.
7084         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7085         * sysdeps/s390/bits/mathdef.h: Likewise.
7086         * sysdeps/sparc/bits/mathdef.h: Likewise.
7087         * sysdeps/x86/bits/mathdef.h: Likewise.
7088         * sysdeps/s390/s390-32/bits/wordsize.h
7089         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7090         conditional code.
7091         * sysdeps/s390/s390-64/bits/wordsize.h
7092         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7093         Likewise.
7094         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7095         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7096         Likewise.
7097         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7098         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7099         Likewise.
7100         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7101         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7102         Likewise.
7103
7104         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7105         <linux/falloc.h>.
7106         (FALLOC_FL_KEEP_SIZE): Remove.
7107         (FALLOC_FL_PUNCH_HOLE): Likewise.
7108         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7109         (FALLOC_FL_ZERO_RANGE): Likewise.
7110
7111 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7112
7113         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7114
7115 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7116
7117         * sysdeps/unix/sysv/linux/renameat.c: New file.
7118         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7119
7120         * sysdeps/unix/sysv/linux/rename.c: New file.
7121         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7122
7123 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7124
7125         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7126         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7127         * string/strtok_r.c (__strtok_r): Optimize for performance.
7128         * string/string-inlines.c (__old_strtok_r_1c): New function.
7129         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7130
7131 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7132
7133         * math/Makefile (gen-libm-calls): Add w_log1pF.
7134         (libm-calls): Remove w_log1pF.
7135         * math/w_log1p.c: Remove.
7136         * math/w_log1pf.c: Likewise.
7137         * math/w_log1pl.c: Likewise.
7138         * math/w_log1p_template.c: New file with type-generic
7139         implementation based on math/w_log1p.c.
7140         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7141         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7142
7143 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7144
7145         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7146
7147 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7148
7149         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7150         kernel version to 4.9.
7151
7152 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7153
7154         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7155         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7156
7157 2016-12-13  Andreas Schwab  <schwab@suse.de>
7158
7159         * sysdeps/powerpc/dl-procinfo.c: Don't define
7160         _dl_powerpc_platforms.
7161         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7162         constants instead of referencing _dl_powerpc_platforms.
7163         (_dl_platform_string): Remove.
7164
7165 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7166
7167         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7168
7169 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7170
7171         * Rules (binaries-shared-tests, binaries-pie-tests)
7172         (binaries-static-tests): Link with $(link-extra-libs-tests).
7173         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7174         Remove $(link-extra-libs-tests).
7175
7176 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7177
7178         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7179         (sysdep_routines): Add strncmp_power9.
7180         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7181         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7182         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7183         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7184         (strncmp): Add __strncmp_power9 to ifunc list.
7185         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7186
7187 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7188
7189         [BZ #17252]
7190         Add getentropy, getrandom.
7191         * stdlib/sys/random.h: New file.
7192         (headers): Add it.
7193         * stdlib/Makefile (routines): Add getentropy, getrandom.
7194         (tests): Add tst-getrandom.
7195         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7196         * stdlib/getentropy.c: New file.
7197         * stdlib/getrandom.c: Likewise.
7198         * stdlib/tst-getrandom.c: Likewise.
7199         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7200         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7201         * manual/crypt.texi (Unpredictable Bytes): New section.
7202         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7203         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7204         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7205         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7206         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7207         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7208         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7209         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7210         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7211         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7212         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7213         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7214         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7215         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7216         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7217         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7219         Likewise.
7220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7221         Likewise.
7222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7224         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7225         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7226         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7227         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7228         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7230         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7231         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7232         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7233         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7234
7235 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7236
7237         [BZ #20956]
7238         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7239         as additional compiler barriers.
7240         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7241         (fn2, do_test): Declare with external linkage.
7242         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7243         (do_test): Declare with external linkage.
7244         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7245         (do_test): Declare with external linkage.
7246         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7247         (do_test): Declare with external linkage.
7248
7249 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7250
7251         * support/support_test_main.c (support_test_main): Use correct
7252         timeout.
7253
7254 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7255             Florian Weimer  <fweimer@redhat.com>
7256
7257         [BZ #16421]
7258         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7259         and __u6_addr32 members.
7260         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7261         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7262         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7263         Use __u6_addr32.
7264         * inet/tst-checks.c: Use <support/test-driver.c>
7265         * inet/tst-checks-posix.c: New file.
7266         * inet/Makefile (tests): Add it.
7267         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7268
7269 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7270
7271         New subdirectory support for build and test infrastructure.
7272         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7273         setting install-lib.
7274         * Makeconfig (link-extra-libs-tests): Define.
7275         (+link-pie-tests, +link-static-tests, +link-tests): Use
7276         link-extra-libs-tests.
7277         (rpath-dirs, all-subdirs): Add support.
7278         (built-modules): Add libsupport.
7279         (libsupport): Define.
7280         * support: New directory.
7281         * support/Makefile: New file.
7282         * support/check.c: Likewise.
7283         * support/check.h: Likewise.
7284         * support/delayed_exit.c: Likewise.
7285         * support/ignore_stderr.c: Likewise.
7286         * support/oom_error.c: Likewise.
7287         * support/set_fortify_handler.c: Likewise.
7288         * support/support.h: Likewise.
7289         * support/temp_file-internal.h: Likewise.
7290         * support/temp_file.c: Likewise.
7291         * support/test-driver.c: Likewise.
7292         * support/test-driver.h: Likewise.
7293         * support/test_main.c: Likewise.
7294         * support/write_message.c: Likewise.
7295         * support/xasprintf.c: Likewise.
7296         * support/xcalloc.c: Likewise.
7297         * support/xmalloc.c: Likewise.
7298         * support/xpthread_barrier_destroy.c: Likewise.
7299         * support/xpthread_barrier_init.c: Likewise.
7300         * support/xpthread_barrier_wait.c: Likewise.
7301         * support/xpthread_cancel.c: Likewise.
7302         * support/xpthread_check_return.c: Likewise.
7303         * support/xpthread_cond_wait.c: Likewise.
7304         * support/xpthread_create.c: Likewise.
7305         * support/xpthread_detach.c: Likewise.
7306         * support/xpthread_join.c: Likewise.
7307         * support/xpthread_mutex_lock.c: Likewise.
7308         * support/xpthread_mutex_unlock.c: Likewise.
7309         * support/xpthread_sigmask.c: Likewise.
7310         * support/xpthread_spin_lock.c: Likewise.
7311         * support/xpthread_spin_unlock.c: Likewise.
7312         * support/xrealloc.c: Likewise.
7313         * support/xsignal.h: Likewise.
7314         * support/xthread.h: Likewise.
7315         * support_tempfile.h: Likewise.
7316         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
7317         (TEST_DATA_LIMIT): Remove unused macro.
7318         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
7319         <support/check.h>.
7320         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
7321         (ignore_stderr, set_fortify_handler): Remove.  Now in
7322         <support/support.h>.
7323         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
7324         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
7325         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
7326         (xpthread_join): Remove.  Now in <support/xthread.h>.
7327         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
7328         Introduce legacy wrappers.
7329         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
7330         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
7331         (write_message): Remove.
7332         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
7333         test-skeleton.c.
7334         * io/test-open-tmpfile: Likewise.
7335         * io/tst-posix_fallocate-common.c: Likewise.
7336         * libio/tst-fseek.c: Likewise.
7337         * malloc/tst-malloc-backtrace.c: Likewise.
7338         * malloc/tst-malloc-fork-deadlock.c: Likewise.
7339         * malloc/tst-malloc-thread-exit.c: Likewise.
7340         * nptl/tst-cancel7.c: Likewise.
7341         * nptl/tst-cleanup0.c: Likewise.
7342         * posix/tst-posix_fadvise-common.c: Likewise.
7343         * rt/tst-shm.c: Likewise.
7344         * time/bug-getdate1.c: Likewise.
7345         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
7346         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
7347         * elf/Makefile (tst-piemod1.so): Link against libsupport.
7348
7349 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
7350
7351         * Rules [$(run-built-tests) != no] (tests-expected): Add
7352         $(tests-printers).
7353         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
7354
7355 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
7356
7357         [BZ #20539]
7358         * math/Makefile (install-lib-ldscripts): Add libm.a.
7359         (install_subdir): Remove.
7360         (install-others): Add.
7361         ($(inst_libdir)/libm.a): Add rule for installation as
7362         linker script.
7363         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
7364
7365 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
7366
7367         * INSTALL: Regenerated.
7368         * Makeconfig: Add comments and whitespace to make the control flow
7369         clearer.
7370         (+link-printers-tests, +link-pie-printers-tests,
7371         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
7372         built-rtld-LDFLAGS, link-libc-rpath,
7373         link-libc-tests-after-rpath-link,
7374         link-libc-printers-tests): New.
7375         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
7376         link-libc-tests): Use the new variables as required.
7377         * Makerules ($(py-const)): New rule.
7378         generated: Add $(py-const).
7379         * README.pretty-printers: New file.
7380         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
7381         (others): Depend on $(py-const).
7382         (tests): Depend on $(tests-printers-programs) or
7383         $(tests-printers-out),
7384         as required.  Pass $(tests-printers) to merge-test-results.sh.
7385         * manual/install.texi: Add requirements for testing the pretty
7386         printers.
7387         * nptl/Makefile (gen-py-const-headers, pretty-printers,
7388         tests-printers, CFLAGS-test-mutexattr-printers.c
7389         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
7390         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
7391         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
7392         * nptl/nptl-printers.py: New file.
7393         * nptl/nptl_lock_constants.pysym: Likewise.
7394         * nptl/test-cond-printers.c: Likewise.
7395         * nptl/test-cond-printers.py: Likewise.
7396         * nptl/test-condattr-printers.c: Likewise.
7397         * nptl/test-condattr-printers.py: Likewise.
7398         * nptl/test-mutex-printers.c: Likewise.
7399         * nptl/test-mutex-printers.py: Likewise.
7400         * nptl/test-mutexattr-printers.c: Likewise.
7401         * nptl/test-mutexattr-printers.py: Likewise.
7402         * nptl/test-rwlock-printers.c: Likewise.
7403         * nptl/test-rwlock-printers.py: Likewise.
7404         * nptl/test-rwlockattr-printers.c: Likewise.
7405         * nptl/test-rwlockattr-printers.py: Likewise.
7406         * scripts/gen-py-const.awk: Likewise.
7407         * scripts/test_printers_common.py: Likewise.
7408         * scripts/test_printers_exceptions.py: Likewise.
7409
7410 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7411
7412         * scripts/build-many-glibcs.py (Context.__init__): Take strip
7413         argument.
7414         (Glibc.build_glibc): Strip installed shared libraries if
7415         requested.
7416         (get_parser): Add --strip option.
7417         (main): Update Context call.
7418
7419 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7420             Dominik Vogt  <vogt@linux.vnet.ibm.com>
7421
7422         [BZ #20847]
7423         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7424         array bounds for else branch.
7425         (__execvpe): Style fixes.
7426         * posix/tst-vfork3.c (run_script): New function.
7427         (create_script): Likewise.
7428         (do_test): Use run_script internal function.
7429         (do_prepare): Use create_script internal function.
7430
7431 2016-12-07  Andreas Schwab  <schwab@suse.de>
7432
7433         * sysdeps/unix/sysv/linux/x86/elision-conf.h
7434         (__elision_available): Don't declare.
7435         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7436         (__elision_available): Don't define.
7437         (elision_init): Don't set __elision_available.
7438
7439 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7440
7441         [BZ #20940]
7442         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
7443         return Inf for arguments Inf and sNaN.
7444         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7445         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7446         Likewise.
7447         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7448         Likewise.
7449         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7450         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
7451         for arguments Inf and sNaN.  When returning a NaN, compute it by
7452         arithmetic on the arguments.
7453         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
7454         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
7455         arguments.
7456
7457 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
7458
7459         [BZ #20916]
7460         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
7461         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
7462         to compute result.
7463         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7464         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
7465
7466 2016-12-05  Torvald Riegel  <triegel@redhat.com>
7467
7468         * include/atomic.h (__atomic_check_size_ls): New.
7469         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
7470         atomic_store_release): Use it.
7471         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7472         (elision_adapt, ELIDE_LOCK): Use atomics.
7473         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
7474         atomics and improve code comments.
7475         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
7476         (__lll_trylock_elision): Likewise.
7477
7478 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7479
7480         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
7481         programs.
7482
7483 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7484
7485         [BZ #20916]
7486         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
7487         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
7488         arguments to compute result.
7489         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
7490         1 for arguments (sNaN, 0) or (1, sNaN).
7491         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7492         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7493
7494         [BZ #20919]
7495         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
7496         NaN first argument when raised to power 0.
7497         * math/w_pow.c (__pow): Do not check for NaN or zero results from
7498         raising to power zero.
7499         * math/w_powf.c (__powf): Likewise.
7500         * math/w_powl.c (__powl): Likewise.
7501         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
7502         pow (0, 0) or pow (NaN, 0).
7503
7504 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
7505
7506         [BZ #20918]
7507         * configure.ac: Test for static NSS cryptographic libraries and set
7508         libc_cv_static_nss_crypt.
7509         * configure: Regenerate.
7510         * config.make.in (static-nss-crypt): Define.
7511         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
7512         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
7513         (CFLAGS-tst-linkall-static.c): Define.
7514         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
7515         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
7516         ($(objpfx)tst-linkall-static): Define.
7517         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
7518         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
7519
7520 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7521
7522         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
7523         (one-hundred, tst-tls-many-dynamic-modules): Define.
7524         (modules-names): Add $(tst-tls-many-dynamic-modules).
7525         (tst-tls-manydynamic%mod.os): Build with special preprocessor
7526         macros.
7527         (tst-tls-manydynamic): Link against libdl, libpthread.
7528         (tst-tls-manydynamic.out): The test needs the test modules at run
7529         time.
7530         * elf/tst-tls-manydynamic.c: New file.
7531         * elf/tst-tls-manydynamic.h: Likewise.
7532         * elf/tst-tls-manydynamicmod.c: Likewise.
7533
7534 2016-12-02  Florian Weimer  <fweimer@redhat.com>
7535
7536         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
7537         (TLS_DTV_UNALLOCATED): Add.
7538         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
7539         offsets.
7540
7541 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7542
7543         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7544
7545 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
7546
7547         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
7548         Add -fno-optimize-sibling-calls.
7549
7550 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7551
7552         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
7553         New declaration.
7554         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
7555         macro.
7556         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
7557         New macro.
7558         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
7559         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
7560         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
7561         (llogbf): Likewise.
7562         (llogbl): Likewise.
7563         * math/Makefile (gen-libm-calls): Add w_llogbF.
7564         (tests): Add test-fp-llogb-constants.
7565         * math/w_llogb_template.c: New file.  Based on
7566         math/w_ilogb_template.c.
7567         * math/libm-test.inc (llogb_test_data): New array.
7568         (llogb_test): New function.
7569         (main): Call llogb_test.
7570         * math/test-fp-llogb-constants.c: New file.  Based on
7571         math/test-fp-ilogb-constants.c.
7572         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
7573         (do_test): Call check_return_llogb.
7574         * math/test-tgmath.c (NCALLS): Increase to 126.
7575         (F(compile_test)): Call llogb.
7576         (F(llogb)): New function.
7577         * manual/math.texi (Exponents and Logarithms): Document llogb,
7578         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
7579         * manual/libm-err-tab.pl (@all_functions): Add llogb.
7580         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
7581         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
7583         (CFLAGS-nldbl-llogb.c): New variable.
7584         * sysdeps/nacl/libm.abilist: Update.
7585         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7586         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7587         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7588         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7589         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7590         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7591         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7592         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7593         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7594         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7595         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7596         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7598         Likewise.
7599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7600         Likewise.
7601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7602         Likewise.
7603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7604         Likewise.
7605         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7606         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7607         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7608         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7609         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7611         Likewise.
7612         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7613         Likewise.
7614         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7615         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7616         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7617
7618 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7619
7620         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
7621         _Float128 instead of long double.
7622         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
7623
7624         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
7625         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
7626         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
7627         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
7628         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
7629         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
7630         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
7631         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
7632         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
7633         Likewise.
7634
7635 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7636
7637         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
7638         Remove redirection to __strrchr_ppc.
7639
7640 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7641
7642         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7643         (sysdep_routines): Add strcmp_power9.
7644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7645         (strcmp): Add __strcmp_power9 to list of strcmp functions.
7646         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
7647         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7648         (strcmp): Add __strcmp_power9 to ifunc list.
7649         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
7650
7651 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
7652
7653         * bits/fp-logb.h: New file.
7654         * sysdeps/ia64/bits/fp-logb.h: Likewise.
7655         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
7656         * sysdeps/x86/bits/fp-logb.h: Likewise.
7657         * math/Makefile (headers): Add bits/fp-logb.h.
7658         * math/math.h: Include <bits/fp-logb.h>.
7659         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
7660         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
7661         * bits/mathdef.h (FP_ILOGB0): Remove.
7662         (FP_ILOGBNAN): Likewise.
7663         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
7664         (FP_ILOGBNAN): Likewise.
7665         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
7666         (FP_ILOGBNAN): Likewise.
7667         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
7668         (FP_ILOGBNAN): Likewise.
7669         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
7670         (FP_ILOGBNAN): Likewise.
7671         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
7672         (FP_ILOGBNAN): Likewise.
7673         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
7674         (FP_ILOGBNAN): Likewise.
7675         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
7676         (FP_ILOGBNAN): Likewise.
7677         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
7678         (FP_ILOGBNAN): Likewise.
7679         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
7680         (FP_ILOGBNAN): Likewise.
7681
7682         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
7683         time module.
7684         (Context.__init__): Initialize self.logsdir_old.
7685         (Context.run_builds): Handle bot action.
7686         (Context.bot_cycle): Copy logs directory before running builds.
7687         (Context.bot_run_self): Take argument for whether to check
7688         subprocess result.  Flush stdout before running subprocess.
7689         (Context.bot): New function.
7690         (get_parser): Allow bot action.
7691
7692 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
7693
7694         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
7695         Import email.mime.text, email.utils and smtplib modules.
7696         (Context.__init__): Initialize self.bot_config_json.
7697         (Context.run_builds): Handle bot-cycle action.
7698         (Context.load_bot_config_json): New function.
7699         (Context.part_build_old): Likewise.
7700         (Context.bot_cycle): Likewise.
7701         (Context.bot_build_mail): Likewise.
7702         (Context.bot_run_self): Likewise.
7703         (get_parser): Allow bot-cycle action.
7704
7705 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7706
7707         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
7708         Remove redirection to __stpcpy_ppc.
7709
7710 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7711
7712         Remove __libc_memalign from ld.so because it is unused.
7713         * elf/dl-minimal.c: Update comment on the malloc implementation.
7714         (malloc): Renamed from __libc_memalign, replacing the original
7715         malloc implementation.  Replace the align parameter with
7716         MALLOC_ALIGNMENT.
7717         * elf/Versions (ld): Update comment and remove __libc_memalign.
7718         * sysdeps/nacl/ld.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7722         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
7723         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
7724         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
7725         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
7726         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
7727         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7728         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7729         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7730         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7731         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7735         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7736         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7737         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7738         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
7739         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
7740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
7741         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
7742         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
7743         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
7744         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
7745         * sysdeps/generic/localplt.data (ld.so): Likewise.
7746         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7747         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7748         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7749         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7750         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7751         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7752         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7753         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
7754         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7756         (ld.so): Likewise.
7757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7758         (ld.so): Likewise.
7759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7760         Likewise.
7761         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7762         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7763         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
7764         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
7765         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7766
7767 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7768
7769         [BZ #16628]
7770         Implement _dl_catch_error, _dl_signal_error in libc.so.
7771         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
7772         (catch_hook): Define as thread-local or regular variable,
7773         depending on DL_ERROR_BOOTSTRAP.
7774         (CATCH_HOOK): Remove.
7775         (dl_signal_error, _dl_catch_error): Use
7776         catch_hook.  Add hidden definition for libc.
7777         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
7778         for DL_ERROR_BOOTSTRAP only.
7779         * elf/dl-error.c: New file.
7780         * elf/dl-error-minimal.c: Likewise.
7781         * elf/tst-latepthread.c: Likewise.
7782         * elf/tst-latepthreadmod.c: Likewise.
7783         * elf/Makefile (routines): Add dl-error.
7784         (dl-routines): Remove dl-error.
7785         (rtld-routines): Add dl-error-minimal.
7786         [build-shared] (tests): Add tst-latepthread.
7787         (module-names): Add tst-latepthreadmod.
7788         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
7789         symbol.
7790         (tst-latepthreadmod.so): Link against libpthread.
7791         (tst-latepthread): Link against libdbl.
7792         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
7793         _dl_catch_error.
7794         [ld] (GLIBC_PRIVATE): Likewise.
7795         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
7796         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
7797         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
7798         directly.
7799         * elf/dl-tsd.c: Remove file.
7800         * elf/rtld.c (_rtld_global_ro): Remove initializers for
7801         _dl_catch_error, _dl_signal_error.
7802         (_dl_initial_error_catch_tsd): Remove definition.
7803         (do_preload): Remove initialization of dl_error_catch_tsd.
7804         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
7805         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
7806         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7807         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7808         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
7809         set dl_error_catch_tsd.
7810         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7811         _dl_error_catch_tsd member.
7812         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
7813         members.
7814         (_dl_initial_error_catch_tsd): Remove declaration.
7815         (_dl_dprintf): Provide definition for use outside of ld.so.
7816         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
7817         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
7818         prototype for libc.
7819         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
7820         _dl_catch_error.
7821         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7822         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7823         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7824         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7825         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7826         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7827         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7828         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7829         Likewise.
7830         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7832         (ld.so): Likewise.
7833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7834         (ld.so): Likewise.
7835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7836         Likewise.
7837         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7838         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7839         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7840         Likewise.
7841         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7842         Likewise.
7843         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7844
7845 2016-11-30  Florian Weimer  <fweimer@redhat.com>
7846
7847         [BZ #4099]
7848         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
7849         _IO_BUFSIZ (8192).
7850
7851 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
7852
7853         * PROJECTS: Remove file.
7854
7855 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7856
7857         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
7858
7859 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
7860             Steve Ellcey  <sellcey@caviumnetworks.com>
7861
7862         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
7863         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
7864         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
7865         fxstatat.
7866         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
7867         lxstat.
7868         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
7869         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
7870         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
7871         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
7872         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
7873         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
7874         __xstat.
7875
7876 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7877
7878         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
7879         Define.
7880         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
7881         definition.
7882
7883 2016-11-29  Florian Weimer  <fweimer@redhat.com>
7884
7885         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
7886         version and turn into strong alias.  Remove compat symbol.
7887
7888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7889         (__longjmp): Remove.
7890
7891 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * bits/fp-fast.h: New file.
7894         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
7895         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
7896         * math/Makefile (headers): Add bits/fp-fast.h.
7897         * math/math.h: Include <bits/fp-fast.h>.
7898         * bits/mathdef.h (FP_FAST_FMA): Remove.
7899         (FP_FAST_FMAF): Likewise.
7900         (FP_FAST_FMAL): Likewise.
7901         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
7902         (FP_FAST_FMAF): Likewise.
7903         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
7904         (FP_FAST_FMAF): Likewise.
7905         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
7906         (FP_FAST_FMAF): Likewise.
7907         (FP_FAST_FMAL): Likewise.
7908         * sysdeps/arm/bits/mathdef.h: Remove file.
7909         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
7910         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7911         * sysdeps/tile/bits/mathdef.h: Likewise.
7912
7913 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
7914
7915         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
7916         * math/w_ilogb.c: Remove.
7917         * math/w_ilogbf.c: Likewise.
7918         * math/w_ilogbl.c: Likewise.
7919         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
7920         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
7921         * math/Makefile (gen-libm-calls): Add w_ilogbF.
7922         (libm-calls): Remove w_ilogbF.
7923         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
7924         (LDOUBLE_ilogbl_libm_version): New macro.
7925
7926         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
7927
7928         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
7929         [!__STRICT_ANSI__ && !__cplusplus].
7930
7931 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
7932
7933         [BZ #20750]
7934         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
7935         of PIC.
7936
7937 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
7938             Yury Norov  <ynorov@caviumnetworks.com>
7939             Steve Ellcey  <sellcey@caviumnetworks.com>
7940
7941         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
7942         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
7943         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
7944         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
7945         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
7946         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
7947         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
7948         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
7949         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
7950         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
7951         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
7952         to get correct reg name for ILP32.
7953         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
7954         (RELA_SIZE): New Macro.
7955         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
7956         to support ILP32.
7957         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
7958         cast for ILP32 mode.
7959         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
7960         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
7961         * sysdeps/aarch64/memset.S (__memset): Ditto.
7962         * sysdeps/aarch64/strchr.S (strchr): Ditto.
7963         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
7964         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
7965         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
7966         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
7967         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
7968         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
7969         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
7970         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
7971         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
7972         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
7973         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
7974         change PTR_MANGLE call to use register numbers instead of names.
7975         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
7976         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
7977         ILP32 mode, change PTR_MANGLE calls to use register numbers.
7978         * sysdeps/aarch64/start.S (_start): Ditto.
7979         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
7980         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
7981         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
7982         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
7983         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
7984         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
7985         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
7986         Make defined values dependent on __ILP32__.
7987         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
7988         (sem_t): Change __align type.
7989         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
7990         PTR_SIZE): New Macros.
7991         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
7992         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
7993         Set when in ILP32 mode.
7994         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
7995         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
7996         Set elf flags for ILP32.
7997         (add_system_dir): Set ILP32 library directories.
7998         * sysdeps/unix/sysv/linux/aarch64/init-first.c
7999         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8000         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8001         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8002         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8003         New Macros.
8004         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8005
8006 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8007
8008         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8009         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8010         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8011
8012 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8013
8014         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8015         <asm/cachectl.h>.
8016
8017 2016-11-27  Zack Weinberg  <zackw@panix.com>
8018
8019         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8020         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8021
8022 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8023
8024         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8025         error_t to fix usage in C++ programs.
8026
8027 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8028
8029         * scripts/build-many-glibcs.py: Import datetime module.
8030         (Context.__init__): Load JSON build state.  Initialize list of
8031         status logs.
8032         (Context.run_builds): Update saved build state.
8033         (Context.add_makefile_cmdlist): Update list of status logs.
8034         (Context.load_build_state_json): New function.
8035         (Context.store_build_state_json): Likewise.
8036         (Context.clear_last_build_state): Likewise.
8037         (Context.update_build_state): Likewise.
8038         (CommandList.status_logs): Likewise.
8039
8040 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8043         script being executed.
8044         (Context.get_script_text): New function.
8045         (Context.exec_self): Likewise.
8046         (Context.checkout): Re-exec script if changed by checkout process.
8047
8048 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8049
8050         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8051         (setpayloadsig): New declaration.
8052         * math/Versions (setpayloadsig): New libm symbol at version
8053         GLIBC_2.25.
8054         (setpayloadsigf): Likewise.
8055         (setpayloadsigl): Likewise.
8056         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8057         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8058         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8059         (setpayloadsig_test_data): New array.
8060         (setpayloadsig_test): New function.
8061         (main): Call setpayloadsig_test.
8062         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8063         setpayloadsigf and setpayloadsigl.
8064         * manual/libm-err-tab.pl: Update comment on interfaces without
8065         ulps tabulated.
8066         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8067         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8068         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8069         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8070         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8071         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8072         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8073         setpayloadsig.
8074         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8075         * sysdeps/nacl/libm.abilist: Update.
8076         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8077         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8078         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8079         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8080         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8081         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8082         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8083         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8084         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8085         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8086         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8087         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8089         Likewise.
8090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8091         Likewise.
8092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8093         Likewise.
8094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8095         Likewise.
8096         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8097         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8098         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8099         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8100         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8102         Likewise.
8103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8104         Likewise.
8105         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8106         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8107         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8108
8109         * scripts/build-many-glibcs.py: Import json module.
8110         (Context.__init__): Take replace_sources argument.  Load
8111         versions.json.
8112         (Context.load_versions_json): New function.
8113         (Context.store_json): Likewise.
8114         (Context.store_versions_json): Likewise.
8115         (Context.set_component_version): Likewise.
8116         (Context.checkout): Update versions.json.  Check for and handle
8117         changes of version.  Prefer previously explicitly specified
8118         version to default version.
8119         (Context.checkout_vcs): Return a revision identifier.
8120         (Context.git_checkout): Likewise.
8121         (Context.gcc_checkout): Likewise.
8122         (get_parser): Add --replace-sources option.
8123         (main): Pass replace_sources argument to Context call.
8124
8125 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8126
8127         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8128         * nptl/allocatestack.c (allocate_stack): Likewise.
8129         (__reclaim_stacks): Likewise.
8130         (setxid_signal_thread): Obtain pid through syscall.
8131         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8132         (sighandle_setxid): Likewise.
8133         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8134         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8135         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8136         Likewise.
8137         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8138         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8139         comment.
8140         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8141         * nptl/descr.h (struct pthread): Change comment about pid value.
8142         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8143         pid assert.
8144         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8145         Do not set pid value.
8146         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8147         pid cache check.
8148         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8149         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8150         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8151         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8152         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8153         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8154         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8155         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8156         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8157         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8158         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8159         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8160         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8161         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8162         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8163         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8164         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8165         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8166         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8167         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8168         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8169         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8170         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8171         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8172         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8175         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8176         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8177         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8178         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8179         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8180         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8181         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8182         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8183         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8184         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8185         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8186         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8187         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8188         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8189         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8190         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8193         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8194         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8195         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8196         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8197         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8198         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8199         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8200         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8201         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8202         struct access.
8203         (clone_test): Remove function.
8204         (do_test): Rewrite to take in consideration pid is not cached anymore.
8205
8206 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8207
8208         * bits/flt-eval-method.h: New file.
8209         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8210         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8211         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8212         * math/Makefile (headers): Add bits/flt-eval-method.h.
8213         * math/math.h: Include <bits/flt-eval-method.h>.
8214         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8215         [__USE_ISOC99] (double_t): Likewise.
8216         * bits/mathdef.h (float_t): Remove.
8217         (double_t): Likewise.
8218         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8219         (double_t): Likewise.
8220         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8221         (double_t): Likewise.
8222         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8223         (double_t): Likewise.
8224         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8225         (double_t): Likewise.
8226         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8227         (double_t): Likewise.
8228         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8229         (double_t): Likewise.
8230         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8231         (double_t): Likewise.
8232         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8233         (double_t): Likewise.
8234         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8235         (double_t): Likewise.
8236         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8237         (double_t): Likewise.
8238         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8239         (double_t): Likewise.
8240         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8241         (double_t): Likewise.
8242         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8243         (double_t): Likewise.
8244
8245 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8246
8247         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8248         instead of PIC.
8249
8250 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8251
8252         [BZ #20859]
8253         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8254         (-0x7fffffff) instead of 0x80000001.
8255         * math/test-fp-ilogb-constants.c: New file.
8256         * math/Makefile (tests): Add test-fp-ilogb-constants.
8257
8258 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8259
8260         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8261         (_init): Use it in place of hardcoded R_MIPS_JALR.
8262         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8263         (_init): Use it in place of hardcoded R_MIPS_JALR.
8264         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8265         (_init): Use it in place of hardcoded R_MIPS_JALR.
8266
8267 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8268
8269         [BZ #20787]
8270         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8271         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8272         (double_t): Do not define to double if [__x86_64__] when
8273         __FLT_EVAL_METHOD__ is nonzero.
8274         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8275         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8276         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8277         test-flt-eval-method-387 and test-flt-eval-method-sse.
8278         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8279         variable.
8280         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8281
8282 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8283
8284         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8285         use of -fno-isolate-erroneous-paths options for tilepro.
8286
8287 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8288
8289         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8290         structure initialization is no longer needed.
8291
8292 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8293
8294         [BZ #20855]
8295         * bits/mathdef.h (float_t): Define to float.
8296         * math/test-flt-eval-method.c: New file.
8297         * math/Makefile (tests): Add test-flt-eval-method.
8298         (CFLAGS-test-flt-eval-method.c): New variable.
8299
8300 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8301
8302         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8303         and __fstatfs.  Make them aliases of __fstatfs64 if
8304         STATFS_IS_STATFS64 is set to non-zero.
8305         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8306         and __statfs64.
8307         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
8308         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
8309         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
8310         for __statfs and statfs.
8311         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
8312         to 0.
8313         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
8314         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
8315         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
8316         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8317         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8318         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
8321         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
8322         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8323         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
8324         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
8325
8326 2016-11-22  Andreas Schwab  <schwab@suse.de>
8327
8328         * misc/mkstemp.c: Include <fcntl.h>.
8329         * misc/mkstemps.c: Likewise.
8330         * misc/mkostemp.c: Likewise.
8331         * misc/mkostemps.c: Likewise.
8332
8333 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
8334
8335         [BZ #20847]
8336         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8337         array bounds.
8338         (__execvpe): Likewise.
8339
8340 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
8341
8342         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
8343         -fno-isolate-erroneous-paths options for tilepro.
8344
8345 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
8346
8347         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
8348         to 0 when in 32 bit mode.
8349         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
8350         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8351         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8352         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8354         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8355         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
8356         XSTAT_IS_XSTAT64 test.
8357         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
8358         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
8359         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
8360         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
8361         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
8362         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
8363         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
8364         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
8365         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
8366         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
8367         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
8368
8369 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
8370
8371         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8372         (setpayload): New declaration.
8373         * math/Versions (setpayload): New libm symbol at version
8374         GLIBC_2.25.
8375         (setpayloadf): Likewise.
8376         (setpayloadl): Likewise.
8377         * math/Makefile (libm-calls): Add s_setpayloadF.
8378         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
8379         test_Ff_b1_data.
8380         (RUN_TEST_Ff_b1): New macro.
8381         (RUN_TEST_LOOP_Ff_b1): Likewise.
8382         (canonicalize_test_data): Update type.
8383         (setpayload_test_data): New array.
8384         (setpayload_test): New function.
8385         (main): Call setpayload_test.
8386         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
8387         setpayloadf and setpayloadl.
8388         * manual/libm-err-tab.pl: Update comment on interfaces without
8389         ulps tabulated.
8390         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
8391         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
8392         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
8393         Likewise.
8394         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
8395         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
8396         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
8397         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
8398         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
8399         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
8400         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
8401         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
8402         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
8403         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8404         setpayload.
8405         (CFLAGS-nldbl-setpayload.c): New variable.
8406         * sysdeps/nacl/libm.abilist: Update.
8407         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8408         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8409         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8410         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8411         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8412         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8413         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8414         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8415         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8416         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8417         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8418         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8420         Likewise.
8421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8422         Likewise.
8423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8424         Likewise.
8425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8426         Likewise.
8427         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8428         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8429         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8430         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8431         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8432         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8433         Likewise.
8434         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8435         Likewise.
8436         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8437         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8438         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8439
8440 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8441
8442         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
8443         * include/unistd.h: Extend comment about __access_noerrno return
8444         semantics.
8445         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
8446         (access_common): Correct typo for EACCES.
8447
8448 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
8449
8450         * sysdeps/tile/math-tests.h: New file.
8451
8452         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
8453         (__old_set_dataplane): Rename from set_dataplane and make a
8454         compatibility symbol.
8455         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
8456         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
8457         sys/dataplane.h.
8458
8459 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
8460
8461         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
8462         script quote words in command output to log suitably for input to
8463         the shell.
8464
8465 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
8466             Maciej W. Rozycki  <macro@imgtec.com>
8467
8468         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
8469         `.Lno_weak_fn' label.
8470         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
8471         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
8472
8473 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8474             Yury Norov  <ynorov@caviumnetworks.com>
8475
8476         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
8477         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
8478         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8479         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
8480         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8481         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
8482         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8483         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8484         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8485         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
8486         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8487         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
8488         (sysdep_routines): Remove oldgetrlimit64.
8489         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
8490         (sysdep_routines): Likewise.
8491         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
8492         (sysdep_routines): Likewise.
8493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8494         [$(subdir) = resource] (sysdep_routines): Likewise.
8495         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
8496         [$(subdir) = resource] (sysdep_routines): Likewise.
8497         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
8498         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
8499         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
8500         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
8501         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
8502         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
8503         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
8504         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
8505         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
8506         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
8507         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
8508         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
8509         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
8510         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
8511         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
8512         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
8513         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
8514         setrlimit and getrlimit.
8515         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8516         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
8517         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
8518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8520         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
8521         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
8522         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8523         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8524         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
8525         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
8526         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
8527         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
8528         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
8529         (__old_getrlimit64): Add compatibility symbol.
8530         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
8531
8532 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
8533
8534         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
8535         newly built gmp, mpfr and mpc.
8536
8537         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
8538
8539 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8540
8541         * conform/Makefile (linknamespace-libs): Rename to
8542         linknamespace-libs-thr.
8543         (linknamespace-libs-posix): New variable.
8544         (linknamespace-libs-xsi): Likewise.
8545         (linknamespace-libs-XPG3): Include libcrypt.a.
8546         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
8547         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
8548         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
8549         (linknamespace-libs-XOPEN2K): Likewise.
8550         (linknamespace-libs-XOPEN2K8): Likewise.
8551         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
8552
8553         [BZ #20829]
8554         * stdio-common/Versions (__snprintf): Add to version
8555         GLIBC_PRIVATE.
8556         * include/stdio.h (__snprintf): Use libc_hidden_proto.
8557         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
8558         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
8559         of snprintf.
8560         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8561
8562 2016-11-16  Zack Weinberg  <zackw@panix.com>
8563
8564         * string/string.h: Remove obsolete comment stating that
8565         strcoll_l and strxfrm_l have not yet been standardized.
8566
8567 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8568
8569         * hurd/hurd.h (__hurd_fail_noerrno): New function.
8570         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
8571         __access_noerrno.
8572         * io/access.c (__access_noerrno): New function.
8573         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
8574         (hurd_fail_seterrno): Likewise.
8575         (access_common): Likewise.
8576         (__access_noerrno): Likewise.
8577         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
8578         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
8579         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
8580         macro.
8581
8582 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
8583
8584         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
8585         Only declare fpregs if [__SH_FPU_ANY__].
8586
8587 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
8588
8589         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
8590         Make code unconditional.
8591         [!(__SH4__ || __SH4A__)]: Remove conditional code.
8592
8593 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
8594
8595         * manual/sysinfo.texi (S_APPEND): Delete.
8596         (S_IMMUTABLE): Likewise.
8597
8598 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
8599             Magnus Granberg  <zorry@gentoo.org>
8600             Mike Frysinger  <vapier@gentoo.org>
8601
8602         [BZ #20662]
8603         * configure.ac (libc_cv_predef_stack_protector): Also check for
8604         __stack_chk_fail_local symbols.
8605         * configure: Regenerated.
8606
8607 2016-11-15  Florian Weimer  <fweimer@redhat.com>
8608
8609         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8610         (libc_hidden_def): Remove redefinition.
8611         (__sigsetjmp): Add hidden definition.
8612         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
8613         (libc_hidden_def): Remove redefinition.
8614         (__sigsetjmp): Add hidden definition.
8615
8616 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
8617
8618         * scripts/build-many-glibcs.py (os.path): Do not import.
8619         (Context): Inherit explicitly from object.  Remove blank line
8620         between class and docstring.
8621         (Config): Likewise.
8622         (Glibc): Likewise.
8623         (Command): Likewise.
8624         (CommandList): Likewise.
8625         (Context.write_files): Store chmod mode in a variable.
8626
8627         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
8628         LIBC_SLIBDIR_RTLDDIR for tilegx32.
8629         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
8630
8631 2016-11-14  Zack Weinberg  <zackw@panix.com>
8632
8633         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
8634         creating or re-creating it.
8635
8636         * string/bits/string2.h: Fix typo in comment.
8637
8638 2016-11-14  Zack Weinberg  <zackw@panix.com>
8639
8640         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
8641         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
8642         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
8643         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
8644         of redirected function names.
8645
8646         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
8647         as well.  Document that MESSAGE must be a single string literal.
8648
8649 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
8650
8651         * scripts/build-many-glibcs.py: New file.
8652
8653         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
8654         (do_test): Disable -Wmaybe-uninitialized around uses of
8655         except_mask.
8656
8657         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
8658
8659 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
8660
8661         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
8662         (atomic_store_release): Provide tilepro-specific implementations.
8663
8664 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
8665
8666         * math/math.h (__MATH_TG): New macro.
8667         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
8668         [__USE_ISOC99] (signbit): Likewise.
8669         [__USE_ISOC99] (isfinite): Likewise.
8670         [__USE_ISOC99] (isnan): Likewise.
8671         [__USE_ISOC99] (isinf): Likewise.
8672         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
8673         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
8674         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
8675         __MATH_TG and __MATH_EVAL_FMT2.
8676         * sysdeps/generic/math_private.h (fabs_tg): Define using
8677         __MATH_TG.
8678         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
8679         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
8680         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
8681         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
8682         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
8683         macro.
8684         (__iscanonical): Likewise.
8685         (iscanonical): Define using __MATH_TG.
8686
8687 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8688
8689         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
8690         guards.
8691
8692         * sysdeps/unix/sysv/linux/access.c: New file.
8693         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
8694
8695 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
8696
8697         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
8698         and __WORDSIZE32_PTRDIFF_LONG.
8699
8700 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8701
8702         * sysdeps/aarch64/libm-test-ulps: Regenerated.
8703
8704 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8705
8706         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
8707         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
8708         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
8709         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
8710         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
8711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
8712         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
8713         * sysdeps/unix/sysv/linux/truncate.c: New file.
8714         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
8715         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8716         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
8717         Remove.
8718         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
8719         Likewise.
8720
8721         * posix/tst-truncate-common.c: New file.
8722         * posix/tst-truncate.c: Use tst-truncate-common.c.
8723         * posix/tst-truncate64.c: Likewise and add LFS tests.
8724         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
8725         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
8726         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
8727         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
8728         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
8729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
8730         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
8731         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
8732         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
8733         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
8734         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
8735         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
8736         Remove.
8737         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
8738         Likewise.
8739
8740 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
8741
8742         [BZ #20790]
8743         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
8744         to MAXLINESIZE.
8745         * sunrpc/bug20790.x: New file.
8746         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
8747         variable.
8748         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
8749         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
8750
8751         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
8752
8753         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
8754
8755         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
8756         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
8757         calloc, realloc, free, memalign and __libc_memalign rather than
8758         making them optional.
8759
8760         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
8761         for libc.so.
8762
8763 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8764
8765         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
8766         ptw-lseek64.
8767         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
8768         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
8769         Likewise.
8770         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
8771         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
8772         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
8773         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
8774         * sysdeps/unix/sysv/linux/lseek.c: New file.
8775         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
8776         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
8777         __libc_lseek64 from auto-generation.
8778         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8779         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
8780
8781 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8782
8783         * nptl/tst-basic1.c (tf, do_test): Use write_message.
8784         * nptl/tst-cleanup1.c (do_test): Likewise.
8785         * nptl/tst-cleanup3.c (do_test): Likewise.
8786         * nptl/tst-key1.c (do_test): Likewise.
8787         * nptl/tst-key2.c (tf, do_test): Likewise.
8788         * nptl/tst-key3.c (tf, do_test): Likewise.
8789         * nptl/tst-stdio1.c (do_test): Likewise.
8790         * nptl/tst-stdio2.c (do_test): Likewise.
8791
8792         * nptl/tst-kill3.c (handler): Use write_message in place of write.
8793         * nptl/tst-kill6.c (handler): Likewise.
8794         * nptl/tst-tls2.c (CB): Likewise.
8795         * nptl/tst-tls3.c (CB): Likewise.
8796
8797 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
8798
8799         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
8800
8801 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
8802             Steve Ellcey  <sellcey@caviumnetworks.com>
8803
8804         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
8805           __ASSUME_ST_INO_64_BIT as 0
8806         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
8807         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
8808           over the code where __ASSUME_ST_INO_64_BIT is used.
8809         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8810         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
8811         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8812
8813 2016-11-07  Florian Weimer  <fweimer@redhat.com>
8814
8815         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8816         Document ABI exposure of the __kind offset.
8817         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8818         Mention reason for the __kind offset exposure in the ABI.
8819         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8820         Likewise.
8821         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8822         Likewise.
8823         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8824         Likewise.
8825         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
8826         (struct __pthread_mutex_s): Likewise.
8827         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8828         Likewise.
8829         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8830         Likewise.
8831         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8832         Likewise.
8833         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8834         Likewise.
8835         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8836         Likewise.
8837         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
8838         Likewise.
8839         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
8840         (struct __pthread_mutex_s): Likewise.
8841         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
8842         (struct __pthread_mutex_s): Likewise.
8843         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
8844         Likewise.
8845
8846 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
8847
8848         * test-skeleton.c: Document do_test usage.
8849
8850 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
8851
8852         * iconv/gconv.h (__gconv_info): Define __data element using a
8853         zero-length array.
8854
8855 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
8856
8857         * math/test-tgmath2.c: Split up test function.
8858
8859 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8860
8861         * Rules (tests-expected): New variable, depending on
8862         $(run-built-tests).
8863         (tests): Pass $(tests-expected) to merge-test-results.sh, not
8864         $(tests).
8865
8866         * Rules [$(run-built-tests) = no] (tests): Do not depend on
8867         $(tests-unsupported).
8868
8869 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8870
8871         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
8872         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
8873
8874 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8875
8876         [BZ #20768]
8877         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
8878         __fegetenv instead of fegetenv.
8879
8880         [BZ #14139]
8881         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
8882         (find_files): Obtain platform name from libm-test-ulps-name and
8883         store in %pplatforms.
8884         (canonicalize_platform): Remove.
8885         (print_platforms): Use $pplatforms directly.
8886         (by_platforms): Do not allow for platforms missing from
8887         %pplatforms.
8888         * sysdeps/aarch64/libm-test-ulps-name: New file.
8889         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
8890         * sysdeps/arm/libm-test-ulps-name: Likewise.
8891         * sysdeps/generic/libm-test-ulps-name: Likewise.
8892         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
8893         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
8894         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
8895         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
8896         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
8897         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
8898         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
8899         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
8900         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
8901         * sysdeps/nios2/libm-test-ulps-name: Likewise.
8902         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
8903         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
8904         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
8905         * sysdeps/sh/libm-test-ulps-name: Likewise.
8906         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
8907         * sysdeps/tile/libm-test-ulps-name: Likewise.
8908         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
8909
8910         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
8911
8912         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
8913         (test-xfail-check-execstack): New variable.
8914
8915         * sysdeps/mips/localplt.data: New file.
8916
8917 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
8918             Steve Ellcey  <sellcey@caviumnetworks.com>
8919
8920         * bits/wordsize.h: Add documentation.
8921         * sysdeps/aarch64/bits/wordsize.h : New file
8922         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
8923         definitions.
8924         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
8925         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
8926         with #if instead of #ifdef.
8927         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
8928         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
8929         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
8930         Add or change defines.
8931         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
8932         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
8933         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
8934         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
8935         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
8936         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
8937         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
8938         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
8939         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
8940         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
8941         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
8942         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
8943         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
8944         * sysdeps/x86/bits/wordsize.h: Likewise.
8945
8946 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
8947             Kevin Petit  <kevin.petit@arm.com>
8948
8949         * sysdeps/aarch64/memchr.S (__memchr): New file.
8950
8951 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
8952
8953         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
8954
8955 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
8956
8957         [BZ #19398]
8958         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
8959         $(linknamespace-symlists-tests).
8960
8961 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
8962
8963         * time/tst-strptime2.c: Ignore -Wformat-length warning.
8964
8965 2016-11-02  Florian Weimer  <fweimer@redhat.com>
8966             Carlos O'Donell  <carlos@redhat.com>
8967
8968         [Bug #20729]
8969         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
8970         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
8971         for -Os related change.
8972
8973 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
8974
8975         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
8976
8977 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
8978
8979         [BZ #19673]
8980         * manual/math.texi (Exponents and Logarithms): Correct description
8981         of clog10.
8982
8983 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
8984
8985         [Bz #20729]
8986         * locale/weight.h: Include libc-internal.h.
8987         * locale/weightwc.h: Likewise.
8988         * nptl/nptl_dbP.h: Likewise.
8989
8990 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
8991
8992         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
8993         when it is MACH_PORT_NULL.
8994
8995 2016-10-31  Andreas Schwab  <schwab@suse.de>
8996
8997         [BZ #20707]
8998         * posix/glob.c (glob): Initialize pglob before checking for
8999         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9000         valid brace expression despite GLOB_BRACE.
9001         * posix/globtest.sh: Test it.
9002
9003 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9004
9005         [BZ #20729]
9006         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9007         Define.
9008         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9009         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9010         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9011         for seq2.back_us and seq1.back_us only for -Os compiles.
9012         * locale/weightwc.h (findix): Likewise.
9013         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9014         DB_GET_FIELD_ADDRESS only for -Os compiles.
9015         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9016         for slen only for -Os compiles.
9017         * string/strcoll_l.c (get_next_seq): Ignore
9018         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9019         for -Os compiles.
9020
9021         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9022         * include/crypt.h: New file.
9023
9024 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9025
9026         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9027         from test-skeleton.c.
9028         (statclass): Replace calls to write with calls to write_message.
9029
9030 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9031
9032         * math/math.h
9033         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9034         New macro.
9035         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9036         Likewise.
9037         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9038         Likewise.
9039         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9040         SNANL.
9041         * math/test-double.h (snan_value_MACRO): New macro.
9042         * math/test-float.h (snan_value_MACRO): Likewise.
9043         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9044         * math/libm-test.inc (issignaling_test_data): Add tests of
9045         snan_value_MACRO.
9046
9047 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9048
9049         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9050         behavior when eliding a lock not held by the current thread.
9051         * sysdeps/powerpc/nptl/elide.h: Likewise.
9052
9053 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9054
9055         [BZ #20728]
9056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9057         branch to _exit() by a function call.
9058
9059 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9060
9061         * malloc/malloc.c: Update chunk layout comments.
9062         (chunk_main_arena): Update comment.
9063
9064 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9065
9066         * crypt/sha256.c, crypt/sha256-block.c,
9067         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9068         sha256_process_block to __sha256_process_block.
9069         * crypt/sha512.c, crypt/sha512-block.c,
9070         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9071         sha512_process_block to __sha512_process_block.
9072
9073 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9074
9075         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9076
9077         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9078
9079 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9080
9081         [BZ #20019]
9082         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9083         definition in unrelocated shared library.
9084         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9085
9086 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9087
9088         [BZ #20729]
9089         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9090         * sysdeps/unix/sysv/linux/i386/Makefile
9091         (uses-6-syscall-arguments): Define.
9092         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9093         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9094         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9095         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9096         Likewise.
9097         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9098         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9099         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9100         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9101         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9102         (CFLAGS-fallocate64.os): Likewise.
9103         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9104         (CFLAGS-pthread_rwlock_timedrdlock.os)
9105         (CFLAGS-pthread_rwlock_timedwrlock.o)
9106         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9107         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9108         (CFLAGS-sem_timedwait.os): Likewise.
9109
9110 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9111
9112         * elf/tst-linkall-static.c: New file.
9113         * elf/Makefile (tests-static): Add tst-linkall-static.
9114         (tst-linkall-static): Link against static libraries.
9115
9116 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9117
9118         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9119         mmaped chunks.
9120
9121 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9122
9123         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9124         members to mchunk_prev_size, mchunk_size.
9125         (chunk_main_arena): Reverse sense and rename from
9126         chunk_non_main_arena.
9127         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9128         mchunk_size instead of size.
9129         (set_non_main_arena): Define.
9130         (chunksize): Use chunksize_nomask instead of direct member access.
9131         (chunksize_nomask): Define.
9132         (next_chunk): Use chunksize instead of direct member access.
9133         (prev_size, set_prev_size): Define.
9134         (prev_chunk): Use prev_size instead of direct member access.
9135         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9136         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9137         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9138         (mchunk_prev_size, mchunk_size): Poison tokens.
9139         (unlink): Use chunksize_nomask, prev_size accessors.
9140         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9141         (do_check_free_chunk): Use prev_size accessor.
9142         (sysmalloc): Use set_prev_size, set_head accessors.
9143         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9144         (__libc_free): Use chunksize_nomask accessor.
9145         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9146         chunk_main_arena accessors.
9147         (_int_free): Use chunksize_nomask, prev_size accessors.
9148         (malloc_consolidate): Use chunksize, prev_size accessors.
9149         (_int_realloc): Use chunksize_nomask accessor.
9150         (_int_memalign): Use set_prev_size accessor.
9151         (__malloc_info): Use chunksize_nomask accessor.
9152         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9153         accessors.
9154         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9155         (heap_trim): Use chunksize_nomask, prev_size accessors.
9156
9157 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9158
9159         [BZ #19380]
9160         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9161         for inexact results.
9162         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9163         of inexact result where mpfr_subnormalize is the only inexact
9164         step.
9165         * stdlib/tst-strtod-round-data.h: Regenerated.
9166         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9167         Define to 0.
9168         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9169
9170 2016-10-27  David S. Miller  <davem@davemloft.net>
9171
9172         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9173
9174 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9175
9176         * malloc/malloc.c (do_set_mallopt_check): New function.
9177         (do_set_mmap_threshold): Likewise.
9178         (do_set_mmaps_max): Likewise.
9179         (do_set_top_pad): Likewise.
9180         (do_set_perturb_byte): Likewise.
9181         (do_set_trim_threshold): Likewise.
9182         (do_set_arena_max): Likewise.
9183         (do_set_arena_test): Likewise.
9184         (__libc_mallopt): Use them.
9185
9186 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9187
9188         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9189         (canonicalize): New declaration.
9190         * math/Versions (canonicalize): New libm symbol at version
9191         GLIBC_2.25.
9192         (canonicalizef): Likewise.
9193         (canonicalizel): Likewise.
9194         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9195         * math/s_canonicalize_template.c: New file.
9196         * math/libm-test.inc: Update comment on functions tested and
9197         testing of NaN payloads.
9198         (TEST_NAN_PAYLOAD): New macro.
9199         (NO_TEST_INLINE): Update value.
9200         (XFAIL_TEST): Likewise.
9201         (ERRNO_UNCHANGED): Likewise.
9202         (ERRNO_EDOM): Likewise.
9203         (ERRNO_ERANGE): Likewise.
9204         (IGNORE_RESULT): Likewise.
9205         (NON_FINITE): Likewise.
9206         (TEST_SNAN): Likewise.
9207         (NO_TEST_MATHVEC): Likewise.
9208         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9209         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9210         (struct test_Ffp_b1_data): New type.
9211         (RUN_TEST_Ffp_b1): New macro.
9212         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9213         (canonicalize_test_data): New array.
9214         (canonicalize_test): New function.
9215         (main): Call canonicalize_test.
9216         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9217         canonicalizef and canonicalizel.
9218         * manual/libm-err-tab.pl: Update comment on interfaces without
9219         ulps tabulated.
9220         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9221         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9222         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9223         canonicalize.
9224         (CFLAGS-nldbl-canonicalize.c): New variable.
9225         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9226         to ...
9227         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9228         ... here.
9229         (do_test): Also test canonicalizel.
9230         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9231         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9232         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9233         file.
9234         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9235         Use libm_hidden_def.
9236         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9237         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9238         (do_test): Also test canonicalizel.
9239         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9240         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9241         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9242         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9243         libm_hidden_def.
9244         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9245         macro.
9246         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9247         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9248         * sysdeps/nacl/libm.abilist: Update.
9249         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9250         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9251         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9252         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9253         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9254         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9255         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9256         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9257         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9258         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9259         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9260         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9262         Likewise.
9263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9264         Likewise.
9265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9266         Likewise.
9267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9268         Likewise.
9269         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9270         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9271         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9272         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9273         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9275         Likewise.
9276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9277         Likewise.
9278         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9279         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9280         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9281
9282         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9283         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9284         getpayload.
9285         (CFLAGS-nldbl-getpayload.c): New variable.
9286
9287 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9288
9289         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9290         integer from the format string.
9291
9292 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9293
9294         [BZ #19473]
9295         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9296         declarations.
9297         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9298         weak aliases.
9299         * malloc/hooks.c (__malloc_get_state): Remove definition.
9300         (malloc_get_state): New stub implementation as
9301         compatibility symbol.
9302         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9303         compat symbol.
9304         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9305         malloc_set_state.
9306         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
9307
9308 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9309
9310         * iconvdata/iso646.c (enum variant): Drop illegal_var.
9311         (names): Turn into concatenation of strings.
9312         (gconv_init): Adapt iteration over names.
9313
9314 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9315
9316         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
9317         make const.
9318         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
9319         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
9320         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
9321         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
9322         character in sbconv.
9323         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
9324         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
9325         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
9326
9327 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9328
9329         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
9330
9331         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
9332         (M_TRIM_THRESHOLD): Likewise.
9333
9334         * manual/memory.texi (M_ARENA_TEST): Add documentation.
9335         (M_ARENA_MAX): Likewise.
9336         * malloc/malloc.c: Remove obsolete comment.
9337
9338         * manual/memory.texi: Add environment variable alternatives to
9339         setting mallopt parameters.
9340
9341 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
9342
9343         * include/atomic.h
9344         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
9345         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
9346
9347 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9348
9349         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
9350         * stdlib/tst-strfrom.h: New file.
9351         * stdlib/tst-strfrom.c: New file.
9352         * stdlib/tst-strfrom-locale.c: New file.
9353
9354         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
9355         * stdlib/bug-strtod2.c: Likewise.
9356         * stdlib/tst-strtod-round-skeleton.c: Likewise.
9357         * stdlib/tst-strtod6.c: Likewise.
9358         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
9359
9360 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9361
9362         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
9363         * manual/arith.texi: Document strfromd, strfromf, strfroml.
9364         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
9365         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
9366         * stdlib/stdlib.h (strfromd): New declaration.
9367         (strfromf): Likewise.
9368         (strfroml): Likewise.
9369         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
9370         strfrom.
9371         * stdlib/strfromd.c: New file.
9372         * stdlib/strfromf.c: Likewise.
9373         * stdlib/strfroml.c: Likewise.
9374         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
9375         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
9376         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
9377         * sysdeps/arm/nacl/libc.abilist: Update.
9378         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9379         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9380         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9381         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9382         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9383         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9384         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9385         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9386         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9387         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9388         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9389         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9390         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9391         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9396         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9397         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9398         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9399         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9400         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9403         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9404         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9405         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9406
9407 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
9410         instead of cmpli.
9411         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
9412         instead of cmpli.
9413
9414 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
9415
9416         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
9417         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
9418         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
9419         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
9420         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
9421         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
9422
9423 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9424
9425         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
9426         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9427         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
9428         SYSCALL_LL64_PRW.
9429         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
9430         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
9431         __ASSUME_PRW_DUMMY_ARG.
9432         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
9433         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9434         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
9435         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9436         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
9437         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
9438
9439 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
9440
9441         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
9442
9443 2016-10-22  Florian Weimer  <fweimer@redhat.com>
9444
9445         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
9446         "C++", to override a potential extern "C" directive around the
9447         header file inclusion.
9448
9449 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
9450
9451         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
9452
9453 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9454
9455         * sysdeps/powerpc/fpu/fenv_private.h:
9456         (_FPU_MASK_ALL): Rename to...
9457         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
9458         XE FPSCR bits.
9459
9460         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
9461
9462         (_FPU_MASK_ROUNDING): Rename to...
9463         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
9464         NI bits.
9465
9466         (_FPU_MASK_EXCEPT_ROUND): Rename to...
9467         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
9468         bits and rounding bits.
9469
9470         (__libc_feholdbits_ppc): New inline function to mask, set,
9471         and pontentially clear FSPCR bits, and change MSR[FE] bits.
9472         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
9473         (libc_feholdexcept_setround_ppc): Likewise.
9474
9475         (__libc_femergeenv_ppc): New function to dynamically mask both
9476         old and new FP environments and merge.
9477         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
9478         (libc_feresetround_ppc): Likewise.
9479         (libc_feupdateenv_test_ppc): Likewise.
9480         (libc_feupdateenv_ppc): Likewise.
9481
9482         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
9483         of ISA RN bits, and update macro names.
9484         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
9485         effectively the same as the previously mentioned function.
9486
9487         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
9488         usage with fe_resetround_ppc.
9489
9490         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
9491         to be used.
9492         (libc_feholdexcept_setround_ctxf): Likewise.
9493         (libc_feholdexcept_setround_ctxl): Likewise.
9494
9495 2016-10-21  Florian Weimer  <fweimer@redhat.com>
9496
9497         [BZ #20715]
9498         * math/math.h [__cplusplus] (iszero): Define as function template.
9499         * math/Makefile [CXX] (tests): Add test-math-iszero.
9500         (CFLAGS-test-math-iszero.cc): Set.
9501         * math/test-math-iszero.cc: New file.
9502
9503 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
9504
9505         [BZ #20660]
9506         * sysdeps/arm/e_sqrt.c: New file.
9507         * sysdeps/arm/e_sqrtf.c: Likewise.
9508
9509 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
9510
9511         [BZ #20718]
9512         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
9513         not use floating-point comparisons to test sign.
9514         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
9515         Likewise.
9516
9517         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9518         (getpayload): New declaration.
9519         * math/Versions (getpayload): New libm symbol at version
9520         GLIBC_2.25.
9521         (getpayloadf): Likewise.
9522         (getpayloadl): Likewise.
9523         * math/Makefile (libm-calls): Add s_getpayloadF.
9524         * math/libm-test.inc: Include <nan-high-order-bit.h>.
9525         (struct test_f_f_data): Add comment.
9526         (RUN_TEST_fp_f): New macro.
9527         (RUN_TEST_LOOP_fp_f): Likewise.
9528         (getpayload_test_data): New array.
9529         (getpayload_test): New function.
9530         (main): Call getpayload_test.
9531         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
9532         descriptor.
9533         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
9534         getpayloadf and getpayloadl.
9535         * manual/libm-err-tab.pl: Update comment on interfaces without
9536         ulps tabulated.
9537         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
9538         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
9539         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
9540         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
9541         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
9542         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
9543         * sysdeps/nacl/libm.abilist: Update.
9544         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9545         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9546         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9547         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9548         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9549         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9550         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9551         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9552         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9553         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9554         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9555         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9557         Likewise.
9558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9559         Likewise.
9560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9561         Likewise.
9562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9563         Likewise.
9564         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9565         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9566         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9567         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9568         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9570         Likewise.
9571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9572         Likewise.
9573         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9574         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9575         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9576
9577 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9578
9579         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
9580         tst-fallocate{64}.
9581         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
9582         on syscall return.
9583
9584 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
9585
9586         [BZ #20689]
9587         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
9588         usable.
9589
9590 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
9591
9592         * sysdeps/generic/nan-high-order-bit.h: New file.
9593         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
9594         * sysdeps/mips/nan-high-order-bit.h: Likewise.
9595         * sysdeps/hppa/math_private.h: Remove file.
9596         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
9597         not define here.
9598         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
9599         <nan-high-order-bit.h>.
9600         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9601         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
9602         <nan-high-order-bit.h>.
9603         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9604         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
9605         <nan-high-order-bit.h>.
9606         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9607         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
9608         <nan-high-order-bit.h>.
9609         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9610         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
9611         <nan-high-order-bit.h>.
9612         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9613         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
9614         <nan-high-order-bit.h>.
9615         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9616         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
9617         <nan-high-order-bit.h>.
9618         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9619         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
9620         <nan-high-order-bit.h>.
9621         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9622         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
9623         <nan-high-order-bit.h>.
9624         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9625         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
9626         <nan-high-order-bit.h>.
9627         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9628         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
9629         <nan-high-order-bit.h>.
9630         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9631         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
9632         <nan-high-order-bit.h>.
9633         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9634         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
9635         <nan-high-order-bit.h>.
9636         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9637         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
9638         <nan-high-order-bit.h>.
9639         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9640         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
9641         <nan-high-order-bit.h>.
9642         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9643         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
9644         <nan-high-order-bit.h>.
9645         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9646         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9647         <nan-high-order-bit.h>.
9648         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9649         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9650         <nan-high-order-bit.h>.
9651         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
9652
9653 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
9654
9655         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
9656
9657 2016-09-22  John David Anglin  <dave.anglin@bell.net>
9658
9659         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
9660         abort-instr.h.
9661         (EFAULT): Remove conditional define.
9662         (ENOSYS): Likewise.
9663         (atomic_compare_and_exchange_val_acq): Use instruction nullification
9664         instead of conditional branch instructions.
9665
9666 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
9667
9668         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9669         (totalordermag): New declaration.
9670         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
9671         New macro.
9672         * math/Versions (totalordermag): New libm symbol at version
9673         GLIBC_2.25.
9674         (totalordermagf): Likewise.
9675         (totalordermagl): Likewise.
9676         * math/Makefile (libm-calls): Add s_totalordermagF.
9677         * math/libm-test.inc (totalordermag_test_data): New array.
9678         (totalordermag_test): New function.
9679         (main): Call totalordermag_test.
9680         * math/test-tgmath.c (NCALLS): Increase to 125.
9681         (F(compile_test)): Call totalordermag.
9682         (F(totalordermag)): New function.
9683         * manual/arith.texi (FP Comparison Functions): Document
9684         totalordermag, totalordermagf and totalordermagl.
9685         * manual/libm-err-tab.pl: Update comment on interfaces without
9686         ulps tabulated.
9687         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
9688         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
9689         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
9690         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
9691         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
9692         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
9693         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
9694         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9695         totalordermag.
9696         (CFLAGS-nldbl-totalordermag.c): New variable.
9697         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
9698         (do_test): Also test totalordermagl.
9699         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
9700         Likewise.
9701         * sysdeps/nacl/libm.abilist: Update.
9702         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9703         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9704         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9705         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9706         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9707         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9708         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9709         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9710         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9711         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9712         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9713         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9715         Likewise.
9716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9717         Likewise.
9718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9719         Likewise.
9720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9721         Likewise.
9722         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9723         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9724         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9725         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9726         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9728         Likewise.
9729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9730         Likewise.
9731         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9732         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9733         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9734
9735 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
9736
9737         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
9738         boolean.
9739
9740 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
9741
9742         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
9743         raising FE_INVALID with feraisexcept in case where part of
9744         argument is infinite, subtract that part of argument from itself.
9745         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
9746         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
9747         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9748
9749 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9750
9751         * math/libm-test.inc (totalorder_test_data): Add more tests.
9752
9753 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
9754
9755         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
9756         Undefine weak_alias and add a comment why mips64 require
9757         versioning.
9758
9759 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9760
9761         [BZ #20647]
9762         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
9763         maximum CPUID level is less than 2.
9764
9765 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9768         (totalorder): New declaration.
9769         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
9770         New macro.
9771         * math/Versions (totalorder): New libm symbol at version
9772         GLIBC_2.25.
9773         (totalorderf): Likewise.
9774         (totalorderl): Likewise.
9775         * math/Makefile (libm-calls): Add s_totalorderF.
9776         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
9777         string.
9778         * math/libm-test.inc (PAYLOAD_DIG): New macro.
9779         (qnan_value_pl): Likewise.
9780         (snan_value_pl): Likewise.
9781         (qnan_value): Define using qnan_value_pl.
9782         (snan_value): Define using snan_value_pl.
9783         (struct test_ff_i_data): Add comment about which tests use this
9784         structure.
9785         (RUN_TEST_ff_b): New macro.
9786         (RUN_TEST_LOOP_ff_b): Likewise.
9787         (totalorder_test_data): New array.
9788         (totalorder_test): New function.
9789         (main): Call totalorder_test.
9790         * math/test-tgmath.c (NCALLS): Increase to 122.
9791         (F(compile_test)): Call totalorder.
9792         (F(totalorder)): New function.
9793         * manual/arith.texi (FP Comparison Functions): Document
9794         totalorder, totalorderf and totalorderl.
9795         * manual/libm-err-tab.pl: Update comment on interfaces without
9796         ulps tabulated.
9797         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
9798         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
9799         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
9800         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
9801         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
9802         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
9804         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9805         totalorder.
9806         (CFLAGS-nldbl-totalorder.c): New variable.
9807         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
9808         file.
9809         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
9810         Add test-totalorderl-ldbl-128ibm.
9811         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
9812         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
9813         test-totalorderl-ldbl-96.
9814         * sysdeps/nacl/libm.abilist: Update.
9815         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9816         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9817         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9818         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9819         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9820         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9821         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9822         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9823         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9824         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9825         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9826         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9828         Likewise.
9829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9830         Likewise.
9831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9832         Likewise.
9833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9834         Likewise.
9835         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9836         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9837         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9838         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9839         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9841         Likewise.
9842         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9843         Likewise.
9844         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9845         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9846         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9847
9848 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9849
9850         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
9851         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
9852         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
9853         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
9854         remove ENOSYS implementation.
9855         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
9856         Consolidate all Linux implementations.
9857
9858 2016-10-11  Florian Weimer  <fweimer@redhat.com>
9859
9860         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
9861         * resolv/herror.c (herror): Cast away const-ness.
9862         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
9863         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
9864
9865 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
9866
9867         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
9868         instead of M_NAN + M_NAN.
9869         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
9870
9871 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9872
9873         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
9874         unused variable 'p'.
9875
9876 2016-10-09  Alan Modra  <amodra@gmail.com>
9877             Andreas Schwab  <schwab@linux-m68k.org>
9878
9879         [BZ #20554]
9880         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
9881         [PIC && !SHARED]: Set up PIC register for PLT call.
9882
9883 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
9884
9885         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
9886         conditional on value of [__FLT_EVAL_METHOD__].
9887         * math/test-iseqsig-excess-precision.c: New file.
9888         * math/Makefile (tests): Add test-iseqsig-excess-precision.
9889
9890 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9891
9892         * math/s_iseqsig_template.c: Include math-private.h.
9893
9894         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
9895         * posix/tst-posix_fadvise.c: New file.
9896         * posix/tst-posix_fadvise64.c: Likewise.
9897         * posix/tst-posix_fadvise-common.c: Likewise.
9898         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9899         (__ASSUME_FADVISE64_64_6ARG): Define.
9900         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9901         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
9902         * sysdeps/unix/sysv/linux/tile/kernel-features.h
9903         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
9904         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
9905         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
9906         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
9907         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
9908         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
9909         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
9910         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
9911         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
9912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
9913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
9914         Likewise.
9915         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
9916         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
9917         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
9918         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
9919         Alias to __posix_fadvise64_l32.
9920         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
9921         Add compat definition to posix_fadvise64.
9922         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
9923         Add versioned definition to posix_fadvise64.
9924         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
9925         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
9926         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
9927         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
9928         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
9929
9930         * io/Makefile (tests): Add tst-posix_fallocate and
9931         tst-posix_fallocate64.
9932         * io/tst-posix_fallocate-common.c: New file.
9933         * io/tst-posix_fallocate.c: Likewise.
9934         * io/tst-posix_fallocate64.c: Likewise.
9935         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
9936         file.
9937         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
9938         Likewise.
9939         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
9940         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
9941         Likewise.
9942         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
9943         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
9944         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
9945         SYSCALL_LL to pass both offset and len arguments.
9946         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
9947         Likewise.
9948         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
9949         __libc_pwrite64 alias used by posix_fallocate64.
9950
9951         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
9952         tst-fallocate64.
9953         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
9954         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
9955         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
9956         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
9957         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
9958         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
9959         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
9960         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9961         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
9962         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
9963         macro on offset argument.
9964         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
9965         SYSCALL_LL64 on offset argument.
9966
9967         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
9968         tst-fallocate64.
9969         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
9970         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
9971         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
9972         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
9973         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
9974         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
9975         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
9976         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9977         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
9978         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
9979         macro on offset argument.
9980         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
9981         SYSCALL_LL64 on offset argument.
9982         * test-skeleton.c (FAIL_RET): Add macro.
9983         (FAIL_EXIT): Likewise.
9984         (FAIL_EXIT1): Likewise.
9985         (_FAIL): Likewise.
9986
9987 2016-10-07  Florian Weimer  <fweimer@redhat.com>
9988
9989         [BZ #20629]
9990         resolv: Remove RES_USEBSTRING and its implementation.
9991         * resolv/resolv.h (RES_USEBSTRING): Remove.
9992         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
9993         (digitvalue, encode_bitstring, decode_bitstring): Remove.
9994         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
9995         (labellen): Remove extended label types support.
9996         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
9997         * resolv/res_init.c (res_setoptions): Likewise.
9998         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
9999
10000 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10001
10002         resolv: Remove RES_NOIP6DOTINT and its implementation.
10003         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10004         (RES_NOIP6DOTINT): Remove.
10005         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10006         handling.
10007         * resolv/res_debug.c (p_option): Likewise.
10008         * resolv/res_init.c (res_setoptions): Likewise.
10009         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10010
10011 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10012
10013         resolv: Deprecate unimplemented flags.
10014         * misc/sys/cdefs.h (__glibc_macro_warning1)
10015         (__glibc_macro_warning): Define.
10016         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10017         (RES_KEEPTSIG): Mark as deprecated.
10018         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10019         RES_NOCHECKNAME, RES_KEEPTSIG.
10020         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10021
10022 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10023
10024         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10025         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10026         Use strong_alias to create symbols for glibc verison 2.19.
10027
10028 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10029
10030         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10031
10032 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10033
10034         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10035
10036 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10037
10038         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10039
10040 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10041
10042         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10043         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10044         in header for using it as type for ifunc function because __GI_* symbols
10045         for ppc32 do not target the ifunc symbols.
10046         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10047
10048 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10049
10050         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10051         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10052         libc_ifunc_hidden_def.
10053         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10054         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10055         Redirect ifunced function in header for using it as type of ifunc'ed
10056         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10057         function for __GI_* symbol.
10058         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10059         * include/libc-symbols.h
10060         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10061
10062 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10063
10064         [BZ #20478]
10065         * sysdeps/s390/multiarch/ifunc-resolve.h
10066         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10067         to create ifunc symbols.
10068         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10069         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10070         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10071         for using it as type for ifunc function.
10072         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10073         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10074         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10075         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10076         * sysdeps/s390/multiarch/strcat.c: Likewise.
10077         * sysdeps/s390/multiarch/strchr.c: Likewise.
10078         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10079         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10080         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10081         * sysdeps/s390/multiarch/strlen.c: Likewise.
10082         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10083         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10084         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10085         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10086         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10087         * sysdeps/s390/multiarch/strspn.c: Likewise.
10088         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10089         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10090         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10091         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10092         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10093         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10094         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10095         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10096         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10097         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10098         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10099         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10100
10101 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10102
10103         * include/libc-symbols.h (__ifunc_resolver):
10104         New macro is used by __ifunc* macros.
10105         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10106         depending on HAVE_GCC_IFUNC.
10107         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10108         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10110         Redirect ifunced function in header for using as type for ifunc function.
10111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10115         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10116         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10117         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10118         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10119         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10120         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10121         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10122         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10123         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10124         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10130         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10131         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10132         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10133         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10134         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10135         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10136         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10137         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10138         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10139         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10140         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10141         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10142         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10143         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10145         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10146         instead of libc_ifunc() macro.
10147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10148         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10149
10150 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10151
10152         * config.h.in (HAVE_GCC_IFUNC): New undef.
10153         * configure.ac: Add check if gcc supports attribute ifunc feature.
10154         * configure: Regenerated.
10155         * manual/install.texi: Add recommendation for gcc with
10156         indirect-function support.
10157         * INSTALL: Regenerated.
10158
10159 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10160
10161         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10162         macro.
10163         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10164         (__iseqsig): New declaration.
10165         * math/s_iseqsig_template.c: New file.
10166         * math/Versions (__iseqsigf): New libm symbol at version
10167         GLIBC_2.25.
10168         (__iseqsig): Likewise.
10169         (__iseqsigl): Likewise.
10170         * math/libm-test.inc (iseqsig_test_data): New array.
10171         (iseqsig_test): New function.
10172         (main): Call iseqsig_test.
10173         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10174         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10175         * manual/libm-err-tab.pl: Update comment on interfaces without
10176         ulps tabulated.
10177         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10178         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10179         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10180         * sysdeps/nacl/libm.abilist: Update.
10181         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10182         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10183         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10184         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10185         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10186         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10187         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10188         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10189         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10190         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10191         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10192         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10194         Likewise.
10195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10196         Likewise.
10197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10198         Likewise.
10199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10200         Likewise.
10201         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10202         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10203         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10204         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10205         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10207         Likewise.
10208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10209         Likewise.
10210         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10211         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10212         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10213
10214 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10215
10216         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10217         do_sincos_2, sloww, sloww1): Update comments.
10218
10219         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10220         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10221
10222         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10223         K boolean and rename it.
10224         (__sin): Adjust.
10225         (__cos): Adjust.
10226
10227 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10228             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10229
10230         * manual/nss.texi: Fix typos in the manual.
10231
10232 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10233
10234         * manual/contrib.texi: Fix typos in the manual.
10235
10236         * manual/maint.texi: Fix typos in the manual.
10237
10238         * manual/install.texi: Fix typos in the manual.
10239         * INSTALL: Regenerated.
10240
10241         * manual/lang.texi: Fix typos in the manual.
10242
10243         * manual/probes.texi: Fix typos in the manual.
10244
10245         * manual/threads.texi: Fix typos in the manual.
10246
10247         * manual/debug.texi: Fix typos in the manual.
10248
10249         * manual/crypt.texi: Fix typos in the manual.
10250
10251         * manual/conf.texi: Fix typos in the manual.
10252
10253         * manual/sysinfo.texi: Fix typos in the manual.
10254
10255         * manual/users.texi: Fix typos in the manual.
10256
10257         * manual/job.texi: Fix typos in the manual.
10258
10259         * manual/process.texi: Fix typos in the manual.
10260
10261         * manual/argp.texi: Fix typos in the manual.
10262         * manual/getopt.texi: Likewise.
10263         * manual/startup.texi: Likewise.
10264
10265         * manual/signal.texi: Fix typos in the manual.
10266
10267         * manual/setjmp.texi: Fix typos in the manual.
10268
10269         * manual/resource.texi: Fix typos in the manual.
10270
10271         * manual/time.texi: Fix typos in the manual.
10272
10273         * manual/arith.texi: Fix typos in the manual.
10274
10275         * manual/math.texi: Fix typos in the manual.
10276
10277         * manual/syslog.texi: Fix typos in the manual.
10278
10279         * manual/terminal.texi: Fix typos in the manual.
10280
10281         * manual/socket.texi: Fix typos in the manual.
10282
10283         * manual/filesys.texi: Fix typos in the manual.
10284
10285         * manual/llio.texi: Fix typos in the manual.
10286
10287         * manual/stdio.text: Fix typos in the manual.
10288
10289 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10290
10291         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10292         instead of K1.
10293
10294         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10295         SHIFT_QUADRANT and make it bool.
10296         (do_sincos_2): Likewise.
10297         (sloww): Likewise.
10298         (sloww1): Likewise.
10299         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10300         (__cos): Likewise.
10301
10302 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10303
10304         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10305
10306 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
10307
10308         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
10309         Define to __WORDSIZE, not conditional on [LONG_MAX ==
10310         0x7fffffffL].
10311         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10312
10313 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10314
10315         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
10316         inline by __inline__.
10317         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
10318         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
10319         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
10320         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
10321         sigset_t from signal.h.
10322         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
10323         which is already required.
10324
10325 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
10326
10327         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10328
10329 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
10330
10331         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
10332         (struct tcp_repair_window): New type.
10333
10334 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10335
10336         * libio/tst-memstream3.c: Include string.h.
10337
10338 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10339
10340         [BZ #18241]
10341         [BZ #20181]
10342         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
10343         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
10344         write position is at the end the buffer.
10345         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
10346         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
10347         (_IO_str_seekoff): Set correct offset from negative displacement and
10348         set EINVAL for invalid ones.
10349         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
10350         buffer length.
10351         (_IO_wstr_switch_to_get_mode): New function.
10352         (_IO_wstr_seekoff): Set correct offset from negative displacement and
10353         set EINVAL for invalid ones.
10354         * libio/tst-memstream3.c: New file.
10355         * libio/tst-wmemstream3.c: Likewise.
10356         * manual/examples/memstrm.c: Remove warning when priting size_t.
10357
10358 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10359
10360         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
10361         macro to use __builtin_fma.
10362         * sysdeps/x86_64/fpu/dla.h: Remove file.
10363
10364         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
10365         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
10366         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
10367
10368 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
10369
10370         [BZ #20292]
10371         * elf/Makefile (routines): Add dl-addr-obj.
10372         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
10373         tst-_dl_addr_inside_object.
10374         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
10375         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10376         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
10377         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10378         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
10379         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
10380         * elf/dl-open.c: Likewise.
10381         * elf/dl-addr-obj.c: New file.
10382         * elf/tst-_dl_addr_inside_object.c: New file.
10383
10384 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10385
10386         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
10387         <bits/iscanonical.h>.
10388         * bits/iscanonical.h: New file.
10389         * math/s_iscanonicall.c: Likewise.
10390         * math/Versions (__iscanonicall): New libm symbol at version
10391         GLIBC_2.25.
10392         * math/libm-test.inc (iscanonical_test_data): New array.
10393         (iscanonical_test): New function.
10394         (main): Call iscanonical_test.
10395         * math/Makefile (headers): Add bits/iscanonical.h.
10396         (type-ldouble-routines): Add s_iscanonicall.
10397         * manual/arith.texi (Floating Point Classes): Document
10398         iscanonical.
10399         * manual/libm-err-tab.pl: Update comment on interfaces without
10400         ulps tabulated.
10401         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
10402         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
10403         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
10404         Likewise.
10405         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10406         test-iscanonical-ldbl-128ibm.
10407         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
10408         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
10409         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
10410         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
10411         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10412         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10413         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10415         Likewise.
10416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10417         Likewise.
10418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10419         Likewise.
10420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10421         Likewise.
10422         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10423         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10424
10425 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10426
10427         * string/bits/string3.h: Remove C++ style comments.
10428
10429 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10430
10431         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
10432         instead of ternary condition.
10433         (do_sincos_2): Likewise.
10434         (__sin): Likewise.
10435         (__cos): Likewise.
10436         (slow): Likewise.
10437         (sloww): Likewise.
10438         (sloww1): Likewise.
10439         (bsloww): Likewise.
10440         (bsloww1): Likewise.
10441
10442         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
10443         instead of ternary condition.
10444         (do_sin_slow): Likewise.
10445         (do_sincos_1): Likewise.
10446         (do_sincos_2): Likewise.
10447         (__cos): Likewise.
10448         (sloww): Likewise.
10449         (sloww1): Likewise.
10450         (sloww2): Likewise.
10451         (bsloww): Likewise.
10452         (bsloww1): Likewise.
10453         (bsloww2): Likewise.
10454
10455         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
10456         check from here...
10457         (slow2): ... and here...
10458         (__sin): ... to here.
10459
10460 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
10461
10462         * math/math.h
10463         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
10464         Cast argument to its own type.
10465         * math/test-iszero-excess-precision.c: New file.
10466         * math/Makefile (tests): Add test-iszero-excess-precision.
10467         (CFLAGS-test-iszero-excess-precision.c): New variable.
10468
10469 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
10470
10471         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
10472         field, add err field.
10473         (__spawni_child): Report error through err member instead of pipe.
10474         (__spawnix): Likewise.
10475
10476 2016-09-28  Zack Weinberg  <zackw@panix.com>
10477
10478         * scripts/check-installed-headers.sh: Generalize treatment of
10479         sys/elf.h to all target architectures.
10480
10481         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
10482         deleted typedef ucontext_t.
10483
10484 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10485
10486         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
10487         (__INTERNAL_SYSCALL1): Likewise.
10488         (__INTERNAL_SYSCALL2): Likewise.
10489         (__INTERNAL_SYSCALL3): Likewise.
10490         (__INTERNAL_SYSCALL4): Likewise.
10491         (__INTERNAL_SYSCALL5): Likewise.
10492         (__INTERNAL_SYSCALL6): Likewise.
10493         (__INTERNAL_SYSCALL7): Likewise.
10494         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
10495         (__INTERNAL_SYSCALL_NARGS): Likewise.
10496         (__INTERNAL_SYSCALL_DISP): Likewise.
10497         (INTERNAL_SYSCALL_CALL): Likewise.
10498         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
10499         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
10500         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
10501         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
10502         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
10503         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
10504         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
10505         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
10506         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
10507         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
10508         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
10509         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
10510         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
10511
10512 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
10515         macro.
10516         * math/libm-test.inc (iszero_test_data): New array.
10517         (iszero_test): New function.
10518         (main): Call iszero_test.
10519         * manual/arith.texi (Floating Point Classes): Document iszero.
10520         * manual/libm-err-tab.pl: Update comment on interfaces without
10521         ulps tabulated.
10522
10523 2016-09-23  Zack Weinberg  <zackw@panix.com>
10524
10525         * scripts/check-installed-headers.sh: New script.
10526         * Rules: In each directory that defines header files to be installed,
10527         run check-installed-headers.sh on them as a special test.
10528         * Makefile: Likewise for the headers installed at top level.
10529
10530         * include/aliases.h, include/alloca.h, include/argz.h
10531         * include/arpa/nameser.h, include/arpa/nameser_compat.h
10532         * include/elf.h, include/envz.h, include/err.h
10533         * include/execinfo.h, include/fpu_control.h, include/getopt.h
10534         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
10535         * include/link.h, include/malloc.h, include/mcheck.h
10536         * include/mntent.h, include/netinet/ether.h
10537         * include/nss.h, include/obstack.h, include/printf.h
10538         * include/pty.h, include/resolv.h, include/rpc/auth.h
10539         * include/rpc/auth_des.h, include/rpc/auth_unix.h
10540         * include/rpc/clnt.h, include/rpc/des_crypt.h
10541         * include/rpc/key_prot.h, include/rpc/netdb.h
10542         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
10543         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
10544         * include/rpc/rpc_msg.h, include/rpc/svc.h
10545         * include/rpc/svc_auth.h, include/rpc/xdr.h
10546         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
10547         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
10548         * include/rpcsvc/ypupd.h, include/shadow.h
10549         * include/stdio_ext.h, include/sys/epoll.h
10550         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
10551         * include/sys/prctl.h, include/sys/profil.h
10552         * include/sys/statfs.h, include/sys/sysctl.h
10553         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
10554         * sysdeps/arm/nacl/include/bits/setjmp.h
10555         * sysdeps/mips/include/sys/asm.h
10556         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
10557         * sysdeps/unix/sysv/linux/include/sys/timex.h
10558         * sysdeps/x86/fpu/include/bits/fenv.h:
10559         Add #ifndef _ISOMAC guard around internal declarations.
10560         Add multiple-inclusion guard if not already present.
10561
10562 2016-09-23  Zack Weinberg  <zackw@panix.com>
10563
10564         * sysdeps/generic/sys/ucontext.h
10565         * sysdeps/arm/sys/ucontext.h
10566         * sysdeps/i386/sys/ucontext.h
10567         * sysdeps/m68k/sys/ucontext.h
10568         * sysdeps/mips/sys/ucontext.h
10569         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
10570         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
10571         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
10572         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
10573         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
10574         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
10575         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
10576         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
10577         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
10578         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
10579         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
10580         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
10581         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
10582         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
10583         Include both bits/sigcontext.h and bits/sigstack.h.
10584         Fix grammar error in comment, if present.
10585
10586         * bits/sigstack.h
10587         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
10588         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
10589         * sysdeps/unix/sysv/linux/bits/sigstack.h
10590         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
10591         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
10592         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
10593         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
10594         * bits/sigcontext.h
10595         * sysdeps/mach/hurd/i386/bits/sigcontext.h
10596         * sysdeps/unix/sysv/linux/bits/sigcontext.h
10597         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
10598         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
10599         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
10600         as well as signal.h, if this was not already allowed.  Request
10601         definition of size_t if necessary.  Minimize semantically-null
10602         differences across files.
10603
10604 2016-09-23  Zack Weinberg  <zackw@panix.com>
10605
10606         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
10607         Remove all logic conditional on __need macros.  Move all the
10608         conditionally defined types to their own headers...
10609         * time/bits/types/clock_t.h: Define clock_t here.
10610         * time/bits/types/clockid_t.h: Define clockid_t here.
10611         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
10612         * time/bits/types/struct_timespec.h: Define struct timespec here.
10613         * time/bits/types/struct_timeval.h: Define struct timeval here.
10614         * time/bits/types/struct_tm.h: Define struct tm here.
10615         * time/bits/types/time_t.h: Define time_t here.
10616         * time/bits/types/timer_t.h: Define timer_t here.
10617         * time/Makefile: Install the new headers.
10618
10619         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
10620         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
10621         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
10622         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
10623         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
10624         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
10625         * sysdeps/unix/sysv/linux/bits/resource.h
10626         * sysdeps/unix/sysv/linux/bits/timex.h
10627         * sysdeps/unix/sysv/linux/mips/bits/resource.h
10628         * sysdeps/unix/sysv/linux/net/ppp_defs.h
10629         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
10630         * sysdeps/unix/sysv/linux/sys/acct.h
10631         * sysdeps/unix/sysv/linux/sys/timerfd.h
10632         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
10633         * time/sys/time.h, time/sys/timeb.h
10634         Use the new bits/types headers.
10635
10636         * include/time.h: Remove __need logic.
10637         * include/bits/time.h
10638         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
10639         * include/bits/types/time_t.h, include/bits/types/timer_t.h
10640         * include/bits/types/struct_itimerspec.h
10641         * include/bits/types/struct_timespec.h
10642         * include/bits/types/struct_timeval.h
10643         * include/bits/types/struct_tm.h:
10644         New wrapper headers.
10645
10646 2016-09-23  Zack Weinberg  <zackw@panix.com>
10647
10648         * sysdeps/mach/hurd/net/if_ppp.h
10649         * sysdeps/unix/sysv/linux/net/if_ppp.h:
10650         Only define struct ifpppstatsreq and struct ifpppcstatsreq
10651         if __USE_MISC is defined, to ensure struct ifreq is declared.
10652
10653         * inet/netinet/ether.h: Condition all function prototypes
10654         on __USE_MISC, to ensure struct ether_addr is declared.
10655
10656         * socket/bits/types/struct_osockaddr.h: New header.
10657         * include/bits/types/struct_osockaddr.h: New wrapper.
10658         * socket/Makefile: Install the new header.
10659         * socket/sys/socket.h, inet/protocols/talkd.h:
10660         Refer to bits/types/struct_osockaddr.h for the definition of
10661         struct osockaddr.
10662
10663 2016-09-23  Zack Weinberg  <zackw@panix.com>
10664
10665         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
10666         * inet/protocols/routed.h, inet/protocols/talkd.h
10667         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
10668         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
10669         * sysdeps/generic/netinet/if_ether.h
10670         * sysdeps/generic/netinet/in_systm.h
10671         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
10672         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10673         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
10674         * sysdeps/mach/hurd/net/if_arp.h
10675         * sysdeps/mach/hurd/net/if_ppp.h
10676         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
10677         * sysdeps/unix/sysv/linux/bits/in.h
10678         * sysdeps/unix/sysv/linux/net/ethernet.h
10679         * sysdeps/unix/sysv/linux/net/if_arp.h
10680         * sysdeps/unix/sysv/linux/net/if_ppp.h
10681         * sysdeps/unix/sysv/linux/net/if_shaper.h
10682         * sysdeps/unix/sysv/linux/net/route.h
10683         * sysdeps/unix/sysv/linux/netinet/if_ether.h
10684         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10685         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10686         * sysdeps/unix/sysv/linux/netipx/ipx.h
10687         * sysdeps/unix/sysv/linux/sys/acct.h
10688         * include/arpa/nameser.h, include/resolv.h:
10689         Change all uses of u_char to unsigned char,
10690         u_short and ushort to unsigned short, u_int and uint to unsigned int,
10691         u_long and ulong to unsigned long, u_int8_t to uint8_t,
10692         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
10693         and u_int64_t and u_quad_t to uint64_t.
10694
10695         * mach/sys/reboot.h: Remove two casts of integer literals
10696         to the types they already have.
10697
10698         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
10699         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
10700         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
10701         from referring to 'unsigned char' to 'uint8_t' for consistency with
10702         the macro definition below.
10703
10704         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
10705         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
10706         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
10707         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
10708         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
10709         * sysdeps/unix/sysv/linux/sys/acct.h
10710         * include/arpa/nameser.h, include/resolv.h:
10711         Fix indentation disrupted by mechanical edits.
10712
10713         * inet/protocols/talkd.h, resolv/arpa/nameser.h
10714         * sysdeps/generic/netinet/in_systm.h
10715         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
10716         * sysdeps/gnu/netinet/udp.h
10717         * sysdeps/unix/sysv/linux/net/ethernet.h
10718         * sysdeps/unix/sysv/linux/net/if_arp.h
10719         * sysdeps/unix/sysv/linux/net/if_ppp.h
10720         * sysdeps/unix/sysv/linux/net/if_shaper.h
10721         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
10722         * sysdeps/unix/sysv/linux/netinet/if_tr.h
10723         * sysdeps/unix/sysv/linux/netipx/ipx.h
10724         * sysdeps/unix/sysv/linux/sys/acct.h
10725         Include stdint.h for uintNN_t definitions.
10726         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
10727
10728 2016-09-23  Zack Weinberg  <zackw@panix.com>
10729
10730         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
10731         * sysdeps/unix/sysv/linux/netrose/rose.h:
10732         Include sys/socket.h and netax25/ax25.h.
10733
10734         * inet/netinet/icmp6.h, inet/netinet/ip6.h
10735         * resolv/arpa/nameser_compat.h:
10736         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
10737
10738         * sysdeps/unix/sysv/linux/sys/quota.h:
10739         Use __caddr_t instead of caddr_t.
10740         * sysdeps/unix/sysv/linux/sys/timerfd.h:
10741         Use __clockid_t instead of clockid_t.
10742
10743         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
10744
10745         * argp/argp.h: Check whether _LIBC is defined before expanding it.
10746         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
10747         expanding it.
10748
10749         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
10750         Define __glibc_c99_flexarr_available to 1 when the compiler
10751         supports C99-compatible flexible array members, 0 otherwise.
10752         * sysdeps/unix/sysv/linux/bits/socket.h
10753         * sysdeps/mach/hurd/bits/socket.h
10754         * bits/socket.h: Use __glibc_c99_flexarr_available in
10755         definitions of struct cmsghdr and CMSG_DATA.
10756
10757 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10758
10759         * manual/nss.texi (NSS Modules Interface): Adjust function return
10760         type to enum nss_status.  Document errnop argument.  Clarify
10761         h_errnop semantics.  Fix cross-reference formatting.
10762         (NSS Module Function Internals): Mention that *errnop needs to be
10763         set on failure, but not to zero.
10764
10765 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10766
10767         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
10768         (get_random_name): New functions.
10769         (check_wrapper_flags_mode): Use linkat to give the new file a name
10770         determined by get_random_name.
10771         (do_test): Add calls to test open64 and openat64.
10772
10773 2016-09-23  Florian Weimer  <fweimer@redhat.com>
10774
10775         * test-skeleton.c: Remove #include <stdarg.h>.
10776
10777 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
10778
10779         [BZ #19826]
10780         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
10781         initialization of static TLS entries.
10782         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
10783         * nptl/allocatestack.c (init_one_static_tls): Likewise.
10784
10785 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10786
10787         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
10788         _hurd_malloc_fork_prepare.
10789         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
10790         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
10791         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
10792         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
10793         (_hurd_fork_child_hook): Drop malloc_fork_child.
10794         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
10795         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
10796         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
10797         after locking locks (notably hurd_dtable_lock). Call
10798         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
10799         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
10800         __malloc_fork_unlock_child.
10801         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
10802
10803 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
10804
10805         * soft-fp/extendhftf2.c: New.
10806         * soft-fp/fixhfti.c: Likewise.
10807         * soft-fp/fixunshfti.c: Likewise.
10808         * soft-fp/floattihf.c: Likewise.
10809         * soft-fp/floatuntihf.c: Likewise.
10810         * soft-fp/half.h: Likewise.
10811         * soft-fp/trunctfhf2.c: Likewise.
10812
10813 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
10814
10815         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
10816         macro.
10817         * math/libm-test.inc (issubnormal_test_data): New array.
10818         (issubnormal_test): New function.
10819         * manual/arith.texi (Floating Point Classes): Document
10820         issubnormal.
10821         * manual/libm-err-tab.pl: Update comment on interfaces without
10822         ulps tabulated.
10823
10824         * sysdeps/generic/stdint.h: Define
10825         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
10826         <bits/libc-header-start.h> instead of including <features.h>.
10827         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
10828         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
10829         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
10830         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
10831         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
10832         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
10833         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
10834         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
10835         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
10836         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
10837         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
10838         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
10839         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
10840         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
10841         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
10842         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
10843         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
10844         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
10845         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
10846         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
10847         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
10848         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
10849         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
10850         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
10851         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
10852         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
10853         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
10854         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
10855         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
10856         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
10857         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
10858         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
10859         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
10860         * manual/arith.texi (Integers): Document these macros for types
10861         specified by width properties.
10862         * manual/lang.texi (Width of Type): Document these macros for
10863         other standard typedefs.
10864         * stdlib/tst-width-stdint.c: New file.
10865         * stdlib/Makefile (tests): Add tst-width-stdint.
10866
10867 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10868
10869         [BZ #20016]
10870         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
10871         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
10872         Move ...
10873         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
10874         ... here, as compatibility symbols in a new file.
10875         * resolv/Makefile (libresolv-routines): Add compat-hooks.
10876         * resolv/res_init.c (__res_vinit): Adjust member names.
10877         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
10878         * resolv/resolv.h (res_sendhookact, res_send_qhook)
10879         (res_send_rhook): Remove.
10880         (struct __res_state): Rename qhook, rhook members.
10881
10882 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10883
10884         malloc: Use __libc_lock wrappers.
10885         * malloc/arena.c (list_lock, free_list_lock): Define using
10886         __libc_lock_define_initialized.
10887         (arena_lock): Adjust formatting.
10888         * malloc/malloc.c (struct malloc_state): Define mutex using
10889         __libc_lock_define.
10890         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
10891         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
10892         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
10893         (mutex_unlock, mutex_trylock): Remove.
10894         (__pthread_initialize): Remove unused macro.
10895         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
10896         (mutex_unlock, mutex_trylock): Remove.
10897
10898 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10899
10900         [BZ #20592]
10901         Remove RR type classification macros.
10902         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
10903         (ns_t_udp_p, ns_t_xfr_p): Remove.
10904
10905 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10906
10907         Remove misleading version information.
10908         * resolv/arpa/nameser.h (__NAMESER): Remove.
10909         * resolv/arpa/nameser_compat.h (__BIND): Remove.
10910
10911 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10912
10913         Remove the always-defined BIND_4_COMPAT macro.
10914         * resolv/arpa/nameser.h: Unconditionally include
10915         <arpa/nameser_compat.h>.
10916         (BIND_4_COMPAT): Remove.
10917         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
10918
10919 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10920
10921         [BZ #20591]
10922         Remove obsolete DNSSEC support.
10923         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
10924         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
10925         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
10926         (ns_verify_tcp, ns_verify_tcp_init): Remove.
10927         (ns_cert_types): Add comment.
10928         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
10929         separately.
10930         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
10931         (dst_s_dns_key_id): Remove.
10932         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
10933         variables.
10934
10935 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10936
10937         [BZ #20524]
10938         * manual/string.texi (String/Array Comparison): Clarify the
10939         strverscmp behavior.
10940
10941 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10942
10943         * test-skeleton.c (xasprintf): Add function.
10944         * io/tst-open-tmpfile.c: New test.
10945         * io/Makefile (tests): Add it.
10946
10947 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10948
10949         Avoid running $(CXX) during build to obtain header file paths.
10950         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
10951         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
10952         * Makerules (cstdlib, cmath): Remove variables.  Use
10953         $(c++-cstdlib-header), $(c++-cmath-header) instead.
10954         * configure: Regenerate.
10955
10956 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10957
10958         * Makeconfig (all-object-suffixes): Include .op only if
10959         $(build-profile).
10960
10961 2016-09-21  Florian Weimer  <fweimer@redhat.com>
10962
10963         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
10964         conditionals.  Do not define PATH_MAX.
10965
10966 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10967
10968         * posix/Makefile (tests): Add tst-spawn3.
10969         * posix/tst-spawn3.c: New file.
10970         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
10971         if it is already opened for open action.
10972
10973         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
10974         all signals when executing the clone vfork child.
10975         (SIGALL_SET): Remove macro.
10976
10977         * nptl/Makefile (tests): Add tst-exec5.
10978         * nptl/tst-exec5.c: New file.
10979         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
10980         asynchronous cancellation.
10981
10982 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10983
10984         * hurd/exc2signal.c: #include <hurd/signal.h>
10985         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
10986         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
10987         accordingly.
10988         * mach/mach_error.c (mach_error): Fix old-style function definition.
10989         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
10990
10991 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10992
10993         * math/Makefile (libm-calls): Remove s_nanF.
10994         (gen-libm-calls): Add s_nanF.
10995
10996         * math/s_nan.c: Refactor into ...
10997         * math/s_nan_template.c: New file.
10998
10999         * math/s_nanf.c: Removed.
11000         * math/s_nanl.c: Removed.
11001         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11002         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11003
11004         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11005         (LDOUBLE_nanl_libm_version): New macro.
11006
11007         * sysdeps/generic/math-type-macros-double.h:
11008         (M_STRTO_NAN): New macro.
11009         * sysdeps/generic/math-type-macros-float.h: Likewise.
11010         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11011
11012         * sysdeps/generic/math-type-macros.h: Document
11013         M_STRTO_NAN.
11014
11015 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11016
11017         * math/s_nanf.c: Remove __nanf undef.
11018         * math/s_nan.c: Remove __nan undef.
11019         * math/s_nanl.c: Remove __nanl undef.
11020
11021         * sysdeps/generic/math_private.h (__nan): Remove macro
11022         override.
11023         (__nanf): Likewise.
11024         (__nanl): Likewise.
11025
11026 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11027
11028         * math/Makefile (gen-all-calls): New variable.
11029         (generated): Replace gen-libm-calls with gen-all-calls.
11030         (gen-libm-templates.stmp): Likewise.  Also, ensure
11031         the output directory exists or is created and add
11032         dependency on the Makefile.
11033         (calls): Move s_ldexpF into gen-calls.
11034         (gen-calls): New variable.
11035
11036         * math/s_ldexpf.c: Removed.
11037         * math/s_ldexpl.c: Removed.
11038         * math/s_ldexp.c: Refactored into ...
11039         * math/s_ldexp_template.c: New file.
11040
11041         * sysdeps/generic/math-type-macros-double.h: Remove
11042         redundant fall-through definition of declare_mgen_alias.
11043         (declare_mgen_alias_2): New macro.
11044
11045         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11046         New macro for function aliased to two exported symbols.
11047
11048         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11049         new template file.
11050         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11051
11052 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11053
11054         * Makeconfig (all-object-suffixes): Remove .og.
11055         * Makerules (elide-routines.og): Remove.
11056         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11057         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11058         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11059
11060 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11061
11062         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11063         .os objects.
11064
11065 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11066
11067         [BZ #20615]
11068         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11069         fpu directory by non-fpu.
11070         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11071         on non-fpu directory from a fpu directory.
11072
11073 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11074
11075         * include/limits.h: Define
11076         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11077         <bits/libc-header-start.h> instead of including <features.h>.
11078         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11079         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11080         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11081         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11082         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11083         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11084         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11085         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11086         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11087         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11088         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11089         * manual/lang.texi (Width of Type): Document these macros.
11090         * stdlib/tst-width.c: New file.
11091         * stdlib/Makefile (tests): Add tst-width.
11092
11093 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11094
11095         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11096         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11097
11098 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11099
11100         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11101         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11102         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11103
11104 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11105
11106         [BZ #18243]
11107         * rt/Makefile (test): Add tst-shm-cancel.
11108         * rt/tst-shm-cancel.c: New file.
11109         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11110
11111         [BZ #18243]
11112         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11113         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11114         definition.
11115         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11116         uncontended case.
11117         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11118         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11119         (tf): Fix check for uncontended case.
11120         (do_test): Likewise.
11121         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11122         (tf): Fix check for uncontended case.
11123         (do_test): Likewise.
11124         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11125         (tf): Fix check for uncontended case.
11126         (do_test): Likewise.
11127         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11128         (tf): Fix check for uncontended case.
11129         (do_test): Likewise.
11130
11131         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11132         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11133
11134         [BZ #15765]
11135         * nptl/Makefile (tests): Add tst-sem16.
11136         * nptl/tst-sem16.c: New file.
11137         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11138
11139         * nptl/sem_open.c (sem_open): Init pad value to 0.
11140         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11141         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11142
11143 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11144
11145         [BZ #20611]
11146         * inet/Makefile (routines): Add inet6_scopeid_pton.
11147         (tests): Add tst-inet6_scopeid_pton.
11148         * inet/inet6_scopeid_pton.c: New file.
11149         * inet/net-internal.h: Likewise.
11150         * inet/tst-inet6_scopeid_pton.c: New test.
11151         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11152         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11153         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11154
11155 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11156
11157         Remove support for compiling wrappers with PTW.
11158         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11159         * nptl/Makefile (pthread-compat-wrappers): Define.
11160         (libpthread-routines): Use pthread-compat-wrappers.
11161         * sysdeps/unix/sysv/linux/alpha/Makefile
11162         (libpthread-routines, libpthread-shared-only-routines): Remove
11163         ptw- prefix.
11164         * sysdeps/s390/nptl/Makefile
11165         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11166         * sysdeps/ia64/nptl/Makefile
11167         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11168         * sysdeps/nacl/Makefile (libpthread-routines): Use
11169         pthread-compat-wrappers to filter the routines list instead of the
11170         ptw- prefix.
11171
11172 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11173
11174         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11175         with L() and remove explicit suffix, convert real literals
11176         which can be equivalentally substituted with integers, and
11177         transform -L(x) to L(-x).
11178
11179         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11180         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11181         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11182         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11183         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11184         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11185         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11186         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11187         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11188         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11189         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11190         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11191         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11192         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11193         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11194         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11195         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11196         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11197         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11198         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11199         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11200         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11201         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11202         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11203         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11204         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11205         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11206         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11207         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11208         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11209         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11210         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11211         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11212         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11213         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11214         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11215         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11216         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11217         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11218         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11219         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11220         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11221         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11222         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11223         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11224         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11225         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11226         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11227         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11228         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11229
11230 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11231
11232         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11233
11234 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11235
11236         * malloc/Makefile (tests): Remove individual static test names
11237         and just add all of tests-static.
11238
11239         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11240
11241 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11242
11243         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11244         file.
11245
11246         * sysdeps/sparc/fpu/fegetmode.c: New file.
11247         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11248
11249         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11250         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11251
11252         * sysdeps/s390/fpu/fegetmode.c: New file.
11253         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11254
11255         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11256         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11257         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11258         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11259         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11260         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11261
11262         * sysdeps/mips/fpu/fegetmode.c: New file.
11263         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11264
11265         * sysdeps/m68k/fpu/fegetmode.c: New file.
11266         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11267
11268         * sysdeps/ia64/fpu/fegetmode.c: New file.
11269         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11270
11271         * sysdeps/hppa/fpu/fegetmode.c: New file.
11272         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11273
11274         * sysdeps/arm/fegetmode.c: New file.
11275         * sysdeps/arm/fesetmode.c: Likewise.
11276
11277         * sysdeps/alpha/fpu/fegetmode.c: New file.
11278         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11279
11280         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11281         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11282
11283         * math/fegetmode.c: New file.
11284         * math/fesetmode.c: Likewise.
11285         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11286         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11287         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11288         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11289         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11290         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11291         declaration.
11292         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11293         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11294         typedef.
11295         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11296         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11297         (femode_t): New typedef.
11298         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11299         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11300         (femode_t): New typedef.
11301         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11302         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11303         (femode_t): New typedef.
11304         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11305         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11306         (femode_t): New typedef.
11307         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11308         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11309         (femode_t): New typedef.
11310         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11311         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11312         (femode_t): New typedef.
11313         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11314         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11315         (femode_t): New typedef.
11316         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11317         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11318         (femode_t): New typedef.
11319         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11320         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11321         (femode_t): New typedef.
11322         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11323         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11324         (femode_t): New typedef.
11325         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
11326         declaration.
11327         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11328         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11329         (femode_t): New typedef.
11330         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11331         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11332         (femode_t): New typedef.
11333         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11334         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11335         (femode_t): New typedef.
11336         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11337         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11338         (femode_t): New typedef.
11339         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11340         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11341         (femode_t): New typedef.
11342         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11343         * manual/arith.texi (FE_DFL_MODE): Document macro.
11344         (fegetmode): Document function.
11345         (fesetmode): Likewise.
11346         * math/Versions (fegetmode): New libm symbol at version
11347         GLIBC_2.25.
11348         (fesetmode): Likewise.
11349         * math/Makefile (libm-support): Add fegetmode and fesetmode.
11350         (tests): Add test-femode and test-femode-traps.
11351         * math/test-femode-traps.c: New file.
11352         * math/test-femode.c: Likewise.
11353         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
11354         alias for __fe_dfl_env.
11355         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
11356         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
11357         (__fe_dfl_mode): Likewise.
11358         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
11359         version GLIBC_2.25.
11360         * sysdeps/nacl/libm.abilist: Update.
11361         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11362         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11363         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11364         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11365         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11366         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11367         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11368         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11369         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11370         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11371         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11372         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11374         Likewise.
11375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11376         Likewise.
11377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11378         Likewise.
11379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11380         Likewise.
11381         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11382         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11383         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11384         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11385         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11386         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11387         Likewise.
11388         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11389         Likewise.
11390         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11391         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11392         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11393
11394 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11395
11396         [BZ #20495]
11397         [BZ #20508]
11398         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
11399         processors, set Use_dl_runtime_resolve_slow and set
11400         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
11401         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11402         New.
11403         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11404         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
11405         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11406         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
11407         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
11408         if Use_dl_runtime_resolve_opt is set.  Use
11409         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
11410         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
11411         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
11412         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
11413         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
11414         New.
11415         (_dl_runtime_resolve_opt): Likewise.
11416         (_dl_runtime_profile): Define only if _dl_runtime_profile is
11417         defined.
11418
11419 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
11420
11421         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
11422         __libc_memalign with "+ RELA R_390_GLOB_DAT".
11423
11424 2016-09-06  Florian Weimer  <fweimer@redhat.com>
11425
11426         Convert malloc to __libc_lock.  Automated part, using this Perl
11427         s/// command:
11428           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
11429             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
11430         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
11431         conversion.
11432
11433 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
11434
11435         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
11436         (linknamespace-symlists-tests): Likewise.
11437         (linknamespace-header-tests): Likewise.
11438
11439 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
11440
11441         [BZ #19810]
11442         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
11443         * elf/tst-noload.c: New test case.
11444         * elf/Makefile (tests): Add tst-noload.
11445
11446 2016-09-02  Roland McGrath  <roland@hack.frob.com>
11447
11448         * sysdeps/nacl/dup.c: Add libc_hidden_def.
11449
11450         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
11451         not any more.
11452
11453         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
11454
11455 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11456
11457         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
11458         (do_cos_slow): Likewise.
11459         (do_sin): Likewise.
11460         (do_sin_slow): Likewise.
11461         (slow): Likewise.
11462         (slow1): Likewise.
11463         (slow2): Likewise.
11464         (sloww): Likewise.
11465         (sloww1): Likewise.
11466         (sloww2): Likewise.
11467         (bsloww): Likewise.
11468         (bsloww1): Likewise.
11469         (bsloww2): Likewise.
11470         (cslow2): Likewise.
11471
11472         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
11473
11474         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
11475         arguments.  Consolidate input partitioning from callers here.
11476         (do_cos_slow): Likewise.
11477         (do_sin): Likewise.
11478         (do_sin_slow): Likewise.
11479         (do_sincos_1): Remove the no longer necessary input partitioning.
11480         (do_sincos_2): Likewise.
11481         (__sin): Likewise.
11482         (__cos): Likewise.
11483         (slow1): Likewise.
11484         (slow2): Likewise.
11485         (sloww1): Likewise.
11486         (sloww2): Likewise.
11487         (bsloww1): Likewise.
11488         (bsloww2): Likewise.
11489         (cslow2): Likewise.
11490
11491 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11492
11493         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
11494         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
11495         outside of allocated array.
11496
11497 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11498
11499         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
11500         instead of MB_CUR_MAX to avoid variable-length array.
11501
11502 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11503
11504         * math/Makefile (libm-calls): Remove k_rem_pio2F.
11505         (type-double-routines): Add k_rem_pio2.
11506         (type-float-routines): Add k_rem_pio2f.
11507
11508         * sysdeps/generic/math_private.h:
11509         (__kernel_rem_pio2l): Removed.
11510
11511         * math/k_rem_pio2l.c: Removed.
11512         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
11513         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
11514         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
11515         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
11516
11517 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11518
11519         * math/Makefile (gen-libm-calls): Add s_fmin
11520         (libm-calls): Remove above.
11521
11522         * math/s_fmin.c: Refactor into ...
11523         * math/s_fmin_template.c: New file.
11524
11525         * math/s_fminf.c: Removed.
11526         * math/s_fminl.c: Removed.
11527         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11528         (LDOUBLE_fmin_libm_version): New macro.
11529
11530         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
11531         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
11532
11533 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11534
11535         * math/Makefile: (gen-libm-calls): Add s_fmax.
11536         (libm-calls): Remove above.
11537
11538         * math/s_fmax.c: Refactor into ...
11539         * math/s_fmax_template.c: New file.
11540         * math/s_fmaxf.c: Removed.
11541         * math/s_fmaxl.c: Removed.
11542
11543         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11544         (LDOUBLE_fmaxl_libm_version): New macro.
11545
11546         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
11547         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
11548
11549         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
11550         s_fmin.c to pick the aarch64 version of the file.
11551         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
11552         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
11553
11554 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11555
11556         * math/Makefile: (gen-libm-calls): Add s_nextdown.
11557         (libm-calls): Remove above.
11558
11559         * math/s_nextdown.c: Refactor into ...
11560         * math/s_nextdown_template.c: New file.
11561         * math/s_nextdownf.c: Removed.
11562         * math/s_nextdownl.c: Removed.
11563
11564         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
11565
11566 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11567
11568         * math/Makefile (gen-libm-calls): Add s_fdim.
11569         (libm-calls): Move to above.
11570
11571         * math/s_fdim.c: Renamed and refactored into to ...
11572         * math/s_fdim_template.c: New file.
11573         * math/s_fdiml.c: Removed.
11574         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
11575         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
11576
11577         * sysdeps/generic/math-type-macros-double.h:
11578         (declare_mgen_alias): Don't declare if already declared.
11579         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
11580         Likewise.
11581
11582         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11583         (declare_mgen_alias): Don't declare if already declared.
11584         (M_LIBM_NEED_COMPAT): Likewise.
11585         (declare_mgen_libm_compat): Likewise.
11586         (LDOUBLE_fdiml_libm_version): New macro.
11587
11588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11589         Include math/s_fdim.c now that ldbl-opt version is not needed.
11590         (declare_mgen_alias): New macro to disable aliasing.
11591
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
11593         (declare_mgen_alias): Likewise.
11594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
11595         (declare_mgen_alias): Likewise.
11596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
11597         (declare_mgen_alias): Likewise.
11598         (M_LIBM_NEED_COMPAT): Likewise.
11599
11600 2016-09-01  Florian Weimer  <fweimer@redhat.com>
11601
11602         [BZ #20525]
11603         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
11604         Include <linux/quota.h>.
11605         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
11606         and btodb.
11607         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
11608         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
11609         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
11610         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
11611         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
11612         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
11613         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
11614         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
11615         types.
11616         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
11617         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
11618
11619 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11620
11621         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
11622         (gammal_positive): Fix spacing.
11623         (__ieee754_gammal_r): Likewise.
11624
11625 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11626
11627         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
11628         (_Float128): Define as long double, always.
11629         (L): Apply long double type suffix, always.
11630
11631         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
11632         _Float128, excepting comments.
11633
11634         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11639         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11642         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11645         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11647         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11648         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11649         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11650         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11653         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11657         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11666         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11670         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11672         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11674         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
11679         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11683         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11685         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11686         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11689         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11690         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11691         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11692         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11696         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11697         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11698         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11699         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11700         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11701         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11702
11703         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
11704         _Float128, and include math_private.h.
11705         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11706
11707         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
11708         long double semantics.
11709         (_Float128): Likewise.
11710         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
11711         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11712         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11713         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11714
11715 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
11716
11717         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
11718         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
11719         * sysdeps/s390/configure: Regenerated.
11720         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
11721         instruction for raising over-/underflow if z196 zarch is supported
11722         by default.
11723         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
11724
11725 2016-08-30  Svante Signell  <svante.signell@gmail.com>
11726
11727         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
11728         it point to a dumb buffer for RPC to fill it.
11729
11730 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11731
11732         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
11733         instead of if/else.
11734         (do_sin_slow): Likewise.
11735         (do_sincos_1): Use fabs instead of if/else.
11736         (do_sincos_2): Likewise.
11737         (__sin): Likewise.
11738         (__cos): Likewise.
11739         (slow2): Likewise.
11740         (sloww): Likewise.
11741         (sloww1): Likewise.  Drop argument M.
11742         (sloww2): Use fabs instead of if/else.
11743         (bsloww): Likewise.
11744         (bsloww1): Likewise.
11745         (bsloww2): Likewise.
11746
11747         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
11748         fall through comment.
11749         (do_sincos_1): Likewise.
11750
11751         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
11752         Consolidate switch cases 0 and 2.
11753
11754 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11755
11756         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
11757         (libm-calls): Remove the above.
11758
11759         * math/s_cexp_template.c: Update using type-generic macros.
11760         * math/s_clog10_template.c: Likewise.
11761         * math/s_cpow_template.c: Likewise.
11762         * math/s_clog_template.c: Likewise.
11763         * math/s_cproj_template.c: Likewise.
11764         * math/s_csqrt_template.c: Likewise.
11765
11766         * math/s_cexp.c: Removed.
11767         * math/s_cexpf.c: Removed.
11768         * math/s_cexpl.c: Removed.
11769         * math/s_clog10.c: Removed.
11770         * math/s_clog10f.c: Removed.
11771         * math/s_clog10l.c: Removed.
11772         * math/s_cpow.c: Removed.
11773         * math/s_cpowf.c: Removed.
11774         * math/s_cpowl.c: Removed.
11775         * math/s_clog.c: Removed.
11776         * math/s_clogf.c: Removed.
11777         * math/s_clogl.c: Removed.
11778         * math/s_cproj.c: Removed.
11779         * math/s_cprojf.c: Removed.
11780         * math/s_cprojl.c: Removed.
11781         * math/s_csqrt.c: Removed.
11782         * math/s_csqrtf.c: Removed.
11783         * math/s_csqrtl.c: Removed.
11784
11785         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
11786         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
11787         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
11788         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
11789         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
11790         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
11791
11792         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
11793         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
11794         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
11795         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
11796         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
11797         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
11798         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
11799         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
11800         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
11801         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
11802         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
11803
11804         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
11805         version.
11806
11807         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
11808         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
11809         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
11810         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
11811
11812 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11813
11814         * s_cexp_template.c: Copy of s_cexp.c.
11815         * s_clog_template.c: Copy of s_clog.c.
11816         * s_clog10_template.c: Copy of s_clog10.c.
11817         * s_cpow_template.c: Copy of s_cpow.c.
11818         * s_cproj_template.c: Copy of s_cproj.c.
11819         * s_csqrt_template.c: Copy of s_csqrt.c.
11820
11821 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11822
11823         [BZ #20517]
11824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
11825         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
11826         exported.
11827
11828 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
11829
11830         * math/fetestexceptflag.c: New file.
11831         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
11832         Stefan Liebler.
11833         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11834         (fetestexceptflag): New function declaration.
11835         * manual/arith.texi (fetestexceptflag): Document function.
11836         * math/Versions (fetestexceptflag): New libm symbol at version
11837         GLIBC_2.25.
11838         * math/Makefile (libm-support): Add fetestexceptflag.
11839         (tests): Add test-fetestexceptflag.
11840         * math/test-fetestexceptflag.c: New file.
11841         * sysdeps/nacl/libm.abilist: Update.
11842         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11843         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11844         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11845         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11846         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11847         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11848         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11849         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11850         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11851         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11852         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11853         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11855         Likewise.
11856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11857         Likewise.
11858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11859         Likewise.
11860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11861         Likewise.
11862         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11863         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11864         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11865         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11866         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11867         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11868         Likewise.
11869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11870         Likewise.
11871         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11872         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11873         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11874
11875 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11876
11877         [BZ #20432]
11878         Avoid strong references to malloc-internal symbols when linking
11879         statically, to support statically interposed mallocs.
11880         * include/libc-symbols.h (call_function_static_weak): New macro.
11881         * malloc/Makefile (tests): Add tst-interpose-nothread,
11882         tst-interpose-thread, tst-interpose-static-nothread,
11883         tst-interpose-static-thread.
11884         (tests-static): Add tst-interpose-static-nothread,
11885         tst-interpose-static-thread.
11886         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
11887         tst-interpose-aux-thread.o.
11888         (test-extras): Add tst-interpose-aux-nothread,
11889         tst-interpose-aux-thread.
11890         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
11891         tst-interpose-aux-nothread.o.
11892         (tst-interpose-thread, tst-interpose-static-thread): Link with
11893         tst-interpose-aux-thread.o and libthread.
11894         * malloc/tst-interpose-aux-nothread.c: New file.
11895         * malloc/tst-interpose-aux-thread.c: Likewise.
11896         * malloc/tst-interpose-aux.c: Likewise.
11897         * malloc/tst-interpose-aux.h: Likewise.
11898         * malloc/tst-interpose-nothread.c: Likewise.
11899         * malloc/tst-interpose-skeleton.c: Likewise.
11900         * malloc/tst-interpose-static-nothread.c: Likewise.
11901         * malloc/tst-interpose-static-thread.c: Likewise.
11902         * malloc/tst-interpose-thread.c: Likewise.
11903         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
11904         * sysdeps/mach/hurd/fork.c (__fork): Only call
11905         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
11906         __malloc_fork_unlock_child if defined.
11907         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
11908
11909 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11910
11911         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
11912         timespec C99 designated initialization.
11913
11914 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11915
11916         [BZ #19946]
11917         Avoid expected SIGALRM signals.
11918         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
11919         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
11920         (xpthread_create, xpthread_detach, xpthread_join)
11921         (delayed_exit_thread, delayed_exit): New functions.
11922         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
11923         (tf): Use xpthread_cond_wait.
11924         (do_test): Likewise.  Replace alarm with delayed_exit.
11925         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11926         (do_test): Call delayed_exit.  Report failure.
11927         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11928         (do_test): Call delayed_exit.
11929         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11930         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
11931         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11932         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
11933         error.
11934         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
11935         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
11936         error.
11937         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
11938         (do_test): Call delayed_exit.
11939         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
11940         (do_test): Call delayed_exit.
11941         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
11942         (do_test): Call delayed_exit instead of alarm.  Use
11943         xpthread_mutex_lock.
11944         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
11945         (do_test): Call delayed_exit instead of alarm.  Use
11946         xpthread_mutex_lock.
11947         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
11948         (do_test): Call delayed_exit instead of alarm.
11949         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
11950         (do_test): Call delayed_exit instead of alarm.  Use
11951         xpthread_spin_lock.
11952         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
11953         (do_test): Call delayed_exit instead of alarm.  Use
11954         xpthread_join.
11955
11956 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11957
11958         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
11959         adjust CFA when allocating register save area on re-aligned
11960         stack.
11961
11962 2016-08-26  Florian Weimer  <fweimer@redhat.com>
11963
11964         * string/tst-cmp.c: New test.
11965         * string/Makefile (tests): Add it.
11966
11967 2016-08-25  Mark Wielaard  <mark@klomp.org>
11968
11969         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
11970         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
11971         (check_tree_recurse): Use newly defined accessors.
11972         (check_tree): Likewise.
11973         (maybe_split_for_insert): Likewise.
11974         (__tfind): Likewise.
11975         (__tdelete): Likewise.
11976         (trecurse): Likewise.
11977         (tdestroy_recurse): Likewise.
11978         (__tsearch): Likewise. And add asserts for malloc alignment.
11979         (__twalk): Cast root to node in case CHECK_TREE is defined.
11980
11981 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11982
11983         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
11984
11985 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11986
11987         * math/Makefile (libm-gen-calls): Add
11988         catan, catanh, ctan, ctanh.
11989         (libm-calls): Remove the above.
11990
11991         * math/s_catan_template.c: Update using type-generic macros.
11992         * math/s_catanh_template.c: Likewise.
11993         * math/s_ctan_template.c: Likewise.
11994         * math/s_ctanh_template.c: Likewise.
11995
11996         * math/s_catanf.c: Removed.
11997         * math/s_catan.c: Removed.
11998         * math/s_catanl.c: Removed.
11999         * math/s_catanhf.c: Removed.
12000         * math/s_catanh.c: Removed.
12001         * math/s_catanhl.c: Removed.
12002         * math/s_ctanf.c: Removed.
12003         * math/s_ctan.c: Removed.
12004         * math/s_ctanl.c: Removed.
12005         * math/s_ctanhf.c: Removed.
12006         * math/s_ctanh.c: Removed.
12007         * math/s_ctanhl.c: Removed.
12008
12009         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12010         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12011         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12012         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12013         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12014         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12015
12016         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12017         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12018         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12019         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12020
12021 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12022
12023         * s_catan_template.c: Copy of s_catan.c.
12024         * s_catanh_template.c: Copy of s_catanh.c.
12025         * s_ctan_template.c: Copy of s_ctan.c.
12026         * s_ctanh_template.c: Copy of s_ctanh.c.
12027
12028 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12029
12030         * math/Makefile (gen-libm-calls): Move
12031         casin, casinh, csin, csinh here.
12032         (libm-calls): Remove the above.
12033
12034         * math/s_casin_template.c: Update using type-generic macros.
12035         * math/s_casinh_template.c: Likewise.
12036         * math/s_csin_template.c: Likewise.
12037         * math/s_csinh_template.c: Likewise.
12038         * math/k_casinh_template.c: Likewise.
12039
12040         * math/s_casinf.c: Removed.
12041         * math/s_casin.c: Removed.
12042         * math/s_casinl.c: Removed.
12043         * math/s_casinh.c: Removed.
12044         * math/s_casinhf.c: Removed.
12045         * math/s_casinhl.c: Removed.
12046         * math/s_csin.c: Removed.
12047         * math/s_csinf.c: Removed.
12048         * math/s_csinl.c: Removed.
12049         * math/s_csinh.c: Removed.
12050         * math/s_csinhf.c: Removed.
12051         * math/s_csinhl.c: Removed.
12052         * math/k_casinh.c: Removed.
12053         * math/k_casinhf.c: Removed.
12054         * math/k_casinhl.c: Removed.
12055
12056         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12057         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12058         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12059         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12060
12061         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12062         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12063         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12064         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12065         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12066         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12067         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12068         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12069
12070         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12071         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12072         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12073         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12074
12075         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12076         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12077         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12078         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12079
12080 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12081
12082         * s_casin_template.c: Copy of s_casin.c.
12083         * s_casinh_template.c: Copy of s_casinh.c.
12084         * s_csin_template.c: Copy of s_csin.c.
12085         * s_csinh_template.c: Copy of s_csinh.c.
12086         * k_casinh_template.c: Copy of k_casinh.c.
12087
12088 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12089
12090         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12091
12092 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12093
12094         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12095         (mul_split) Remove, rename as mul_splitl, remove
12096         redundant float.h include, and include via mul_splitl.h
12097
12098         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12099         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12100         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12101         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12102         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12103
12104         * math/mul_splitl.h: New file.
12105
12106         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12107         Move into mul_split.h, and remove redundant float.h include.
12108
12109         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12110         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12111         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12113
12114         * math/mul_split.h: New file.
12115
12116 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12117
12118         * math/Makefile (libm-gen-calls): Move
12119         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12120         (libm-calls): Remove above.
12121
12122         * math/s_cacos_template.c: Update using type-generic macros.
12123         * math/s_cacosh_template.c: Likewise.
12124         * math/s_ccos_template.c: Likewise.
12125         * math/s_ccosh_template.c: Likewise.
12126
12127         * math/s_cacosf.c: Removed.
12128         * math/s_cacos.c: Removed.
12129         * math/s_cacosl.c: Removed.
12130         * math/s_cacoshf.c: Removed.
12131         * math/s_cacosh.c: Removed.
12132         * math/s_cacoshl.c: Removed.
12133         * math/s_ccosf.c: Removed.
12134         * math/s_ccos.c: Removed.
12135         * math/s_ccosl.c: Removed.
12136         * math/s_ccoshf.c: Removed.
12137         * math/s_ccosh.c: Removed.
12138         * math/s_ccoshl.c: Removed.
12139
12140         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12141         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12142         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12143         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12144         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12145         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12146
12147         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12148         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12149         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12150         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12151
12152         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12153         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12154         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12155         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12156
12157 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12158
12159         * s_cacos_template.c: Copy of s_cacos.c.
12160         * s_cacosh_template.c: Copy of s_cacosh.c.
12161         * s_ccos_template.c: Copy of s_ccos.c.
12162         * s_ccosh_template.c: Copy of s_ccosh.c.
12163
12164 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12165
12166         * stdlib/tst-strtod-round-skeleton.c:
12167         Refactored from tst-strtod-round.c.
12168
12169         (L_): New macro to apply literal modifier.
12170         (FNPFX): New macro to select str or wcs prefix.
12171         (CHAR): New macro to choose wchar_t or char.
12172         (STRM): New macro to choose printf for tested character type.
12173
12174         (STRTO): New macro to choose appropriate string -> real function.
12175         (FNPFXS): Stringitized version of FNPFX.
12176         (STR): Support for above macro.
12177         (STRX): Likewise.
12178
12179         (TEST): Update with above macros.
12180         (test): Likewise.
12181         (GEN_ONE_TEST): Likewise.
12182         (test_in_one_mode): Likewise.
12183
12184         * stdlib/tst-strtod-round.c: New file.
12185         * wcsmbs/tst-wcstod-round.c: New file.
12186
12187         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12188         (tst-wcstod-round): Add libm depencency for fesetround.
12189
12190 2016-08-19  Zack Weinberg  <zackw@panix.com>
12191
12192         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12193
12194 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12195
12196         [BZ #20477]
12197         * resolv/res_hconf.c (do_init): Use atomic access.
12198         * resolv/res_hconf.h: Add comments.
12199         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12200         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12201         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12202
12203 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12204
12205         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12206         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12207         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12208         Likewise.
12209
12210 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12211
12212         [BZ #16907]
12213         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12214         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12215         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12216         (__attribute__): Remove definition.
12217
12218 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12219
12220         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12221         Remove unused sqrtl declaration.
12222
12223 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12224
12225         * math/Makefile: (gen-libm-templates.stmp): New rule.
12226         (libm-calls): Move carg conj cimag and cabs into ...
12227         (gen-libm-calls): New variable.
12228         (generated): Inform Make objects from gen-libm-calls
12229         may be generated.
12230
12231         * sysdeps/generic/math-type-macros.h: New file.
12232         * sysdeps/generic/math-type-macros-float.h: Likewise.
12233         * sysdeps/generic/math-type-macros-double.h: Likewise.
12234         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12235         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12236         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12237
12238         * math/cabs.c: Refactor into
12239         * math/cabs_template.c: new file.
12240         * math/cabsf.c: Removed.
12241         * math/cabsl.c: Removed.
12242         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12243         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12244
12245         * math/carg.c: Refactor into
12246         * math/carg_template.c: new file.
12247         * math/cargf.c: Removed.
12248         * math/cargl.c: Removed.
12249         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12250         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12251
12252         * math/conj.c: Refactor into
12253         * math/conj_template.c: new file.
12254         * math/conjf.c: Removed.
12255         * math/conjl.c: Removed.
12256         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12257         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12258
12259         * math/cimag.c: Refactor into
12260         * math/cimag_template.c: new file.
12261         * math/cimagf.c: Removed.
12262         * math/cimagl.c: Removed.
12263         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12264         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12265
12266         * math/cimag.c: Refactor into
12267         * math/cimag_template.c: new file.
12268         * math/cimagf.c: Removed.
12269         * math/cimagl.c: Removed.
12270         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12271         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12272
12273 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12274
12275         Reduce time to expected nptl/tst-once5 failure.
12276         * nptl/tst-once5.cc (TIMEOUT): Define.
12277
12278 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12279
12280         [BZ #20452]
12281         Avoid additional copies of objects in libc.a in static libraries.
12282         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12283         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12284         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12285         rt-sysdep.
12286         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12287         Add nptl-sysdep.
12288         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12289         Add ptw-sysdep.
12290         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12291         rt-sysdep.
12292         * sysdeps/unix/sysv/linux/alpha/Makefile
12293         (libpthread-shared-only-routines): Add ptw-sysdep,
12294         ptw-sigprocmask, ptw-rt_sigaction.
12295         * sysdeps/unix/sysv/linux/ia64/Makefile
12296         (librt-shared-only-routines): Add rt-sysdep.
12297         * sysdeps/unix/sysv/linux/i386/Makefile
12298         (libpthread-shared-only-routines): Add libc-do-syscall.
12299         * sysdeps/unix/sysv/linux/microblaze/Makefile
12300         (libpthread-shared-only-routines): Add sysdep.
12301         * sysdeps/unix/sysv/linux/powerpc/Makefile
12302         (librt-shared-only-routines): Add rt-sysdep.
12303         (libpthread-shared-only-routines): Add sysdep.
12304         * sysdeps/unix/sysv/linux/s390/Makefile
12305         (librt-shared-only-routines): Add rt-sysdep.
12306         * sysdeps/unix/sysv/linux/sparc/Makefile
12307         (librt-shared-only-routines): Add rt-sysdep.
12308         (libpthread-shared-only-routines): Add sysdep.
12309         * sysdeps/unix/sysv/linux/tile/Makefile
12310         (libpthread-shared-only-routines): Likewise.
12311
12312 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
12313
12314         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
12315         Mask implicit bit out of unpacked value.
12316         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
12317         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
12318         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
12319
12320         * sysdeps/sparc/fpu/fesetexcept.c: New file.
12321
12322         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
12323
12324         * sysdeps/s390/fpu/fesetexcept.c: New file.
12325
12326         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
12327         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
12328         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
12329
12330         * sysdeps/mips/fpu/fesetexcept.c: New file.
12331
12332         * sysdeps/m68k/fpu/fesetexcept.c: New file.
12333
12334         * sysdeps/ia64/fpu/fesetexcept.c: New file.
12335
12336         * sysdeps/hppa/fpu/fesetexcept.c: New file.
12337
12338         * sysdeps/arm/fesetexcept.c: New file.
12339
12340         * sysdeps/alpha/fpu/fesetexcept.c: New file.
12341
12342         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
12343
12344         * math/fesetexcept.c: New file.
12345         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
12346         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
12347         * math/fenv.h: Define
12348         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12349         <bits/libc-header-start.h> instead of including <features.h>.
12350         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
12351         declaration.
12352         * manual/arith.texi (fesetexcept): Document function.
12353         * math/Versions (fesetexcept): New libm symbol at version
12354         GLIBC_2.25.
12355         * math/Makefile (libm-support): Add fesetexcept.
12356         (tests): Add test-fesetexcept and test-fesetexcept-traps.
12357         * math/test-fesetexcept.c: New file.
12358         * math/test-fesetexcept-traps.c: Likewise.
12359         * sysdeps/nacl/libm.abilist: Update.
12360         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12361         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12362         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12363         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12364         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12365         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12366         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12367         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12368         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12369         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12370         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12371         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12373         Likewise.
12374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12375         Likewise.
12376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12377         Likewise.
12378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12379         Likewise.
12380         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12381         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12382         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12383         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12384         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12385         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12386         Likewise.
12387         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12388         Likewise.
12389         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12390         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12391         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12392
12393 2016-08-16  Florian Weimer  <fweimer@redhat.com>
12394
12395         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
12396         New.
12397         (do_test): Apply default_stack_size_in_mb if not set.
12398         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
12399
12400 2016-08-15  Andreas Schwab  <schwab@suse.de>
12401
12402         [BZ #20435]
12403         CVE-2016-6323
12404         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
12405         as .cantunwind.
12406
12407 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
12408
12409         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
12410         comment from fraiseexcpt.c.
12411
12412         * math/test-fexcept.c (feraiseexcept_exact): New function.
12413         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
12414         (test_except): Likewise.
12415
12416 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
12417
12418         [BZ #20455]
12419         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
12420         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
12421         to be restored.
12422
12423         * math/test-fexcept-traps.c: New file.
12424         * math/test-fexcept.c: Likewise.
12425         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
12426         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
12427         macro.
12428         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
12429         (EXCEPTION_SET_FORCES_TRAP): Likewise.
12430
12431 2016-08-09  Torvald Riegel  <triegel@redhat.com>
12432
12433         * include/atomic.h (atomic_fetch_and_relaxed,
12434         atomic_fetch_and_release, atomic_fetch_or_release,
12435         atomic_fetch_xor_release): New.
12436
12437 2016-08-06  Christian Seiler  <christian@iwakd.de>
12438
12439         [BZ #20444]
12440         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
12441         MACH_PORT_NULL.
12442
12443 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12444
12445         * math/s_fdim.c: Avoid alias renamed.
12446         * math/s_fdimf.c: Likewise.
12447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12448         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12449         Add s_fdimf-vis3, s_fdim-vis3.
12450         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12451         (CFLAGS-s_fdim-vis3.c): Likewise.
12452         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
12453         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
12454
12455 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12456
12457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12458         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12459         Remove s_fdimf-vis3, s_fdim-vis3.
12460         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
12461         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
12462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
12463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
12464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
12465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
12466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
12467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
12468         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
12469         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
12470
12471 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12472
12473         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
12474         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
12475         -Wa,-Av9a -mvis.
12476
12477 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12478
12479         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
12480         LIT() to individual constants in simple expressions
12481         after splitting on spaces.
12482         (_apply_lit): Rename replaced version, and use it to
12483         apply to what appears to be a token.
12484
12485         * math/libm-test.inc: Fix many, many issues with
12486         spacing.
12487
12488 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
12489
12490         * math/math.h: Move comment about <bits/mathdef.h> definitions
12491         above inclusion of <bits/mathdef.h>.  Do not mention
12492         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
12493
12494 2016-08-05  Torvald Riegel  <triegel@redhat.com>
12495
12496         * include/atomic.h (atomic_exchange_relaxed): New.
12497
12498 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
12499
12500         * math/e_scalb.c: Do not include <fenv.h>.
12501         (invalid_fn): Do calculation resulting in NaN instead of raising
12502         FE_INVALID and returning a NaN explicitly.
12503         * math/e_scalbf.c: Do not include <fenv.h>.
12504         (invalid_fn): Do calculation resulting in NaN instead of raising
12505         FE_INVALID and returning a NaN explicitly.
12506         * math/e_scalbl.c: Do not include <fenv.h>.
12507         (invalid_fn): Do calculation resulting in NaN instead of raising
12508         FE_INVALID and returning a NaN explicitly.
12509
12510 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
12511
12512         * po/de.po: Updated from Translation Project.
12513         * po/fi.po: Likewise.
12514         * po/sv.po: Likewise.
12515
12516 2016-08-04  Florian Weimer  <fweimer@redhat.com>
12517
12518         [BZ #20452]
12519         Use sysdep.o from libc.a in static libraries.
12520         * sysdeps/unix/sysv/linux/i386/Makefile
12521         (libpthread-shared-only-routines): Add sysdep.
12522         (librt-shared-only-routines): Likewise.
12523
12524 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12525
12526         * math/tgmath.h (nextdown): Define if
12527         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
12528         (nextup): Likewise.
12529
12530         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
12531         macro.
12532         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12533         Document.
12534         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
12535         Document macro.
12536         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
12537         (exp10f): Likewise.
12538         (exp10l): Likewise.
12539         * math/bits/mathcalls.h (exp10): Declare if
12540         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
12541
12542         * manual/arith.texi (nextup): Fix typo in last change.
12543
12544 2016-08-03  Zack Weinberg  <zackw@panix.com>
12545
12546         [BZ #19239]
12547         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
12548         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
12549         define major, minor, and makedev to issue deprecation warnings on use.
12550         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
12551         previously-activated deprecation warnings for these macros and prevent
12552         subsequent inclusions of this header from having any effect.
12553         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
12554         including <sys/sysmacros.h>, and undefine it again afterward.
12555
12556 2016-08-03  Zack Weinberg  <zackw@panix.com>
12557
12558         * sysdeps/generic/sys/sysmacros.h: Delete file.
12559         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
12560         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
12561         * bits/sysmacros.h: ... here; this encoding is now the generic
12562         encoding.  Now defines only the following macros:
12563         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
12564         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
12565         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
12566
12567         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
12568         bits/sysmacros.h and the above new macros to generate the
12569         public implementations of major, minor, and makedev.
12570         * misc/tst-makedev.c: New test.
12571         * include/sys/sysmacros.h: New wrapper.
12572
12573         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
12574         (routines): Add makedev.
12575         (tests): Add tst-makedev.
12576         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
12577         gnu_dev_makedev.
12578         * posix/Makefile (headers): Remove sys/sysmacros.h.
12579         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
12580
12581         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
12582         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
12583         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
12584         * sysdeps/unix/sysv/linux/alpha/libc.abilist
12585         * sysdeps/unix/sysv/linux/arm/libc.abilist
12586         * sysdeps/unix/sysv/linux/hppa/libc.abilist
12587         * sysdeps/unix/sysv/linux/i386/libc.abilist
12588         * sysdeps/unix/sysv/linux/ia64/libc.abilist
12589         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
12590         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
12591         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
12592         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
12593         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
12594         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
12595         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
12596         * sysdeps/unix/sysv/linux/nios2/libc.abilist
12597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
12598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
12599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
12600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
12601         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
12602         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12603         * sysdeps/unix/sysv/linux/sh/libc.abilist
12604         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
12605         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
12606         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
12607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
12608         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
12609         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
12610         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
12611         Add GLIBC_2.25.
12612
12613         * include/features.h (__glibc_clang_prereq): New macro.
12614         * misc/sys/cdefs.h (__glibc_clang_has_extension)
12615         (__attribute_deprecated_msg__): New macros.
12616
12617 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12618
12619         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
12620         macro.
12621         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
12622         * manual/arith.texi (issignaling): Document as ISO from TS
12623         18661-1:2014.
12624         (nextup): Likewise.
12625         (nextupf): Likewise.
12626         (nextupl): Likewise.
12627         (nextdown): Likewise.
12628         (nextdownf): Likewise.
12629         (nextdownl): Likewise.
12630         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
12631         macro.
12632         * math/math.h: Define
12633         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12634         <bits/libc-header-start.h> instead of including <features.h>.
12635         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
12636         [__USE_GNU].
12637         * math/bits/mathcalls.h (nextdown): Declare if
12638         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
12639         (nextup): Likewise.
12640         (__issignaling): Likewise.
12641
12642 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12643
12644         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
12645         check, and remove __glibc_likely hint
12646         from FP_INFINITE check.
12647         * s_csinhf.c (__csinhf): Likewise.
12648
12649         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
12650         hint from FP_INFINITE check.
12651         * s_csinhl.c (__csinhl): Likewise.
12652
12653 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12654
12655         * math/Makefile (libm-calls): Insert F placeholder into
12656         object names.  Move w_lgamma_compat* routines into
12657         (libm-compat-calls): New variable.
12658         (libm-compat-calls-ldouble-yes): New variable.
12659         (calls): Insert F placeholder.
12660         (generated): Redefine using new type-foreach macro call.
12661         (routines): Likewise.
12662
12663         (types): New variable to hold a list of symbolic names
12664         for each type supported by the target machine.
12665         (libm-routines): Redefine using new types variable.
12666         (type-foreach): macro to replace fooF with the
12667         appropriately suffixed foo for each types.
12668
12669         (type-ldouble-suffix): New variable.
12670         (type-ldouble-routines): Likewise.
12671         (type-ldouble-yes): Likewise.
12672         (type-double-suffix): Likewise.
12673         (type-double-routines): Likewise.
12674         (type-float-suffix): Likewise.
12675         (type-float-routines): Likewise.
12676
12677         (dbl-only-routines): Remove.
12678         (long-c-yes): Likewise.
12679         (long-m-routines): Likewise.
12680         (long-m-support): Likewise.
12681         (long-m-yes): Likewise.
12682         (test-longdouble-yes): Likewise.
12683
12684         (test-float.o): Simplify by increasing the scope of the
12685         recipe which adds libm-test.stmp to the vector types.
12686         (test-ifloat.o): Likewise.
12687         (test-float-finite.o): Likewise.
12688         (test-double.o): Likewise
12689         (test-idouble.o): Likewise.
12690         (test-double-finite.o): Likewise.
12691         (test-ldouble.o): Likewise
12692         (test-ildoubl.o): Likewise.
12693         (test-ldouble-finite.o): Likewise.
12694
12695         (libm-tests): Redefine type tests using foreach and the
12696         list of types in types.
12697
12698         (CPPFLAGS-test-ildoubl.c): Rename to
12699         (CPPFLAGS-test-ildouble.c): New variable
12700
12701         * math/test-ildoubl.c: Rename to
12702         * math/test-ildouble.c: New file.
12703
12704 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12705
12706         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
12707         Use fabsl instead of fabs.
12708         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
12709         Likewise.
12710         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
12711         Add long double suffix to constant to ensure proper
12712         promotion to long double.
12713
12714 2016-08-03  Tom Tromey  <tom@tromey.com>
12715
12716         [BZ #20311]
12717         * nptl_db/Makefile (headers): Add proc_service.h.
12718         * nptl_db/proc_service.h: Add include guard.  Use
12719         __BEGIN/__END_DECLS.
12720         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
12721         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
12722         arguments.
12723
12724
12725 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12726
12727         [BZ #17730]
12728         Avoid using memalign for TCB allocations.
12729         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
12730         (_dl_allocate_tls_storage): Use malloc and manual alignment.
12731         Avoid alignment gap in the TLS_DTV_AT_TP case.
12732         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
12733         determine the pointer to free.
12734         * nptl/tst-tls3-malloc.c: New test.
12735         * nptl/Makefile (tests): Add it.
12736         (tst-tls3-malloc): Link with libdl, libpthread.
12737         (LDFLAGS-tst-tls3-malloc): Set.
12738         (tst-tls3-malloc.out): Depend on DSO used in test.
12739
12740 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12741
12742         [BZ #17730]
12743         Avoid using memalign for TLS allocations.
12744         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
12745         is_static member with to_free member.
12746         (union dtv): Use struct dtv_pointer.
12747         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
12748         dtv_pointer instead of is_static.
12749         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
12750         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
12751         instead of val.
12752         (allocate_dtv_entry): New function.
12753         (allocate_and_init): Return struct dtv_pointer.  Call
12754         allocate_dtv_entry instead of __libc_memalign.
12755         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
12756         instead of val.
12757         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
12758         instead of is_static.  Adjust call to allocate_and_init.
12759         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
12760         struct dtv_pointer instead of val.
12761
12762 2016-08-03  Florian Weimer  <fweimer@redhat.com>
12763
12764         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
12765         (MALLOC_ALIGN_MASK): Move ...
12766         * malloc/malloc-internal.h: ... to here.
12767         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
12768
12769 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
12770
12771         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
12772         (UDP_ENCAP_GTP1U): Likewise.
12773
12774         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
12775         (PF_MAX): Update value.
12776         (AF_QIPCRTR): New macro.
12777
12778 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12779
12780         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
12781         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12782         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12783         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
12784         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12785         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12786         s_truncf-vis3, s_trunc-vis3.
12787         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12788         (CFLAGS-s_ceil-vis3.c): Likewise.
12789         (CFLAGS-s_floorf-vis3.c): Likewise.
12790         (CFLAGS-s_floor-vis3.c): Likewise.
12791         (CFLAGS-s_truncf-vis3.c): Likewise.
12792         (CFLAGS-s_trunc-vis3.c): Likewise.
12793         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
12794         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12795         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
12796         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12797         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
12798         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12799         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
12800         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12801         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
12802         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12803         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
12804         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12805
12806 2016-08-02  David S. Miller  <davem@davemloft.net>
12807
12808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
12809         (__nearbyint_vis3): Don't check for sNaN before float register is
12810         loaded with the incoming argument.
12811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
12812         (__nearbyintf_vis3): Likewise.
12813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
12814         Likewise.
12815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
12816         Likewise.
12817
12818         * string/test-strncmp.c (do_test_limit): Make sure the test data
12819         stream is aligned as required for the type "CHAR".
12820         (do_test): Likewise.
12821
12822 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12823
12824         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
12825         by beq instructions jumping to the end of the function.
12826         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
12827         clobber list. Use "i" constraint instead of "X".
12828         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
12829         of "X".
12830
12831 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
12832
12833         * bits/libc-header-start.h: New file.
12834         * Makefile (headers): Add bits/libc-header-start.h.
12835         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
12836         (__GLIBC_USE): New macro.
12837         * libio/stdio.h: Define
12838         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12839         <bits/libc-header-start.h> instead of including <features.h>.
12840         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
12841         (open_memstream): Likewise.
12842         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
12843         (__asprintf): Likewise.
12844         (asprintf): Likewise.
12845         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
12846         (getdelim): Likewise.
12847         (getline): Likewise.
12848         * string/string.h: Define
12849         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12850         <bits/libc-header-start.h> instead of including <features.h>.
12851         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
12852         (strndup): Likewise.
12853         * wcsmbs/wchar.h: Define
12854         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12855         <bits/libc-header-start.h> instead of including <features.h>.
12856         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
12857         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
12858
12859 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12860
12861         Support linking against compatibility symbols, for use in tests.
12862         * include/libc-symbols.h (symbol_version_reference): New macro.
12863         (symbol_version): Use it.
12864         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
12865         (compat_symbol): Use compat_symbol_reference.
12866         (compat_symbol_1, compat_symbol_2): Remove.
12867         (compat_symbol_reference, compat_symbol_reference_1)
12868         (compat_symbol_reference_2): New macro.  Use
12869         symbol_version_reference.
12870
12871 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12872
12873         [BZ #19469]
12874         * malloc/Makefile (CPPFLAGS): Compile tests with
12875         -DTEST_NO_MALLOPT.
12876         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
12877
12878 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
12879
12880         [BZ #20033]
12881         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
12882         finite version.
12883         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
12884         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
12885         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
12886         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
12887         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
12888         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
12889         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
12890         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
12891         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
12892         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
12893         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
12894         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
12895         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
12896         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
12897         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
12898         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
12899         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
12900         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
12901         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
12902         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
12903         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
12904         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
12905         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
12906         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
12907         in zero power.
12908
12909 2016-08-02  Florian Weimer  <fweimer@redhat.com>
12910
12911         [BZ #20370]
12912         * malloc/arena.c (get_free_list): Update comment.  Assert that
12913         arenas on the free list have no attached threads.
12914         (remove_from_free_list): New function.
12915         (reused_arena): Call it.
12916
12917 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
12918
12919         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
12920         when it is a NaN.
12921         [_IEEE_FP_INEXACT] Remove.
12922         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
12923         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
12924         when it is a NaN.
12925         [_IEEE_FP_INEXACT] Remove.
12926         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
12927         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
12928         when it is a NaN.
12929         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
12930         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
12931         when its absolute value is greater than 0x1.0p52.
12932         [_IEEE_FP_INEXACT] Remove.
12933         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
12934         when its absolute value is greater than 0x1.0p23.
12935         [_IEEE_FP_INEXACT] Remove.
12936
12937 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
12938
12939         * version.h (RELEASE): Set to "development"
12940         (VERSION): Set to 2.24.90.
12941         * NEWS: Add 2.25 section.
12942
12943         * version.h (RELEASE): Set to "stable"
12944         (VERSION): Set to 2.24.
12945         * include/features.h (__GLIBC_MINOR__): Set to 24.
12946
12947         * NEWS: Add 2.24 fixed bugs.
12948         * po/libc.pot: Regenerate.
12949
12950 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
12951
12952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12953         [$(subdir) = math] (libm-sysdep_routines): Remove.
12954         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12955         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
12956         s_truncf-vis3, s_trunc-vis3.
12957         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
12958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
12959         file.
12960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
12961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
12962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
12963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
12964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
12966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
12967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
12969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
12970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
12971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
12972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
12973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
12974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
12975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
12976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
12978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
12979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
12980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
12981         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
12982         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
12983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12984         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
12985         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
12986         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
12988         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
12989         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12990         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
12991         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
12992         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12993         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
12994         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
12995         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
12996         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
12997         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12998         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12999         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13000         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13001         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13002         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13003
13004 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13005
13006         [BZ #20384]
13007         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13008         test-double-libmvec-sincos-avx-main.o,
13009         test-double-libmvec-sincos-avx2-main.o,
13010         test-double-libmvec-sincos-main.o,
13011         test-float-libmvec-sincosf-avx-main.o,
13012         test-float-libmvec-sincosf-avx2-main.o and
13013         test-float-libmvec-sincosf-main.o.
13014         test-float-libmvec-sincosf-avx512-main.o.
13015         ($(objpfx)test-double-libmvec-sincos): Also link with
13016         $(objpfx)test-double-libmvec-sincos-main.o.
13017         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13018         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13019         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13020         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13021         ($(objpfx)test-float-libmvec-sincosf): Also link with
13022         $(objpfx)test-float-libmvec-sincosf-main.o.
13023         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13024         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13025         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13026         test-double-libmvec-sincos-avx512-main.o and
13027         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13028         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13029         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13030         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13031         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13032         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13033         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13034         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13035         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13036         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13037         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13038         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13039         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13040         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13041         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13042         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13043         -DREQUIRE_AVX2.
13044         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13045         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13046         -DREQUIRE_AVX512F.
13047         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13048         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13049         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13050         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13051         file.
13052         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13053         Likewise.
13054         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13055         Likewise.
13056         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13057         Likewise.
13058         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13059         Likewise.
13060         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13061         Likewise.
13062         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13063         Likewise.
13064         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13065         Likewise.
13066
13067 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13068
13069         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13070
13071 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13072
13073         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13074         and typo in a comment about AT_HWCAP entry.
13075
13076 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13077
13078         * sysdeps/aarch64/libm-test-ulps: Updated.
13079
13080 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13081
13082         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13083         of r13 as it is not restored in mvcle case.
13084
13085 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13086
13087         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13088         Rename "ret" to "__ret".
13089         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13090         inline_syscall5, inline_syscall6): Likewise.
13091
13092 2016-07-19   Will Newton  <will.newton@gmail.com>
13093
13094         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13095         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13096         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13097         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13098         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13099
13100 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13101
13102         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13103         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13104         -mfpmath=387 with $(rtld-CFLAGS).
13105         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13106         $(rtld-CFLAGS).
13107
13108 2016-07-18   Ross Burton  <ross.burton@intel.com>
13109              Khem Raj  <raj.khem@gmail.com>
13110
13111         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13112         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13113         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13114         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13115         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13116         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13117         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13118         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13119         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13120         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13121         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13122         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13123         R_METAG_TLS_DTPOFF): New.
13124
13125 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13126             Matt Clay  <mclay@lycos.com>
13127
13128         [BZ #20357]
13129         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13130         to call __mpsin/__mpcos and to negate values.
13131         * math/auto-libm-test-in: Add test.
13132         * math/auto-libm-test-out: Regenerate.
13133
13134 2016-07-18  Zack Weinberg  <zackw@panix.com>
13135
13136         * grp/Makefile: Don't install the internal header grp-merge.h.
13137
13138 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13139
13140         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13141
13142 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13143
13144         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13145
13146 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13147
13148         [BZ #15368]
13149         * sysdeps/unix/sysv/linux/nptl-signals.h
13150         (__nptl_clear_internal_signals): New function.
13151         (__libc_signal_block_all): Likewise.
13152         (__libc_signal_block_app): Likewise.
13153         (__libc_signal_restore_set): Likewise.
13154         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13155         implementation.
13156         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13157         the cached pid/tid value in pthread structure.
13158
13159 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13160
13161         [BZ #20347]
13162         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13163
13164 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13165
13166         [BZ #20348]
13167         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13168         preadv64, pwrite64 and pwritev64.
13169
13170 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13171
13172         [BZ #20350]
13173         * posix/tst-preadwrite.c: Renamed to ...
13174         * posix/tst-preadwrite-common.c: This.
13175         (PREAD): Removed.
13176         (PWRITE): Likewise.
13177         (STRINGIFY): Likewise.
13178         (STRINGIFY2): Likewise.
13179         (do_prepare): Make it static and remove function arguments.
13180         (do_test): Likewise.
13181         (PREPARE): Updated.
13182         (TEST_FUNCTION): New.
13183         (name): Make it static.
13184         (fd): Likewise.
13185         (do_prepare): Use create_temp_file.
13186         (do_test): Renamed to ...
13187         (do_test_with_offset): This.  Make it static and accept offset.
13188         Properly check return value of PWRITE and PREAD.  Return bytes
13189         read.  Don't close fd nor unlink name.
13190         * posix/tst-preadwrite.c: Rewrite.
13191         * posix/tst-preadwrite64.c: Likewise.
13192
13193 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13194
13195         [BZ #20309]
13196         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13197         -mtls-dialect=gnu2 works.
13198         * configure: Regenerated.
13199         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13200         (tests): Add tst-gnu2-tls1.
13201         (modules-names): Add tst-gnu2-tls1mod.
13202         ($(objpfx)tst-gnu2-tls1): New.
13203         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13204         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13205         * elf/tst-gnu2-tls1.c: New file.
13206         * elf/tst-gnu2-tls1mod.c: Likewise.
13207         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13208         bytes for push in the PLT entry to align the stack.
13209
13210 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13211
13212         [BZ #20349]
13213         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13214
13215 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13216
13217         [BZ #18707]
13218         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13219         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13220
13221 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13222
13223         * sysdeps/unix/sysv/linux/sysdep.h
13224         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13225         guards.
13226         * misc/tst-preadvwritev-common.c: New file.
13227         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13228         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13229         a check for files larger than 2GB.
13230
13231         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13232         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13233         * sysdeps/unix/sysv/linux/pread.c
13234         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13235         __OFF_T_MATCHES_OFF64_T.
13236         * sysdeps/unix/sysv/linux/pread64.c
13237         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13238         * sysdeps/unix/sysv/linux/preadv.c
13239         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13240         * sysdeps/unix/sysv/linux/preadv64.c
13241         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13242         * sysdeps/unix/sysv/linux/pwrite.c
13243         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13244         * sysdeps/unix/sysv/linux/pwrite64.c
13245         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13246         * sysdeps/unix/sysv/linux/pwritev.c
13247         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13248         * sysdeps/unix/sysv/linux/pwritev64.c
13249         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13250
13251 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13252
13253         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13254         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13255
13256 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13257
13258         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13259
13260 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13261
13262         [BZ #20240]
13263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13264         (CFLAGS-s_modf-ppc32.c): New variable.
13265         (CFLAGS-s_modff-ppc32.c): Likewise.
13266         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13267         (CFLAGS-s_modf-ppc64.c): Likewise.
13268         (CFLAGS-s_modff-ppc64.c): Likewise.
13269
13270 2016-07-07  Andreas Schwab  <schwab@suse.de>
13271
13272         [BZ #20263]
13273         * nptl/tst-robust10.c: New test.
13274         * nptl/Makefile (tests): Add tst-robust10.
13275
13276 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13277
13278         [BZ #20263]
13279         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13280
13281 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13282
13283         * sysdeps/s390/linkmap.h (struct link_map_machine):
13284         Remove member gotplt and add member jmprel.
13285         * sysdeps/s390/s390-32/dl-machine.h
13286         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13287         instead of gotplt with &got[3].
13288         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13289         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13290
13291 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13292
13293         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13294
13295 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13296
13297         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13298         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13299         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13300         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13301         * libio/vtables.c (_IO_vtable_check)
13302         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13303         * libio/libioP.h (IO_set_accept_foreign_vtables)
13304         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13305
13306 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13307
13308         [BZ #20314]
13309         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
13310         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
13311         $(common-objpfx)cmath.
13312         ($(common-objpfx)cstdlib): New target.
13313         ($(common-objpfx)cmath): Likewise.
13314
13315 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
13316
13317         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13318
13319 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13320
13321         [BZ #20327]
13322         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
13323         are not part of the string.
13324
13325 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13326
13327         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
13328         * nptl/tst-cancel4-common.h (fifoname): New variable.
13329         (fifofd): Likewise.
13330         (cl_fifo): New function.
13331         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
13332         SIGINT.
13333         (tf_open): Add early cancel test.
13334
13335 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13336
13337         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
13338
13339 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
13340
13341         * sysdeps/generic/ldsodefs.h
13342         (dl_symbol_visibility_binds_local_p): New inline function.
13343         * elf/dl-addr.c (determine_info): Treat hidden and internal
13344         symbols as local.
13345         * elf/dl-lookup.c (do_lookup_x): Likewise.
13346         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
13347
13348 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
13349
13350         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
13351         invalid exception for a sNaN input.
13352         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13353         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13354         (__nearbyint_vis3): Likewise
13355         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13356         (__nearbyintf_vis3): Likewise
13357         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
13358         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13359         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
13360         Likewise.
13361         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
13362         Likewise.
13363
13364 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13365
13366         [BZ #20139]
13367         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
13368         (HAVE_AVX512DQ_ASM_SUPPORT): This.
13369         * sysdeps/x86_64/configure.ac: Require assembler from binutils
13370         2.24 or above.
13371         (HAVE_AVX512_ASM_SUPPORT): Removed.
13372         (HAVE_AVX512DQ_ASM_SUPPORT): New.
13373         * sysdeps/x86_64/configure: Regenerated.
13374         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
13375         check unconditional.
13376         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13377         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13378         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13379         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13380         Likewise.
13381         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
13382         Likewise.
13383         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13384         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13385         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13386         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13387         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
13388         Likewise.
13389         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
13390         Likewise.
13391         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13392         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13393         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
13394         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
13395         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
13396         Likewise.
13397         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
13398         Likewise.
13399         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
13400         Likewise.
13401         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
13402         Likewise.
13403         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
13404         Likewise.
13405         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
13406         Likewise.
13407         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
13408         Likewise.
13409         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
13410         Likewise.
13411         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
13412         Likewise.
13413         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
13414         Likewise.
13415         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
13416         Likewise.
13417
13418 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
13419
13420         [BZ #20024]
13421         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
13422         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
13423         of this implementation of vector function.
13424         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
13425         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
13426         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13427         Likewise.
13428         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
13429         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
13430         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
13431         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
13432         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
13433         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
13434         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13435         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
13436         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
13437         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
13438         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
13439         for testing vector sincos with fixed ABI.
13440         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
13441         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
13442         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
13443         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
13444         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
13445         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
13446         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
13447         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
13448         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
13449         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
13450         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
13451         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
13452         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
13453         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
13454         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13455         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13456
13457 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13458
13459         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
13460
13461 2016-06-30  Anton Blanchard  <anton@samba.org>
13462
13463         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13464         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
13465         s_sinf-ppc64.
13466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
13467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13469         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13470
13471 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13472
13473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13474         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13475         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
13476         e_expf-ppc64.
13477         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
13478         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
13479         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
13480         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
13481
13482 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
13483
13484         [BZ #20277]
13485         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
13486         when SHARED is defined.
13487
13488 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13489
13490         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
13491         (index_arch_Prefer_ERMS): Likewise.
13492         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
13493         __memcpy_erms for Prefer_ERMS.
13494         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13495         (__memmove_erms): Enabled for libc.a.
13496         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
13497         __memmove_erms or Prefer_ERMS.
13498         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
13499         __mempcpy_erms for Prefer_ERMS.
13500         * sysdeps/x86_64/multiarch/memset.S (memset): Return
13501         __memset_erms for Prefer_ERMS.
13502
13503 2016-06-30  Andreas Schwab  <schwab@suse.de>
13504
13505         [BZ #20262]
13506         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
13507         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
13508         of memory.
13509
13510 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13511
13512         [BZ #18645]
13513         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
13514         (test-extras): Add tst-cleanupx4aux.
13515         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
13516         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
13517         tst-cleanupx4aux.o.
13518         * nptl/tst-cleanupx4aux.c: New file.
13519
13520 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13521
13522         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13523
13524 2016-06-29  Andreas Schwab  <schwab@suse.de>
13525
13526         [BZ #20260]
13527         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
13528         address before the beginning of the string as an integer to avoid
13529         array-bounds warning.
13530
13531 2016-06-28  Richard Henderson  <rth@redhat.com>
13532
13533         * elf/elf.h (EM_BPF): New.
13534         (EM_NUM): Update.
13535         (R_BPF_NONE, R_BPF_MAP_FD): New.
13536
13537         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
13538         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
13539         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
13540         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
13541         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
13542         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
13543         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
13544         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
13545         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
13546         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
13547         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
13548         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
13549         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
13550         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
13551         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
13552         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
13553         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
13554         (EM_NUM): Update.
13555
13556 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
13557
13558         [BZ #18960]
13559         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
13560         Set _nl_current_LC_CATEGORY_used to two instead of one.
13561
13562 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
13563
13564         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
13565         (do_test): ... this.
13566         (TEST_FUNCTION): New macro.
13567          Include test-skeleton.c.
13568         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
13569         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
13570
13571 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
13572
13573         [BZ #15479]
13574         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
13575         floating-point environment rather than just control word.
13576         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
13577         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
13578         floating-point environment, with "invalid" exceptions merged in,
13579         rather than just control word.
13580         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
13581         * math/libm-test.inc (trunc_test_data): Do not allow spurious
13582         "inexact" exceptions.
13583
13584         [BZ #15479]
13585         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
13586         floating-point environment rather than just control word.
13587         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
13588         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
13589         floating-point environment, with "invalid" exceptions merged in,
13590         rather than just control word.
13591         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
13592         * math/libm-test.inc (floor_test_data): Do not allow spurious
13593         "inexact" exceptions.
13594
13595         [BZ #15479]
13596         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
13597         floating-point environment rather than just control word.
13598         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
13599         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
13600         floating-point environment, with "invalid" exceptions merged in,
13601         rather than just control word.
13602         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
13603         * math/libm-test.inc (ceil_test_data): Do not allow spurious
13604         "inexact" exceptions.
13605
13606 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
13607
13608         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
13609         __libc_vfork.
13610         (__vfork) [IS_IN (libc)]: Remove alias.
13611         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
13612         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13613         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13614
13615 2016-06-24  Torvald Riegel  <triegel@redhat.com>
13616
13617         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
13618         of atomic_compare_and_exchange_bool_rel.
13619         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
13620         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
13621         catomic_compare_and_exchange_bool_rel): Remove.
13622         * sysdeps/aarch64/atomic-machine.h
13623         (atomic_compare_and_exchange_bool_rel): Likewise.
13624         * sysdeps/alpha/atomic-machine.h
13625         (atomic_compare_and_exchange_bool_rel): Likewise.
13626         * sysdeps/arm/atomic-machine.h
13627         (atomic_compare_and_exchange_bool_rel): Likewise.
13628         * sysdeps/mips/atomic-machine.h
13629         (atomic_compare_and_exchange_bool_rel): Likewise.
13630         * sysdeps/microblaze/atomic-machine.h
13631         ( __arch_compare_and_exchange_bool_8_rel,
13632         __arch_compare_and_exchange_bool_16_rel): Likewise.
13633         * sysdeps/powerpc/atomic-machine.h
13634         ( __arch_compare_and_exchange_bool_8_rel,
13635         __arch_compare_and_exchange_bool_16_rel): Likewise.
13636         * sysdeps/powerpc/powerpc32/atomic-machine.h
13637         ( __arch_compare_and_exchange_bool_32_rel,
13638         __arch_compare_and_exchange_bool_64_rel): Likewise.
13639         * sysdeps/powerpc/powerpc64/atomic-machine.h
13640         ( __arch_compare_and_exchange_bool_32_rel,
13641         __arch_compare_and_exchange_bool_64_rel): Likewise.
13642         * sysdeps/tile/atomic-machine.h
13643         (atomic_compare_and_exchange_bool_rel): Likewise.
13644
13645 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
13646
13647         [BZ #20296]
13648         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
13649         when either argument is a NaN.
13650         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
13651         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
13652
13653         * math/libm-test.inc (snan_value_ld): New macro.
13654         (isgreater_test_data): Add sNaN tests.
13655         (isgreaterequal_test_data): Likewise.
13656         (isless_test_data): Likewise.
13657         (islessequal_test_data): Likewise.
13658         (islessgreater_test_data): Likewise.
13659         (isunordered_test_data): Likewise.
13660         (nextafter_test_data): Likewise.
13661         (nexttoward_test_data): Likewise.
13662         (remainder_test_data): Likewise.
13663         (remquo_test_data): Likewise.
13664         (significand_test_data): Likewise.
13665         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
13666
13667 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13668
13669         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
13670         environment macros are defined.
13671         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
13672
13673 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13674
13675         [BZ #20191]
13676         Implement vtable verification in libio.
13677         * Makerules (shlib.lds): Place __libc_IO_vtables section.
13678         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
13679         * debug/vdprintf_chk.c (__vdprintf_chk): Call
13680         _IO_new_file_init_internal instead of _IO_file_init.
13681         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
13682         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
13683         * libio/Makefile (routines): Add vtables.
13684         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
13685         (_IO_init): Remove, not for internal use.
13686         (_IO_init_internal): Declare, internal replacement for _IO_init.
13687         (_IO_file_init): Remove, not for internal use.
13688         (_IO_new_file_init): Remove, not for internal use.
13689         (_IO_new_file_init_internal): Declare, internal replacement for
13690         _IO_new_file_init.
13691         (_IO_old_file_init): Remove, not for internal use.
13692         (_IO_old_file_init_internal): Declare, internal replacement for
13693         _IO_old_file_init.
13694         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
13695         internal use.
13696         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
13697         Declare.
13698         (libio_vtable): New macro.
13699         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
13700         functions.
13701         * libio/fileops.c (_IO_new_file_init_internal): Rename from
13702         _IO_new_file_init.
13703         (_IO_new_file_init): New externally visible wrapper which disables
13704         vtable verification.
13705         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
13706         Define as vtables.
13707         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
13708         (_IO_init): New externally visible wrapper which disables
13709         vtable verification.
13710         * libio/iofdopen.c (_IO_new_fdopen): Call
13711         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
13712         comment.
13713         * libio/iofopen.c (__fopen_internal): Call
13714         _IO_new_file_init_internal instead of _IO_file_init.
13715         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
13716         Define as vtables.
13717         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
13718         _IO_new_file_init_internal instead of _IO_file_init.
13719         * libio/iopopen.c (_IO_new_popen): Likewise.
13720         (_IO_proc_jumps): Define as vtable.
13721         * libio/iovdprintf.c (_IO_vdprintf): Call
13722         _IO_new_file_init_internal instead of _IO_file_init.
13723         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
13724         (__open_memstream): Call _IO_init_internal instead of _IO_init.
13725         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
13726         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
13727         _IO_old_file_init.
13728         (_IO_old_file_init): New externally visible wrapper which disables
13729         vtable verification.
13730         (_IO_old_file_jumps): Define as vtable.
13731         * libio/oldiofdopen.c (_IO_old_fdopen): Call
13732         _IO_old_file_init_internal instead of _IO_old_file_init.
13733         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
13734         * libio/oldiopopen.c (_IO_old_popen): Likewise.
13735         (_IO_old_proc_jumps): Define as vtable.
13736         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
13737         Define as vtables.
13738         * libio/vtables.c: New file.
13739         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
13740         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
13741         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
13742         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
13743         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
13744         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
13745         instead of _IO_init.
13746
13747 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13748
13749         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
13750
13751 2016-06-23  Florian Weimer  <fweimer@redhat.com>
13752
13753         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
13754         potentially unused.
13755
13756 2016-06-22  Florian Weimer  <fweimer@redhat.com>
13757
13758         * test-skeleton.c (write_message): New function.
13759         * malloc/tst-mallocfork2.c (write_message): Remove.
13760         * debug/tst-longjmp_chk2.c (write_indented): New function.
13761         (write_message): Remove.
13762         (stackoverflow_handler): Call write_indented.
13763
13764 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
13765
13766         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
13767         "inexact" exceptions after fnstenv.
13768         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13769         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13770         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
13771
13772 2015-06-22  Zack Weinberg  <zackw@panix.com>
13773
13774         * sysdeps/generic/bits/hwcap.h: Moved to ...
13775         * bits/hwcap.h: Here.
13776
13777 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
13778
13779         * sysdeps/aarch64/memcpy.S (memcpy):
13780         Further tuning for performance.
13781
13782 2016-06-21  Florian Weimer  <fweimer@redhat.com>
13783
13784         [BZ #20284]
13785         * malloc/arena.c (reused_arena): Do not return NULL if we start
13786         out with a non-corrupted arena.
13787
13788 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13789
13790         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
13791         * misc/tst-preadvwritev.c: New file.
13792         * misc/tst-preadvwritev64.c: Likewise.
13793         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
13794         usage.
13795         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
13796         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
13797         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
13798         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
13799
13800 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
13801
13802         [BZ #19654]
13803         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13804         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
13805         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
13806         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
13807         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
13808         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
13809         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
13810         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
13811         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
13812         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
13813         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
13814         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
13815         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
13816         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
13817         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
13818         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
13819         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
13820         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
13821         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
13822         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
13823         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
13824         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
13825         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
13826         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
13827         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
13828         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
13829
13830 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13831
13832         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
13833         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
13834
13835 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
13836
13837         * sysdeps/aarch64/memcpy.S (memcpy):
13838         Rewrite of optimized memcpy and memmove.
13839         * sysdeps/aarch64/memmove.S (memmove): Remove
13840         memmove code (merged into memcpy.S).
13841
13842 2016-06-20  Florian Weimer  <fweimer@redhat.com>
13843
13844         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
13845         * sysdeps/generic/dl-dtv.h: New file.
13846         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13847         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
13848         (dtv_t): Remove.
13849         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13850         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
13851         (dtv_t): Remove.
13852         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13853         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
13854         (dtv_t): Remove.
13855         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13856         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
13857         (dtv_t): Remove.
13858         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13859         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
13860         (dtv_t): Remove.
13861         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13862         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
13863         (dtv_t): Remove.
13864         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13865         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
13866         (dtv_t): Remove.
13867         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
13868         (dtv_t): Remove.
13869         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13870         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
13871         (dtv_t): Remove.
13872         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13873         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
13874         (dtv_t): Remove.
13875         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13876         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
13877         (dtv_t): Remove.
13878         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13879         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
13880         (dtv_t): Remove.
13881         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13882         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
13883         (dtv_t): Remove.
13884         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13885         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
13886         (dtv_t): Remove.
13887         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13888         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
13889         (dtv_t): Remove.
13890         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
13891         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
13892         (dtv_t): Remove.
13893
13894 2016-06-20  Florian Weimer  <fweimer@redhat.com>
13895
13896         Revert symbol poisoning of  __malloc_initialize_hook.
13897         * include/stdc-predef.h (__malloc_initialize_hook): Remove
13898         poisoning.
13899         * malloc/Makefile: Remove un-poisoning.
13900         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
13901         instead of old__malloc_initialize_hook.
13902         * malloc/malloc-hooks.h: Likewise.
13903         * malloc/malloc.c: Likewise.
13904         * malloc/mcheck-init.c: Likewise.
13905
13906 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
13907
13908         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
13909
13910 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
13911
13912         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
13913         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
13914         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
13915         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
13916
13917 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13918
13919         * NEWS: Mention addition of nextup and nextdown.
13920         * manual/arith.texi: Document nextup and nextdown.
13921         * manual/libm-err-tab.pl: Add nextup and nextdown.
13922         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
13923         * math/Versions (libm): Add GLIBC_2.24.
13924         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
13925         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
13926         Add new test.
13927         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
13928         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
13929         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
13930         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
13931         (nextup_test_data): Likewise.
13932         (nextdown_test_data): Likewise.
13933         * math/s_nextdown.c: New file.
13934         * math/s_nextdownf.c: Likewise.
13935         * math/s_nextdownl.c: Likewise.
13936         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
13937         F(nextup): New function.
13938         F(nextdown): Likewise.
13939         * math/tgmath.h: Add nextup and nextdown.
13940         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
13941         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
13942         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13943         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13944         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13945         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
13946         Add nextup and nextdown.
13947         (CFLAGS-nldbl-nextup.c): New variable.
13948         (CFLAGS-nldbl-nextdown.c): Likewise.
13949         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
13950         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
13951         * sysdeps/nacl/libm.abilist: Update.
13952         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13953         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13954         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13955         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13956         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13957         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13958         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13959         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13960         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13961         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13962         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13963         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13966         Likewise.
13967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13969         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13970         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13971         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13972         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13973         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
13975         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
13976         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13977         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13978         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13979         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13980
13981 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13982
13983         * manual/pattern.texi: Fix typos & grammar errors.
13984
13985 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13986
13987         * manual/search.texi: Fix typos & grammar errors.
13988
13989 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
13990
13991         * manual/message.texi: Fix typos & grammar errors.
13992
13993 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
13994
13995         * manual/contrib.texi: Fix spelling typos.
13996         * manual/crypt.texi: Likewise.
13997         * manual/filesys.texi: Likewise.
13998         * manual/locale.texi: Likewise.
13999         * manual/message.texi: Likewise.
14000         * manual/nss.texi: Likewise.
14001         * manual/string.texi: Likewise.
14002
14003 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14004
14005         * manual/locale.texi: Fix typos & grammar errors.
14006
14007 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14008
14009         * manual/charset.texi: Fix typos & grammar errors.
14010
14011 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14012
14013         * manual/string.texi: Fix typos.
14014
14015 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14016
14017         * manual/ctype.texi: Fix typos.
14018
14019 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14020
14021         * manual/memory.texi: Fix various typos & grammar errors.
14022
14023 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14024
14025         [BZ #20255]
14026         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14027         * math/libm-test.inc (fdim_test_data): Add another test.
14028
14029         [BZ #6796]
14030         [BZ #20255]
14031         [BZ #20256]
14032         * math/s_fdim.c: Include <math_private.h>.
14033         (__fdim): Use math_narrow_eval on result.
14034         * math/s_fdimf.c: Include <math_private.h>.
14035         (__fdimf): Use math_narrow_eval on result.
14036         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14037         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14038         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14039         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14040         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14041         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14042         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14043         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14044         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14045         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14046         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14047         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14048         overflow.  Add sNaN tests.
14049
14050         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14051         fpclassify.
14052         * math/s_fdimf.c (__fdimf): Likewise.
14053         * math/s_fdiml.c (__fdiml): Likewise.
14054
14055 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14056
14057         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14058         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14059         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14060         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14061         ifunc'ed strcasecmp/strncasecmp.
14062         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14063         [EALIGN]: Removed.
14064         [END]: Likewise.
14065         [__strcasecmp]: Define instead of the above to control symbol name.
14066         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14067         for __strcasecmp_power8.
14068         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14069         for __strncasecmp_power8.
14070         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14071         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14072         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14073         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14074         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14075         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14076
14077 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14078
14079         [BZ #20252]
14080         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14081         arguments when second argument is a NaN.
14082         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14083         qNaN tests.
14084
14085         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14086         (conj_test_data): Likewise.
14087         (copysign_test_data): Likewise.
14088         (creal_test_data): Likewise.
14089         (fma_test_data): Likewise.
14090         (fmod_test_data): Likewise.
14091
14092         [BZ #20250]
14093         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14094         itself.
14095         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14096         zero input to itself.
14097         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14098         Likewise.
14099         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14100         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14101         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14102         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14103         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14104
14105 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14106
14107         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14108         * nptl/tst-cancel4-common.c: New file.
14109         * nptl/tst-cancel4-common.h: Likewise.
14110         * nptl/tst-cancel4.c: Move common definitions to
14111         tst-cancel4-common.{c,h} file.
14112         * nptl/tst-cancel4_1.c: New test.
14113         * nptl/tst-cancel4_2.c: New test.
14114
14115 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14116
14117         [BZ #20248]
14118         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14119         (write_message): New function.
14120         (stackoverflow_handler): Call it instead of printf, to avoid
14121         excessive stack usage by printf.
14122         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14123
14124 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14125
14126         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14127         (prio_inherit_missing): Remove define.
14128         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14129         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14130         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14131         Likewise.
14132         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14133         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14134         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14135         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14136         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14137         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14138
14139 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14140
14141         [BZ #19670]
14142         [BZ #19672]
14143
14144         * io/test-lfs.c (do_prepare): Use xmalloc.
14145         * io/tst-fcntl.c (do_prepare): Likewise.
14146         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14147         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14148         * login/tst-utmp.c (do_prepare): Likewise.
14149         * posix/tst-exec.c (do_prepare): Likewise.
14150         * posix/tst-pathconf.c (prepare): Likewise.
14151         * posix/tst-spawn.c (do_prepare): Likewise.
14152         * posix/tst-truncate.c (do_prepare): Likewise.
14153         * rt/tst-aio.c (do_prepare): Likewise.
14154         * rt/tst-aio64.c (do_prepare): Likewise.
14155
14156 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14157
14158         [BZ #20237]
14159         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14160         (get*ent): Set entidx to NULL during initialization.  If entidx is
14161         NULL, start iteration from the beginning.
14162
14163 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14164
14165         * malloc/malloc.c (musable): Return correct size for dumped fake
14166         mmapped chunk.
14167
14168 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14169
14170         [BZ #20222]
14171         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14172         (_IO_cookie_write): Likewise.
14173         (_IO_cookie_seek): Likewise.
14174         (_IO_cookie_close): Likewise.
14175         (_IO_old_cookie_seek): Likewise.
14176         (set_callbacks): New function.
14177         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14178
14179 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14180
14181         * locale/programs/localedef.c (oldstyle_tables): Remove.
14182         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14183
14184 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14185
14186         [BZ #20240]
14187         * math/Makefile (CFLAGS-s_modf.c): New variable.
14188         (CFLAGS-s_modff.c): Likewise.
14189         (CFLAGS-s_modfl.c): Likewise.
14190         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14191
14192 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14193
14194         [BZ #20215]
14195         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14196         [!__GNUC_PREREQ (3,2)]: Likewise.
14197
14198 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14199
14200         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14201         (msghdr.msg_controllen): Likewise.
14202         (cmsghdr.cmsg_len): Likewise.
14203         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14204         ptw-oldsendmsg.
14205         (CFLAGS-oldrecvmsg.c): Remove rule.
14206         (CFLAGS-oldsendmsg.c): Likewise.
14207         (CFLAGS-recvmsg.c): Add rule.
14208         (CFLAGS-sendmsg.c): Likewise.
14209         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14210         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14211         (CFLAGS-recvmsg.c): Remove rule.
14212         (CFLAGS-sendmsg.c): Likewise.
14213         (CFLAGS-oldrecvmsg.c): Likewise.
14214         (CFLAGS-oldsendmsg.c): Likewise.
14215         (CFLAGS-recvmmsg.c): Likewise.
14216         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14217         to kernel defined interfaces.
14218         (msghdr.msg_controllen): Likewise.
14219         (cmsghdr.cmsg_len): Likewise.
14220         (msghdr.__glibc_reserved1): Remove member.
14221         (msghdr.__glibc_reserved2): Likewise.
14222         (cmsghdr.__glibc_reserved1): Likewise.
14223         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14224         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14225         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14226         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14227         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14228         version.
14229         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14230         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14231         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14232         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14233         Remove recvmsg and sendmsg.
14234         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14235         Likewise.
14236         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14237         Likewise.
14238         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14239         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14240         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14241         Likewise.
14242         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14243         Likewise.
14244         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14245         [libc] (GLIBC_2.24): Likewise.
14246         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14247         Likewise.
14248         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14249         Likewise.
14250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14251         [libc] (GLIBC_2.24): Likewise.
14252         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14253         Likewise.
14254         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14255         Likewise.
14256         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14257         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14258         Likewise.
14259         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14260         Likewise.
14261         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14262         Likewise.
14263         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14264         Likewise.
14265         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14266         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14267         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14268         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14269         version for {recv,send,recm,sendm}msg.
14270         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14271         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14272         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14273         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14274         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14275         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14276         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14277         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14278         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14279         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14280         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14281         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14283         Likewise.
14284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14285         Likewise.
14286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14288         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14289         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14290         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14291         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14292         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14293         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14294         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14295         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14296         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14297         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14298         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14299
14300 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14301
14302         [BZ #19564]
14303         Remove __malloc_initialize_hook from the API.
14304         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14305         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14306         #pragma GCC poison.
14307         * malloc/malloc-hooks.h: New file.
14308         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
14309         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
14310         (old__malloc_initialize_hook): Rename from
14311         __malloc_initialize_hook to evade poisoning.  Turn into compat
14312         symbol.
14313         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
14314         __malloc_initialize_hook.
14315         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
14316         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
14317         * manual/memory.texi (Hooks for Malloc): Remove
14318         __malloc_initialize_hook.  Adjust hook example.
14319
14320 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
14321
14322         [BZ #20235]
14323         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
14324         itself.
14325         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
14326         * math/libm-test.inc (log2_test_data): Add sNaN tests.
14327
14328         [BZ #20234]
14329         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
14330         infinity or NaN input to itself.
14331
14332         [BZ #20233]
14333         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
14334         to itself.
14335
14336         [BZ #20232]
14337         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
14338         itself.
14339
14340 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14341
14342         * sysdeps/x86_64/start.S (_start): Always indirect branch to
14343         __libc_start_main via GOT.
14344
14345 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14346
14347         * sysdeps/x86_64/memcopy.h: New file.
14348         * sysdeps/x86_64/wordcopy.c: Likewise.
14349
14350 2016-06-09  Florian Weimer  <fweimer@redhat.com>
14351
14352         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
14353         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
14354         <cstdlib>.
14355         (optimization_barrier): New.
14356         (do_test): Use it.  Call quick_exit in the global namespace.
14357         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
14358         instead of <cstdlib>, <thread>.
14359         (optimization_barrier): New.
14360         (non_main_thread): Adjust declaration.  Call optimization_barrier.
14361         Call quick_exit in the global namespace.
14362         (do_test): Call optimization_barrier.  Use pthread_create,
14363         pthread_join instead of std::thread.
14364
14365 2016-06-09  Andreas Schwab  <schwab@suse.de>
14366
14367         [BZ #19755]
14368         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
14369         new entries in auto-propagate mode.
14370         * nscd/grpcache.c (cache_addgr): Likewise.
14371
14372 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14373
14374         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
14375         New functions.
14376         (add_temp_file): Use them.
14377
14378 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
14379
14380         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
14381
14382 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
14383
14384         [BZ #20229]
14385         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
14386         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
14387         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
14388
14389         [BZ #20228]
14390         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
14391         itself.
14392         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
14393         * math/libm-test.inc (log10_test_data): Add sNaN tests.
14394
14395         [BZ #20227]
14396         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
14397         itself.
14398         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
14399         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
14400         * math/libm-test.inc (log_test_data): Add sNaN tests.
14401
14402         [BZ #20226]
14403         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
14404         itself.
14405         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
14406         * math/libm-test.inc (exp_test_data): Add sNaN tests.
14407         (exp10_test_data): Likewise.
14408         (expm1_test_data): Likewise.
14409
14410         [BZ #20225]
14411         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
14412         itself.
14413         * math/s_ldexpf.c (__ldexpf): Likewise.
14414         * math/s_ldexpl.c (__ldexpl): Likewise.
14415         * math/w_scalbln.c (__w_scalbln): Likewise.
14416         * math/w_scalblnf.c (__w_scalblnf): Likewise.
14417         * math/w_scalblnl.c (__w_scalblnl): Likewise.
14418         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
14419         (scalbln_test_data): Likewise.
14420
14421         [BZ #20224]
14422         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
14423         argument to itself.
14424         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
14425
14426 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14427
14428         [BZ #19776]
14429         * sysdeps/x86_64/memcpy.S: Make it dummy.
14430         * sysdeps/x86_64/mempcpy.S: Likewise.
14431         * sysdeps/x86_64/memmove.S: New file.
14432         * sysdeps/x86_64/memmove_chk.S: Likewise.
14433         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14434         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14435         * sysdeps/x86_64/memmove.c: Removed.
14436         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
14437         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14438         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
14439         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
14440         Likewise.
14441         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14442         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14443         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14444         memcpy-sse2-unaligned, memmove-avx-unaligned,
14445         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
14446         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14447         (__libc_ifunc_impl_list): Replace
14448         __memmove_chk_avx512_unaligned_2 with
14449         __memmove_chk_avx512_unaligned.  Remove
14450         __memmove_chk_avx_unaligned_2.  Replace
14451         __memmove_chk_sse2_unaligned_2 with
14452         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
14453         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
14454         with __memmove_avx512_unaligned.  Replace
14455         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
14456         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
14457         with __memcpy_chk_avx512_unaligned.  Remove
14458         __memcpy_chk_avx_unaligned_2.  Replace
14459         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
14460         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
14461         Replace __memcpy_avx512_unaligned_2 with
14462         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
14463         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
14464         with __mempcpy_chk_avx512_unaligned.  Remove
14465         __mempcpy_chk_avx_unaligned_2.  Replace
14466         __mempcpy_chk_sse2_unaligned_2 with
14467         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
14468         Replace __mempcpy_avx512_unaligned_2 with
14469         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
14470         Replace __mempcpy_sse2_unaligned_2 with
14471         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
14472         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
14473         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
14474         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
14475         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
14476         (ENTRY): Removed.
14477         (END): Likewise.
14478         (ENTRY_CHK): Likewise.
14479         (libc_hidden_builtin_def): Likewise.
14480         Don't include ../memcpy.S.
14481         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
14482         __memcpy_chk_avx512_unaligned_erms and
14483         __memcpy_chk_avx512_unaligned.  Use
14484         __memcpy_chk_avx_unaligned_erms and
14485         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14486         Default to __memcpy_chk_sse2_unaligned.
14487         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14488         Change function suffix from unaligned_2 to unaligned.
14489         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
14490         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
14491         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
14492         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
14493         (ENTRY): Removed.
14494         (END): Likewise.
14495         (ENTRY_CHK): Likewise.
14496         (libc_hidden_builtin_def): Likewise.
14497         Don't include ../mempcpy.S.
14498         (mempcpy): New.  Add a weak alias.
14499         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
14500         __mempcpy_chk_avx512_unaligned_erms and
14501         __mempcpy_chk_avx512_unaligned.  Use
14502         __mempcpy_chk_avx_unaligned_erms and
14503         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14504         Default to __mempcpy_chk_sse2_unaligned.
14505
14506 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14507
14508         [BZ #19881]
14509         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
14510         into ...
14511         * sysdeps/x86_64/memset.S: This.
14512         (__bzero): Removed.
14513         (__memset_tail): Likewise.
14514         (__memset_chk): Likewise.
14515         (memset): Likewise.
14516         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
14517         defined.
14518         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
14519         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
14520         (__memset_zero_constant_len_parameter): Check SHARED instead of
14521         PIC.
14522         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14523         memset-avx2 and memset-sse2-unaligned-erms.
14524         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14525         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
14526         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
14527         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14528         (__bzero): Enabled.
14529         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
14530         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
14531         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
14532         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
14533         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
14534         (memset): Removed.
14535         (__memset_chk): Likewise.
14536         (MEMSET_SYMBOL): New.
14537         (libc_hidden_builtin_def): Replace __memset_sse2 with
14538         __memset_sse2_unaligned.
14539         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
14540         __memset_chk_sse2 and __memset_chk_avx2 with
14541         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
14542         Use __memset_chk_sse2_unaligned_erms or
14543         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
14544         __memset_chk_avx512_unaligned_erms and
14545         __memset_chk_avx512_unaligned.
14546
14547 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14548
14549         * math/gen-auto-libm-test.c (fp_format_desc): remove
14550         suffix member.
14551         (output_generic_value): Remove usage of suffix member,
14552         and the resulting unuse of the fp_format argument.
14553         (output_for_one_input_case): Remove unused fp_format
14554         parameter.
14555
14556         * math/auto-libm-test-out: Regenerate.
14557
14558         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
14559         usage with TEST_COND_ibm128.
14560         (TEST_COND_flt_32): Remove.
14561         (TEST_COND_dbl_64): Remove.
14562         (TEST_COND_ldbl_96_intel): Remove.
14563         (TEST_COND_ldbl_96_m68k): Remove.
14564         (TEST_COND_ldbl_128): Remove.
14565
14566 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14567
14568         * auto-libm-test-in:
14569         Replace flt-32 usage with binary32.
14570         Replace dbl-64 usage with binary64.
14571         Replace ldbl-intel-96 usage with intel96.
14572         Replace ldbl-m68k-96 usage with m68k96.
14573         Replace ldbl-128ibm usage with ibm128.
14574         Replace ldbl-128 usage with binary128.
14575
14576         * auto-libm-test-out: Regenerate.
14577
14578 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14579
14580         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
14581         (parse_ulps): Dynamically generate type name matching
14582         string from all_floats.
14583         (get_ulps): Generate the ulps as an array instead.
14584         (output_ulps): Dynamically compose the type based
14585         on the number of supported formats, and print
14586         the indices as type specific helper macros.
14587
14588         * math/libm-test.inc: Remove comment about CHOOSE.
14589         (ulp_data): Generate the type in libm-test-ulps.h.
14590         (ULP_IDX): New macro.
14591         (find_ulps): Update usage of max_ulp.
14592
14593         * math/test-double-vlen2.h (CHOOSE): Remove.
14594         * math/test-double-vlen4.h (CHOOSE): Likewise.
14595         * math/test-double-vlen8.h (CHOOSE): Likewise.
14596         * math/test-float.c (CHOOSE): Likewise.
14597         * math/test-float-finite.c (CHOOSE): Likewise.
14598         * math/test-double.c (CHOOSE): Likewise.
14599         * math/test-double-finite.c (CHOOSE): Likewise.
14600         * math/test-idouble.c (CHOOSE): Likewise.
14601         * math/test-ifloat.c (CHOOSE): Likewise.
14602         * math/test-ildoubl.c (CHOOSE): Likewise.
14603         * math/test-ldouble-finite.c (CHOOSE): Likewise.
14604         * math/test-ldouble.c (CHOOSE): Likewise.
14605
14606         * math/test-float.h (TEST_FLOAT): Remove.
14607         * math/test-double.h (TEST_DOUBLE): Likewise.
14608         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
14609
14610 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14611
14612         * math/gen-libm-test.pl: (apply_lit): New subroutine.
14613         (parse_args): Strip C suffix from floating point literals
14614         typed with 'f' and wrap them with LIT().
14615
14616         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
14617         (test_ff_f_data_nexttoward): Rename to
14618         (test_fj_f_data): New struct.
14619         (nexttoward_test_data): Relabel tests as
14620         TEST_fj_f instead of TEST_ff_f.
14621
14622 2016-06-08  Florian Weimer  <fweimer@redhat.com>
14623
14624         Emacs bug 23726.
14625         * malloc/malloc.c (dumped_main_arena_start): Update comment.
14626         (__libc_realloc): Correct size computation for dumped fake mmapped
14627         chunks.
14628
14629 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
14630
14631         [BZ #20219]
14632         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
14633         to itself.
14634         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
14635
14636         [BZ #20218]
14637         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
14638         to itself.
14639         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
14640
14641 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
14642
14643         [BZ #20195]
14644         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
14645         check to ...
14646         (init_cpu_features): Here.
14647
14648 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
14649
14650         [BZ #20214]
14651         * sysdeps/unix/sysv/linux/bits/in.h
14652         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14653          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
14654         Define to 1.
14655         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
14656          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
14657         Define to 0.
14658         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
14659         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
14660
14661 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
14662
14663         [BZ #20198]
14664         * stdlib/Makefile (tests): Add tst-quick_exit, and
14665         tst-thread-quick_exit.
14666         [ifeq ($(have-cxx-thread_local),yes)]
14667         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
14668         (CFLAGS-tst-thread-quick_exit.o): Likewise.
14669         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
14670         (LDLIBS-tst-thread-quick_exit): Likewise.
14671         [ifneq ($(have-cxx-thread_local),yes)]
14672         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
14673         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
14674         If run_dtors is true call __call_tls_dtors.
14675         (exit): Call __run_exit_handlers with run_dtors set to true.
14676         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
14677         definition.
14678         * stdlib/quick_exit.c (quick_exit): Remove function.
14679         (__new_quick_exit): New function.
14680         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
14681         function.
14682         * stdlib/tst-quick_exit.cc: New file.
14683         * stdlib/tst-thread-quick_exit.cc: New file.
14684         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
14685         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
14686         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
14687         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
14688         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
14689         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
14690         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
14691         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
14692         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
14693         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
14694         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
14695         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
14696         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
14697         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
14698         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
14699         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
14700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
14701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
14702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
14703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
14704         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
14705         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
14706         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
14707         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
14708         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
14709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
14710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
14711         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
14712         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
14713         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
14714
14715 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
14716
14717         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
14718         a typo in comments.
14719
14720 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14721
14722         [BZ #20213]
14723         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
14724         argument to itself.
14725         * math/libm-test.inc (asin_test_data): Add sNaN tests.
14726
14727 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14728
14729         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
14730         required flags.
14731         (CFLAGS-pwritev64.c): Likewise.
14732         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
14733         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
14734         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
14735         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14736         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
14737         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
14738         syscall from auto-generation.
14739         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
14740         [WORDSIZE == 64] (pwritev64): Remove macro.
14741         [!PWRITEV] (PWRITEV): Likewise.
14742         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14743         [!PWRITEV] (PWRITE): Likewise.
14744         [!PWRITEV] (OFF_T): Likewise.
14745         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
14746         (LO_HI_LONG): Remove macro.
14747         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
14748         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
14749         (PWRITEV): Remove macro.
14750         (PWRITEV_REPLACEMENTE): Likewise.
14751         (PWRITE): Likewise.
14752         (OFF_T): Likewise.
14753         (pwritev64): New function.
14754         * nptl/tst-cancel4.c (tf_writev): Add test.
14755
14756         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
14757         required flags.
14758         (CFLAGS-preadv64.c): Likewise.
14759         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
14760         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
14761         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
14762         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
14763         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
14764         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
14765         syscall from auto-generation.
14766         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
14767         [WORDSIZE == 64] (preadv64): Remove macro.
14768         [!PREADV] (PREADV): Likewise.
14769         [!PREADV] (PREADV_REPLACEMENT): Likewise.
14770         [!PREADV] (PREAD): Likewise.
14771         [!PREADV] (OFF_T): Likewise.
14772         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
14773         (LO_HI_LONG): Remove macro.
14774         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
14775         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
14776         (PREADV): Remove macro.
14777         (PREADV_REPLACEMENTE): Likewise.
14778         (PREAD): Likewise.
14779         (OFF_T): Likewise.
14780         (preadv64): New function.
14781         * nptl/tst-cancel4.c (tf_preadv): Add test.
14782
14783 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
14784
14785         [BZ #20212]
14786         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
14787         argument to itself.
14788         * math/libm-test.inc (acos_test_data): Add sNaN tests.
14789
14790 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14791
14792         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
14793         New symbol defined as libc_hidden_def.
14794         (strcasestr): Became a weak alias to __strcasestr.
14795         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
14796         according to multi-arch support.  Move __stpncpy hidden
14797         definition from here to...
14798         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
14799         symbol stpncpy.
14800         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
14801         libc_hidden_builtin_def.
14802         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
14803         memset symbol to use when multi-arch support is available.
14804
14805 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
14806
14807         * dlfcn/tst-rec-dlopen.c: Include string.h.
14808
14809 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14810
14811         * manual/install.texi: Remove mention of --without-tls
14812         * INSTALL: Regenerate.
14813
14814 2016-06-05  Florian Weimer  <fweimer@redhat.com>
14815
14816         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
14817         Remove.
14818         (call_function, interposed_malloc_called): New variables.
14819         (malloc): New function.
14820         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
14821         and clear call_function as needed.
14822
14823 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
14824
14825         * include/wchar.h (__wmemset): Use __typeof.
14826
14827 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
14828
14829         * include/wchar.h (__wmemset): Declare function without typeof.
14830
14831 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
14832
14833         [BZ #20205]
14834         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
14835         exponent when incrementing negative subnormal with low mantissa
14836         word zero.
14837         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14838         Add another test.
14839
14840 2016-06-03  Florian Weimer  <fweimer@redhat.com>
14841
14842         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
14843         __wmemset instead of wmemset.
14844
14845 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
14846
14847         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
14848         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
14849         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
14850         __USE_KERNEL_IPV6_DEFS to 0.
14851         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
14852         Update comment.
14853
14854 2016-06-01  Florian Weimer  <fweimer@redhat.com>
14855
14856         [BZ #19861]
14857         Do not use IFUNC resolver with potentially unrelocated symbol.
14858         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
14859         (DEFINE_FORK): Remove macro and inline definition.
14860         (fork_alias): Renamed from fork_ifunc.
14861         (__fork_alias): Renamed from __fork_ifunc.
14862
14863 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14864
14865         [BZ 19653]
14866         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
14867         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
14868
14869 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14870
14871         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
14872         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
14873         i386-linux-gnu).
14874         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
14875         Set to no.
14876         * sysdeps/mach/hurd/configure: Refresh.
14877
14878 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14879
14880         [BZ #20178]
14881         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
14882         on failure instead of exit.
14883
14884 2016-05-30  Roland McGrath  <roland@hack.frob.com>
14885
14886         [BZ #3629]
14887         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
14888         of POSIX.1-2008.
14889
14890 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14891
14892         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
14893           Use PLT entry for calling _hurd_self_sigstate.
14894
14895 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14896
14897         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
14898         available logical processors with SMT level type sharing L2
14899         cache for Intel processors.
14900
14901 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
14902
14903         [BZ #20160]
14904         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
14905         argument to itself before returning the result.
14906         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
14907         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
14908         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
14909         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
14910         Likewise.
14911         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
14912         Likewise.
14913         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
14914         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
14915         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
14916         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
14917         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
14918         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
14919
14920         [BZ #20160]
14921         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
14922         argument to itself before returning the result.
14923         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
14924         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
14925         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
14926         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
14927         Likewise.
14928         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
14929         Likewise.
14930         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
14931         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
14932         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
14933         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
14934         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
14935         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
14936
14937 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14938
14939         * libm-test.inc: Replace usage of M_El with
14940         (lit_e): New macro.
14941
14942 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14943
14944         * libm-test.inc: Replace usage of M_PI_4l with
14945         (lit_pi_4_d): New macro.
14946
14947 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14948
14949         * libm-test.inc: Replace usage of M_PIl with
14950         (lit_pi): New macro.
14951
14952 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14953
14954         * libm-test.inc: Replace usage of M_PI2l with
14955         (lit_pi_2_d): New macro.
14956
14957         * math/test-double.h (LITM): New macro.
14958         * math/test-float.h (LITM): Likewise.
14959         * math/test-ldouble.h (LITM): Likewise.
14960
14961 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14962
14963         * libm-test.inc (M_PI_34l): Rename to
14964         (lit_pi_3_m_4_d): New Macro.
14965         (M_PI_34_LOG10El): Rename to
14966         (lit_pi_3_m_4_ln10_m_d): New Macro.
14967         (M_PI2_LOG10El): Rename to
14968         (lit_pi_2_ln10_m_d):  New Macro.
14969         (M_PI4_LOG10El): Rename to
14970         (lit_pi_4_ln10_m_d):  New Macro.
14971         (M_PI_LOG10El): Rename to
14972         (lit_pi_ln10_d):  New Macro.
14973
14974 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
14975
14976         [BZ #20157]
14977         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
14978         determine whether to negate low half if [_ARCH_PPCGR], and integer
14979         comparison otherwise.
14980         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
14981         determine whether to negate low half.
14982
14983         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
14984         (NO_TEST_INLINE_DOUBLE): Likewise.
14985         (TEST_COND_x86_64): Likewise.
14986         (TEST_COND_x86): Likewise.
14987         (M_PI_6l): Likewise.
14988
14989 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14990
14991         * math/libm-test.inc:
14992         (TEST_FLOAT): Change usage to TEST_COND_binary32.
14993         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
14994         (TEST_LDOUBLE): Update usage to evaluate as true if
14995         the guarded tests match the property being tested.
14996         (LDBL_MAX_EXP): Change to MAX_EXP.
14997         (LDBL_MIN_EXP): Change to MIN_EXP.
14998         (LDBL_MANT_DIG): Change to MANT_DIG, except for
14999         nexttoward tests.
15000
15001 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15002
15003         * math/libm-test.inc:
15004         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15005         (TYPE_MIN): Likewise.
15006         (TYPE_TRUE_MIN): Likewise.
15007         (TYPE_MAX): Likewise.
15008         (MIN_EXP): Likewise.
15009         (MAX_EXP): Likewise.
15010         (MANT_DIG): Likewise.
15011
15012         (FSTR_MAX): New macro.
15013         (__CONCATX): Likewise.
15014         (QTYPE_STR): Likewise.
15015         (TEST_COND_binary32): Likewise.
15016         (TEST_COND_binary64): Likewise.
15017         (TEST_COND_binary128): Likewise.
15018         (TEST_COND_ibm128): Likewise.
15019         (TEST_COND_intel96): Likewise.
15020         (TEST_COND_m68k96): Likewise.
15021
15022         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15023         (TEST_COND_dbl_64): Likewise.
15024         (TEST_COND_ldbl_96_intel): Likewise.
15025         (TEST_COND_ldbl_96_m68k): Likewise.
15026         (TEST_COND_ldbl_128): Likewise.
15027         (TEST_COND_ldbl_128ibm): Likewise.
15028
15029         (plus_zero): Redefine using LIT macro.
15030         (minus_zero): Likewise.
15031         (plus_infty): Redefine as (INF).
15032         (minux_infty): Redefine as (-INF).
15033         (max_value): Redefine as TYPE_MAX.
15034         (min_value): Redefine as TYPE_MIN.
15035         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15036
15037         (print_float): Refactor to use snprintf to convert FLOAT values
15038         to string. This brings it closer to dropin replacement of strtof
15039         for the TS 18661 defined types.
15040         (update_stats): Likewise.
15041         (print_complex_function_ulps): Likewise.
15042         (print_max_error): Likewise.
15043         (print_complex_max_error): Likewise.
15044         (check_float_internal): Likewise.
15045
15046         * math/test-float.h (PREFIX): New macro.
15047         (LIT): Likewise.
15048         (TYPE_STR): Likewise.
15049         (FTOSTR): Likewise.
15050
15051         * math/test-double.h (PREFIX): New macro.
15052         (LIT): Likewise.
15053         (TYPE_STR): Likewise.
15054         (FTOSTR): Likewise.
15055
15056         * math/test-ldouble.h (PREFIX): New macro.
15057         (LIT): Likewise.
15058         (TYPE_STR): Likewise.
15059         (FTOSTR): Likewise.
15060
15061 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15062
15063         [BZ #20156]
15064         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15065         to itself when zero or not finite.
15066         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15067         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15068         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15069         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15070
15071 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15072
15073         [BZ #20153]
15074         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15075         x * x + x for infinities and NaNs.
15076
15077         [BZ #20151]
15078         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15079         argument to itself before returning result.
15080         (__ieee754_y0l): Likewise.
15081         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15082         (__ieee754_y1l).
15083
15084         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15085         (atan_test_data): Likewise.
15086         (ceil_test_data): Likewise.
15087         (cos_test_data): Likewise.
15088         (cosh_test_data): Likewise.
15089         (erf_test_data): Likewise.
15090         (exp2_test_data): Likewise.
15091         (fabs_test_data): Likewise.
15092         (floor_test_data): Likewise.
15093         (ilogb_test_data): Likewise.
15094         (j0_test_data): Likewise.
15095         (j1_test_data): Likewise.
15096         (jn_test_data): Likewise.
15097         (lgamma_test_data): Likewise.
15098         (lrint_test_data): Likewise.
15099         (llrint_test_data): Likewise.
15100         (logb_test_data): Likewise.
15101         (lround_test_data): Likewise.
15102         (llround_test_data): Likewise.
15103         (nearbyint_test_data): Likewise.
15104         (rint_test_data): Likewise.
15105         (round_test_data): Likewise.
15106         (sin_test_data): Likewise.
15107         (sincos_test_data): Likewise.
15108         (sinh_test_data): Likewise.
15109         (sqrt_test_data): Likewise.
15110         (tan_test_data): Likewise.
15111         (tanh_test_data): Likewise.
15112         (tgamma_test_data): Likewise.
15113         (trunc_test_data): Likewise.
15114         (y0_test_data): Likewise.
15115         (y1_test_data): Likewise.
15116         (yn_test_data): Likewise.
15117
15118         * math/libm-test.inc: Update comment about NaN testing.
15119         (TEST_SNAN): New macro.
15120         (snan_value): Likewise.
15121         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15122         (fpclassify_test_data): Add sNaN tests.
15123         (isfinite_test_data): Likewise.
15124         (isinf_test_data): Likewise.
15125         (isnan_test_data): Likewise.
15126         (isnormal_test_data): Likewise.
15127         (issignaling_test_data): Likewise.
15128         (signbit_test_data): Likewise.
15129         * math/gen-libm-test.pl (%beautify): Add snan_value.
15130         (show_exceptions): Add argument $test_snan.
15131         (parse_args): Handle snan_value as non-finite.  Update call to
15132         show_exceptions.
15133         * math/Makefile (libm-test-no-inline-cflags): Add
15134         -fsignaling-nans.
15135
15136 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15137
15138         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15139         (CFLAGS-oldsendmsg.c): Add rule.
15140         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15141         Correct recvmsg symbol name.
15142         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15143         Likewise.
15144
15145 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15146
15147         * sysdeps/unix/sysv/linux/Makefile
15148         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15149         oldsendmmsg.
15150         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15151         sendmmsg.
15152         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15153         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15154         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15155         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15157         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15158         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15159         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15160         Likewise.
15161         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15162         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15163         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15164         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15165         iovlen and controllen fields to adjust to POSIX specification.
15166         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15167
15168         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15169         and change to correct expected type.
15170         (msghdr.msg_controllen): Likewise.
15171         (cmsghdr.cmsg_len): Likewise.
15172         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15173         expected POSIX assumption about the size.
15174         (msghdr.msg_controllen): Likewise.
15175         (msghdr.__glibc_reserved1): Likewise.
15176         (msghdr.__glibc_reserved2): Likewise.
15177         (cmsghdr.cmsg_len): Likewise.
15178         (cmsghdr.__glibc_reserved1): Likewise.
15179         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15180         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15181         (CFLAGS-sendmsg.c): Remove rule.
15182         (CFLAGS-recvmsg.c): Likewise.
15183         (CFLAGS-oldsendmsg.c): Add rule.
15184         (CFLAGS-oldrecvmsg.c): Likewise.
15185         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15186         recvmsg and sendmsg.
15187         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15188         Likewise.
15189         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15190         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15191         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15192         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15193         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15194         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15195         Likewise.
15196         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15197         Likewise.
15198         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15199         Likewise.
15200         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15201         Likewise.
15202         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15203         Likewise.
15204         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15205         Likewise.
15206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15207         (GLIBC_2.24): Likewise.
15208         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15209         Likewise.
15210         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15211         Likewise.
15212         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15213         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15214         Likewise.
15215         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15216         Likewise.
15217         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15218         Likewise.
15219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15220         (GLIBC_2.24): Likewise.
15221         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15222         Likewise.
15223         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15224         Likewise.
15225         * sysdeps/unix/sysv/linux/Makefile
15226         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15227         (CFLAGS-sendmsg.c): Add rule.
15228         (CFLAGS-recvmsg.c): Likewise.
15229         (CFLAGS-oldsendmsg.c): Likewise.
15230         (CFLAGS-oldrecvmsg.c): Likewise.
15231         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15232         initialization.
15233         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15234         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15235         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15236         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15237         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15238         iovlen and controllen fields to adjust to POSIX specification.
15239         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15240         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15241         added recvmsg and sendmsg.
15242         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15243         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15244         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15245         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15246         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15247         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15248         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15249         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15250         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15251         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15252         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15253         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15255         Likewise.
15256         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15258         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15259         Likewise.
15260         Likewise.
15261         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15262         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15263         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15264         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15265         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15266         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15268         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15270         Likewise.
15271         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15272         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15273
15274         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15275         from auto-generation.
15276         (sendmsg): Likewise.
15277         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15278         (sendmsg): Likewise.
15279         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15280         (sendmsg): Likewise.
15281         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15282         (sendmsg): Likewise.
15283         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15284         (sendmsg): Likewise.
15285         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15286         (sendmsg): Likewise.
15287         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15288         Likewise.
15289         (sendmsg): Likewise.
15290         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15291         (sendmsg): Likewise.
15292         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15293         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15294         Remove.
15295         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15296         Likewise.
15297         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15298         Undefine.
15299         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15300         Likewise.
15301         * sysdeps/unix/sysv/linux/kernel-features.h
15302         (__ASSUME_SENDMSG_SYSCALL): Define.
15303         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15304         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15305         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15306         Remove.
15307         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15308         Likewise.
15309         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15310         Undefine.
15311         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15312         Likewise.
15313         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15314         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15315         Remove.
15316         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15317         Likewise.
15318         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15319         Undefine.
15320         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15321         Likewise.
15322         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15323         (__ASSUME_SENDMSG_SYSCALL): Undefine.
15324         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15325         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15326         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15327         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15328         * sysdeps/unix/sysv/linux/sh/kernel-features.h
15329         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15330         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15331
15332 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15333
15334         * stdlib/gen-tst-strtod-round.c: Add backslash to
15335         compile command in comment.
15336         (printfp): Remove the literal suffix, and define an infinite
15337         value as INF to avoid expansion clash with INFINITY.
15338         (round_str): Remove the literal suffix.
15339         (round_for_all): Likewise, remove the now duplicate ldbl-64
15340         entry, and remove some magic constants.
15341
15342         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
15343         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
15344         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
15345         (_CONCAT): New macro.
15346         (CONCAT): Likewise.
15347         (CHOOSE_ld): Likewise.
15348         (CHOOSE_f): Likewise.
15349         (CHOOSE_d): Likewise.
15350         (FTYPE_MEMBER): Likewise.
15351         (BOOL_MEMBER): Likewise.
15352         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
15353         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
15354         (_XNTRY): Likewise.
15355         (XNTRY): Likewise.
15356         (_ENTRY): Likewise.
15357         (ENTRY): Likewise.
15358         (test_exactness): Generate members via macro.
15359         (test_results): Likewise.
15360         (test): Update members.
15361         (TEST): Redefine using new macros.
15362         (INF): New macro.
15363         (fetestmodes): New structure.
15364         (do_test): Refactor to be type generic.
15365         (test_in_one_mode): Refactor duplicate code into
15366         (GEN_ONE_TEST): New macro.
15367
15368         * stdlib/tst-strtod-round-data.h: Regenerate.
15369
15370         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
15371         Extend to pass additional arbitrary parameters to
15372         generators.
15373
15374 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
15375
15376         [BZ #15479]
15377         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
15378         floating-point state after first floating-point operation on
15379         input.  Restore full floating-point state instead of just rounding
15380         mode.
15381         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15382         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15383         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15384         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15385         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15386
15387         [BZ #15479]
15388         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
15389         floating-point state after first floating-point operation on
15390         input.  Restore full floating-point state instead of just rounding
15391         mode.
15392         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15393         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15394         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15395         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15396         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15397
15398 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15399
15400         [BZ #19727]
15401         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
15402         valid high surrogate.
15403         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
15404         of an utf16 surrogate.
15405         * iconv/gconv_simple.c (BODY): Likewise.
15406         * iconvdata/bug-iconv12.c: New file.
15407         * iconvdata/Makefile (tests): Add bug-iconv12.
15408
15409 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15410
15411         [BZ #19726]
15412         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
15413         outptrp in case of an illegal input.
15414         * iconv/tst-iconv6.c: New file.
15415         * iconv/Makefile (tests): Add tst-iconv6.
15416
15417 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15418
15419         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
15420         an error in case of a value in range of an utf16 low surrogate.
15421
15422 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15423
15424         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
15425         an error in case of a value in range of an utf16 low surrogate.
15426
15427 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15428
15429         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
15430         Move to ...
15431         * sysdeps/s390/Makefile: ... here.
15432         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
15433         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
15434         (BRANCH_ON_COUNT): New define.
15435         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
15436         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
15437         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
15438         run on s390-32, too.
15439         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
15440         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
15441         run on s390-32, too.
15442         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
15443         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
15444         run on s390-32, too.
15445
15446 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15447
15448         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
15449         etf3eh or new vector loop-variant.
15450
15451 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15452
15453         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
15454         etf3eh or new vector loop-variant.
15455
15456 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15457
15458         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
15459         or new vector loop-variant.
15460
15461 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15462
15463         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
15464         Rename to TR_LOOP and usage of tr instead of troo instruction.
15465
15466 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15467
15468         * sysdeps/s390/multiarch/gconv_simple.c: New File.
15469         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
15470
15471 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15472
15473         * sysdeps/s390/multiarch/8bit-generic.c: New File.
15474         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
15475         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
15476         New override define.
15477         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
15478
15479 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15480
15481         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
15482         * sysdeps/s390/configure.ac: Add test for S390 vector register
15483         support in gcc.
15484         * sysdeps/s390/configure: Regenerated.
15485
15486 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15487
15488         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
15489         Install file from $(objpfx)gconv-modules.
15490         ($(objpfx)gconv-modules): Concatenate architecture specific file
15491         in variable sysdeps-gconv-modules and gconv-modules in src dir.
15492         * sysdeps/s390/gconv-modules: New file.
15493         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
15494         Deleted.
15495         ($(objpfx)gconv-modules-s390): Deleted.
15496         (sysdeps-gconv-modules): New variable.
15497
15498 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15499
15500         [BZ #15479]
15501         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
15502         of immediate operand to rounding instruction.
15503         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
15504         Likewise.
15505         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
15506         Likewise.
15507         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
15508         Likewise.
15509
15510 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15511
15512         * math/libm-test.inc (MIN_EXP): Directly define as
15513         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
15514
15515 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15516
15517         * math/libm-test.inc (MANT_DIG): Directly define as
15518         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
15519
15520 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15521
15522         * stdlib/gen-tst-strtod-round.c (main):
15523           Change usage to more closely match the generated
15524           output.  Add usage and compilation instructions.
15525           (string_to_fp): Add and use FILE* parameter as
15526           output target.
15527           (print_fp): Likewise.
15528           (round_str): Likewise.
15529           (round_for_all): Likewise.
15530         * stdlib/tst-strtod-round.c (tests): Move into
15531         * stdlib/tst-strtod-round-data.h: New file.
15532
15533 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15534
15535         [BZ #15479]
15536         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
15537         (__round): Do not force "inexact" exception.
15538         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
15539         variable.
15540         (__round): Do not force "inexact" exception.
15541         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
15542         (__roundf): Do not force "inexact" exception.
15543         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
15544         (__roundl): Do not force "inexact" exception.
15545         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
15546         (__roundl): Do not force "inexact" exception.
15547         * math/libm-test.inc (round_test_data): Do not allow spurious
15548         "inexact" exceptions.
15549
15550         [BZ #15479]
15551         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
15552         exception in comment.
15553         (huge): Remove variable.
15554         (__floor): Do not force "inexact" exception.
15555         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
15556         "inexact" exception in comment.
15557         (huge): Remove variable.
15558         (__floor): Do not force "inexact" exception.
15559         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
15560         exception in comment.
15561         (huge): Remove variable.
15562         (__floorf): Do not force "inexact" exception.
15563         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
15564         exception in comment.
15565         (huge): Remove variable.
15566         (__floorl): Do not force "inexact" exception.
15567
15568         [BZ #15479]
15569         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
15570         exception in comment.
15571         (huge): Remove variable.
15572         (__ceil): Do not force "inexact" exception.
15573         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
15574         "inexact" exception in comment.
15575         (huge): Remove variable.
15576         (__ceil): Do not force "inexact" exception.
15577         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
15578         (__ceilf): Do not force "inexact" exception.
15579         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
15580         exception in comment.
15581         (huge): Remove variable.
15582         (__ceill): Do not force "inexact" exception.
15583
15584 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15585
15586         * config.h.in (BIND_NOW): New.
15587         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
15588         * configure: Regenerated.
15589         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
15590         indirect branch via the GOT slot.
15591
15592 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15593
15594         [BZ #19765]
15595         * sysdeps/s390/mempcpy.S: New File.
15596         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
15597         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
15598         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15599         Add mempcpy variants.
15600         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
15601         (memcpy): Adjust to be usable from mempcpy entry point.
15602         (__memcpy_mvcle): Likewise.
15603         * sysdeps/s390/s390-64/memcpy.S: Likewise.
15604         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
15605         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
15606         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
15607         (__memcpy_z10): Likewise.
15608         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15609
15610 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15611
15612         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
15613         Remove __GI_ symbol.
15614         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
15615         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
15616         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
15617         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
15618         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
15619         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
15620
15621 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15622
15623         * sysdeps/s390/s390-64/memcpy.S (memcpy):
15624         Use cghi instead of chi to compare 64bit value.
15625
15626 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
15627
15628         * sysdeps/s390/s390-32/memcpy.S (memcpy):
15629         Jump to 1MB check before executing mvc-loop.
15630
15631 2016-05-24  Florian Weimer  <fweimer@redhat.com>
15632
15633         [BZ #6527]
15634         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
15635         unconditionally.
15636         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
15637
15638 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15639
15640         * stdlib/tst-strtod6.c (do_test): Use new type generic
15641         invocation of the test function.
15642         (test): Refactor into ...
15643         (TEST_STRTOD): New macro base function.
15644
15645 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15646
15647         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
15648         (TEST_STRTOD): New macro.
15649         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
15650
15651 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15652
15653         * stdlib/tst-strtod6.c (do_test): Use new type generic
15654         invocation of the test function.
15655         (test): Refactor into ...
15656         (TEST_STRTOD): New macro base function.
15657
15658 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15659
15660         CVE-2016-4429
15661         [BZ #20112]
15662         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
15663         payload.
15664
15665 2016-05-23  Florian Weimer  <fweimer@redhat.com>
15666
15667         [BZ #20111]
15668         * bits/sockaddr.h (_SS_SIZE): Define.
15669         * bits/socket.h (_SS_SIZE): Remove.
15670         (_SS_PADSIZE): Adjust to account for all padding.
15671         (struct sockaddr_storage): Update comment.  Avoid implicit
15672         padding.
15673         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
15674         (_SS_PADSIZE): Adjust to account for all padding.
15675         (struct sockaddr_storage): Update comment.  Avoid implicit
15676         padding.
15677         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
15678         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
15679         (_SS_PADSIZE): Adjust to account for all padding.
15680         (struct sockaddr_storage): Update comment.  Avoid implicit
15681         padding.
15682         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
15683         __SS_SIZE is 126 in this version.
15684         * inet/tst-sockaddr.c: New file.
15685         * inet/Makefile (tests): Add tst-sockaddr.c
15686         (tst-sockaddr.c): Compile with non-strict aliasing.
15687
15688 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
15689
15690         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
15691         [XPG3 || XPG4].
15692         (NL_ARGMAX): Also expect for [XPG3].
15693         (NL_LANGMAX): Likewise.
15694         (NL_MSGMAX): Likewise.
15695         (NL_NMAX): Likewise.
15696         (NL_SETMAX): Likewise.
15697         (NL_TEXTMAX): Likewise.
15698         (NZERO): Likewise.
15699         (TMP_MAX): Likewise.
15700         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
15701         variable.
15702
15703         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
15704         (PF_MAX): Update value.
15705         (AF_KCM): New macro.
15706         (SOL_NETBEUI): Likewise.
15707         (SOL_LLC): Likewise.
15708         (SOL_DCCP): Likewise.
15709         (SOL_NETLINK): Likewise.
15710         (SOL_TIPC): Likewise.
15711         (SOL_RXRPC): Likewise.
15712         (SOL_PPPOL2TP): Likewise.
15713         (SOL_BLUETOOTH): Likewise.
15714         (SOL_PNPIPE): Likewise.
15715         (SOL_RDS): Likewise.
15716         (SOL_IUCV): Likewise.
15717         (SOL_CAIF): Likewise.
15718         (SOL_ALG): Likewise.
15719         (SOL_NFC): Likewise.
15720         (SOL_KCM): Likewise.
15721         (MSG_BATCH): New enum value and macro.
15722
15723 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15724
15725         [BZ #18185]
15726         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
15727         sharing L2 cache to 2 for Knights Landing.
15728
15729 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
15730
15731         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
15732         (FTW_DP): Do not expect for [XPG3 || XPG4].
15733         (FTW_SL): Do not expect for [XPG3].
15734         (FTW_SLN): Likewise.
15735         (FTW_PHYS): Likewise.
15736         (FTW_MOUNT): Likewise.
15737         (FTW_DEPTH): Likewise.
15738         (FTW_CHDIR): Likewise.
15739         (nftw): Likewise.
15740         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
15741         variable.
15742
15743 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15744
15745         * manual/errno.texi: Fix various typos & grammar errors.
15746
15747 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
15748
15749         * manual/intro.texi: Fix duplicated typo.
15750
15751 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15752
15753         [BZ #13304]
15754         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
15755         <float.h>, <math_private.h> and <stdlib.h>.
15756         (add_split): New function.
15757         (mul_split): Likewise.
15758         (ext_val): New typedef.
15759         (store_ext_val): New function.
15760         (mul_ext_val): New function.
15761         (compare): New function.
15762         (add_split_ext): New function.
15763         (__fmal): After checking for Inf, NaN and zero, compute result as
15764         an exact sum of scaled double values in round-to-nearest before
15765         adding those up and adjusting for other rounding modes.
15766         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
15767         tests of fma.
15768         * math/auto-libm-test-out: Regenerated.
15769
15770 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15771
15772         [BZ #20119]
15773         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
15774         processor level type mask for CPUID with EAX == 11.
15775
15776 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15777
15778         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
15779         logical threads if the HTT bit is 0.
15780         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
15781         (index_cpu_HTT): Likewise.
15782         (reg_HTT): Likewise.
15783
15784 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15785
15786         [BZ #20115]
15787         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
15788         Remove alignments on jump targets.
15789
15790 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
15791
15792         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
15793         (getpwent): Likewise.
15794         (setpwent): Likewise.
15795         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
15796         variable.
15797
15798         * conform/data/search.h-data (insque): Do not expect for [XPG3].
15799         (remque): Likewise.
15800         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
15801         variable.
15802
15803 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15804
15805         * math/libm-test.inc: Update comment not to refer to signs of NaNs
15806         not being tested.
15807
15808 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15809
15810         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
15811         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
15812         call.
15813         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
15814         (__condvar_cleanup1): Likewise.
15815
15816 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15817
15818         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
15819         New
15820         (__pthread_unwind): Renamed to ...
15821         (PTHREAD_UNWIND): This.
15822         (__pthread_enable_asynccancel): Replace
15823         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
15824
15825 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
15826
15827         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
15828         (CLONE_NEWCGROUP): New macro.
15829
15830         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
15831         (Q_GETNEXTQUOTA): New macro.
15832
15833 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15834
15835         [BZ #19907]
15836         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
15837         buffer updated by the previous run.
15838         * string/test-memcpy.c (do_one_test): Likewise.
15839         * benchtests/bench-memmove.c (do_one_test): Add a comment.
15840         * string/test-memmove.c (do_one_test): Likewise.
15841
15842 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
15843
15844         [BZ #20094]
15845         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
15846         not [__USE_XOPEN].
15847         (unlockpt): Likewise.
15848         (ptsname): Likewise.
15849         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
15850         variable.
15851
15852         [BZ #20076]
15853         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
15854         instead of [__USE_UNIX98].
15855         (S_ISSOCK): Likewise.
15856         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
15857         variable.
15858
15859         [BZ #20074]
15860         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
15861         [__USE_POSIX].
15862         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
15863         variable.
15864
15865         [BZ #20051]
15866         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
15867         (ttyslot): Do not declare.
15868         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
15869         (ttyslot): New prototype.
15870         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
15871         variable.
15872         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
15873
15874 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
15875
15876         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
15877
15878 2016-05-13  Florian Weimer  <fweimer@redhat.com>
15879
15880         Fix race condition in tst-mallocfork2, use fewer resources.
15881         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
15882         to current process group.
15883         (signal_sender): Yield in the non-sleeping case.
15884
15885 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
15886
15887         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
15888         (ecvt): Likewise.
15889         (fcvt): Likewise.
15890         (gcvt): Likewise.
15891         (getsubopt): Likewise.
15892         (grantpt): Likewise.
15893         (initstate): Likewise.
15894         (l64a): Likewise.
15895         (mktemp): Likewise.
15896         (mkstemp): Likewise.
15897         (ptsname): Likewise.
15898         (random): Likewise.
15899         (realpath): Likewise.
15900         (setstate): Likewise.
15901         (srandom): Likewise.
15902         (ttyslot): Likewise.
15903         (unlockpt): Likewise.
15904         (valloc): Likewise.
15905
15906         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
15907         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
15908         variable.
15909
15910 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15911
15912         [BZ #20072]
15913         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
15914         init_cpu_features only if SHARED is defined.
15915         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
15916
15917 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15918
15919         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
15920         non-inclusive caches on Intel processors.
15921
15922 2016-05-13  Florian Weimer  <fweimer@redhat.com>
15923
15924         * malloc/malloc.c (dumped_main_arena_start)
15925         (dumped_main_arena_end): New variables.
15926         (DUMPED_MAIN_ARENA_CHUNK): New macro.
15927         (do_check_chunk): Skip dumped fake mmapped chunks.
15928         (munmap_chunk): Likewise.
15929         (__libc_free): Do not adjust statistics for fake mmapped chunks.
15930         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
15931         mmapped chunks.
15932         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
15933         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
15934         and dumped_main_arena_end to cover the dumped heap.
15935
15936 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
15937
15938         * conform/data/time.h-data (getdate_err): Do not expect for
15939         [XPG3].
15940         (getdate): Likewise.
15941         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
15942         variable.
15943
15944         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
15945         (F_ULOCK): Likewise.
15946         (F_TEST): Likewise.
15947         (F_TLOCK): Likewise.
15948         (useconds_t): Likewise.
15949         (intptr_t): Do not expect for [XPG3] or [XPG4].
15950         (brk): Do not expect for [XPG3]
15951         (fchown): Likewise.
15952         (fchdir): Likewise.
15953         (ftruncate): Likewise.
15954         (getdtablesize): Likewise.
15955         (gethostid): Likewise.
15956         (getpagesize): Likewise.
15957         (getpgid): Likewise.
15958         (getsid): Likewise.
15959         (getwd): Likewise.
15960         (lchown): Likewise.
15961         (lockf): Likewise.
15962         (readlink): Likewise.
15963         (sbrk): Likewise.
15964         (setpgrp): Likewise.
15965         (setregid): Likewise.
15966         (setreuid): Likewise.
15967         (symlink): Likewise.
15968         (sync): Likewise.
15969         (truncate): Likewise.
15970         (ualarm): Likewise.
15971         (usleep): Likewise.
15972         (vfork): Likewise.
15973         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
15974         variable.
15975
15976         [BZ #20054]
15977         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
15978         not [__USE_UNIX98].
15979         * conform/data/unistd.h-data (gethostname): Do not expect for
15980         [XPG3].
15981
15982         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
15983         [!POSIX] (S_IFBLK): Likewise.
15984         [!POSIX] (S_IFCHR): Likewise.
15985         [!POSIX] (S_IFIFO): Likewise.
15986         [!POSIX] (S_IFREG): Likewise.
15987         [!POSIX] (S_IFDIR): Likewise.
15988         [!POSIX] (S_IFLNK): Likewise.
15989         [!POSIX] (S_IFSOCK): Likewise.
15990         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
15991         variable.
15992         (test-xfail-XPG4/fcntl.h/conform): Likewise.
15993
15994 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
15995
15996         * sysdeps/aarch64/memset.S (__memset):
15997         Rewrite of optimized memset.
15998
15999 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16000
16001         [BZ #19703]
16002         Partially async-signal-safe fork for single-threaded processes.
16003         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16004         variable.  Do not acquire and reset/release malloc and libio locks
16005         in single-threaded processes.
16006         * malloc/tst-mallocfork2.c: New file.
16007         * malloc/Makefile (tests): Add it.
16008
16009 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16010
16011         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16012         argument.  Use scratch buffer instead of extend_alloca.
16013         (gethosts): Use scratch buffer instead of extend_alloca.
16014         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16015         extend_alloca.
16016         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16017
16018 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16019
16020         [BZ #20055]
16021         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16022         instead of [__USE_UNIX98].
16023         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16024         [__USE_UNIX98].
16025         * conform/data/termios.h-data (tcgetsid): Do not expect for
16026         [XPG3].
16027         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16028         variable.
16029         (test-xfail-XPG4/termios.h/conform): Likewise.
16030
16031 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16032
16033         Do not use mcheck in localedef.
16034         * locale/programs/localedef.c (turn_on_mcheck)
16035         (__malloc_initialize_hook): Remove.
16036
16037 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16038
16039         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16040         * sysdeps/s390/s390-64/Makefile: Likewise.
16041
16042 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16043
16044         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16045         Remove ifunc-defines.sym.
16046         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16047         Likewise.
16048         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16049         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16050         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16051         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16052         rtld-global-offsets.sym.
16053         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16054         * sysdeps/x86/cpu-features-offsets.sym: This.
16055         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16056         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16057
16058 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16059
16060         [BZ #20073]
16061         * io/sys/stat.h (fchmod): Declare for
16062         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16063         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16064         variable.
16065
16066         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16067         [XPG3] (S_IFSOCK): Likewise.
16068         [XPG3] (S_ISVTX): Likewise.
16069         [XPG3] (S_ISLNK): Likewise.
16070         [XPG3] (S_ISSOCK): Likewise.
16071         [XPG3] (fchmod): Likewise.
16072         [XPG3] (lstat): Likewise.
16073         [XPG3] (mknod): Likewise.
16074
16075         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16076         [XPG3].  Expect type long and XFAIL for [XPG4].
16077         (st_blocks): Likewise.
16078
16079         [BZ #20044]
16080         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16081         (pthread_atfork): New prototype.
16082         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16083         variable.
16084
16085         [BZ #20043]
16086         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16087         prototype.
16088
16089 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16090
16091         [BZ #20017]
16092         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16093         gmtime.
16094
16095 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16096
16097         [BZ #19994]
16098         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16099         flag in _res.options.
16100
16101 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16102
16103         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16104         [XPG3 || XPG4].
16105         (blksize_t): Likewise.
16106         (clockid_t): Likewise.
16107         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16108         variable.
16109         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16110
16111 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16112
16113         * sysdeps/unix/sysv/linux/s390/init-first.c:
16114         Add VDSO_SYMBOL(getcpu).
16115         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16116         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16117         Add VDSO_SYMBOL(getcpu).
16118         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16119         New define HAVE_GETCPU_VSYSCALL.
16120         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16121
16122 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16123
16124         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16125         instead of <sysdeps/x86_64/cacheinfo.c>.
16126         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16127         * sysdeps/x86/cacheinfo.c: Here.
16128
16129 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16130
16131         * malloc/malloc-internal.h: Adjust header file guard.
16132
16133 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16134
16135         [BZ #19787]
16136         * inet/getnameinfo.c (check_sprintf_result): New function.
16137         (CHECKED_SNPRINTF): New macro.
16138         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16139         to the host buffer.
16140         (gni_host_local): Use checked_copy to copy the host name.
16141         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16142         (gni_serv_local): Use checked_copy to copy the service name.
16143         (getnameinfo): Remove unnecessary truncation of result buffers.
16144
16145 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16146
16147         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16148         in case of inet_ntop failure.
16149
16150 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16151
16152         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16153         avoid long lines.
16154         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16155         variables.
16156         (gni_host_inet, gni_host_local): Add comment.
16157         (gni_host): Add comment.  Use temporary to avoid long lines.
16158
16159 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16160
16161         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16162         registers specifiers where general purpose registers specifiers should
16163         have been used.
16164
16165 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16166
16167         [BZ #19779]
16168         CVE-2016-1234
16169         Avoid copying names of directory entries.
16170         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16171         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16172         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16173         (struct readdir_result): New type.
16174         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16175         (GL_READDIR): New macros.
16176         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16177         (convert_dirent, convert_dirent64): New functions.
16178         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16179         convert_dirent64.  Adjust references to the readdir result.
16180         * sysdeps/unix/sysv/linux/i386/glob64.c:
16181         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16182         * posix/bug-glob2.c (LONG_NAME): Define.
16183         (filesystem): Add LONG_NAME.
16184         (my_DIR): Increase the size of room_for_dirent.
16185
16186 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16187
16188         [BZ #20041]
16189         * misc/sys/select.h (__need_timespec): Only define if
16190         [__USE_XOPEN2K].
16191         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16192         variable.
16193         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16194         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16195         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16196
16197 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16198             Segher Boessenkool  <segher@gcc.gnu.org>
16199
16200         [BZ #20004]
16201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16202         (__novec_swapcontext): Add missing load.
16203
16204 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16205
16206         [BZ #20023]
16207         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16208         <time.h>.
16209         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16210         variable.
16211         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16212
16213 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16214
16215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16216         flags CLONE_VM compare.
16217
16218 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16219
16220         [BZ #20031]
16221         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16222         completely empty.
16223
16224 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16225
16226         [BZ #19573]
16227         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16228         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16229         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16230         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16231         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16232         (hesiod_free_list): Mark as hidden.
16233         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16234         res_set, res_get.
16235         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16236         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16237         (hesiod_init): Remove obsolete res_ninit call.
16238         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16239         (hesiod_bind): Do not call init.
16240         (get_txt_records): Use res_mkquery, res_send instead of
16241         res_nmkquery, res_nsend.
16242         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16243         instead of _nss_hesiod_init.
16244         (_nss_hesiod_initgroups_dyn): Likewise.
16245         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16246         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16247         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16248
16249 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16250
16251         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16252         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16253
16254 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16255
16256         * hesiod/hesiod.h: Remove RCS keyword.
16257         * hesiod/hesiod_p.h: Likewise.
16258
16259         * hesiod/hesiod.c: Likewise.
16260
16261 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16262
16263         [BZ #12450]
16264         * locale/iso-639.def: Add Samogitian/sgs.
16265
16266 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16267
16268         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16269
16270         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16271
16272 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16273             Carlos O'Donell  <carlos@redhat.com>
16274
16275         [BZ #19072]
16276         * grp/Makefile (headers): Add grp-merge.h
16277         (routines): Add grp-merge.
16278         * grp/getgrgid_r.c: Include grp-merge.h.
16279         (DEEPCOPY_FN): Define.
16280         (MERGE_FN): Define.
16281         * grp/getgrname_r.c: Include grp-merge.h.
16282         (DEEPCOPY_FN): Define.
16283         (MERGE_FN): Define.
16284         * grp/grp-merge.c: New file.
16285         * grp/grp-merge.h: New file.
16286         * include/grp-merge.h: New file.
16287         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16288         __copy_grp@GLIBC_PRIVATE.
16289         * manual/nss.texi (Actions in the NSS configuration): Describe
16290         return, continue, and merge.
16291         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16292         (DEEPCOPY_FN): Define.
16293         (MERGE_FN): Define.
16294         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16295         (DEEPCOPY_FN): Define.
16296         (MERGE_FN): Define.
16297         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16298         [!MERGE_FN]: Define __merge_einval.
16299         (CHECK_MERGE): Define.
16300         (REENTRANT_NAME): Process merge if do_merge is true.
16301         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16302         (__nss_getent_r): Likewise.
16303         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16304         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16305
16306 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16307
16308         [BZ #20012]
16309         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
16310         length to calculate the buffer to read.
16311         (fmemopen_write): Set the buffer position based on bytes written.
16312         (fmemopen_seek): Return EINVAL for invalid whence modes.
16313
16314         [BZ #19957]
16315         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
16316         tst-getpid2.
16317         (test): Add tst-clone2.
16318         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
16319         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
16320         pid/tid fields for CLONE_VM.
16321         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
16322         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
16323         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
16324         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
16325         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
16326         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
16327         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
16328         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
16329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
16330         Likewise.
16331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16332         Likewise.
16333         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
16334         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
16335         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
16336         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
16337         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
16338         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
16339         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
16340         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
16341
16342 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16343
16344         [BZ #19642]
16345         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
16346         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
16347         (gni_serv_local, gni_serv): New functions extracted from
16348         getnameinfo.
16349         (getnameinfo): Call gni_host and gni_serv to perform the
16350         processing.  Always free scratch buffer.
16351
16352 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16353
16354         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
16355         remaining bytes in the dest string, with zeros.
16356
16357 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16358
16359         [BZ #20010]
16360         CVE-2016-3706
16361         * sysdeps/posix/getaddrinfo.c
16362         (convert_hostent_to_gaih_addrtuple): New function.
16363         (gethosts): Call convert_hostent_to_gaih_addrtuple.
16364         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
16365         AF_INET data.
16366
16367 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16368
16369         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
16370         callback function gl_readdir.
16371         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
16372         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
16373         (glob_in_dir): Remove len.  Use strdup instead of malloc and
16374         memcpy to copy the name.
16375         * manual/pattern.texi (Calling Glob): Document requirements for
16376         implementations of the gl_readdir callback function.
16377         * manual/examples/mkdirent.c: New example.
16378         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
16379         per the manual guidance.
16380         * posix/tst-gnuglob.c (my_readdir): Likewise.
16381
16382 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
16383
16384         [BZ #20014]
16385         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
16386         not [__USE_POSIX].
16387         (getchar_unlocked): Likewise.
16388         (putc_unlocked): Likewise.
16389         (putchar_unlocked): Likewise.
16390         (flockfile): Likewise.
16391         (ftrylockfile): Likewise.
16392         (funlockfile): Likewise.
16393         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
16394         variable.
16395         (test-xfail-XPG4/stdio.h/conform): Likewise.
16396
16397         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
16398         Expect constant.
16399         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
16400         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
16401         variable.
16402         (test-xfail-XPG4/langinfo.h/conform): Likewise.
16403         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
16404
16405         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
16406         [__USE_LARGEFILE64] (off64_t): Likewise.
16407         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
16408         variable.
16409
16410 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16411
16412         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
16413
16414 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16415
16416         * resolv/inet_addr.c: Reindent preprocessor conditionals.
16417         * resolv/res_init.c: Likewise.
16418         * resolv/res_mkquery.c: Likewise.
16419
16420 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16421
16422         * resolv/res_init.c (isascii): Do not define.  Use definition in
16423         <ctype.h>.
16424         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
16425         (LOG_AUTH): Remove.
16426         (SPRINTF): Remove, adjust caller.
16427         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
16428
16429 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16430
16431         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
16432         SUNSECURITY conditional.
16433         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
16434
16435 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16436
16437         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
16438         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
16439         Remove BSD-related preprocessor conditionals.
16440         * conf/portability.h: Remove.
16441
16442 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16443
16444         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
16445         * resolv/res_data.c: Likewise.
16446
16447 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16448
16449         * resolv/res_comp.c: Remove code conditional on __ultrix__.
16450         * resolv/res_data.c: Remove code conditional on ultrix.
16451
16452 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16453
16454         * resolv/res_init.c (RFC1535): Do not define.  Remove
16455         RFC1535 preprocessor conditionals.
16456         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
16457         because there configuration options which make the resolver
16458         behavior different.
16459
16460 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16461
16462         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
16463         RESOLVSORT preprocessor conditionals.
16464         * resolv/nss_dns/dns-host.c: Likewise.
16465         * resolv/res_init.c: Likewise.
16466
16467 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16468
16469         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
16470         is never defined.
16471
16472 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16473
16474         * inet/inet_lnaof.c: Remove SCSS keyword.
16475         * inet/inet_mkadr.c: Likewise.
16476         * inet/inet_net.c: Likewise.
16477         * inet/inet_netof.c: Likewise.
16478         * inet/rcmd.c: Likewise.
16479         * inet/rexec.c: Likewise.
16480         * inet/ruserpass.c: Likewise.
16481
16482 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16483
16484         * resolv/inet_addr.c: Remove _LIBC conditionals.
16485         * resolv/res_data.c: Likewise.
16486         * resolv/res_init.c: Likewise.
16487         * resolv/res_mkquery.c: Likewise.
16488         * resolv/res_libc.c: Update comment.
16489         * resolv/README: Update.
16490
16491 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16492
16493         * resolv/gethnamaddr.c: Remove SCSS keyword.
16494         * resolv/herror.c: Likewise.
16495         * resolv/inet_addr.c: Likewise.
16496         * resolv/inet_net_ntop.c: Likewise.
16497         * resolv/inet_net_pton.c: Likewise.
16498         * resolv/inet_neta.c: Likewise.
16499         * resolv/inet_ntop.c: Likewise.
16500         * resolv/inet_pton.c: Likewise.
16501         * resolv/ns_date.c: Remove RCS keyword.
16502         * resolv/ns_name.c: Likewise.
16503         * resolv/ns_netint.c: Likewise.
16504         * resolv/ns_parse.c: Likewise.
16505         * resolv/ns_print.c: Likewise.
16506         * resolv/ns_samedomain.c: Likewise.
16507         * resolv/ns_ttl.c: Likewise.
16508         * resolv/nsap_addr.c: Likewise.
16509         * resolv/res_comp.c: Remove SCSS and RCS keyword.
16510         * resolv/res_data.c: Remove RCS keyword.
16511         * resolv/res_debug.c: Remove SCSS and RCS keyword.
16512         * resolv/res_init.c: Likewise.
16513         * resolv/res_mkquery.c: Likewise.
16514         * resolv/res_query.c: Likewise.
16515         * resolv/res_send.c: Likewise.
16516
16517 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16518
16519         * conform/data/stdio.h-data (fdopen): Expect also for
16520         [XPG3 || XPG4].
16521
16522         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
16523         (fseeko): Likewise.
16524         (ftello): Likewise.
16525         (ftrylockfile): Likewise.
16526         (funlockfile): Likewise.
16527         (getc_unlocked): Likewise.
16528         (getchar_unlocked): Likewise.
16529         (putc_unlocked): Likewise.
16530         (putchar_unlocked): Likewise.
16531
16532 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16533
16534         [BZ #19868]
16535         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
16536         DNS packet syntax checks (which were not needed before).  Skip
16537         over non-PTR records.
16538
16539 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16540
16541         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
16542         definition.  Include <stddef.h> instead.
16543
16544 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16545
16546         [BZ #19831]
16547         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
16548         function.
16549         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
16550         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
16551
16552 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16553
16554         [BZ #19862]
16555         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
16556         (getanswer_r): Do not call syslog.
16557         (gaih_getanswer_slice): Likewise.
16558         * resolv/gethnamaddr.c (AskedForGot): Remove.
16559         (getanswer): Do not call syslog.
16560         (gethostbyaddr): Likewise.
16561
16562 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
16563
16564         * conform/data/signal.h-data (union sigval): Expect also if
16565         [XOPEN2K].
16566         (struct sigevent): Likewise.
16567         (SIGEV_NONE): Likewise.
16568         (SIGEV_SIGNAL): Likewise.
16569         (SIGEV_THREAD): Likewise.
16570         (SIGRTMIN): Likewise.
16571         (SIGRTMAX): Likewise.
16572         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
16573         variable.
16574         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
16575
16576 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16577
16578         [BZ #19830]
16579         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
16580         (gaih_getanswer_slice): Likewise.
16581         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
16582         Also check for availability of RR metadata.
16583
16584 2016-04-27  Florian Weimer  <fweimer@redhat.com>
16585
16586         [BZ #19825]
16587         * resolv/res_send.c (send_vc): Remove early *resplen2
16588         initialization.  Set *resplen2 on socket error.  Call
16589         close_and_return_error for other errors.
16590
16591 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
16592
16593         * sysdeps/unix/sysv/linux/netiucv/iucv.h
16594         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
16595         (SCM_IUCV_TRGCLS): New define.
16596
16597 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16598
16599         [BZ #20005]
16600         * libio/fmemopen.c (fmemopen_write): Update internal position after
16601         write.
16602         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
16603         * stdio-common/tst-fmemopen4.c: New file..
16604
16605 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
16606
16607         [BZ #19996]
16608         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
16609         not [__USE_XOPEN2K].
16610         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
16611         variable.
16612
16613         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
16614         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
16615         variable.
16616
16617         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
16618         [__USE_XOPEN2K8].
16619         [__USE_LARGEFILE64] (off64_t): Likewise.
16620         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
16621         variable.
16622
16623 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
16624
16625         [BZ #19989]
16626         * libio/stdio.h (cuserid): Do not declare if
16627         [__USE_XOPEN2K && !__USE_GNU].
16628         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
16629         variable.
16630
16631 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16632
16633         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16634         (sysdep_routines): Add P8 and PPC64 strcspn targets.
16635         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16636         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
16637         ifunc'ed strcspn.
16638         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
16639         [EALIGN]: Removed.
16640         [END]: Likewise
16641         [STRSPN]: Define instead of the above to control symbol name.
16642         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
16643         New file.
16644         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
16645         Likewise.
16646         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
16647         Likewise.
16648         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
16649         Likewise.
16650         * sysdeps/powerpc/powerpc64/power8/strspn.S:
16651         [INITIAL_MASK]: New macro.
16652         [STRCSPN]: Likewise.
16653         [UPDATE_MASK]: Likewise.
16654         [USE_AS_STRCSPN]: Likewise.
16655
16656 2016-04-25  Florian Weimer  <fweimer@redhat.com>
16657
16658         [BZ #19931]
16659         * stdio-common/tst-vfprintf-width-prec.c: New file.
16660         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
16661         (tests-special): Add tst-vfprintf-width-prec-mem.out.
16662         (generated): Add mtrace-related files.
16663         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
16664         (tst-%-mem.out): New pattern rule, replaces
16665         tst-printf-bz18872-mem.out.
16666         * stdio-common/vfprintf.c (vfprintf): When handling a precision
16667         specifier, deallocate any previously allocated work buffer.
16668
16669 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16670
16671         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
16672         Add nop before __startcontext, add explaining comments.
16673
16674 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
16675
16676         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
16677         any more. Notably since IPV6_PKTINFO has been reintroduced with a
16678         completely different API.
16679
16680         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
16681         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
16682         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
16683         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
16684         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
16685         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
16686         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
16687         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
16688         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
16689         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
16690
16691 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16692
16693         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
16694
16695 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
16696
16697         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
16698         when it is the default of 0.
16699
16700 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16701
16702         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
16703         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16704         (sysdep_routines): Add new strcasestr targets.
16705         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
16706         (__libc_ifunc_impl_list): Likewise.
16707         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
16708         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
16709         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
16710         * sysdeps/powerpc/powerpc64/power8/Makefile:
16711         New file to add strcasestr-ppc64 to sysdep_routines.
16712         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
16713         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
16714
16715 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
16716
16717         * benchtests/Makefile (wcsmbs-benchset): Include only for
16718         native builds and runs.
16719         (LOCALES): Likewise.
16720         (bench-build): Build timing-type here instead of the bench
16721         target.  Generate locale only for native builds.
16722         * benchtests/README: Add note for cross-building.
16723
16724         * benchtests/Makefile (bench-clean): Clean up extra-objs.
16725
16726         * benchtests/README: Update README to include instructions on
16727         using bench-build.
16728
16729         * Makefile.in (bench-build): New target.
16730         * Rules (PHONY): Add bench-build target.
16731         * benchtests/Makefile (bench): Depend on bench-build.
16732         (bench-build): New target.
16733
16734 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16735
16736         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
16737         profil_reply_port.
16738         (profile_waiter): Do not initialize profil_reply_port.
16739         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
16740         frequency instead of tick length in us.
16741
16742 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
16743
16744         [BZ #18712]
16745         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
16746         (__old_mempcpy_small): Likewise.
16747         (__old_strcpy_small): Likewise.
16748         (__old_stpcpy_small): Likewise.
16749         (__old_strpbrk_c2): Fix compat symbol name.
16750         (__old_strpbrk_c3): Likewise.
16751         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
16752         (__mempcpy_small): Remove.
16753         (__strcpy_small): Remove.
16754         (__stpcpy_small): Remove.
16755
16756 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
16757
16758         [BZ #19400]
16759         * locale/iso-639.def: Add the Talossan/tzl language.
16760
16761 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16762
16763         [BZ #16983]
16764         * locale/programs/ld-address.c (address_finish): Update postal_fmt
16765         comment.  Add "ln" to strchr check on postal_fmt.
16766
16767 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
16768
16769         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
16770         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
16771         tel_dom_fmt.
16772
16773 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
16774
16775         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
16776         (sysdep_routines): Added __strlen_power8.
16777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
16778         __strlen_power8 entry.
16779         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
16780         Implementation for POWER8.
16781         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
16782         for __strlen_power8.
16783         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
16784         Implementation for POWER8.
16785
16786 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
16787
16788         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
16789
16790 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
16791
16792         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
16793         Goldmont and Airmont processors.
16794
16795 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
16796
16797         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
16798         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
16799         (__STRING2_SMALL_GET32): Remove.
16800         (memset): Remove.
16801         (__memset_1): Remove.
16802         (__memset_gc): Remove.
16803         (__mempcpy): Remove.
16804         (mempcpy): Remove.
16805         (__mempcpy_args): Remove.
16806         (strchr): Remove.
16807         (strcpy): Remove.
16808         (strcpy_args): Remove.
16809         (__stpcpy_args): Remove.
16810         (__strcmp_cc): Remove.
16811         (__strcmp_gc): Remove.
16812         (strstr): Remove.
16813
16814 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
16815
16816         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
16817         * nis/nis_call.c (nis_server_cache_add): Likewise.
16818
16819 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16820
16821         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
16822
16823 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16824
16825         * malloc/arena.c (__malloc_fork_lock_parent)
16826         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
16827         internal_function attribute.
16828
16829 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
16830
16831         * stdio-common/printf_fp.c (__printf_fp_l):
16832         Rename ___printf_fp_l to __printf_fp_l and
16833         remove strong alias. Use libc_hidden_def instead
16834         of ldbl_hidden_def macro.
16835
16836 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16837
16838         Remove malloc hooks from fork handler.  They are no longer needed
16839         because malloc runs right before fork, and no malloc calls from
16840         other fork handlers are not possible anymore.
16841         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
16842         declarations.
16843         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
16844         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
16845         (atfork_recursive_cntr): Remove.
16846         (__malloc_fork_lock_parent): Do not override malloc hooks and
16847         thread_arena.
16848         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
16849         thread_arena.
16850         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
16851         thread_arena instead of save_arena.
16852
16853 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16854
16855         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
16856         (thread_atfork, thread_atfork_static): Remove.
16857         * sysdeps/mach/hurd/malloc-machine.h:
16858         (thread_atfork, thread_atfork_static): Remove.
16859
16860 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16861
16862         [BZ #19431]
16863         Run the malloc fork handler as late as possible to avoid deadlocks.
16864         * malloc/malloc-internal.h: New file.
16865         * malloc/malloc.c: Include it.
16866         * malloc/arena.c (ATFORK_MEM): Remove.
16867         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
16868         Update comment.
16869         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
16870         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
16871         Remove outdated comment.
16872         (ptmalloc_init): Do not call thread_atfork.  Remove
16873         thread_atfork_static.
16874         * malloc/tst-malloc-fork-deadlock.c: New file.
16875         * Makefile (tests): Add tst-malloc-fork-deadlock.
16876         (tst-malloc-fork-deadlock): Link against libpthread.
16877         * manual/memory.texi (Aligned Memory Blocks): Update safety
16878         annotation comments.
16879         * sysdeps/nptl/fork.c (__libc_fork): Call
16880         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
16881         __malloc_fork_unlock_child.
16882         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
16883
16884 2016-04-14  Florian Weimer  <fweimer@redhat.com>
16885
16886         [BZ #19613]
16887         Remove union wait.
16888         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
16889         (w_stopsig, w_stopval): Remove.
16890         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
16891         stat_loc argument.
16892         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
16893         (__WAIT_STATUS_DEFN): Remove.
16894         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
16895         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
16896         (wait, wait3, wait4): Use int * for the stat_loc argument.
16897         * posix/wait.c (__wait): Likewise.
16898         * posix/wait3.c (__wait3): Likewise.
16899         * posix/wait4.c (__wait4): Likewise.
16900         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
16901         (__WAIT_STATUS_DEFN): Remove.
16902         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
16903         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
16904         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
16905         argument.
16906         * sysdeps/posix/wait.c (__libc_wait): Likewise.
16907         * sysdeps/posix/wait3.c (__wait3): Likewise.
16908         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
16909         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
16910         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
16911         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
16912         stat_loc argument.
16913         * manual/process.texi (BSD Wait Functions): Remove union wait.
16914
16915 2016-04-13  Andreas Schwab  <schwab@suse.de>
16916
16917         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
16918         (test-extras): Add tst-tlsalign-vars.
16919         * math/Makefile: Wrap long lines.
16920         (libm-vec-test-wrappers): Define.
16921         (test-extras): Add $(libm-vec-test-wrappers).
16922         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
16923         * nss/Makefile (extra-test-objs): Add nss_test1.os.
16924         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
16925         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
16926         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
16927         (extra-test-objs): Add corresponding objects.
16928
16929 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
16930
16931         [BZ #19928]
16932         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
16933         New.
16934         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
16935         times of shared cache size.
16936         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
16937         (VMOVNT): New.
16938         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
16939         (VMOVNT): Likewise.
16940         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
16941         (VMOVNT): Likewise.
16942         (VMOVU): Changed to movups for smaller code sizes.
16943         (VMOVA): Changed to movaps for smaller code sizes.
16944         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
16945         comments.
16946         (PREFETCH): New.
16947         (PREFETCH_SIZE): Likewise.
16948         (PREFETCHED_LOAD_SIZE): Likewise.
16949         (PREFETCH_ONE_SET): Likewise.
16950         Rewrite to use forward and backward loops, which move 4 vector
16951         registers at a time, to support overlapping addresses and use
16952         non temporal store if size is above the threshold and there is
16953         no overlap between destination and source.
16954
16955 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
16956
16957         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
16958         Include dl-vdso.
16959         * sysdeps/unix/sysv/linux/mips/Versions: Add
16960         __vdso_clock_gettime.
16961         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
16962         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
16963         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
16964         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
16965         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
16966         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
16967         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
16968         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16969         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16970
16971 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16972
16973         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
16974         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
16975         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
16976         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
16977         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
16978         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
16979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
16980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
16981         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
16982         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
16983         syscalls generation.
16984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16985         [__NR_pwrite64] (__NR_write): Remove define.
16986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16987         [__NR_pwrite64] (__NR_write): Remove define.
16988         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
16989         Remove define.
16990         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
16991         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
16992         Remove define.
16993         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
16994         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
16995         Linux implementation as base.
16996         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
16997
16998         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
16999         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17000         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17001         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17004         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17005         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17006         syscall generation.
17007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17008         [__NR_pread64] (__NR_pread): Remove define.
17009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17010         [__NR_pread64] (__NR_pread): Likewise.
17011         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17012         define.
17013         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17014         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17015         Remove define.
17016         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17017         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17018         Linux implementation as base.
17019         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17020         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17021         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17022
17023         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17024         definition.
17025         (__ALIGNMENT_COUNT): Likewise.
17026         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17027         (__ALIGNMENT_COUNT): Likewise.
17028         (SYSCALL_LL): New define.
17029         (SYSCALL_LL64): Likewise.
17030         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17031         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17032         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17033         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17034
17035         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17036         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17037         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17038         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17039         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17040         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17041
17042 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17043
17044         [BZ #19865]
17045         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17046         original buffer before retry.
17047
17048 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17049
17050         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17051         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17052         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17053         GLRO(dl_auxv) list.
17054         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17055         including <ldsodefs.h>.
17056         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17057
17058 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17059
17060         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17061         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17062         $(CPPFLAGS).
17063
17064 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17065
17066         [BZ #17950]
17067         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17068         Add -mfpmath=387.
17069
17070 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17071
17072         * sysdeps/i386/configure.ac: Change == to = when calling test.
17073         * sysdeps/x86_64/configure.ac: Likewise.
17074         * sysdeps/i386/configure: Regenerated.
17075         * sysdeps/x86_64/configure: Likewise.
17076
17077 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17078
17079         [BZ #16137]
17080         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17081         * benchtests/bench-strcoll.c (input_files): Likewise.
17082         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17083         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17084         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17085
17086 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17087
17088         [BZ #19929]
17089         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17090         [__USE_XOPEN2K8 && !__USE_GNU].
17091         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17092         variable.
17093
17094         [BZ #19925]
17095         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17096         define if [!__USE_MISC && __USE_XOPEN2K].
17097         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17098         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17099         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17100         Likewise.
17101         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17102         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17103         variable.
17104         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17105
17106 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17107
17108         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17109         (sysdep_routines): Add new strspn targets.
17110         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17111         (__libc_ifunc_impl_list): Add strspn.
17112         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17113         New file.
17114         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17115         Likewise.
17116         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17117         Likewise.
17118         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17119         Likewise.
17120
17121 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17122
17123         * misc/hsearch_r.c: Include <limits.h>.
17124
17125 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17126
17127         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17128
17129 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17130
17131         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17132         (MEMCPY_SYMBOL): New.
17133         (MEMPCPY_SYMBOL): Likewise.
17134         (MEMMOVE_CHK_SYMBOL): Likewise.
17135         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17136         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17137         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17138         Provide alias for memcpy in libc.a and ld.so.
17139
17140 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17141
17142         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17143         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17144         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17145         Disabled fro now.
17146         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17147         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17148
17149 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17150
17151         * benchtests/Makefile (string-benchset): Add memcpy-large,
17152         memmove-large and memset-large.
17153         * benchtests/bench-memcpy-large.c: New file.
17154         * benchtests/bench-memmove-large.c: Likewise.
17155         * benchtests/bench-memmove-large.c: Likewise.
17156         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17157
17158 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17159
17160         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17161         32-bit displacement to avoid long nop between instructions.
17162
17163 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17164
17165         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17166         a comment on VMOVU and VMOVA.
17167
17168 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17169
17170         [BZ #19633]
17171         Use specified locale for number formatting in strfmon_l.
17172         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17173         (__nl_lookup_word): New inline functions.
17174         * include/printf.h (__print_fp_l): Declare.
17175         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17176         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17177         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17178         (___printf_fp): New function.
17179         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17180         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17181         * stdlib/tst-strfmon_l.c (do_test): New test.
17182         * stdlib/Makefile (tests): Add kt.
17183         (LOCALES): Build additional locales.
17184         (tst-strfmon_l.out): Require locales.
17185
17186 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17187
17188         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17189         if not in libc.
17190         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17191         Likewise.
17192         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17193         Likewise.
17194         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17195         Likewise.
17196
17197 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17198
17199         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17200         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17201         with unaligned_erms.
17202         (__memmove_erms): Skip if source == destination.
17203         (__memmove_unaligned_erms): Don't check source == destination
17204         first.
17205
17206 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17207
17208         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17209         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17210
17211 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17212
17213         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17214         * string/strspn.c (strspn): Likewise.
17215
17216 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17217
17218         * benchtests/bench-memset.c (do_test): Support 64-byte
17219         alignment.
17220         (test_main): Test 64-byte alignment.
17221
17222 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17223
17224         * benchtests/bench-memmove.c (test_main): Test 64-byte
17225         alignment.
17226
17227 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17228
17229         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17230
17231 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17232
17233         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17234         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17235         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17236
17237         * string/strpbrk.c (strpbrk): Rewrite function.
17238         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17239         (__strpbrk_c2): Likewise.
17240         (__strpbrk_c3): Likewise.
17241         * string/string-inlines.c
17242         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17243         Likewise.
17244         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17245         Likewise.
17246
17247         * string/strspn.c (strcspn): Rewrite function.
17248         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17249         (__strspn_c1): Remove inline function.
17250         (__strspn_c2): Likewise.
17251         (__strspn_c3): Likewise.
17252         * string/string-inlines.c
17253         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17254         compatibility symbol.
17255         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17256         Likewise.
17257         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17258         Likewise.
17259         * string/string-inlines.c: Include generic version.
17260
17261 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17262             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17263
17264         * string/Version (libc): Add GLIBC_2.24.
17265         * string/strcspn.c (strcspn): Rewrite function.
17266         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17267         (__strcspn_c1): Remove inline function.
17268         (__strcspn_c2): Likewise.
17269         (__strcspn_c3): Likewise.
17270         * string/string-inline.c
17271         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17272         compatibility symbol.
17273         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17274         Likewise.
17275         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17276         Likewise.
17277         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17278
17279 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17280
17281         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17282         Use ahi instead of aghi to adjust stack pointer.
17283
17284 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17285
17286         [BZ #19853]
17287         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17288         TEST to take significant digits as second parameter.
17289         [TEST]: Redefine in terms of TEST_N taking 30
17290         significant digits.
17291         (do_test): Add test case to demonstrate precision
17292         failure in the ldbl-128ibm printf.
17293         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17294         (__mpn_extract_long_double): Carry 7 extra intermediate
17295         bits of precision to aide computing difference when
17296         signs differ.
17297
17298 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17299
17300         [BZ #19881]
17301         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17302         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17303         memset-avx512-unaligned-erms.
17304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17305         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17306         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
17307         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
17308         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
17309         __memset_sse2_unaligned_erms, __memset_erms,
17310         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
17311         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
17312         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
17313         file.
17314         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17315         Likewise.
17316         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
17317         Likewise.
17318         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
17319         Likewise.
17320
17321 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17322
17323         [BZ #19776]
17324         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17325         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
17326         memmove-avx512-unaligned-erms.
17327         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17328         (__libc_ifunc_impl_list): Test
17329         __memmove_chk_avx512_unaligned_2,
17330         __memmove_chk_avx512_unaligned_erms,
17331         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
17332         __memmove_chk_sse2_unaligned_2,
17333         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
17334         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
17335         __memmove_avx512_unaligned_erms, __memmove_erms,
17336         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
17337         __memcpy_chk_avx512_unaligned_2,
17338         __memcpy_chk_avx512_unaligned_erms,
17339         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
17340         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
17341         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
17342         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
17343         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
17344         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
17345         __mempcpy_chk_avx512_unaligned_erms,
17346         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
17347         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
17348         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
17349         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
17350         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
17351         __mempcpy_erms.
17352         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
17353         file.
17354         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17355         Likewise.
17356         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
17357         Likewise.
17358         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17359         Likewise.
17360
17361 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17362
17363         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
17364         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
17365         (La_s390_64_regs): Likewise.
17366         (La_s390_32_retval): Append vector register lrv_v24.
17367         (La_s390_64_retval): Likeweise.
17368         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
17369         Handle extended structs La_s390_32_regs and La_s390_32_retval.
17370         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
17371         Handle extended structs La_s390_64_regs and La_s390_64_retval.
17372
17373 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17374
17375         [BZ #19916]
17376         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
17377         to create a non-vector/vector version for _dl_runtime_resolve and
17378         _dl_runtime_profile. Move implementation to ...
17379         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
17380         (_dl_runtime_resolve) Save and restore fpr/vrs.
17381         (_dl_runtime_profile) Save and restore vrs and fix some issues
17382         if _dl_call_pltexit is called.
17383         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
17384         Choose the correct resolver function if running on a machine with vx.
17385         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
17386         to create a non-vector/vector version for _dl_runtime_resolve and
17387         _dl_runtime_profile. Move implementation to ...
17388         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
17389         (_dl_runtime_resolve) Save and restore fpr/vrs.
17390         (_dl_runtime_profile) Save and restore vrs and fix some issues
17391         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
17392         Choose the correct resolver function if running on a machine with vx.
17393
17394 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17395
17396         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
17397
17398 2016-03-31  Florian Weimer  <fweimer@redhat.com>
17399
17400         [BZ #19509]
17401         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
17402         skip_map != NULL.
17403         * elf/tst-dlsym-error.c: New file.
17404         * elf/Makefile (tests): Add tst-dlsym-error.
17405         (tst-dlsym-error): Link against libdl.
17406
17407 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
17408
17409         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17410         (__ASSUME_FUTIMESAT): Remove macro.
17411         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
17412
17413 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17414
17415         [BZ #19879]
17416         CVE-2016-3075
17417         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
17418         copy name.
17419
17420 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17421
17422         [BZ #19837]
17423         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
17424         error if parse_line fails.
17425
17426 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17427
17428         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
17429         (index_cpu_ERMS): Likewise.
17430         (reg_ERMS): Likewise.
17431
17432 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
17433
17434         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
17435         PER_LINUX_FDPIC): Add.
17436
17437 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17438
17439         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17440         memcpy-avx512-no-vzeroupper.
17441         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
17442         to ...
17443         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
17444         (MEMCPY): Don't define.
17445         (MEMCPY_CHK): Likewise.
17446         (MEMPCPY): Likewise.
17447         (MEMPCPY_CHK): Likewise.
17448         (MEMPCPY_CHK): Renamed to ...
17449         (__mempcpy_chk_avx512_no_vzeroupper): This.
17450         (MEMPCPY_CHK): Renamed to ...
17451         (__mempcpy_chk_avx512_no_vzeroupper): This.
17452         (MEMCPY_CHK): Renamed to ...
17453         (__memmove_chk_avx512_no_vzeroupper): This.
17454         (MEMCPY): Renamed to ...
17455         (__memmove_avx512_no_vzeroupper): This.
17456         (__memcpy_avx512_no_vzeroupper): New alias.
17457         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
17458
17459 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17460
17461         [BZ #18858]
17462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17463         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
17464         and mempcpy-avx512-no-vzeroupper.
17465         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
17466         New.
17467         (MEMPCPY): Likewise.
17468         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
17469         (MEMPCPY_CHK): New.
17470         (MEMPCPY): Likewise.
17471         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
17472         (MEMPCPY): Likewise.
17473         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
17474         (MEMPCPY): Likewise.
17475         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
17476         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
17477         Likewise.
17478         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
17479         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
17480
17481 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17482              Amit Pawar  <Amit.Pawar@amd.com>
17483
17484         [BZ #19583]
17485         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
17486         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
17487         processors.  Set Fast_Copy_Backward for AMD Excavator
17488         processors.
17489         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
17490         New.
17491         (index_arch_Fast_Unaligned_Copy): Likewise.
17492         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
17493         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
17494
17495 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17496
17497         [BZ #19791]
17498         * resolv/res_send.c (close_and_return_error): New function.
17499         (send_dg): Initialize *resplen2 after reopen failure.  Call
17500         close_and_return_error for error returns.  On error paths without
17501         __res_iclose, initialze *resplen2 explicitly.  Update comment for
17502         successful return.
17503
17504 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17505
17506         [BZ #19860]
17507         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
17508         zero if the compiler does not provide the AVX512F bit.
17509
17510 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
17511
17512         [BZ #19848]
17513         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
17514         from 8 to 4.
17515         (__ieee754_powl): Compare integer exponent against 4 not 8.
17516         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
17517         from 8 to 4.
17518         (__ieee754_powl): Compare integer exponent against 4 not 8.
17519         * math/auto-libm-test-in: Add more tests of pow.
17520         * math/auto-libm-test-out: Regenerated.
17521         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17523
17524 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17525
17526         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
17527         Make code unconditional.
17528         [!__NR_utimensat]: Remove conditional code.
17529         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
17530         Make code unconditional.
17531         [!__NR_utimensat]: Remove conditional code.
17532         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
17533         Make code unconditional.
17534         [!__NR_utimensat]: Remove conditional code.
17535
17536 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
17537
17538         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
17539         Make code unconditional.
17540
17541 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
17542
17543         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
17544         call-clobbered %eax on retry path.
17545         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
17546
17547 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17548
17549         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
17550         Don't set %rcx twice before "rep movsb".
17551
17552 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17553
17554         [BZ #19583]
17555         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
17556         inline.  Check family before setting family, model and
17557         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
17558         bits here.
17559         (init_cpu_features): Replace HAS_CPU_FEATURE and
17560         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
17561         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
17562         for Intel processors with usable AVX2.  Call get_common_indeces
17563         for other processors with family == NULL.
17564         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
17565         (CPU_FEATURES_ARCH_P): Likewise.
17566         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
17567         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
17568
17569 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17570
17571         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
17572         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
17573         $(shared-thread-library) instead of hardcoding the path to libpthread.
17574
17575 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
17576
17577         * sysdeps/unix/sysv/linux/kernel-features.h
17578         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
17579         * sysdeps/unix/sysv/linux/getdents.c
17580         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
17581         [!have_no_getdents64_defined]: Likewise.
17582         (__GETDENTS): Remove __have_no_getdents64 conditional.
17583
17584 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
17585
17586         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
17587         Remove macro.
17588         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
17589         <kernel-features.h>.
17590         (signalfd) [__NR_signalfd4]: Make code unconditional.
17591         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
17592
17593 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17594
17595         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
17596         style.
17597
17598 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17599
17600         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
17601         (__pthread_enable_asynccancel): Use JUMPTARGET to call
17602         __pthread_unwind.
17603         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
17604         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
17605         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
17606         (__condvar_cleanup1): Likewise.
17607
17608 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
17609
17610         [BZ #19822]
17611         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
17612         move it to the final $@ location.
17613
17614 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17615
17616         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
17617         access where posix_spawn success and pid argument is null.
17618         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
17619         success case.
17620
17621 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
17622
17623         * sysdeps/mach/hurd/i386/c++-types.data: New file.
17624
17625         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
17626
17627         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
17628         and __fcntl.
17629         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
17630         __fcntl only.
17631         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
17632         adding attribute_hidden to __open and __fcntl.
17633
17634         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
17635         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
17636         depend on libc-modules.h,
17637         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
17638
17639 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
17640
17641         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
17642         Remove macro.
17643         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
17644         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
17645         entry.
17646
17647         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
17648         Remove macro.
17649         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
17650         include <kernel-features.h>.
17651         [!__ASSUME_FALLOCATE]: Remove conditional code.
17652         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
17653
17654 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17655
17656         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
17657         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
17658         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
17659         (_ZGVdN4v_cos_avx2): Likewise.
17660         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
17661         (_ZGVdN4v_cos): Likewise.
17662         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
17663         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
17664         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
17665         (_ZGVdN4v_exp_avx2): Likewise.
17666         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
17667         (_ZGVdN4v_exp): Likewise.
17668         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
17669         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
17670         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
17671         (_ZGVdN4v_log_avx2): Likewise.
17672         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
17673         (_ZGVdN4v_log): Likewise.
17674         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
17675         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
17676         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
17677         (_ZGVdN4vv_pow_avx2): Likewise.
17678         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
17679         (_ZGVdN4vv_pow): Likewise.
17680         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
17681         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
17682         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
17683         (_ZGVdN4v_sin_avx2): Likewise.
17684         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
17685         (_ZGVdN4v_sin): Likewise.
17686         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
17687         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
17688         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
17689         (_ZGVdN4vvv_sincos_avx2): Likewise.
17690         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
17691         (_ZGVdN4vvv_sincos): Likewise.
17692         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
17693         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
17694         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
17695         (_ZGVbN4v_cosf_sse4): Likewise.
17696         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
17697         (_ZGVdN8v_cosf_avx2): Likewise.
17698         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
17699         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
17700         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
17701         (_ZGVbN4v_expf_sse4): Likewise.
17702         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
17703         (_ZGVdN8v_expf_avx2): Likewise.
17704         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
17705         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
17706         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
17707         (_ZGVbN4v_logf_sse4): Likewise.
17708         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
17709         (_ZGVdN8v_logf_avx2): Likewise.
17710         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
17711         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
17712         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
17713         (_ZGVbN4vv_powf_sse4): Likewise.
17714         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
17715         (_ZGVdN8vv_powf_avx2): Likewise.
17716         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
17717         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
17718         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
17719         (_ZGVbN4vvv_sincosf_sse4): Likewise.
17720         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
17721         (_ZGVdN8vvv_sincosf_avx2): Likewise.
17722         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
17723         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
17724         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
17725         (_ZGVbN4v_sinf_sse4): Likewise.
17726         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
17727         (_ZGVdN8v_sinf_avx2): Likewise.
17728         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17729         Use JUMPTARGET to call callee.
17730         (WRAPPER_IMPL_SSE2_ff): Likewise.
17731         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17732         (WRAPPER_IMPL_AVX): Likewise.
17733         (WRAPPER_IMPL_AVX_ff): Likewise.
17734         (WRAPPER_IMPL_AVX_fFF): Likewise.
17735         (WRAPPER_IMPL_AVX512): Likewise.
17736         (WRAPPER_IMPL_AVX512_ff): Likewise.
17737         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
17738         Likewise.
17739         (WRAPPER_IMPL_SSE2_ff): Likewise.
17740         (WRAPPER_IMPL_SSE2_fFF): Likewise.
17741         (WRAPPER_IMPL_AVX): Likewise.
17742         (WRAPPER_IMPL_AVX_ff): Likewise.
17743         (WRAPPER_IMPL_AVX_fFF): Likewise.
17744         (WRAPPER_IMPL_AVX512): Likewise.
17745         (WRAPPER_IMPL_AVX512_ff): Likewise.
17746         (WRAPPER_IMPL_AVX512_fFF): Likewise.
17747
17748 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17749
17750         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
17751         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
17752         qualifier.
17753         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
17754         internal_function qualifiers.
17755
17756 2016-03-15  Carlos O'Donell <carlos@redhat.com>
17757
17758         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
17759         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
17760         * math/atest-exp.c (exp_mpn): Mark chk unused.
17761         * math/atest-exp2.c (exp_mpn): Likewise.
17762         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
17763         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
17764
17765 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
17766
17767         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
17768         Remove macro.
17769         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
17770         <kernel-features.h>.
17771         [__NR_ppoll]: Make code unconditional.
17772         [!__ASSUME_PPOLL]: Remove conditional code.
17773
17774         * sysdeps/unix/sysv/linux/kernel-features.h
17775         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
17776         (__ASSUME_ACCEPT4): Likewise.
17777         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17778         Define.
17779         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
17780         Likewise.
17781         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17782         Likewise.
17783         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
17784         Likewise.
17785         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
17786         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
17787         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17788         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17789         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17790         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17791         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17792         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17793         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17794         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17795         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17796         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17797         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17798         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17799         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17800         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17801         Likewise.
17802         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17803         Likewise.
17804         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17805         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17806         0x040300].
17807         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17808         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
17809         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17810         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17811         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17812         0x030300].
17813         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
17814         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
17815         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17816         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17817         0x040300].
17818         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17819         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17820         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17821         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17822         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17823         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17824         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
17825         0x030300].
17826         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17827         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17828         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17829         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17830         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17831         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17832         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17833         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17834         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17835         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
17836         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
17837         0x040300].
17838         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17839         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17840         * sysdeps/unix/sysv/linux/sh/kernel-features.h
17841         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
17842         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17843         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17844         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
17845         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17846         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17847         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17848         * sysdeps/unix/sysv/linux/tile/kernel-features.h
17849         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17850         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
17851         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
17852         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
17853         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
17854         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
17855         Likewise.
17856         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
17857         Likewise.
17858
17859 2016-03-15  Andreas Schwab  <schwab@suse.de>
17860
17861         [BZ #19257]
17862         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
17863         statp->_u._ext.nscount as loop count.
17864
17865 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
17866
17867         * math/test-signgam-finite-c99.c: Also #undef
17868         __LIBC_INTERNAL_MATH_INLINES.
17869         * math/test-signgam-main.c: Likewise.
17870
17871 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
17872
17873         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
17874         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17875         (MADV_FREE): Likewise.
17876         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
17877         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
17878         EPOLLEXCLUSIVE.
17879
17880 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
17881
17882         * timezone/README: Remove mention of checktab.awk. Mention wiki
17883         SharedSourceFiles.
17884
17885 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
17886
17887         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
17888         WUNTRACED.
17889
17890 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17891
17892         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
17893         order to match the type of p when calling atomic_exchange_acq().
17894
17895 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17896
17897         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
17898         cfi_offset calls.
17899         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
17900         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
17901         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
17902         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
17903         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
17904
17905 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
17906
17907         * timezone/checktab.awk: Removed.
17908
17909 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
17910
17911         * manual/math.texi (Errors in Math Functions): Document relaxed
17912         accuracy goals for IBM long double.
17913         * math/libm-test.inc (test_exceptions): Always allow spurious
17914         "underflow" and "inexact" exceptions for IBM long double.
17915
17916 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
17917
17918         [BZ #19762]
17919         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
17920         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
17921         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
17922         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
17923         (bit_arch_*): This for feature array.
17924         (bit_*): Renamed to ...
17925         (bit_cpu_*): This for cpu array.
17926         (index_*): Renamed to ...
17927         (index_arch_*): This for feature array.
17928         (index_*): Renamed to ...
17929         (index_cpu_*): This for cpu array.
17930         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
17931         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
17932         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
17933         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
17934         bit_##name with index_cpu_##name and bit_cpu_##name.
17935         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
17936         bit_##name with index_arch_##name and bit_arch_##name.
17937
17938 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17939
17940         [BZ #19792]
17941         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
17942         Terminate FDE before return label.
17943
17944 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
17945
17946         [BZ #19790]
17947         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
17948         (rintl): Define as macro.
17949         [USE_AS_NEARBYINTL] (__rintl): Likewise.
17950         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
17951         of fesetround.  Ensure results are evaluated before end of scope.
17952         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
17953         USE_AS_NEARBYINTL and include s_rintl.c.
17954         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
17955         Disable exception traps in new environment.
17956         (libc_feholdsetround_ppc_ctx): Likewise.
17957
17958 2016-03-08  Roland McGrath  <roland@hack.frob.com>
17959
17960         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
17961         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
17962         (tst_audit10_aux) [__AVX512F__]: ... here.
17963
17964 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
17965
17966         * include/sys/auxv.h: New file.
17967
17968 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
17969
17970         [BZ #19759]
17971         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
17972
17973 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17974
17975         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
17976         operand modifier.
17977         (feclearexcept): Likewise.
17978
17979 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
17980
17981         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
17982         to reflect the entire 32-bit HWCAP.
17983         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
17984         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
17985
17986 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
17987
17988         [BZ #19783]
17989         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
17990         $(test-via-rtld-prefix).
17991         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
17992
17993 2016-03-08  Florian Weimer  <fweimer@redhat.com>
17994
17995         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
17996         union wait.  Report any non-zero exit status as error.
17997
17998 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17999
18000         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18001         configured with --enable-hardcoded-path-in-tests.
18002
18003 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18004
18005         [BZ #19677]
18006         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18007         (__ieee754_remainderl): Put zero low parts in canonical form.
18008         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18009         file.  Based on
18010         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18011         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18012         with wrapper round test-fmodrem-ldbl-128ibm.c.
18013         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18014         file.
18015         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18016         Likewise.
18017         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18018         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18019
18020 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18021
18022         [BZ #19610]
18023         * elf/ldconfig.c (opt_link): Update comment.
18024         (options): Update help string for option -X.
18025         (search_dir): Unlink stale symbolic link only if updating symbolic
18026         links.
18027         * elf/tst-ldconfig-X.sh: New file.
18028         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18029         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18030
18031 2016-03-07  Andreas Schwab  <schwab@suse.de>
18032
18033         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18034         needed arguments.
18035
18036 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18037
18038         [BZ #15333]
18039         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18040         to lstat64.
18041
18042 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18043
18044         * libio/filedoalloc.c (isatty): Remove.
18045         (local_isatty): Add comment.  Call __isatty directly.
18046         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18047         * libio/wfiledoalloc.c (isatty): Remove.
18048         (_IO_wfile_doallocate): Update comment.
18049
18050 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18051
18052         [BZ #19269]
18053         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18054         tst-audit4-aux.o.
18055         (tst-audit10): Depend on tst-audit10-aux.o.
18056         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18057         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18058         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18059         instead of inline AVX code.
18060         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18061         instead of inline AVX512 code.
18062         * sysdeps/x86_64/tst-audit4-aux.c: New file
18063         * sysdeps/x86_64/tst-audit10-aux.c: New file
18064
18065         [BZ #19648]
18066         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18067
18068 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18069
18070         [BZ #14750]
18071         [BZ #10354]
18072         [BZ #18433]
18073         * include/sched.h (__clone): Add hidden prototype.
18074         (__clone2): Likewise.
18075         * include/unistd.h (__dup): Likewise.
18076         * posix/Makefile (tests): Add tst-spawn2.
18077         * posix/tst-spawn2.c: New file.
18078         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18079         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18080         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18081         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18082         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18083         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18084         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18085         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18086         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18087         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18088         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18090         Likewise.
18091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18092         Likewise.
18093         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18094         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18095         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18096         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18097         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18098         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18099         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18100         * sysdeps/unix/sysv/linux/nptl-signals.h
18101         (____nptl_is_internal_signal): New function.
18102         * sysdeps/unix/sysv/linux/spawni.c: New file.
18103
18104         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18105         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18106         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18107         * posix/tst-execvp2.c (do_test): Likewise.
18108         * posix/tst-execvp3.c (do_test): Likewise.
18109         * posix/tst-execvp4.c (do_test): Likewise.
18110         * posix/tst-execvpe1.c: New file.
18111         * posix/tst-execvpe2.c: Likewise.
18112         * posix/tst-execvpe3.c: Likewise.
18113         * posix/tst-execvpe4.c: Likewise.
18114         * posix/tst-execvpe5.c: Likewise.
18115         * posix/tst-execvpe6.c: Likewise.
18116
18117         [BZ #19534]
18118         * posix/execl.c (execl): Remove dynamic memory allocation.
18119         * posix/execle.c (execle): Likewise.
18120         * posix/execlp.c (execlp): Likewise.
18121
18122 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18123
18124         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18125         Replace .text with .text.avx512.
18126         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18127         Likewise.
18128
18129 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18130
18131         * sysdeps/generic/libnsl.abilist: New file.
18132         * sysdeps/generic/libutil.abilist: New file.
18133
18134 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18135
18136         [BZ #19762]
18137         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18138         HAS_ARCH_FEATURE with Fast_Rep_String.
18139         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18140         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18141         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18142         Likewise.
18143         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18144         Likewise.
18145         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18146         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18147         Likewise.
18148         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18149         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18150         Likewise.
18151
18152 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18153
18154         [BZ #19745]
18155         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18156         with *%rax in call.
18157
18158 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18159
18160         [BZ #19745]
18161         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18162         with *__libc_start_main@GOTPCREL(%rip) in call.
18163
18164 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18165
18166         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18167         inside conditional for nonempty $(CXX).
18168
18169         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18170         nonempty.
18171
18172         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18173         to test for empty $(CXX) rather than $(CXX) of "no".
18174
18175 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18176
18177         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18178
18179 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18180             H.J. Lu  <hongjiu.lu@intel.com>
18181
18182         [BZ #18880]
18183         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18184         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18185         enable __memcpy_ssse3_back.
18186
18187 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18188
18189         [BZ #19758]
18190         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18191         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18192
18193 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18194
18195         [BZ #19490]
18196         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18197         (__fentry__): Likewise.
18198
18199 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18200
18201         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18202         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18203
18204 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18205
18206         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18207         __mcount_internal directly.
18208         (C_LABEL(__fentry__)): Likewise.
18209         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18210         directly.
18211
18212 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18213
18214         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18215         (__start_context): Call __setcontext directly.
18216
18217 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18218
18219         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18220         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18221         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18222         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18223         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18224         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18225         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18226         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18227         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18228         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18229         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18230         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18231         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18232         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18233         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18234         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18235         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18236         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18237         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18238         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18239         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18240         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18241         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18242         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18243         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18244         Remove conditional code.
18245         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18246         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18247         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18248         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18249         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18250         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18251         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18252         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18253         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18254         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18255         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18256         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18257
18258 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18259
18260         * NEWS (2.23): Fix typo in bug 19048 text.
18261
18262 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18263
18264         [BZ #14259]
18265         * Makeconfig: Rename msgcatdir to localedir.
18266         Rename inst_msgcatdir to inst_localedir.
18267         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18268         * config.make.in: Add localedir.
18269         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18270         (ldd-rewrite): Likewise.
18271         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18272         (install-others): Use inst_localedir.
18273         (CPPFLAGS): Use localedir.
18274         * locale/Makefile (locale-CPPFLAGS): Likewise.
18275         * po/Makefile (mo-installed): Use inst_localedir.
18276
18277         [BZ #19575]
18278         * localedata/charmaps/GB18030: Update comments regarding PAU to
18279         non-PUA mappings.
18280
18281 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18282
18283         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18284         test for header.
18285         * sysdeps/unix/sysv/linux/configure: Regenerated.
18286         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18287         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18288         Remove conditional code.
18289         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18290
18291         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18292         Define to 3.2.0.
18293         (arch_minimum_kernel): Likewise.
18294         * sysdeps/unix/sysv/linux/configure: Regenerated.
18295         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18296         Define to 2.6.32.
18297         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18298         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18299         (arch_minimum_kernel): Define to 2.6.32.
18300         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18301         * README: Document Linux 3.2 requirement.
18302         * manual/install.texi (Linux): Document Linux 3.2 headers
18303         requirement.
18304         * INSTALL: Regenerated.
18305
18306 2016-02-24  Andreas Schwab  <schwab@suse.de>
18307
18308         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
18309         if !NO_LONG_DOUBLE.
18310
18311 2016-02-22  Roland McGrath  <roland@hack.frob.com>
18312
18313         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
18314         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
18315
18316 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
18317
18318         [BZ #19512]
18319         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
18320
18321 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18322
18323         * posix/tst-dir.c: Include libc-internal.h.
18324
18325 2016-02-20  Florian Weimer  <fweimer@redhat.com>
18326
18327         [BZ #19056]
18328         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
18329         * manual/filesys.texi (Reading/Closing Directory): Mention
18330         deprecaion.
18331         * posix/tst-dir.c (main): Disable deprecation warning in test.
18332
18333 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18334
18335         [BZ #19679]
18336         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
18337         Renamed to ...
18338         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
18339         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18340         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
18341         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18342         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18343         * sysdeps/x86_64/dl-trampoline.h
18344         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18345         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18346
18347 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18348
18349         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
18350
18351 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18352
18353         * elf/elf.h (R_386_GOT32X): New.
18354         (R_386_NUM): Update.
18355         (R_X86_64_GOTPCRELX: New.
18356         (R_X86_64_REX_GOTPCRELX): New.
18357         (R_X86_64_NUM): Update.
18358
18359 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
18360
18361         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
18362
18363 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
18364
18365         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
18366         assign attr->stackaddr to it, and adjust it down when
18367         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
18368         [_STACK_GROWS_UP]: Delete assert.
18369         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
18370         Implement stack grows up logic.
18371         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
18372         stack grows up logic.
18373
18374 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18375
18376         * NEWS: Update with 2.24 template.
18377
18378 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18379
18380         [BZ #19678]
18381         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
18382         Ensure +0.0 is returned when taking the next value below the least
18383         positive value.
18384
18385 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18386
18387         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
18388         available.  Do not define NO_THREADS.
18389         * malloc/malloc.c: Do not check NO_THREADS.
18390         * malloc/arena.c: Likewise.
18391
18392 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18393
18394         * malloc/malloc.c (__libc_mallinfo): Update comment.
18395         (struct malloc_par): Remove max_total_mem member, it was always 0.
18396         (int_mallinfo): Store 0 into usmblks (no functional change).
18397         * malloc/hooks.c (struct malloc_state): Document that
18398         max_total_mem is always 0.
18399         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
18400         always 0.
18401         * manual/memory.texi (Statistics of Malloc): Likewise.
18402
18403 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18404
18405         * malloc/malloc.c (sysmalloc): Do not update arena_max.
18406         * malloc/arena.c (arena_max): Remove.
18407         (heap_trim, _int_new_arena): Do not update arena_max.
18408
18409 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18410
18411         * resolv/res_init.c (res_ninit): Update comment.
18412
18413 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18414
18415         [BZ #19505]
18416         * posix/spawn_int.h: Add headers and include guard.
18417         (__spawn_valid_fd): New function.
18418         * posix/spawn_faction_addopen.c
18419         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
18420         * posix/spawn_faction_addclose.c
18421         (posix_spawn_file_actions_addclose): Likewise.
18422         * posix/spawn_faction_adddup2.c
18423         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
18424         second file descriptor.
18425         * posix/spawn_valid_fd.c: New file.
18426         * posix/tst-posix_spawn-fd.c: New file.
18427         * posix/Makefile (routines): Add spawn_valid_fd.
18428         (tests): Add tst-posix_spawn-fd.
18429
18430 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18431
18432         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
18433         (do_test): Limit the number of arenas, so that we can use fewer
18434         outer threads.  Limit timeout to 3 seconds, in preparation for a
18435         larger TIMEOUT value.
18436
18437 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18438
18439         [BZ #19674]
18440         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
18441         sign in overflowing and underflowing results when overflow or
18442         underflow is detected early.  Include sign in result before rather
18443         than after scaling.
18444
18445         [BZ #19603]
18446         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18447         (__ieee754_remainderl): Adjust sign of integer version of low part
18448         when taking absolute value of high part.
18449         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18450         * math/libm-test.inc (remainder_test_data): Add another test.
18451         (remquo_test_data): Likewise.
18452
18453 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
18454
18455         [BZ #19602]
18456         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
18457         equal high parts and both low parts zero specially.
18458         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
18459         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
18460         Add test-fmodl-ldbl-128ibm.
18461
18462         [BZ #19595]
18463         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
18464         common logic for all cases of shifting subnormal results.  Do not
18465         insert sign bit in shifted mantissa.  Always pass -1023 as biased
18466         exponent to ldbl_insert_mantissa in subnormal case.
18467
18468         [BZ #19594]
18469         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
18470         on high and low parts then adjust result and use
18471         ldbl_canonicalize_int if needed.
18472
18473         [BZ #19593]
18474         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
18475         on high part and __floor or __ceil on low part then use
18476         ldbl_canonicalize_int if needed.
18477
18478         [BZ #19592]
18479         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
18480         high and low parts then use ldbl_canonicalize_int if needed.
18481
18482         [BZ #17899]
18483         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
18484         New function.
18485         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
18486         on high and low parts then use ldbl_canonicalize_int if needed.
18487
18488 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18489
18490         * configure: Regenerated.
18491
18492         * po/libc.pot: Regenerated.
18493
18494         * po/be.po: Updated translation.
18495         * po/bg.po: Likewise.
18496         * po/ca.po: Likewise.
18497         * po/cs.po: Likewise.
18498         * po/da.po: Likewise.
18499         * po/el.po: Likewise.
18500         * po/eo.po: Likewise.
18501         * po/es.po: Likewise.
18502         * po/fi.po: Likewise.
18503         * po/fr.po: Likewise.
18504         * po/gl.po: Likewise.
18505         * po/hr.po: Likewise.
18506         * po/hu.po: Likewise.
18507         * po/ia.po: Likewise.
18508         * po/id.po: Likewise.
18509         * po/it.po: Likewise.
18510         * po/ja.po: Likewise.
18511         * po/lt.po: Likewise.
18512         * po/nb.po: Likewise.
18513         * po/nl.po: Likewise.
18514         * po/pt_BR.po: Likewise.
18515         * po/rw.po: Likewise.
18516         * po/sk.po: Likewise.
18517         * po/sl.po: Likewise.
18518         * po/sv.po: Likewise.
18519         * po/tr.po: Likewise.
18520         * po/zh_CN.po: Likewise.
18521         * po/zh_TW.po: Likewise.
18522
18523         * version.h (RELEAES): Set to "development".
18524         (VERSION): Set to 2.23.90.
18525
18526         * version.h (RELEASE): Set to "stable".
18527         (VERSION): Set to 2.23.
18528         * include/feature.h (__GLIBC_MINOR__): Set to 23.
18529
18530         * NEWS: Updated fixed bugs.
18531
18532 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18533             Wilco Dijkstra  <wdijkstr@arm.com>
18534
18535         [BZ #19462]
18536         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
18537         (_STRING_INLINE_unaligned): This.
18538         * include/string.h: Include <string_private.h>.
18539         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
18540         _STRING_INLINE_unaligned.
18541         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
18542         (_STRING_INLINE_unaligned): New.
18543         * sysdeps/aarch64/string_private.h: New file.
18544         * sysdeps/generic/string_private.h: Likewise.
18545         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
18546         * sysdeps/s390/string_private.h: Likewise.
18547         * sysdeps/x86/string_private.h: Likewise.
18548         * sysdeps/m68k/m680x0/m68020/bits/string.h
18549         (_STRING_ARCH_unaligned): Renamed to ...
18550         (_STRING_INLINE_unaligned): This.
18551         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
18552         to ...
18553         (_STRING_INLINE_unaligned): This.
18554         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
18555         to ...
18556         (_STRING_INLINE_unaligned): This.
18557         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
18558         to ...
18559         (_STRING_INLINE_unaligned): This.
18560
18561 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
18562             H.J. Lu  <hongjiu.lu@intel.com>
18563
18564         [BZ #19590]
18565         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
18566         relocation.
18567
18568 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
18569
18570         [BZ #18665]
18571         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
18572         *herrno_p.
18573         (gaih_getanswer): Document functional behviour. Return tryagain
18574         if any result is tryagain.
18575         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
18576         when freed.
18577         * resolv/res_send.c: Add copyright text.
18578         (__libc_res_nsend): Document that MAXPACKET is expected.
18579         (send_vc): Document. Remove buffer reuse.
18580         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
18581         size of the buffer. Add Dprint for truncated UDP buffer.
18582
18583 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
18584
18585         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
18586         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
18587         * INSTALL: Regenerate.
18588
18589 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
18590             Jonathan Wakely  <jwakely@redhat.com>
18591             Carlos O'Donell  <carlos@redhat.com>
18592
18593         [BZ 19439]
18594         * math/Makefile (tests): Add test-math-isinff.
18595         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
18596         * math/bits/mathcalls.h [__USE_MISC]: Use
18597         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
18598         functions not in C++11 and which don't conflict e.g. isinff,
18599         isinfl etc.
18600         * math/test-math-isinff.cc: New file.
18601
18602 2016-02-12  Florian Weimer  <fweimer@redhat.com>
18603
18604         * misc/bug18240.c (do_test): Set RLIMIT_AS.
18605
18606 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18607
18608         [BZ #19529]
18609         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
18610
18611 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18612
18613         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
18614
18615 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
18616
18617         [BZ #19550]
18618         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
18619         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
18620         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
18621         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
18622         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
18623         New syscall entry.
18624         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
18625         New syscall entry.
18626         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
18627         syscall entry.
18628
18629 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18630
18631         [BZ #18240]
18632         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
18633         unsigned int wraparound.
18634
18635 2016-01-27  Florian Weimer  <fweimer@redhat.com>
18636
18637         [BZ #18240]
18638         * misc/bug18240.c: New test.
18639         * misc/Makefile (tests): Add it.
18640
18641 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
18642             Joseph Myers  <joseph@codesourcery.com>
18643
18644         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
18645         load in branch delay slot when less than a word of input left.
18646
18647 2016-01-27  Andreas Schwab  <schwab@suse.de>
18648
18649         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
18650         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
18651         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
18652         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
18653
18654 2016-01-26  David S. Miller  <davem@davemloft.net>
18655
18656         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
18657
18658 2016-01-25  David S. Miller  <davem@davemloft.net>
18659
18660         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
18661         __sqrtl_finite.
18662         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
18663         instead using versioned_symbol.
18664         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
18665         of entries.
18666
18667         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
18668         __sqrtl_finite to GLIBC_2.23
18669
18670 2016-01-25  Ricchard Henderson  <rth@redhat.com>
18671
18672         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18673
18674 2016-01-25  Andreas Schwab  <schwab@suse.de>
18675
18676         [BZ #17514]
18677         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
18678         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
18679         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
18680         * nptl/tst-mutex-errorcheck.c: New file.
18681
18682 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18683
18684         [BZ #18560]
18685         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
18686         (IPCOP_semop): Likewise.
18687         (IPCOP_semget): Likewise.
18688         (IPCOP_semctl): Likewise.
18689         (IPCOP_msgsnd): Likewise.
18690         (IPCOP_msgrcv): Likewise.
18691         (IPCOP_msgget): Likewise.
18692         (IPCOP_msgctl): Likewise.
18693         (IPCOP_shmat): Likewise.
18694         (IPCOP_shmdt): Likewise.
18695         (IPCOP_shmget): Likewise.
18696         (IPCOP_shmctl): Likewise.
18697
18698 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18699
18700         * string/tst-endian.c: Include <libc-internal.h>.
18701         (do_test): Ignore tautological-compare warnings around
18702         "htobeXX (beXXtoh (i)) != i" and
18703         "htoleXX (leXXtoh (i)) != i" if-statements.
18704
18705 2016-01-24  David S. Miller  <davem@davemloft.net>
18706
18707         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
18708         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
18709         alias.
18710         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18711         __sqrtl_finite.
18712
18713         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18714
18715 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
18716
18717         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
18718         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
18719         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18720
18721 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18722
18723         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
18724         (thread_func): Use new function to simplify barrier check.
18725         (do_test): Use new function to simplify checking barrier exit
18726         code, and actually join the child thread.
18727
18728 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18729
18730         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
18731         semicolon.
18732         (__libc_tend): Likewise.
18733         (__libc_tabort): Likewise.
18734
18735 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
18736
18737         * sysdeps/nios2/libm-test-ulps: Update.
18738         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
18739         (__gtsf2): Likewise.
18740         (__unorddf2): Likewise.
18741         (__unordsf2): Likewise.
18742         (__ledf2): Likewise.
18743
18744 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
18745
18746         * nis/nis_table.c (__follow_path): Disable diagnostic for
18747         uninitialized variable that is a false positive for gcc 4.7.
18748         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
18749
18750 2016-01-20  Roland McGrath  <roland@hack.frob.com>
18751
18752         * sysdeps/nacl/lowlevellock-futex.h
18753         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
18754         Always evaluate PRIVATE argument.
18755
18756 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
18757
18758         [BZ #19490]
18759         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
18760         (pthread_cond_broadcast): Use ENTRY/END
18761         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
18762         (pthread_cond_signal): Likewise.
18763         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
18764         Likewise.
18765         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
18766         Likewise.
18767         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
18768         Likewise.
18769
18770 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
18771
18772         * sysdeps/ieee754/dbl-64/s_finite.c
18773         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
18774         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
18775         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
18776         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
18777         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
18778
18779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18780         (__gtsf2): Add as optional for libc.so.
18781         (__unordsf2): Likewise.
18782         (__signbit): Remove for libc.so.
18783         (__signbitl): Likewise.
18784
18785 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
18786
18787         * iconvdata/bug-iconv11.c (test_ibm93x):
18788         Use %zu printf format specifier for size_t argument.
18789
18790 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
18791
18792         * math/gen-libm-test.pl (parse_ulps): Do not reduce
18793         already-recorded ulps.
18794         * sysdeps/arm/libm-test-ulps: Regenerated.
18795         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18796         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18797         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
18798
18799 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
18800             Paul Pluzhnikov  <ppluzhnikov@google.com>
18801
18802         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
18803         assembler not supporting AVX-512.
18804
18805 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
18806
18807         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18808
18809 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
18810
18811         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
18812         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18813
18814         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
18815
18816         * sysdeps/arm/libm-test-ulps: Regenerated.
18817
18818 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18819
18820         [BZ #19451]
18821         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
18822
18823 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18824
18825         [BZ #19486]
18826         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
18827         * sysdeps/generic/fix-fp-int-convert-overflow.h
18828         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
18829         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
18830         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
18831         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
18832         Likewise.
18833         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
18834         Avoid conversions to long int where inexact exceptions
18835         could be raised.
18836         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
18837         Likewise.
18838         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
18839         Avoid conversions to long long int where inexact exceptions
18840         could be raised.
18841         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
18842         Likewise.
18843
18844 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
18845
18846         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
18847         * configure: Regenerated.
18848
18849 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
18850
18851         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
18852
18853 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
18854
18855         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
18856         outside of comment.
18857
18858 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18859
18860         * nptl/tst-barrier1.c: Add description on first line.
18861         * nptl/tst-barrier2.c: Likewise.
18862         * nptl/tst-barrier3.c: Likewise.
18863         * nptl/tst-barrier4.c: Likewise.
18864         * nptl/tst-barrier5.c: Likewise.
18865
18866 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18867
18868         [BZ #18868]
18869         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
18870
18871 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
18872
18873         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
18874         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
18875         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
18876         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
18877         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
18878         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
18879         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
18880         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
18881         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18882         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
18883         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
18884
18885 2016-01-15  Torvald Riegel  <triegel@redhat.com>
18886
18887         [BZ #13065]
18888         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
18889         new implementation.
18890         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
18891         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
18892         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
18893         (BARRIER_IN_THRESHOLD): New macro.
18894         * nptl/pthread_barrierattr_setpshared.c
18895         (pthread_barrierattr_setpshared): Clean up.
18896         * nptl/tst-barrier4.c: Correct comment.
18897         * nptl/tst-barrier5.c: New file.
18898         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
18899         (gen-as-const-headers): Remove lowlevelbarrier.sym.
18900         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
18901         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
18902         * nptl/lowlevelbarrier.sym: Remove.
18903         * nptl/DESIGN-barrier.txt: Remove.
18904         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
18905         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
18906         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
18907         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
18908         error.
18909         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
18910         implementation.
18911
18912 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18913
18914         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
18915         (do_child): Mask SIGRTMIN while thr is running.
18916
18917 2016-01-15  Martin Sebor  <msebor@redhat.com>
18918
18919         [BZ #19432]
18920         * iconvdata/Makefile: Add bug-iconv11.
18921         * iconvdata/bug-iconv11.c: New test.
18922         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
18923         * iconvdata/ibm933.c: Same.
18924         * iconvdata/ibm935.c: Same.
18925         * iconvdata/ibm937.c: Same.
18926         * iconvdata/ibm939.c: Same.
18927
18928 2016-01-15  Martin Sebor  <msebor@redhat.com>
18929
18930         [BZ #19443]
18931         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
18932         [DEBUG] (_ufc_set_bits): Declare used.
18933         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
18934         [DEBUG] (print_all): Declare used.
18935         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
18936         operands of the ternary ?: expression to target type.
18937         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
18938         calling the undeclared abort.
18939         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
18940
18941 2016-01-15  Martin Sebor  <msebor@redhat.com>
18942
18943         [BZ #18755]
18944         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
18945         warnings.
18946         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
18947         (__gai_create_helper_thread): Same.
18948         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
18949         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
18950         to suppress -Wmaybe-uninitialized warnings.
18951
18952 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
18953
18954         [BZ #19465]
18955         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
18956         inside if.
18957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
18958         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
18959         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
18960
18961 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
18962
18963         [BZ #19466]
18964         * time/tst-mktime2.c (time_t_max): Removed.
18965         (time_t_min): Likewise.
18966         (TYPE_SIGNED): New.
18967         (TYPE_MINIMUM): Likewise.
18968         (TYPE_MAXIMUM): Likewise.
18969         (TIME_T_MIN): Likewise.
18970         (TIME_T_MAX): Likewise.
18971         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
18972         and TIME_T_MIN.
18973         (do_test): Likewise.
18974
18975 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
18976
18977         [BZ #19467]
18978         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
18979         index_Fast_Unaligned_Load flag for Excavator family CPUs.
18980
18981 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
18982
18983         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
18984
18985 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
18986
18987         * benchtests/Makefile (PYTHON): Define.
18988         (bench-func): Use $(PYTHON) to run python scripts.
18989         ($(objpfx)bench-%.c): Likewise.
18990
18991 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
18992
18993         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
18994         leading slash when `file_name' is "/".
18995
18996 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
18997
18998         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
18999         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19000         Likewise.
19001         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19002         Likewise.
19003         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19004         Likewise.
19005         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19006         enum constant and macro.
19007         (PTRACE_SETSIGMASK): Likewise.
19008         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19009         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19010         (PTRACE_GETSIGMASK): Likewise.
19011         (PTRACE_SETSIGMASK): Likewise.
19012         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19013         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19014         Likewise.
19015         (PTRACE_SETSIGMASK): Likewise.
19016         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19017         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19018         (PTRACE_GETSIGMASK): Likewise.
19019         (PTRACE_SETSIGMASK): Likewise.
19020         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19021         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19022         Likewise.
19023         (PTRACE_SETSIGMASK): Likewise.
19024         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19025         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19026         Likewise.
19027         (PTRACE_SETSIGMASK): Likewise.
19028         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19029         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19030         Likewise.
19031         (PTRACE_SETSIGMASK): Likewise.
19032         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19033
19034 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19035             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19036
19037         [BZ #19439]
19038         * math/bits/mathcalls.h
19039         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19040         prototype.
19041         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19042
19043 2016-01-11  Andreas Schwab  <schwab@suse.de>
19044
19045         [BZ #19253]
19046         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19047         cache when TZDEFRULES was used.
19048         * time/tst-tzname.c: New file.
19049         * time/Makefile (test): Add tst-tzname.
19050         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19051         * timezone/Makefile (test-zones): Add $(posixrules-file).
19052         ($(testdata)/$(posixrules-file)): New rule.
19053
19054 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19055
19056         Fix doc quoting problems with Texinfo 5
19057         Without this change, in the info file output, Texinfo 5 quotes code
19058         in text with undirected single quotes 'like this' and generates
19059         code examples that with many PDF readers cannot be cut out of PDFs
19060         and pasted into code.
19061         * manual/libc.texinfo: Configure the libc manual like the GNU
19062         Emacs manual, by using @documentencoding and setting
19063         txicodequoteundirected and txicodequotebacktick.  This way,
19064         Texinfo 5 quotes code in text with directed single quotes ‘like
19065         this’ and produces examples that can be cut out of PDFs.  This
19066         change causes Texinfo 5 to generate info files that contain UTF-8
19067         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19068         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19069
19070 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19071
19072         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19073         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19074         barriers to their respective compiler built-ins.
19075         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19076         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19077         * sysdeps/powerpc/sysdep.h: Likewise.
19078         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19079         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19080         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19081
19082 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19083
19084         * scripts/config.guess: Revert previous shebang change.
19085         * scripts/config.sub: Likewise.
19086         * scripts/mkinstalldirs: Likewise.
19087
19088 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19089
19090         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19091         PPC_FEATURE2_HAS_IEEE128.
19092         * sysdeps/powerpc/dl-procinfo.c:
19093         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19094
19095 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19096
19097         [BZ #19415]
19098         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19099         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19100         (_dl_lookup_address): Rewrite using function resolver trampoline.
19101         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19102         two bits in address.
19103
19104 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19105
19106         * longlong.h: Change !__SHMEDIA__ to
19107         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19108         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19109
19110 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19111             Joseph Myers  <joseph@codesourcery.com>
19112             Mark Shinwell  <shinwell@codesourcery.com>
19113             Andrew Stubbs  <ams@codesourcery.com>
19114             Rich Felker <dalias@libc.org>
19115
19116         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19117
19118 2016-01-07  Richard Henderson  <rth@redhat.com>
19119
19120         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19121
19122 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19123
19124         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19125         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19126         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19127         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19128         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19129
19130 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19131             Joseph Myers  <joseph@codesourcery.com>
19132
19133         * timezone/private.h: Update from tzcode 2015g.
19134         * timezone/tzfile.h: Likewise.
19135         * timezone/tzselect.ksh: Likewise.
19136         * timezone/zdump.c: Likewise.
19137         * timezone/zic.c: Likewise.
19138         * timezone/ialloc.c: Remove file.
19139         * timezone/scheck.c: Likewise.
19140         * timezone/Makefile (extra-objs): Remove variable.
19141         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19142         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19143         -Wno-maybe-uninitialized.
19144         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19145         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19146         (CFLAGS-ialloc.c): Remove variable.
19147         (CFLAGS-scheck.c): Likewise.
19148         * timezone/README: Update list of files from tzcode.
19149
19150 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19151
19152         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19153         instead of __fxprintf when _LIBC is undefined.
19154
19155 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19156
19157         * catgets/test-gencat.sh: Remove space after shebang.
19158         * conform/GlibcConform.pm: Likewise.
19159         * conform/check-header-lists.sh: Likewise.
19160         * conform/conformtest.pl: Likewise.
19161         * conform/linknamespace.pl: Likewise.
19162         * conform/list-header-symbols.pl: Likewise.
19163         * debug/catchsegv.sh: Likewise.
19164         * elf/genrtldtbl.awk: Likewise.
19165         * elf/tst-pathopt.sh: Likewise.
19166         * elf/tst-rtld-load-self.sh: Likewise.
19167         * grp/tst_fgetgrent.sh: Likewise.
19168         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19169         * iconvdata/gen-8bit-gap.sh: Likewise.
19170         * iconvdata/gen-8bit.sh: Likewise.
19171         * iconvdata/run-iconv-test.sh: Likewise.
19172         * intl/tst-gettext.sh: Likewise.
19173         * intl/tst-gettext2.sh: Likewise.
19174         * intl/tst-gettext4.sh: Likewise.
19175         * intl/tst-gettext6.sh: Likewise.
19176         * intl/tst-translit.sh: Likewise.
19177         * io/ftwtest-sh: Likewise.
19178         * libio/test-freopen.sh: Likewise.
19179         * locale/gen-translit.pl: Likewise.
19180         * malloc/tst-mtrace.sh: Likewise.
19181         * manual/check-safety.sh: Likewise.
19182         * manual/libc-texinfo.sh: Likewise.
19183         * manual/tsort.awk: Likewise.
19184         * manual/xtract-typefun.awk: Likewise.
19185         * nptl/tst-cancel-wrappers.sh: Likewise.
19186         * nptl/tst-tls6.sh: Likewise.
19187         * posix/globtest.sh: Likewise.
19188         * posix/tst-getconf.sh: Likewise.
19189         * posix/wordexp-tst.sh: Likewise.
19190         * scripts/check-c++-types.sh: Likewise.
19191         * scripts/check-local-headers.sh: Likewise.
19192         * scripts/config.guess: Likewise.
19193         * scripts/config.sub: Likewise.
19194         * scripts/cpp: Likewise.
19195         * scripts/cross-test-ssh.sh: Likewise.
19196         * scripts/documented.sh: Likewise.
19197         * scripts/evaluate-test.sh: Likewise.
19198         * scripts/gen-libc-abis: Likewise.
19199         * scripts/gen-sorted.awk: Likewise.
19200         * scripts/list-fixed-bugs.py: Likewise.
19201         * scripts/merge-test-results.sh: Likewise.
19202         * scripts/mkinstalldirs: Likewise.
19203         * scripts/rellns-sh: Likewise.
19204         * scripts/test-installation.pl: Likewise.
19205         * scripts/update-copyrights: Likewise.
19206         * stdio-common/tst-printf.sh: Likewise.
19207         * stdio-common/tst-unbputc.sh: Likewise.
19208         * stdlib/tst-fmtmsg.sh: Likewise.
19209         * stdlib/tst-setcontext3.sh: Likewise.
19210         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19211         * sysdeps/unix/make-syscalls.sh: Likewise.
19212
19213 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19214
19215         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19216         asm stw with atomic_exchange_rel.  Add explanatory comment.
19217         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19218         Likewise.
19219
19220 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19221
19222         [BZ #19122]
19223         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19224         * sysdeps/generic/dl-unistd.h: New file.
19225         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19226
19227 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19228
19229          [BZ #19122]
19230          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19231          * sysdeps/generic/dl-mman.h: New file.
19232          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19233
19234 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19235
19236         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19237         trailing whitespace removed.
19238         * scripts/config.guess: Update to version 2016-01-01.
19239         * scripts/config.sub: Update to version 2016-01-01.
19240         * scripts/move-if-change: Update from gnulib.
19241
19242 2016-01-04  Anton Blanchard  <anton@samba.org>
19243
19244         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19245         for array indices.
19246         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19247
19248 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19249
19250         * NEWS: Update copyright dates.
19251         * catgets/gencat.c (print_version): Likewise.
19252         * csu/version.c (banner): Likewise.
19253         * debug/catchsegv.sh: Likewise.
19254         * debug/pcprofiledump.c (print_version): Likewise.
19255         * debug/xtrace.sh (do_version): Likewise.
19256         * elf/ldconfig.c (print_version): Likewise.
19257         * elf/ldd.bash.in: Likewise.
19258         * elf/pldd.c (print_version): Likewise.
19259         * elf/sotruss.sh: Likewise.
19260         * elf/sprof.c (print_version): Likewise.
19261         * iconv/iconv_prog.c (print_version): Likewise.
19262         * iconv/iconvconfig.c (print_version): Likewise.
19263         * locale/programs/locale.c (print_version): Likewise.
19264         * locale/programs/localedef.c (print_version): Likewise.
19265         * login/programs/pt_chown.c (print_version): Likewise.
19266         * malloc/memusage.sh (do_version): Likewise.
19267         * malloc/memusagestat.c (print_version): Likewise.
19268         * malloc/mtrace.pl: Likewise.
19269         * manual/libc.texinfo: Likewise.
19270         * nptl/version.c (banner): Likewise.
19271         * nscd/nscd.c (print_version): Likewise.
19272         * nss/getent.c (print_version): Likewise.
19273         * nss/makedb.c (print_version): Likewise.
19274         * posix/getconf.c (main): Likewise.
19275         * scripts/test-installation.pl: Likewise.
19276         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19277
19278         * All files with FSF copyright notices: Update copyright dates
19279         using scripts/update-copyrights.
19280         * intl/plural.c: Regenerated.
19281         * locale/programs/charmap-kw.h: Likewise.
19282         * locale/programs/locfile-kw.h: Likewise.
19283
19284 2016-01-02  Helge Deller  <deller@gmx.de>
19285
19286         [BZ #19285]
19287         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19288         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19289         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19290         (MADV_xxK_PAGES): Remove.
19291
19292 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19293
19294         [BZ #15421]
19295         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19296         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19297         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19298         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19299
19300 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19301
19302         [BZ #19408]
19303         * sysdeps/unix/sysv/linux/personality.c: New file.
19304         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19305         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19306         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
19307         (sysdep_routines): Add personality.
19308         (tests): Add tst-personality.
19309         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
19310         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
19311         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
19312         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
19313         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
19314         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
19315         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
19316         Likewise.
19317         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
19318         Likewise.
19319         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
19320         Likewise.
19321         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
19322         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
19323         Likewise.
19324
19325 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19326
19327         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
19328         (PATH_ARM_SYSTYPE): Remove.
19329         (PATH_CPUINFO): Likewise.
19330         (IO_BASE_FOOTBRIDGE): Likewise.
19331         (IO_SHIFT_FOOTBRIDGE): Likewise.
19332         (struct platform): Likewise.
19333         (init_iosys): Remove compatibility code for 2.4 kernels.
19334         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
19335
19336 2015-12-29  Florian Weimer  <fweimer@redhat.com>
19337
19338         * malloc/tst-malloc-thread-fail.c: New file.
19339         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
19340         (tst-malloc-thread-fail): Link against libpthread.
19341
19342 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
19343
19344         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
19345         (get_parser): New function.
19346         (main): New function.
19347
19348 2015-12-29  Rob Wu  <rob@robwu.nl>
19349
19350         [BZ #19369]
19351         * resolv/res_init.c (__res_vinit): Reset defdname before use.
19352
19353 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
19354
19355         [BZ #19270]
19356         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19357
19358 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
19359
19360         [BZ #15421]
19361         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
19362
19363 2015-12-23  Torvald Riegel  <triegel@redhat.com>
19364
19365         [BZ #13690]
19366         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
19367         after releasing it.
19368         (__lll_robust_unlock): Likewise.
19369         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
19370         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
19371         (lll_robust_unlock): Likewise.
19372         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
19373         Prevent warnings in callers.
19374
19375 2015-12-23  Florian Weimer  <fweimer@redhat.com>
19376
19377         * malloc/arena.c (list_lock): Update comment.
19378
19379 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19380
19381         * sysdeps/powerpc/hwcapinfo.c: Export symbol
19382         __parse_hwcap_and_convert_at_platform to libc.a.
19383
19384 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19385
19386         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
19387         platform and feature support for POWER9.
19388         * sysdeps/powerpc/dl-procinfo.h: Likewise.
19389         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
19390         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
19391         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
19392         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
19393         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
19394         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
19395         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
19396
19397 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19398
19399         Harmonize generic stdio-lock support with nptl
19400
19401         This fixes build when _IO_funlockfile is a macro, fixes build where
19402         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
19403         stack unwind.
19404
19405         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
19406         _IO_release_lock ): Use cleanup attribute on new
19407         _IO_acquire_lock_file variable instead of assuming that
19408         _IO_release_lock will be called.
19409         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
19410         _IO_acquire_lock_needs_exceptions_enabled.
19411         (_IO_acquire_lock_clear_flags2): New macro.
19412
19413 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19414
19415         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19416
19417 2015-12-21  Florian Weimer  <fweimer@redhat.com>
19418
19419         [BZ #19182]
19420         * malloc/arena.c (list_lock): Document lock ordering requirements.
19421         (free_list_lock): New lock.
19422         (ptmalloc_lock_all): Comment on free_list_lock.
19423         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
19424         (detach_arena): Update comment.  free_list_lock is now needed.
19425         (_int_new_arena): Use free_list_lock around detach_arena call.
19426         Acquire arena lock after list_lock.  Add comment, including FIXME
19427         about incorrect synchronization.
19428         (get_free_list): Switch to free_list_lock.
19429         (reused_arena): Acquire free_list_lock around detach_arena call
19430         and attached threads counter update.  Add two FIXMEs about
19431         incorrect synchronization.
19432         (arena_thread_freeres): Switch to free_list_lock.
19433         * malloc/malloc.c (struct malloc_state): Update comments to
19434         mention free_list_lock.
19435
19436 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19437
19438         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
19439         Remove functions.
19440         (sloww, sloww1): Accept argument to offset quadrant.
19441         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
19442         quadrant.
19443         (__sin, __cos): Consolidate common code into new functions.
19444         (reduce_sincos_1, do_sincos_1): New functions.
19445         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19446
19447         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
19448         code to new functions.
19449         (reduce_sincos_2, do_sincos_2): New functions.
19450         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19451
19452         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
19453         common code for sincos.
19454         (__cos) [!IN_SINCOS]: Likewise.
19455         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
19456         New function.
19457         (__sincos): Use it.
19458
19459 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
19460
19461         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
19462         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
19463         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19464
19465 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19466
19467         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
19468         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
19469         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19470         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
19471         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19472         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
19473         index_Prefer_No_VZEROUPPER): New feature.
19474         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
19475         Prefer_No_VZEROUPPER for Knights Landing.
19476
19477 015-12-18  Torvald Riegel  <triegel@redhat.com>
19478
19479         * math/atest-exp2.c (mp_exp_m1): Remove.
19480
19481 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19482
19483         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
19484         syscalls.
19485         (__SYSCALL0): New macro.
19486         (__SYSCALL1): Likewise.
19487         (__SYSCALL2): Likewise.
19488         (__SYSCALL3): Likewise.
19489         (__SYSCALL4): Likewise.
19490         (__SYSCALL5): Likewise.
19491         (__SYSCALL6): Likewise.
19492         (__SYSCALL_CONCAT_X): Likewise.
19493         (__SYSCALL_CONCAT): Likewise.
19494         (__SYSCALL_DIST): Likewise.
19495         (__SYSCALL_CALL): Likewise.
19496
19497 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
19498
19499         [BZ #19363]
19500         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
19501
19502 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19503
19504         [BZ #19375]
19505         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
19506         negative subnormals.
19507
19508 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
19509
19510         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19511         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
19512         (INTERNAL_SYSCALL_NCS): Use it.
19513         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19514
19515 2015-12-16  Florian Weimer  <fweimer@redhat.com>
19516
19517         [BZ #19243]
19518         * malloc/arena.c (get_free_list): Remove assert and adjust
19519         reference count handling.  Add comment about reused_arena
19520         interaction.
19521         (reused_arena): Add comments abount get_free_list interaction.
19522         * malloc/tst-malloc-thread-exit.c: New file.
19523         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
19524         (tst-malloc-thread-exit): Link against libpthread.
19525
19526 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19527
19528         [BZ #19367]
19529         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
19530         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
19531         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
19532         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
19533         (index_Prefer_MAP_32BIT_EXEC): Likewise.
19534
19535 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19536
19537         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
19538         Silvermont optimizations for Knights Landing.
19539
19540 2015-12-15  Andreas Schwab  <schwab@suse.de>
19541
19542         [BZ #17197]
19543         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
19544         immediately after emitting SI.
19545         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
19546         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
19547         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
19548         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
19549         * iconvdata/bug-iconv10.c: New file.
19550         * iconvdata/Makefile (tests): Add bug-iconv10.
19551         ($(objpfx)bug-iconv10.out): New rule.
19552
19553 2015-12-15  Florian Weimer  <fweimer@redhat.com>
19554
19555         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
19556         aliasing violation.
19557
19558 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
19559
19560         [BZ #18472]
19561         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
19562         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
19563         conditionals for them.
19564         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
19565         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
19566         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
19567         sys/kdaemon.h.
19568         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
19569         compat-only syscall, obsoleted in glibc 2.23.
19570         (create_module): Likewise.
19571         (get_kernel_syms): Likewise.
19572         (query_module): Likewise.
19573         (uselib): Likewise.
19574         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
19575
19576 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
19577
19578         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
19579         <linux/version.h>.
19580         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
19581         conditional code.
19582         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
19583         and ioshift_name initialization.
19584
19585 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19586
19587         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
19588         Fix indentation.
19589
19590 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19591
19592         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
19593
19594 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
19595
19596         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
19597
19598 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19599             Jakub Wilk  <jwilk@debian.org>
19600
19601         [BZ #19347]
19602         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
19603         to change the group of the device to the tty group.
19604
19605 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         Split large string section; add truncation advice
19608         * manual/examples/strncat.c: Remove.
19609         This example was misleading, as the code would have undefined
19610         behavior if "hello" was longer than SIZE.  Anyway, the manual
19611         shouldn't encourage strncpy+strncat for this sort of thing.
19612         * manual/string.texi (Copying Strings and Arrays): Split into
19613         three sections Copying Strings and Arrays, Concatenating Strings,
19614         and Truncating Strings, as this section was way too long.  All
19615         cross-referenced changed.  Add advice about string-truncation
19616         functions.  Remove misleading strncat example.
19617
19618 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
19619
19620         * manual/nss.texi (NSS Modules Interface): Document
19621         NSS_STATUS_NOTFOUND and SUCCESS.
19622
19623 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19624
19625         [BZ 18568]
19626         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19627         201505L, for Unicode 8.
19628
19629 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
19630
19631         * locale/C-translit.h: Regenerate.
19632
19633 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
19634
19635         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
19636         and U+0153.
19637
19638 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
19639
19640         [BZ #19351]
19641         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
19642         expanding log(1+z), compare z rather than its square with epsilon
19643         to determine when to avoid evaluating the expansion.
19644
19645         [BZ #19350]
19646         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
19647         Increase overflow threshold.
19648
19649         [BZ #19349]
19650         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
19651         when small.
19652
19653         * sysdeps/unix/sysv/linux/i386/kernel-features.h
19654         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19655         New macro.
19656         [__LINUX_KERNEL_VERSION >= 0x040300]
19657         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19658         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19659         Likewise.
19660         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19661         Likewise.
19662         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19663         Likewise.
19664         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19665         Likewise.
19666         [__LINUX_KERNEL_VERSION >= 0x040300]
19667         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19668         [__LINUX_KERNEL_VERSION >= 0x040300]
19669         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19670         [__LINUX_KERNEL_VERSION >= 0x040300]
19671         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19672         [__LINUX_KERNEL_VERSION >= 0x040300]
19673         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19674         [__LINUX_KERNEL_VERSION >= 0x040300]
19675         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19676         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19677         Likewise.
19678         [__LINUX_KERNEL_VERSION >= 0x040300]
19679         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19680         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19681         Likewise.
19682         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19683         Likewise.
19684         [__LINUX_KERNEL_VERSION >= 0x040300]
19685         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19686         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19687         Likewise.
19688         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19689         Likewise.
19690         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
19691         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
19692         Likewise.
19693         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
19694         Likewise.
19695         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
19696         Likewise.
19697         [__LINUX_KERNEL_VERSION >= 0x040300]
19698         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19699         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
19700         Likewise.
19701         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
19702         Likewise.
19703         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
19704         Likewise.
19705         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
19706         Likewise.
19707         [__LINUX_KERNEL_VERSION >= 0x040300]
19708         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
19709         [__LINUX_KERNEL_VERSION >= 0x040300]
19710         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19711         [__LINUX_KERNEL_VERSION >= 0x040300]
19712         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19713         [__LINUX_KERNEL_VERSION >= 0x040300]
19714         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19715         [__LINUX_KERNEL_VERSION >= 0x040300]
19716         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19717         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
19718         Likewise.
19719         [__LINUX_KERNEL_VERSION >= 0x040300]
19720         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
19721         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
19722         Likewise.
19723         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
19724         Likewise.
19725         [__LINUX_KERNEL_VERSION >= 0x040300]
19726         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
19727         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
19728         Likewise.
19729         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
19730         Likewise.
19731         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19732         (__ASSUME_SOCKET_SYSCALL): Likewise.
19733         (__ASSUME_BIND_SYSCALL): Likewise.
19734         (__ASSUME_CONNECT_SYSCALL): Likewise.
19735         (__ASSUME_LISTEN_SYSCALL): Likewise.
19736         (__ASSUME_ACCEPT_SYSCALL): Likewise.
19737         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19738         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19739         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19740         (__ASSUME_SEND_SYSCALL): Likewise.
19741         (__ASSUME_SENDTO_SYSCALL): Likewise.
19742         (__ASSUME_RECV_SYSCALL): Likewise.
19743         (__ASSUME_RECVFROM_SYSCALL): Likewise.
19744         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
19745         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19746         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19747         (__ASSUME_SENDMSG_SYSCALL): Likewise.
19748         (__ASSUME_RECVMSG_SYSCALL): Likewise.
19749         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19750         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
19751         Likewise.
19752         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
19753         Likewise.
19754         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
19755         Likewise.
19756         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
19757         Likewise.
19758         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
19759         Likewise.
19760         [__LINUX_KERNEL_VERSION >= 0x020625]
19761         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
19762         [__LINUX_KERNEL_VERSION >= 0x020625]
19763         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
19764         [__LINUX_KERNEL_VERSION >= 0x020625]
19765         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
19766         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
19767         Likewise.
19768         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
19769         Likewise.
19770         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
19771         Likewise.
19772         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
19773         Likewise.
19774         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
19775         Likewise.
19776         [__LINUX_KERNEL_VERSION >= 0x020625]
19777         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
19778         [__LINUX_KERNEL_VERSION >= 0x020625]
19779         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
19780         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
19781         Likewise.
19782         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
19783         Likewise.
19784
19785 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19786
19787         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
19788         record the current if the current ABI and CPU support the FP64
19789         extension.
19790         (has-modd-spreg): Define to record the current if the current ABI and
19791         CPU support 32-bit floating point values in odd FPU registers.
19792         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19793         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
19794         $(has-modd-spreg) equals yes.
19795         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
19796         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
19797         $(has-modd-spreg) equal yes.
19798
19799 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
19800
19801         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
19802         basename.
19803
19804 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
19805
19806         * benchtests/Makefile (bench-math): Move ffs and ffsll...
19807         (bench-string): ... here.
19808         (bench): Add bench-string.
19809         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
19810         to *-benchset to reflect what they are.
19811         (benchset): Adjust.
19812
19813         * benchtests/sincos-inputs: Add inputs from sin-inputs and
19814         cos-inputs.
19815
19816 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
19817
19818         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
19819         __attribute__ ((__simd__)) for vector math function declarations.
19820
19821 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19822
19823         Fix typo in strncat, wcsncat manual entries
19824         * manual/string.texi (Copying and Concatenation): Fix typos in
19825         sample implementations of strncat and wcsncat, by having them use
19826         the old value of the destination length, not the new one.
19827
19828 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
19829
19830         [BZ #16961]
19831         [BZ #16962]
19832         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
19833         string on the stack for strtod.
19834         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
19835         a string on the stack for strtof.
19836         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
19837         constructing a string on the stack for strtold.
19838         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
19839         __strtold_nan to GLIBC_PRIVATE.
19840         * math/test-nan-overflow.c: New file.
19841         * math/test-nan-payload.c: Likewise.
19842         * math/Makefile (tests): Add test-nan-overflow and
19843         test-nan-payload.
19844
19845 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19846
19847         Consistency about byte vs character in string.texi
19848         * manual/string.texi (String and Array Utilities):
19849         Distinguish more carefully among bytes, multibyte characters,
19850         and wide characters.  Use "byte" when talking about C 'char',
19851         to distinguish it more clearly from multibyte characters.
19852         Say "wide character" or "multibyte character" instead of
19853         "character", when a wide or multibyte character is intended.
19854         Similarly for "multibyte string" versus "string".
19855         Define these terms more carefully.
19856
19857 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
19858
19859         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
19860         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
19861         Likewise.
19862         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19863         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19864         * sysdeps/sh/math_private.h: New file.
19865         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
19866         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
19867         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
19868         long double function name.
19869         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19870         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19871         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19872         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19873         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19875         Remove __finitel, __isinfl, and __isnanl.
19876         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19877         Likewise.
19878         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19880         Remove __finitel.
19881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19882         Likewise.
19883         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19884
19885 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
19886
19887         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
19888         installed libmvec_nonshared.a.
19889
19890 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19891
19892         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
19893         (sysdep_routines): Likewise.
19894         (sysdep-rtld-routines): Likewise.
19895         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
19896         [$(subdir) = nptl](tests-static): test-get_hwcap-static
19897         * sysdeps/powerpc/Versions: Added new
19898         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
19899         * sysdeps/powerpc/hwcapinfo.c: New file.
19900         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
19901         and parse hwcap, hwcap2 and platform number information.
19902         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
19903         to store HWCAP+HWCAP2 and platform number.
19904         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
19905         for HWCAP+HWCAP2 and platform number in the TCB.
19906         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
19907         the HWCAP, HWCAP2 and platform number in the TCB.
19908         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
19909         (TLS_INIT_TP): Included calls to add the hwcap and
19910         at_platform values in the TCB in TP initialization.
19911         (TLS_DEFINE_INIT_TP): Likewise.
19912         (THREAD_GET_HWCAP): New macro.
19913         (THREAD_SET_HWCAP): Likewise.
19914         (THREAD_GET_AT_PLATFORM): Likewise.
19915         (THREAD_SET_AT_PLATFORM): Likewise.
19916         * sysdeps/powerpc/powerpc32/dl-machine.h:
19917         (dl_platform_init): New function that calls
19918         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
19919         powerpc32.
19920         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
19921         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
19922         this functionality, static linking case.
19923         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
19924         linking case.
19925         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
19926         __parse_hwcap_and_convert_at_platform for the static linking case.
19927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
19928         Included the new __parse_hwcap_and_convert_at_platform symbol in the
19929         ABI list for GLIBC 2.23.
19930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
19931         Likewise.
19932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
19933         Likewise.
19934
19935 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
19936
19937         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
19938         * configure: Regenerate.
19939         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
19940         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
19941
19942 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
19943
19944         * iconvdata/ibm930.c: Add comment explaining encoding uses.
19945         * iconvdata/ibm933.c: Likewise.
19946         * iconvdata/ibm935.c: Likewise.
19947         * iconvdata/ibm937.c: Likewise.
19948         * iconvdata/ibm939.c: Likewise.
19949
19950 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19951
19952         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
19953         pthread_join.
19954         * nptl/tst-cancel21.c (tf): Likewise.
19955
19956 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19957
19958         [BZ #19313]
19959         * bits/typesizes.h (__CPU_MASK_TYPE): New.
19960         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
19961         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
19962         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
19963         Likewise.
19964         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
19965         Likewise.
19966         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
19967         Likewise.
19968         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
19969         Likewise.
19970         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
19971         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
19972         unsigned long int with __CPU_MASK_TYPE.
19973
19974 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19975
19976         * sysdeps/aarch64/libm-test-ulps: Regenerated.
19977
19978 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
19979
19980         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
19981         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
19982         t512.x.
19983         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
19984
19985 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
19986
19987         [BZ #19214]
19988         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
19989         argument to return extended model.  Update family and model
19990         with extended family and model when family == 0x0f.
19991         (init_cpu_features): Updated.
19992
19993 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19994
19995         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
19996         signed off_t, so 32bit bigger than 2GiB values are fine actually.
19997
19998         * sysdeps/mach/hurd/mmap64.c: New file.
19999
20000 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20001
20002         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20003         rights for its main user thread in NEWTASK.
20004
20005 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20006
20007         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20008         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20009
20010 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20011
20012         [BZ #14259]
20013         * Makeconfig: Rename localedir to complocaledir.
20014         Rename inst_localedir to inst_complocaledir.
20015         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20016         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20017         * configure.ac: Use libc_cv_complocaledir.
20018         * configure: Regenerate.
20019         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20020         -DCOMPLOCALEDIR.
20021         * locale/findlocale.c: Use COMPLOCALEDIR.
20022         * locale/loadarchive.c: Likewise.
20023         * locale/programs/locale.c: Likewise.
20024         * locale/programs/localedef.c: Likewise.
20025         * locale/programs/locarchive.c: Likewise.
20026         * localedata/Makefile: Use inst_complocaledir.
20027         * sysdeps/gnu/configure: Regenerate.
20028         * sysdeps/hppa/configure: Regenerate.
20029         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20030         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20032         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20033         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20034         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20035         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20036
20037 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20038
20039         [BZ #19058]
20040         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20041         AS_NEEDED.
20042         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20043         workaround.
20044         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20045         libmvec-static-only-routines): Added new file.
20046         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20047
20048 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20049
20050         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20051         of interrupted RPC instead of restoring it.
20052
20053         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20054         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20055         libc_hidden_def.
20056         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20057         into initialized data instead of common. Define rtld_hidden_data_def.
20058         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20059         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20060         libc_hidden_def.
20061         (if_freenameindex): Add libc_hidden_weak.
20062         (if_nameindex): Add libc_hidden_weak.
20063         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20064         __open64.
20065         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20066         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20067         * sysdeps/mach/nanosleep.c: Include <time.h>
20068         (__nanosleep): Rename to __libc_nanosleep.
20069         (__nanosleep): Add weak_alias.
20070         (nanosleep): Update alias.
20071
20072 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20073
20074         * stdlib/strtod_nan.c: New file.
20075         * stdlib/strtod_nan_double.h: Likewise.
20076         * stdlib/strtod_nan_float.h: Likewise.
20077         * stdlib/strtod_nan_main.c: Likewise.
20078         * stdlib/strtod_nan_narrow.h: Likewise.
20079         * stdlib/strtod_nan_wide.h: Likewise.
20080         * stdlib/strtof_nan.c: Likewise.
20081         * stdlib/strtold_nan.c: Likewise.
20082         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20083         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20084         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20085         * wcsmbs/wcstod_nan.c: Likewise.
20086         * wcsmbs/wcstof_nan.c: Likewise.
20087         * wcsmbs/wcstold_nan.c: Likewise.
20088         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20089         strtold_nan.
20090         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20091         wcstof_nan.
20092         * include/stdlib.h (__strtof_nan): Declare and use
20093         libc_hidden_proto.
20094         (__strtod_nan): Likewise.
20095         (__strtold_nan): Likewise.
20096         (__wcstof_nan): Likewise.
20097         (__wcstod_nan): Likewise.
20098         (__wcstold_nan): Likewise.
20099         * include/wchar.h (____wcstoull_l_internal): Declare.
20100         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20101         (____strtoull_l_internal): Remove declaration.
20102         (STRTOF_NAN): Define macro.
20103         (SET_MANTISSA): Remove macro.
20104         (STRTOULL): Likewise.
20105         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20106         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20107         (STRTOF_NAN): Define macro.
20108         (SET_MANTISSA): Remove macro.
20109         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20110         (SET_MANTISSA): Remove macro.
20111         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20112         macro.
20113         (SET_MANTISSA): Remove macro.
20114         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20115         macro.
20116         (SET_MANTISSA): Remove macro.
20117         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20118         (SET_MANTISSA): Remove macro.
20119         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20120         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20121         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20122
20123         [BZ #19266]
20124         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20125         upper case and lower case letters inside NAN(), not using TOLOWER.
20126         * stdlib/tst-strtod-nan-locale-main.c: New file.
20127         * stdlib/tst-strtod-nan-locale.c: Likewise.
20128         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20129         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20130         Depend on $(gen-locales).
20131         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20132         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20133         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20134         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20135         Depend on $(gen-locales).
20136         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20137
20138 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20139
20140         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20141
20142         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20144         __finitel, __isinfl, and __isnanl.
20145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20146         Likewise.
20147         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20148         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20149         __finitel.
20150         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20151         Likewise.
20152         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20153
20154 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20155
20156         * malloc/memusage.c (me): Remove redundant getenv call.
20157
20158 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20159
20160         [BZ #19143]
20161         [BZ #19164]
20162         * nptl/check-cpuset.h: Remove.
20163         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20164         Remove CPU set size check.
20165         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20166         Likewise.
20167         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20168         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20169         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20170         (__pthread_setaffinity_new): Remove CPU set size check.
20171         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20172         (__kernel_cpumask_size): Remove.
20173         (__sched_setaffinity_new): Remove CPU set size check.
20174         * manual/threads.texi (Default Thread Attributes): Remove stale
20175         reference to check_cpuset_attr, determine_cpumask_size in comment.
20176         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20177         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20178         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20179         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20180         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20181         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20182         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20183         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20184         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20185         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20186         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20187         skeleton test file.
20188         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20189         tst-affinity-pid.
20190
20191 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20192
20193         * scripts/update-abilist.sh: New file.
20194         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20195         * Makerules (update-all-abi-%, update-all-abi)
20196         (subdir_update-all-abi): New targets.
20197         * elf/Makefile (update-all-abi): New target.
20198
20199 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20200
20201         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20202         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20203         (__libc_lock_define_initialized): Use it.
20204         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20205         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20206         * malloc/malloc.c (main_arena): Likewise.
20207         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20208         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20209
20210 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20211
20212         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20213         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20214         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20215         (PTRACE_O_MASK): Update value.
20216         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20217         New value in enum __ptrace_setoptions.
20218         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20219         (PTRACE_O_MASK): Update value.
20220         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20221         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20222         (PTRACE_O_MASK): Update value.
20223         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20224         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20225         (PTRACE_O_MASK): Update value.
20226         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20227         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20228         (PTRACE_O_MASK): Update value.
20229         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20230         New value in enum __ptrace_setoptions.
20231         (PTRACE_O_MASK): Update value.
20232         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20233         New value in enum __ptrace_setoptions.
20234         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20235         (PTRACE_O_MASK): Update value.
20236
20237         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20238         New macro.
20239         (PACKET_AUXDATA): Likewise.
20240         (PACKET_ORIGDEV): Likewise.
20241         (PACKET_VERSION): Likewise.
20242         (PACKET_HDRLEN): Likewise.
20243         (PACKET_RESERVE): Likewise.
20244         (PACKET_TX_RING): Likewise.
20245         (PACKET_LOSS): Likewise.
20246         (PACKET_VNET_HDR): Likewise.
20247         (PACKET_TX_TIMESTAMP): Likewise.
20248         (PACKET_TIMESTAMP): Likewise.
20249         (PACKET_FANOUT): Likewise.
20250         (PACKET_TX_HAS_OFF): Likewise.
20251         (PACKET_QDISC_BYPASS): Likewise.
20252         (PACKET_ROLLOVER_STATS): Likewise.
20253         (PACKET_FANOUT_DATA): Likewise.
20254         (PACKET_MR_UNICAST): Likewise.
20255
20256         [BZ #19242]
20257         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20258         (TOUPPER): Likewise.
20259         * stdlib/tst-strtol-locale-main.c: New file.
20260         * stdlib/tst-strtol-locale.c: Likewise.
20261         * stdlib/Makefile (tests): Add tst-strtol-locale.
20262         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20263         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20264         Depend on $(gen-locales).
20265         * wcsmbs/tst-wcstol-locale.c: New file.
20266         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20267         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20268         tr_TR.ISO-8859-9.
20269         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20270         Depend on $(gen-locales).
20271
20272 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20273
20274         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20275         __glibc_likely instead of __builtin_expect.  After falling back to
20276         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20277         system interface to register the code pages as occupied.
20278
20279 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20280
20281         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20282         [!ARM_MATH_PRIVATE_H].
20283         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20284         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20285         [!HPPA_MATH_PRIVATE_H].
20286         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20287         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20288         to [!I386_MATH_PRIVATE_H].
20289         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20290         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20291         Change guard to [!M68K_MATH_PRIVATE_H].
20292         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20293         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20294         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20295         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20296         macro.
20297         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20298         [!MIPS_MATH_PRIVATE_H].
20299         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20300         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20301         [!NIO2_MATH_PRIVATE_H].
20302         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20303         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20304         [!TILE_MATH_PRIVATE_H].
20305         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20306
20307         [BZ #15421]
20308         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
20309         initialize with 0 and define as weak alias of __signgam.
20310         * include/math.h [!_ISOMAC] (__signgam): Declare.
20311         * math/Makefile (libm-calls): Add w_lgamma_compat.
20312         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
20313         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
20314         test-signgam-ullong-init.
20315         (tests-static): Add test-signgam-uchar-static,
20316         test-signgam-uchar-init-static, test-signgam-uint-static,
20317         test-signgam-uint-init-static, test-signgam-ullong-static and
20318         test-signgam-ullong-init-static.
20319         (CFLAGS-test-signgam-uchar.c): New variable.
20320         (CFLAGS-test-signgam-uchar-init.c): Likewise.
20321         (CFLAGS-test-signgam-uchar-static.c): Likewise.
20322         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20323         (CFLAGS-test-signgam-uint.c): Likewise.
20324         (CFLAGS-test-signgam-uint-init.c): Likewise.
20325         (CFLAGS-test-signgam-uint-static.c): Likewise.
20326         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20327         (CFLAGS-test-signgam-ullong.c): Likewise.
20328         (CFLAGS-test-signgam-ullong-init.c): Likewise.
20329         (CFLAGS-test-signgam-ullong-static.c): Likewise.
20330         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20331         * math/Versions (libm): Add GLIBC_2.23.
20332         * math/lgamma-compat.h: New file.
20333         * math/test-signgam-main.c: Likewise.
20334         * math/test-signgam-uchar-init-static.c: Likewise.
20335         * math/test-signgam-uchar-init.c: Likewise.
20336         * math/test-signgam-uchar-static.c: Likewise.
20337         * math/test-signgam-uchar.c: Likewise.
20338         * math/test-signgam-uint-init-static.c: Likewise.
20339         * math/test-signgam-uint-init.c: Likewise.
20340         * math/test-signgam-uint-static.c: Likewise.
20341         * math/test-signgam-uint.c: Likewise.
20342         * math/test-signgam-ullong-init-static.c: Likewise.
20343         * math/test-signgam-ullong-init.c: Likewise.
20344         * math/test-signgam-ullong-static.c: Likewise.
20345         * math/test-signgam-ullong.c: Likewise.
20346         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
20347         wrapper of w_lgamma_main.c.
20348         * math/w_lgamma_compat.c: New file.
20349         * math/w_lgamma_compatf.c: Likewise.
20350         * math/w_lgamma_compatl.c: Likewise.
20351         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
20352         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20353         defining compatibility symbols.
20354         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
20355         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
20356         wrapper of w_lgammaf_main.c.
20357         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
20358         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20359         defining compatibility symbols.
20360         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
20361         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
20362         wrapper of w_lgammal_main.c.
20363         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
20364         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20365         defining compatibility symbols.
20366         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
20367         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
20368         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
20369         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
20370         <lgamma-compat.h>.
20371         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
20372         (__ieee754_gamma): Define as alias.
20373         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
20374         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
20375         <lgamma-compat.h>.
20376         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
20377         (__ieee754_gammaf): Define as alias.
20378         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
20379         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
20380         <lgamma-compat.h>.
20381         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
20382         (__ieee754_gammal): Define as alias.
20383         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
20384         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
20385         <math/w_lgamma_compat.c>.
20386         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
20387         Define as alias of __lgamma_compat and use in defining lgammal.
20388         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
20389         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
20390         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
20391         (USE_AS_COMPAT): New macro.
20392         (LGAMMA_OLD_VER): Undefine and redefine.
20393         (lgammal): Do not define here.
20394         (gammal): Only define here if [GAMMA_ALIAS].
20395         * conform/linknamespace.pl (@whitelist): Remove signgam.
20396         * sysdeps/nacl/libm.abilist: Update.
20397         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20398         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20399         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20400         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20401         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20402         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20403         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20404         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20405         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20406         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20407         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20408         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20410         Likewise.
20411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20412         Likewise.
20413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20414         Likewise.
20415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20416         Likewise.
20417         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20418         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20419         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20420         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20421         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20423         Likewise.
20424         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20425         Likewise.
20426         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20427         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20428         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20429
20430 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20431
20432         [BZ #16364]
20433         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
20434         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
20435
20436 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20437
20438         * sysdeps/s390/fpu/bits/mathinline.h:
20439         Use __asm__ [__volatile__] instead of asm [volatile].
20440         * sysdeps/s390/abort-instr.h: Likewise.
20441         * sysdeps/s390/atomic-machine.h: Likewise.
20442         * sysdeps/s390/bits/string.h: Likewise.
20443         * sysdeps/s390/dl-tls.h: Likewise.
20444         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20445         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20446         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20447         * sysdeps/s390/fpu/fesetround.c: Likewise.
20448         * sysdeps/s390/fpu/fpu_control.h: Likewise.
20449         * sysdeps/s390/fpu/s_fma.c: Likewise.
20450         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
20451         * sysdeps/s390/memusage.h: Likewise.
20452         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
20453         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
20454         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
20455         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
20456         * sysdeps/s390/nptl/tls.h: Likewise.
20457         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
20458         * sysdeps/s390/s390-32/backtrace.c: Likewise.
20459         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20460         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
20461         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20462         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20463         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
20464         * sysdeps/s390/s390-64/backtrace.c: Likewise.
20465         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20466         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
20467         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
20468         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20469         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20470         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
20471         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20472         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20473         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
20474         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
20475         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
20476         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20477         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
20478         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20479         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
20480
20481 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20482             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20483
20484         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
20485         Add lwarx hint, and use macro for acquire instruction.
20486         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
20487         Likewise.
20488         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
20489         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
20490         update to use new atomic macros.
20491
20492 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20493
20494         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20495         (__lll_trylock_elision): Fix setting of adapt_count.
20496         * sysdeps/unix/sysv/linux/powerpc/htm.h
20497         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
20498         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
20499         (_ABORT_SYSCALL): Renumber, and clarify definition.
20500         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
20501
20502 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20503
20504         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
20505         after system headers to prevent MIN/MAX redefinition.  Define
20506         HAVE_ALLOCA to preserve builtin alloca usage.
20507
20508 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20509
20510         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
20511         static and don't set or restore rounding.
20512         (__cos)[IN_SINCOS]: Likewise.
20513         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
20514         (__sincos): Set and restore rounding mode.  Remove check for infinite
20515         or NaN input.
20516
20517         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
20518
20519         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
20520         as used.
20521
20522 2015-11-16  Florian Weimer  <fweimer@redhat.com>
20523
20524         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
20525
20526 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
20527
20528         * config.make.in (have-glob-dat-reloc): New.
20529         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
20530         target supports GLOB_DAT relocaton. AC_SUBST.
20531         * configure: Regenerated.
20532         * elf/Makefile (tests): Add tst-prelink.
20533         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20534         (tst-prelink-ENV): New.
20535         ($(objpfx)tst-prelink-conflict.out): Likewise.
20536         ($(objpfx)tst-prelink-cmp.out): Likewise.
20537         * sysdeps/x86/tst-prelink.c: Moved to ...
20538         * elf/tst-prelink.c: Here.
20539         * sysdeps/x86/tst-prelink.exp: Moved to ...
20540         * elf/tst-prelink.exp: Here.
20541         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
20542         (tst-prelink-ENV): Removed.
20543         ($(objpfx)tst-prelink-conflict.out): Likewise.
20544         ($(objpfx)tst-prelink-cmp.out): Likewise.
20545         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
20546
20547 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
20548
20549         [BZ #14551]
20550         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
20551         (__mpn_construct_long_double): If high part overflows to infinity,
20552         set errno and recompute overflowed result of the correct sign.
20553         * sysdeps/ieee754/ldbl-128ibm/Makefile
20554         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
20555         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
20556         $(libm).
20557         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
20558
20559 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
20560
20561         [BZ #15479]
20562         [BZ #19238]
20563         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
20564         floating-point state after first operation on input.  Restore full
20565         state rather than just rounding mode.
20566         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
20567         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
20568         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
20569
20570         [BZ #19235]
20571         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
20572         add 0.5 to integer arguments.
20573         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
20574         Likewise.
20575         (.LC2): New object.
20576
20577 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
20578
20579         * scripts/pylintrc (reports): Set to no.
20580
20581 2015-11-10  Roland McGrath  <roland@hack.frob.com>
20582
20583         * elf/dl-load.c (open_verify): Take new argument FD.
20584         Skip __open call if passed FD is not -1.
20585         (_dl_map_object, open_path): Update callers.
20586         * elf/dl-sysdep-open.h: New file.
20587         * elf/dl-load.c: Include it.
20588         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
20589         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
20590         * sysdeps/nacl/dl-sysdep-open.h: New file.
20591         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
20592         from libc to rtld.
20593
20594 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20595
20596         [BZ #19228]
20597         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
20598         and restore full floating-point state.
20599         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
20600         Likewise.
20601         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
20602         Likewise.
20603         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
20604         Likewise.
20605         * math/test-nearbyint-except-2.c: New file.
20606         * math/Makefile (tests): Add test-nearbyint-except-2.
20607
20608 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
20609
20610         [BZ #19178]
20611         * sysdeps/x86/Makefile (tests): Add tst-prelink.
20612         (tst-prelink-ENV): New.
20613         ($(objpfx)tst-prelink-conflict.out): Likewise.
20614         ($(objpfx)tst-prelink-cmp.out): Likewise.
20615         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
20616         * sysdeps/x86/tst-prelink.c: New file.
20617         * sysdeps/x86/tst-prelink.exp: Likewise.
20618
20619 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
20620
20621         * math/auto-libm-test-in: Add another test of pow.
20622         * math/auto-libm-test-out: Regenerated.
20623         * math/libm-test.inc (pow_test_data): Add another test.
20624
20625 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20626
20627         [BZ #19219]
20628         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
20629         weak_alias to nearbyintl.
20630
20631 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20632
20633         * sysdeps/aarch64/bits/string.h: New file.
20634         (_STRING_ARCH_unaligned): Define.
20635
20636 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
20637
20638         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
20639         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
20640         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
20641         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
20642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
20643
20644 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
20645
20646         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
20647         for original name of the DSO.  Add it to the name list of the DSO
20648         if it is actually given.
20649         (_dl_map_object): Keep track of whether an audit module rewrote
20650         the file name.  If yes, pass the original name to
20651         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
20652         debugging is enabled, log the change of the file name.
20653         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
20654         _dl_map_object_from_fd.
20655         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
20656         * elf/tst-audit11.c: New file
20657         * elf/tst-auditmod11.c: New file.
20658         * elf/tst-audit11mod1.c: New file.
20659         * elf/tst-audit11mod2.c: New file.
20660         * elf/tst-audit11mod2.map: New file.
20661         * elf/tst-audit12.c: New file
20662         * elf/tst-auditmod12.c: New file.
20663         * elf/tst-audit12mod1.c: New file.
20664         * elf/tst-audit12mod2.c: New file.
20665         * elf/tst-audit12mod2.map: New file.
20666         * elf/tst-audit12mod3.c: New file.
20667
20668 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20669
20670         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
20671         Don't create weak aliases,
20672         because versioned symbols are created later.
20673         * sysdeps/s390/s390-32/setjmp.S
20674         (setjmp, _setjmp): Remove weak and rename to an unique name
20675         in SHARED case due to existing versioned symbols.
20676         * sysdeps/s390/s390-64/setjmp.S: Likewise.
20677         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
20678         (getcontext): Create weak alias only in non SHARED case.
20679         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20680
20681 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
20682
20683         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
20684         (__ASSUME_*_SYSCALL) Define new macros.
20685         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
20686         Remove socketcall syscalls.
20687         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
20688         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
20689         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
20690         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
20691         * sysdeps/unix/sysv/linux/send.c (__libc_send):
20692         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
20693
20694 2015-11-09  Florian Weimer  <fweimer@redhat.com>
20695
20696         [BZ #12926]
20697         Terminate process on invalid netlink response.
20698         * sysdeps/unix/sysv/linux/netlinkaccess.h
20699         (__netlink_assert_response): Declare.
20700         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
20701         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
20702         (sysdep_routines): Add netlink_assert_response.
20703         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
20704         __netlink_assert_response.
20705         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
20706         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
20707         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
20708         __netlink_assert_response.
20709
20710 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20711
20712         [BZ #19178]
20713         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
20714         (RTYPE_CLASS_PLT): Likewise.
20715         (RTYPE_CLASS_COPY): Likewise.
20716         (RTYPE_CLASS_TLS): Likewise.
20717         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
20718         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
20719         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
20720         DL_DEBUG_PRELINK.
20721
20722 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
20723
20724         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
20725         calls with argument -0.5.
20726         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
20727
20728         * configure.ac (libc_cv_z_nodelete): Remove configure test.
20729         (libc_cv_z_nodlopen): Likewise.
20730         (libc_cv_z_initfirst): Likewise.
20731         * configure: Regenerated.
20732
20733 2015-11-06  Florian Weimer  <fweimer@redhat.com>
20734
20735         Simplify abilist format to be line-based.
20736         * scripts/abilist.awk: Collect descriptors in the descs variable.
20737         (emit): Write descs variable and sort it
20738         externally, with sort.
20739         * sysdeps/**/*.abilist: Convert to new format.
20740
20741 2015-11-06  Mark Wielaard  <mjw@redhat.com>
20742
20743         [BZ #11460]
20744         * io/Makefile (routines): Add fts64.
20745         (tests): Add tst-fts and tst-fts-lfs.
20746         (CFLAGS-fts64.c): New.
20747         * io/Versions (GLIBC_2.23): New.
20748         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
20749         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
20750         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
20751         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
20752         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
20753         (FTSENT64): Likewise.
20754         (fts64_children): Likewise.
20755         (fts64_close): Likewise.
20756         (fts64_open): Likewise.
20757         (fts64_read): Likewise.
20758         (fts64_set): Likewise.
20759         * io/fts64.c: New file.
20760         * io/tst-fts.c: New test.
20761         * io/tst-fts-lfs.c: Likewise.
20762         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
20763         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
20764         fts64_set.
20765         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20766         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20767         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20768         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20769         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20770         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20771         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20772         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20773         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20774         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20775         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20776         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20777         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20779         Likewise.
20780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20781         Likewise.
20782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
20784         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20785         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20786         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20787         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20788         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20789         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20790         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20791         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20792         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20793         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20794         * sysdeps/wordsize-64/fts.c: New file.
20795         * sysdeps/wordsize-64/fts64.c: Likewise.
20796         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
20797         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
20798         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
20799         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
20800
20801 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20802
20803         * math/libm-test.inc (NON_FINITE): New macro.
20804         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
20805         * math/gen-libm-test.pl (show_exceptions): Add argument
20806         $non_finite.
20807         (parse_args): Update call to show_exceptions.
20808         * math/test-math-finite.h: New file.
20809         * math/test-math-no-finite.h: Likewise.
20810         * math/test-double-finite.c: Likewise.
20811         * math/test-float-finite.c: Likewise.
20812         * math/test-ldouble-finite.c: Likewise.
20813         * math/test-double.c: Include "test-math-no-finite.h".
20814         * math/test-float.c: Include "test-math-no-finite.h".
20815         * math/test-ldouble.c: Include "test-math-no-finite.h".
20816         * math/test-math-inline.h (TEST_FINITE): New macro.
20817         * math/test-math-vector.h (TEST_FINITE): Likewise.
20818         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
20819         (libm-tests): Add test-float-finite and test-double-finite.
20820         ($(objpfx)test-float-finite.o): New dependency on
20821         $(objpfx)libm-test.stmp.
20822         ($(objpfx)test-double-finite.o): Likewise.
20823         ($(objpfx)test-ldouble-finite.o): Likewise.
20824         (libm-test-no-inline-cflags): New variable.
20825         (libm-test-finite-cflags): Likewise.
20826         (CFLAGS-test-float-finite.c): Likewise.
20827         (CFLAGS-test-double-finite.c): Likewise.
20828         (CFLAGS-test-ldouble-finite.c): Likewise.
20829         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
20830         (CFLAGS-test-double.c): Likewise.
20831         (CFLAGS-test-ldouble.c): Likewise.
20832
20833 2015-11-05  Roland McGrath  <roland@hack.frob.com>
20834
20835         * io/fcntl.c (__fcntl): Add ... to prototype.
20836         * misc/ioctl.c (__ioctl): Likewise.
20837         * misc/syscall.c (syscall): Likewise.
20838
20839 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
20840
20841         * scripts/list-fixed-bugs.py: New file.
20842
20843         [BZ #19213]
20844         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
20845         returned for argument 1.
20846         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
20847         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
20848         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
20849         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
20850         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
20851         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
20852
20853         [BZ #19211]
20854         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
20855         __USE_XOPEN], not if [!__USE_ISOC99].
20856         (lgammaf): Likewise.
20857         (lgammal): Likewise.
20858         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
20859         (gammaf): Likewise.
20860         (gammal): Likewise.
20861         * math/test-signgam-finite-c11.c: New file.
20862         * math/test-signgam-finite-c99.c: Likewise.
20863         * math/test-signgam-finite.c: Likewise.
20864         * math/Makefile (tests): Add test-signgam-finite,
20865         test-signgam-finite-c99 and test-signgam-finite-c11.
20866         (CFLAGS-test-signgam-finite.c): New variable.
20867         (CFLAGS-test-signgam-finite-c99.c): Likewise.
20868         (CFLAGS-test-signgam-finite-c11.c): Likewise.
20869
20870         [BZ #19212]
20871         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
20872         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
20873         500].
20874         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
20875         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
20876         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
20877         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
20878         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
20879         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
20880         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
20881         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
20882         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
20883         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
20884
20885         [BZ #19209]
20886         * math/bits/math-finite.h (ldexp): Remove declaration.
20887         (ldexpf): Likewise.
20888         (ldexpl): Likewise.
20889
20890         [BZ #19205]
20891         * math/bits/math-finite.h (acosf): Condition declaration on
20892         [__USE_ISOC99].
20893         (acosl): Likewise.
20894         (acoshf): Likewise.
20895         (acoshl): Likewise.
20896         (asinf): Likewise.
20897         (asinl): Likewise.
20898         (atan2f): Likewise.
20899         (atan2l): Likewise.
20900         (atanhf): Likewise.
20901         (atanhl): Likewise.
20902         (coshf): Likewise.
20903         (coshl): Likewise.
20904         (expf): Likewise.
20905         (expl): Likewise.
20906         (fmodf): Likewise.
20907         (fmodl): Likewise.
20908         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
20909         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
20910         (j0l): Likewise.
20911         (y0f): Likewise.
20912         (y0l): Likewise.
20913         (j1f): Likewise.
20914         (j1l): Likewise.
20915         (y1f): Likewise.
20916         (y1l): Likewise.
20917         (jnf): Likewise.
20918         (jnl): Likewise.
20919         (ynf): Likewise.
20920         (ynl): Likewise.
20921         (lgammaf_r): Condition declaration on [__USE_ISOC99].
20922         (lgammal_r): Likewise.
20923         (__lgamma_r_finite): New declaration.
20924         (__lgammaf_r_finite): Likewise.
20925         (__lgammal_r_finite): Likewise.
20926         (lgamma): Use __lgamma_r_finite.
20927         (lgammaf): Condition definition on [__USE_ISOC99].  Use
20928         __lgammaf_r_finite.
20929         (lgammal): Condition definition on [__USE_ISOC99].  Use
20930         __lgammal_r_finite.
20931         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
20932         __lgamma_r_finite.
20933         (gammaf): Condition definition on [__USE_ISOC99].  Use
20934         __lgammaf_r_finite.
20935         (gammal): Condition definition on [__USE_ISOC99].  Use
20936         __lgammal_r_finite.
20937         (logf): Condition declaration on [__USE_ISOC99].
20938         (logl): Likewise.
20939         (log10f): Likewise.
20940         (log10l): Likewise.
20941         (ldexpf): Likewise.
20942         (ldexpl): Likewise.
20943         (powf): Likewise.
20944         (powl): Likewise.
20945         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
20946         __USE_ISOC99].
20947         (remainderf): Condition declaration on [__USE_ISOC99].
20948         (remainderl): Likewise.
20949         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
20950         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
20951         (scalbl): Likewise.
20952         (sinhf): Condition declaration on [__USE_ISOC99].
20953         (sinhl): Likewise.
20954         (sqrtf): Likewise.
20955         (sqrtl): Likewise.
20956
20957 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
20958
20959         * sysdeps/arm/atomic-machine.h
20960         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
20961         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
20962         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
20963         Remove conditional code.
20964         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
20965         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
20966         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
20967         Change conditional to [__ASSEMBLER__].
20968         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
20969         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
20970         [!__ASSEMBLER__].
20971         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
20972         code.
20973         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
20974         conditional macro definitions.
20975         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
20976         (__arch_compare_and_exchange_val_16_acq): Likewise.
20977         (__arch_compare_and_exchange_val_32_acq): Likewise.
20978         (atomic_exchange_and_add): Likewise.
20979         (atomic_add): Likewise.
20980         (atomic_add_negative): Likewise.
20981         (atomic_add_zero): Likewise.
20982         (atomic_bit_set): Likewise.
20983         (atomic_bit_test_set): Likewise.
20984         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
20985         code unconditional.
20986         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
20987
20988         * math/test-math-errno.h: New file.
20989         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
20990         empty.
20991         (TEST_ERRNO): New macro.
20992         (TEST_EXCEPTIONS): Likewise.
20993         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
20994         (TEST_EXCEPTIONS): Likewise.
20995         * math/test-math-vector.h (TEST_ERRNO): Likewise.
20996         * math/test-double.c: Include "test-math-errno.h".
20997         * math/test-float.c: Likewise.
20998         * math/test-ldouble.c: Likewise.
20999         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21000         code unconditional.
21001         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21002         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21003         unconditional.
21004         (test_errno): Only run code if TEST_ERRNO.
21005         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21006
21007 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21008
21009         * nptl/tst-once5.cc: Remove attribution.
21010
21011 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21012
21013         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21014         sqrt, tan, tanh, y0, y1 and yn.
21015         * math/auto-libm-test-out: Regenerated.
21016         * math/libm-test.inc (scalb_test_data): Add more tests.
21017         (scalbn_test_data): Likewise.
21018         (scalbln_test_data): Likewise.
21019         (signbit_test_data): Likewise.
21020         (sin_test_data): Likewise.
21021         (sincos_test_data): Likewise.
21022         (sinh_test_data): Likewise.
21023         (sqrt_test_data): Likewise.
21024         (tan_test_data): Likewise.
21025         (tanh_test_data): Likewise.
21026         (tgamma_test_data): Likewise.
21027         (y0_test_data): Likewise.
21028         (y1_test_data): Likewise.
21029         (yn_test_data): Likewise.
21030         (significand_test_data): Likewise.
21031         * sysdeps/i386/fpu/libm-test-ulps: Update.
21032
21033 2015-11-03  David Kastrup  <dak@gnu.org>
21034
21035         [BZ #18604]
21036         * assert/assert.h (assert): Don't macro-expand failed assertion
21037         expression in error message.
21038         * malloc/malloc.c (assert): Likewise.
21039
21040 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21041
21042         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21043         test.
21044         * configure: Regenerated.
21045
21046 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21047
21048         * math/libm-test.inc (modf_test_data): Add more tests.
21049         (nearbyint_test_data): Likewise.
21050         (nextafter_test_data): Likewise.
21051         (nexttoward_test_data): Likewise.
21052         (pow_test_data): Likewise.
21053         (remainder_test_data): Likewise.
21054         (remquo_test_data): Likewise.
21055         (rint_test_data): Likewise.
21056
21057         [BZ #19201]
21058         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21059         Check for zero remainder in case of large exponents and ensure
21060         correct sign of result in that case.
21061         * math/libm-test.inc (remainder_test_data): Add more tests.
21062
21063         [BZ #6799]
21064         * math/s_nextafter.c: Include <errno.h>.
21065         (__nextafter): Set errno on overflow and underflow.
21066         * math/s_nexttowardf.c: Include <errno.h>.
21067         (__nexttowardf): Set errno on overflow and underflow.
21068         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21069         (__nextafterl): Set errno on overflow and underflow.
21070         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21071         (__nexttoward): Set errno on overflow and underflow.
21072         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21073         (__nexttowardf): Set errno on overflow and underflow.
21074         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21075         (__nextafterf): Set errno on overflow and underflow.
21076         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21077         (__nextafterl): Set errno on overflow and underflow.
21078         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21079         (__nexttoward): Set errno on overflow and underflow.
21080         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21081         (__nexttowardf): Set errno on overflow and underflow.
21082         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21083         (__nextafterl): Set errno on overflow and underflow.
21084         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21085         (__nexttoward): Set errno on overflow and underflow.
21086         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21087         (__nexttowardf): Set errno on overflow and underflow.
21088         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21089         (__nexttoward): Set errno on overflow and underflow.
21090         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21091         (__nexttowardf): Set errno on overflow and underflow.
21092         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21093         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21094         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21095         (__nextafterl): Set errno on overflow and underflow.
21096         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21097         setting to be missing on overflow.  Add more tests.
21098         (nexttoward_test_data): Likewise.
21099
21100         * configure.ac (libc_cv_initfini_array): Remove configure test.
21101         * configure: Regenerated.
21102
21103 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21104
21105         [BZ #19189]
21106         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21107         non-finite argument handle arguments with negative sign.
21108
21109         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21110         result from infinite argument.
21111         (j1_test_data): Likewise.
21112         (jn_test_data): Likewise.
21113         (y0_test_data): Likewise.
21114         (y1_test_data): Likewise.
21115         (yn_test_data): Likewise.
21116
21117         [BZ #16171]
21118         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21119         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21120         * math/w_remainderf.c (dremf): Define as weak alias of
21121         __remainderf.
21122         * math/w_remainderl.c (dreml): Define as weak alias of
21123         __remainderl.
21124         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21125         __remainder.
21126         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21127         __remainderf.
21128         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21129         __remainderl.
21130         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21131         weak alias of remainderl.
21132         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21133         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21134         alias of __remainder.
21135         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21136         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21137         strong alias of __remainderl.
21138         (dreml): Use long_double_symbol.
21139         * math/Makefile (libm-calls): Remove w_drem.
21140         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21141         (CFLAGS-nldbl-drem.c): Remove variable.
21142         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21143         * math/w_drem.c: Remove file.
21144         * math/w_dremf.c: Likewise.
21145         * math/w_dreml.c: Likewise.
21146         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21147         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21148         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21149
21150         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21151         * sysdeps/i386/configure: Regenerated.
21152         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21153         * sysdeps/x86_64/configure: Regenerated.
21154
21155         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21156         test.
21157         (libc_cv_visibility_attribute): Likewise.
21158         (libc_cv_protected_data): Test unconditionally.
21159         (libc_cv_broken_visibility_attribute): Remove configure test.
21160         (libc_cv_have_sdata_section): Test unconditionally.
21161         * configure: Regenerated.
21162
21163         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21164         * include/scratch_buffer.h: Include <stddef.h> instead of
21165         <libc-internal.h>.
21166         (struct scratch_buffer): Use max_align_t instead of
21167         libc_max_align_t.
21168
21169 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21170
21171         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21172         instead of extend_alloca.  Change control flow to avoid a goto.
21173         Remove assert which is trivially always true.
21174
21175 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21176
21177         [BZ #16068]
21178         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21179         (FE_ALL_EXCEPT_X86): New macro.
21180         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21181         FE_ALL_EXCEPT.  Ensure precision control is included in
21182         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21183         handle "denormal operand exception" and clear FZ and DAZ bits.
21184         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21185         (FE_ALL_EXCEPT_X86): New macro.
21186         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21187         FE_ALL_EXCEPT.  Ensure precision control is included in
21188         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21189         handle "denormal operand exception" and clear FZ and DAZ bits.
21190         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21191         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21192         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21193         test-fenv-x87 and test-fenv-sse-2.
21194         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21195
21196         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21197         * math/test-double.h (BUILD_COMPLEX): New macro.
21198         * math/test-float.h (BUILD_COMPLEX): Likewise.
21199         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21200
21201         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21202         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21203         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21204         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21205         instead of DBL_DENORM_MIN in comment.
21206         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21207         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21208         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21209         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21210         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21211         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21212
21213 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21214
21215         [BZ #19048]
21216         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21217         attached_threads member.
21218         (main_arena): Initialize attached_threads.
21219         * malloc/arena.c (list_lock): Update comment.
21220         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21221         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21222         (deattach_arena): New function.
21223         (_int_new_arena): Initialize arena reference count and deattach
21224         replaced arena.
21225         (get_free_list, reused_arena): Update reference count and deattach
21226         replaced arena.
21227         (arena_thread_freeres): Update arena reference count and only put
21228         unreferenced arenas on the free list.
21229
21230 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21231
21232         [BZ #19181]
21233         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21234         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21235         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21236         * math/test-fenv-clear-main.c: New file.
21237         * math/test-fenv-clear.c: Likewise.
21238         * math/Makefile (tests): Add test-fenv-clear.
21239         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21240         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21241         test-fenv-clear-sse.
21242         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21243
21244         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21245         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21246         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21247
21248 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21249
21250         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21251         static libc.
21252
21253 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21254
21255         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21256         test.
21257         * sysdeps/i386/configure: Regenerated.
21258         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21259         test.
21260         * sysdeps/x86_64/configure: Regenerated.
21261         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21262         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21263         memset-avx2 unconditionally instead of conditionally on
21264         [$(config-cflags-avx2) = yes].
21265         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21266         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21267         unconditional.
21268         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21269         * sysdeps/x86_64/multiarch/memset_chk.S
21270         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21271         to [IS_IN (libc) && SHARED].
21272
21273 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21274
21275         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21276         configure test.
21277         * sysdeps/arm/configure: Regenerated.
21278         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21279         Define variable if not already defined.
21280
21281         [BZ #17404]
21282         * sysdeps/mips/atomic-machine.h
21283         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21284         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21285         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21286
21287         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21288         unconditional.
21289         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21290         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21291         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21292         unconditional.
21293         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21294         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21295         unconditional.
21296         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21297         * stdlib/setenv.c
21298         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21299         code unconditional.
21300         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21301         Remove conditional code.
21302         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21303         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21304         unconditional.
21305         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21306         code.
21307         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21308         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
21309         unconditional.
21310         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21311         code.
21312         * sysdeps/ieee754/ldbl-128/k_tanl.c
21313         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21314         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21315         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
21316         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21317         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21318         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
21319         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
21320         unconditional.
21321         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21322         code.
21323         * sysdeps/ieee754/ldbl-96/k_tanl.c
21324         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21325         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21326
21327         * nptl/tst-initializers1-c11.c: New file.
21328         * nptl/tst-initializers1-gnu11.c: Likewise.
21329         * nptl/Makefile (tests): Add these new tests.
21330         (CFLAGS-tst-initializers1-c11.c): New variable.
21331         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21332
21333         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
21334         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
21335         instead of -std=gnu99.
21336         * configure.ac (systemtap): Test with -std=gnu11 instead of
21337         -std=gnu99.
21338         * configure: Regenerated.
21339         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
21340         in compilation command in comment.
21341
21342         * sysdeps/nptl/configure.ac: Remove file.
21343         * sysdeps/nptl/configure: Remove generated file.
21344         * configure.ac (libc_cv_forced_unwind): Do not substitute.
21345         * configure: Regenerated.
21346         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
21347         * config.make.in (have-forced-unwind): Remove variable.
21348         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21349         unconditional.
21350         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
21351         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
21352         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
21353         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
21354         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21355         unconditional.
21356
21357 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21358
21359         [BZ #19174]
21360         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
21361         .skip_lock_out_of_tbegin_retries.
21362         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
21363         (__lll_lock_elision): Likewise, and respect a value of
21364         try_tbegin <= 0.
21365
21366 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21367
21368         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
21369         statement.
21370
21371 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21372
21373         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
21374         variable.
21375         (test-xfail-ISO11/stdalign.h/conform): Likewise.
21376         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
21377
21378         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
21379         of -std=c1x -D_ISOC11_SOURCE.
21380
21381         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
21382         * configure: Regenerated.
21383         * manual/install.texi (Tools for Compilation): Document
21384         requirement for GCC 4.7 or later.
21385         * INSTALL: Regenerated.
21386
21387 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
21388
21389         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
21390         on CNT to a conditional jump to 'puntdata'.
21391
21392 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21393
21394         * configure.ac (libc_cv_gcc___thread): Remove configure test.
21395         (libc_cv_gcc_tls_model_attr): Likewise.
21396         * configure: Regenerated.
21397
21398         * configure.ac (libc_cv_need_minus_P): Remove configure test.
21399         * configure: Regenerated.
21400         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
21401
21402 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
21403
21404         * configure.ac (old_glibc_headers): Remove configure test.
21405         * configure: Regenerated.
21406         * config.make.in (old-glibc-headers): Remove variable.
21407         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
21408         (install): Remove dependency on remove-old-headers.
21409         (headers2_0): Remove variable.
21410         (remove-old-headers): Remove rule.
21411
21412         * configure.ac (libc_cv_dot_text): Remove configure test.
21413         (libc_cv_asm_set_directive): Use .text instead of
21414         ${libc_cv_dot_text} in configure test.
21415         * configure: Regenerated.
21416
21417 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21418
21419         [BZ #19168]
21420         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
21421
21422 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21423
21424         * configure.ac (CXX): Clear the variable if the C++ toolchain does
21425         not support static linking.
21426         * configure: Regenerate.
21427
21428 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
21429
21430         * math/libm-test.inc (check_float_internal): Do not special-case
21431         errors up to 0.5 ulp.
21432
21433         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
21434         log2.
21435         * math/auto-libm-test-out: Regenerated.
21436         * math/libm-test.inc (MAX_EXP): New macro.
21437         (ilogb_test_data): Add more tests.
21438         (isfinite_test_data): Likewise.
21439         (isgreater_test_data): Likewise.
21440         (isgreaterequal_test_data): Likewise.
21441         (isinf_test_data): Likewise.
21442         (isless_test_data): Likewise.
21443         (islessequal_test_data): Likewise.
21444         (islessgreater_test_data): Likewise.
21445         (isnan_test_data): Likewise.
21446         (isnormal_test_data): Likewise.
21447         (issignaling_test_data): Likewise.
21448         (isunordered_test_data): Likewise.
21449         (j0_test_data): Likewise.
21450         (j1_test_data): Likewise.
21451         (jn_test_data): Likewise.
21452         (lgamma_test_data): Likewise.
21453         (log_test_data): Likewise.
21454         (log10_test_data): Likewise.
21455         (log1p_test_data): Likewise.
21456         (log2_test_data): Likewise.
21457         (logb_test_data): Likewise.
21458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21459
21460         [BZ #18611]
21461         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
21462         avoid excess range and precision on underflow.
21463         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21464         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
21465         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21466         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
21467         underflow.
21468         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21469         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21470         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21471         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21472         * math/auto-libm-test-in: Do not allow missing errno setting for
21473         tests of j1 and jn.
21474         * math/auto-libm-test-out: Regenerated.
21475
21476 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
21477
21478         [BZ #15491]
21479         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
21480         floating-point environment instead of clearing all exceptions.
21481         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
21482         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
21483         merging in "invalid" exceptions from frndint.
21484         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
21485         * math/test-nearbyint-except.c: New file.
21486         * math/Makefile (tests): Add test-nearbyint-except.
21487
21488 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
21489
21490         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
21491
21492         * sysdeps/tile/libm-test-ulps: Regenerated.
21493
21494 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21495
21496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
21497         (__NR_sync_file_range2): Assume it is always defined.
21498         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
21499         (__NR_sync_file_range): Assume it is always defined.
21500
21501 2015-10-22  Andreas Schwab  <schwab@suse.de>
21502
21503         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
21504         INTERNAL_SYSCALL_ERRNO.
21505         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21506         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
21507         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21508         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
21509         Likewise.
21510         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21511
21512 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21513
21514         * io/tst-fcntl.c (fd): New static variable.
21515         (do_prepare): Open temporary file here....
21516         (do_test): ...not here.
21517
21518         * io/ftwtest-sh: Also trap on exit to remove temporary files.
21519
21520 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21521
21522         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
21523         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21524         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21525         Moved before "#ifdef __ASSEMBLER__".
21526
21527 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21528
21529         [BZ #19156]
21530         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
21531         arguments very close to 0.
21532
21533 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
21534
21535         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
21536         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
21537
21538 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
21539
21540         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
21541         New.  Defined for GCC 5 and above when not compiling for
21542         profiling.
21543         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
21544
21545         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
21546         Renamed to ...
21547         (CFLAGS-epoll_pwait.o): This.
21548         (CFLAGS-mmap.c): Renamed to ...
21549         (CFLAGS-mmap.o): This.
21550         (CFLAGS-mmap64.c): Renamed to ...
21551         (CFLAGS-mmap64.o): This.
21552         (CFLAGS-epoll_pwait.os): New.
21553         (CFLAGS-mmap.os): Likewise.
21554         (CFLAGS-mmap64.os): Likewise.
21555         (CFLAGS-semtimedop.os): Likewise.
21556         (CFLAGS-semtimedop.c): Renamed to ...
21557         (CFLAGS-semtimedop.o): This.
21558
21559 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21560
21561         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
21562         warning message.
21563
21564 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21565
21566         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
21567         * Makefile ($(objpfx)c++-types-check.out): Filter out
21568         $(+gccwarn-c) instead of -Wstrict-prototypes.
21569
21570         * io/fts.c (fts_open): Convert to prototype-style function
21571         definition.
21572         * malloc/mcheck.c (mcheck): Likewise.
21573         (mcheck_pedantic): Likewise.
21574         * posix/regexec.c (re_search_2_stub): Likewise.  Use
21575         internal_function.
21576         (re_search_internal): Likewise.
21577         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
21578         prototype-style function definition.
21579         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21580         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
21581         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
21582         (xdr_utmpptr): Likewise.
21583         (xdr_utmparr): Likewise.
21584         (xdr_utmpidle): Likewise.
21585         (xdr_utmpidleptr): Likewise.
21586         (xdr_utmpidlearr): Likewise.
21587
21588         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
21589         log, log10 and log2.
21590         * math/auto-libm-test-out: Regenerated.
21591         * math/libm-test.inc (fmod_test_data): Add more tests.
21592         (fpclassify_test_data): Likewise.
21593         (frexp_test_data): Likewise.
21594         (hypot_test_data): Likewise.
21595         (ilogb_test_data): Likewise.
21596
21597 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
21598
21599         * debug/fortify_fail.c (__fortify_fail): Convert to
21600         prototype-style function definition.  Use internal_function.
21601         * libio/genops.c (save_for_backup): Convert to prototype-style
21602         function definition.
21603         * libio/wgenops.c (save_for_wbackup): Likewise.
21604         * login/grantpt.c (grantpt): Likewise.
21605         * login/ptsname.c (ptsname): Likewise.
21606         (__ptsname_r): Likewise.
21607         * login/unlockpt.c (unlockpt): Likewise.
21608         * mach/msgserver.c (__mach_msg_server): Likewise.
21609         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
21610         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
21611         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
21612         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
21613         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
21614         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
21615         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
21616         Likewise.
21617         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
21618         internal_function.
21619         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
21620         prototype-style function definition.
21621         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
21622         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
21623         (__pthread_create_2_0): Likewise.
21624         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
21625         * nptl/register-atfork.c (__register_atfork): Likewise.
21626         * posix/glob.c (glob): Likewise.
21627         * posix/regcomp.c (re_comp): Likewise.
21628         * posix/regexec.c (re_exec): Likewise.
21629         * stdlib/add_n.c [__STDC__]: Make code unconditional.
21630         [!__STDC__]: Remove conditional code.
21631         * stdlib/cmp.c [__STDC__]: Make code unconditional.
21632         [!__STDC__]: Remove conditional code.
21633         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
21634         [!__STDC__]: Remove conditional code.
21635         * stdlib/divrem.c [__STDC__]: Make code unconditional.
21636         [!__STDC__]: Remove conditional code.
21637         * stdlib/lshift.c [__STDC__]: Make code unconditional.
21638         [!__STDC__]: Remove conditional code.
21639         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
21640         [!__STDC__]: Remove conditional code.
21641         * stdlib/mul.c [__STDC__]: Make code unconditional.
21642         [!__STDC__]: Remove conditional code.
21643         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
21644         [!__STDC__]: Remove conditional code.
21645         * stdlib/rshift.c [__STDC__]: Make code unconditional.
21646         [!__STDC__]: Remove conditional code.
21647         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
21648         function definition.
21649         (STRTOF): Likewise.
21650         * stdlib/strtod_l.c (__STRTOF): Likewise.
21651         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
21652         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
21653         (__strtol_l): Likewise.
21654         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
21655         [!__STDC__]: Remove conditional code.
21656         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
21657         definition.
21658         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21659         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21660         type.
21661         (__strcasecmp): Convert to prototype-style function definition.
21662         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
21663         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21664         type.
21665         (__strncasecmp): Convert to prototype-style function definition.
21666         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
21667         * sunrpc/xdr.c (xdr_union): Likewise.
21668         * sunrpc/xdr_array.c (xdr_array): Likewise.
21669         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
21670         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
21671         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
21672         Likewise.
21673         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
21674         Likewise.
21675         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
21676         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
21677         Likewise.
21678         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
21679         (LOCALE_PARAM_PROTO): Likewise.
21680         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
21681         argument type.
21682         (ut_argument_spec): Remove macro.
21683         (ut_argument_spec_iso): Rename to ut_argument_spec.
21684         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
21685         prototype-style function definition.
21686         (memcpy_uppcase): Likewise.
21687         (__strftime_internal): Likewise.
21688         (my_strftime): Likewise.
21689         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
21690         (LOCALE_PARAM_DECL): Likewise.
21691         [_LIBC] (LOCALE_PARAM): Include argument type.
21692         (__strptime_internal): Convert to prototype-style function
21693         definition.
21694         (strptime): Likewise.
21695         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
21696         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21697         type.
21698         (__wcscasecmp): Convert to prototype-style function definition.
21699         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
21700         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
21701         type.
21702         (__wcsncasecmp): Convert to prototype-style function definition.
21703
21704         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
21705         function definition.
21706         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21707         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21708         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
21709         * elf/dl-minimal.c (_itoa): Likewise.
21710         * hurd/hurdmalloc.c (malloc): Likewise.
21711         (free): Likewise.
21712         (realloc): Likewise.
21713         * inet/inet6_option.c (inet6_option_space): Likewise.
21714         (inet6_option_init): Likewise.
21715         (inet6_option_append): Likewise.
21716         (inet6_option_alloc): Likewise.
21717         (inet6_option_next): Likewise.
21718         (inet6_option_find): Likewise.
21719         * io/ftw.c (FTW_NAME): Likewise.
21720         (NFTW_NAME): Likewise.
21721         (NFTW_NEW_NAME): Likewise.
21722         (NFTW_OLD_NAME): Likewise.
21723         * libio/iofwide.c (_IO_fwide): Likewise.
21724         * libio/strops.c (_IO_str_init_static_internal): Likewise.
21725         (_IO_str_init_static): Likewise.
21726         (_IO_str_init_readonly): Likewise.
21727         (_IO_str_overflow): Likewise.
21728         (_IO_str_underflow): Likewise.
21729         (_IO_str_count): Likewise.
21730         (_IO_str_seekoff): Likewise.
21731         (_IO_str_pbackfail): Likewise.
21732         (_IO_str_finish): Likewise.
21733         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
21734         (_IO_wstr_overflow): Likewise.
21735         (_IO_wstr_underflow): Likewise.
21736         (_IO_wstr_count): Likewise.
21737         (_IO_wstr_seekoff): Likewise.
21738         (_IO_wstr_pbackfail): Likewise.
21739         (_IO_wstr_finish): Likewise.
21740         * locale/programs/localedef.c (normalize_codeset): Likewise.
21741         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
21742         (add_locales_to_archive): Likewise.
21743         (delete_locales_from_archive): Likewise.
21744         * malloc/malloc.c (__libc_mallinfo): Likewise.
21745         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
21746         * misc/tsearch.c (__tfind): Likewise.
21747         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
21748         * nptl/pthread_attr_getdetachstate.c
21749         (__pthread_attr_getdetachstate): Likewise.
21750         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
21751         Likewise.
21752         * nptl/pthread_attr_getinheritsched.c
21753         (__pthread_attr_getinheritsched): Likewise.
21754         * nptl/pthread_attr_getschedparam.c
21755         (__pthread_attr_getschedparam): Likewise.
21756         * nptl/pthread_attr_getschedpolicy.c
21757         (__pthread_attr_getschedpolicy): Likewise.
21758         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
21759         Likewise.
21760         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
21761         Likewise.
21762         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
21763         Likewise.
21764         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
21765         Likewise.
21766         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
21767         (__pthread_attr_init_2_0): Likewise.
21768         * nptl/pthread_attr_setdetachstate.c
21769         (__pthread_attr_setdetachstate): Likewise.
21770         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
21771         Likewise.
21772         * nptl/pthread_attr_setinheritsched.c
21773         (__pthread_attr_setinheritsched): Likewise.
21774         * nptl/pthread_attr_setschedparam.c
21775         (__pthread_attr_setschedparam): Likewise.
21776         * nptl/pthread_attr_setschedpolicy.c
21777         (__pthread_attr_setschedpolicy): Likewise.
21778         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
21779         Likewise.
21780         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
21781         Likewise.
21782         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
21783         Likewise.
21784         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
21785         Likewise.
21786         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
21787         Likewise.
21788         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
21789         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
21790         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
21791         use internal_function.
21792         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
21793         prototype-style function definition.
21794         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
21795         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
21796         internal_function.
21797         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
21798         Convert to prototype-style function definition.
21799         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
21800         Likewise.
21801         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
21802         Likewise.
21803         (__pthread_mutex_unlock): Likewise.
21804         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
21805         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
21806         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
21807         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
21808         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
21809         * nss/makedb.c (process_input): Likewise.
21810         * posix/fnmatch.c (__strchrnul): Likewise.
21811         (__wcschrnul): Likewise.
21812         (fnmatch): Likewise.
21813         * posix/fnmatch_loop.c (FCT): Likewise.
21814         * posix/glob.c (globfree): Likewise.
21815         (__glob_pattern_type): Likewise.
21816         (__glob_pattern_p): Likewise.
21817         * posix/regcomp.c (re_compile_pattern): Likewise.
21818         (re_set_syntax): Likewise.
21819         (re_compile_fastmap): Likewise.
21820         (regcomp): Likewise.
21821         (regerror): Likewise.
21822         (regfree): Likewise.
21823         * posix/regexec.c (regexec): Likewise.
21824         (re_match): Likewise.
21825         (re_search): Likewise.
21826         (re_match_2): Likewise.
21827         (re_search_2): Likewise.
21828         (re_search_stub): Likewise.  Use internal_function
21829         (re_copy_regs): Likewise.
21830         (re_set_registers): Convert to prototype-style function
21831         definition.
21832         (prune_impossible_nodes): Likewise.  Use internal_function.
21833         * resolv/inet_net_pton.c (inet_net_pton): Convert to
21834         prototype-style function definition.
21835         (inet_net_pton_ipv4): Likewise.
21836         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
21837         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
21838         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
21839         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
21840         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
21841         Make variadic.
21842         * time/strptime_l.c (localtime_r): Convert to prototype-style
21843         function definition.
21844         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
21845         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
21846         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
21847         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
21848
21849         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
21850         definition.
21851         (_ufc_doit_r): Likewise.
21852         * crypt/crypt_util.c (_ufc_copymem): Likewise.
21853         (_ufc_output_conversion_r): Likewise.
21854         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
21855         * inet/rcmd.c (rcmd_af): Likewise.
21856         (rcmd): Likewise.
21857         (ruserok_af): Likewise.
21858         (ruserok): Likewise.
21859         (ruserok2_sa): Likewise.
21860         (ruserok_sa): Likewise.
21861         (iruserok_af): Likewise.
21862         (iruserok): Likewise.
21863         (__ivaliduser): Likewise.
21864         (__validuser2_sa): Likewise.
21865         * inet/rexec.c (rexec_af): Likewise.
21866         (rexec): Likewise.
21867         * inet/ruserpass.c (ruserpass): Likewise.
21868         * locale/programs/xmalloc.c (xcalloc): Likewise.
21869         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
21870         * math/w_drem.c (__drem): Likewise.
21871         * math/w_dremf.c (__dremf): Likewise.
21872         * math/w_dreml.c (__dreml): Likewise.
21873         * misc/daemon.c (daemon): Likewise.
21874         * resolv/res_debug.c (p_fqnname): Likewise.
21875         * stdlib/div.c (div): Likewise.
21876         * string/memcmp.c (memcmp_bytes): Likewise.
21877         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
21878         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
21879
21880         * crypt/cert.c (main): Convert to prototype-style function
21881         definition.
21882         * io/pipe.c (__pipe): Likewise.
21883         * io/pipe2.c (__pipe2): Likewise.
21884         * misc/futimesat.c (futimesat): Likewise.
21885         * misc/utimes.c (__utimes): Likewise.
21886         * posix/execve.c (__execve): Likewise.
21887         * posix/execvp.c (execvp): Likewise.
21888         * posix/execvpe.c (__execvpe): Likewise.
21889         * posix/fexecve.c (fexecve): Likewise.
21890         * socket/socketpair.c (socketpair): Likewise.
21891         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
21892         * stdlib/erand48.c (erand48): Likewise.
21893         * stdlib/erand48_r.c (__erand48_r): Likewise.
21894         * stdlib/jrand48.c (jrand48): Likewise.
21895         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
21896         * stdlib/lcong48.c (lcong48): Likewise.
21897         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
21898         * stdlib/nrand48.c (nrand48): Likewise.
21899         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
21900         * stdlib/seed48.c (seed48): Likewise.
21901         * stdlib/seed48_r.c (__seed48_r): Likewise.
21902         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
21903         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
21904         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
21905
21906 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
21907
21908         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
21909         * configure: Regenerated.
21910         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
21911         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
21912         unconditional.
21913         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21914         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21915         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21916         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
21917         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
21918         unconditional.
21919         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
21920
21921         * posix/Makefile (CFLAGS-regex.c): Remove variable.
21922         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
21923
21924         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
21925         function definition.
21926         * crypt/crypt_util.c (__encrypt_r): Likewise.
21927         * libio/genops.c (_IO_no_init): Likewise.
21928         * libio/iofopncook.c (_IO_fopencookie): Likewise.
21929         (_IO_old_fopencookie): Likewise.
21930         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
21931         * libio/iogetline.c (_IO_getline): Likewise.
21932         (_IO_getline_info): Likewise.
21933         * libio/iogetwline.c (_IO_getwline): Likewise.
21934         (_IO_getwline_info): Likewise.
21935         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
21936         * libio/vswprintf.c (_IO_vswprintf): Likewise.
21937         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
21938         (find_entry): Likewise.
21939         (iterate_table): Likewise.
21940         (lookup): Likewise.
21941         * login/forkpty.c (forkpty): Likewise.
21942         * misc/hsearch_r.c (__hsearch_r): Likewise.
21943         * misc/select.c (__select): Likewise.
21944         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
21945         Likewise.
21946         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
21947         Likewise.
21948         * nptl/old_pthread_cond_timedwait.c
21949         (__pthread_cond_timedwait_2_0): Likewise.
21950         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
21951         * nptl/pthread_barrierattr_getpshared.c
21952         (pthread_barrierattr_getpshared): Likewise.
21953         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
21954         Likewise.
21955         * nptl/pthread_mutex_setprioceiling.c
21956         (pthread_mutex_setprioceiling): Likewise.
21957         * nptl/pthread_mutexattr_getprioceiling.c
21958         (pthread_mutexattr_getprioceiling): Likewise.
21959         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
21960         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21961         Likewise.
21962         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21963         Likewise.
21964         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
21965         Likewise.
21966         * socket/recvfrom.c (__recvfrom): Likewise.
21967         * socket/sendto.c (__sendto): Likewise.
21968         * socket/setsockopt.c (__setsockopt): Likewise.
21969         * stdio-common/_itoa.c (_itoa): Likewise.
21970         * stdio-common/_itowa.c (_itowa): Likewise.
21971         * stdio-common/reg-printf.c (__register_printf_specifier):
21972         Likewise.
21973         (__register_printf_function): Likewise.
21974         * stdio-common/tempname.c (__path_search): Likewise.
21975         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
21976         * stdlib/mul_1.c (mpn_mul_1): Likewise.
21977         * stdlib/random_r.c (__initstate_r): Likewise.
21978         * stdlib/setenv.c (__add_to_environ): Likewise.
21979         * stdlib/submul_1.c (mpn_submul_1): Likewise.
21980         * streams/getpmsg.c (getpmsg): Likewise.
21981         * streams/putmsg.c (putmsg): Likewise.
21982         * streams/putpmsg.c (putpmsg): Likewise.
21983         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
21984         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
21985         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
21986         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
21987         * sunrpc/pm_getport.c (pmap_getport): Likewise.
21988         * sunrpc/svc_udp.c (cache_get): Likewise.
21989         * sunrpc/xdr_array.c (xdr_vector): Likewise.
21990         * sysdeps/mach/hurd/getcwd.c
21991         (__canonicalize_directory_name_internal): Likewise.
21992         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
21993         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
21994         * sysdeps/mach/hurd/select.c (__select): Likewise.
21995         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
21996         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
21997         * sysdeps/sparc/nptl/pthread_barrier_init.c
21998         (__pthread_barrier_init): Likewise.
21999         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22000         (__pthread_cond_timedwait): Likewise.
22001         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22002         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22003         Likewise.
22004         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22005         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22006         Likewise.
22007         * sysvipc/semtimedop.c (semtimedop): Likewise.
22008         * time/setitimer.c (__setitimer): Likewise.
22009         * time/strftime_l.c (emacs_strftime): Likewise.
22010
22011 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22012
22013         * config.make.in (have-ssp): Delete.
22014         (stack-protector): New variable.
22015         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22016         cache test for -fstack-protector-strong.  Export stack_protector to
22017         the best ssp flag.
22018         * configure: Regenerated.
22019         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22020         * nscd/Makefile (CFLAGS-nscd): Likewise.
22021         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22022
22023 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22024
22025         [BZ #19122]
22026         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22027         attribute_hidden.
22028
22029 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22030
22031         [BZ #18743]
22032         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22033         code to...
22034         (ELIDE_LOCK): ...here.
22035         (__get_new_count): New function with part of the code from
22036         __elide_lock that updates the value of adapt_count after a
22037         transaction abort.
22038         (__elided_trylock): Moved this code to...
22039         (ELIDE_TRYLOCK): ...here.
22040
22041 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22042
22043         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22044         * configure: Regenerate.
22045         * INSTALL: Regenerate.
22046         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22047         and tweak grammar.
22048
22049 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22050
22051         * login/programs/pt_chown.c: Include signal.h
22052         (main): Clear any signal mask from the parent process.
22053
22054 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22055
22056         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22057         * configure: Regenerated.
22058         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22059         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22060         $(gnu89-inline-CFLAGS).
22061
22062         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22063         test.
22064         (libc_cv_asm_weakext_directive): Likewise.
22065         * configure: Regenerated.
22066         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22067         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22068         * include/libc-symbols.h
22069         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22070         #error.
22071         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22072         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22073
22074         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22075         prototype-style function definition.
22076         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22077         * sysdeps/i386/ffs.c (__ffs): Likewise.
22078         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22079         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22080         Likewise.
22081         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22082         Likewise.
22083         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22084         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22085         Likewise.
22086         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22087         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22088         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22089         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22090         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22091         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22092         * sysdeps/mach/hurd/access.c (__access): Likewise.
22093         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22094         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22095         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22096         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22097         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22098         (cthread_getspecific): Likewise.
22099         (cthread_setspecific): Likewise.
22100         (__libc_getspecific): Likewise.
22101         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22102         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22103         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22104         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22105         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22106         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22107         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22108         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22109         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22110         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22111         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22112         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22113         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22114         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22115         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22116         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22117         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22118         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22119         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22120         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22121         * sysdeps/mach/hurd/link.c (__link): Likewise.
22122         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22123         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22124         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22125         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22126         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22127         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22128         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22129         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22130         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22131         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22132         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22133         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22134         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22135         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22136         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22137         * sysdeps/mach/hurd/send.c (__send): Likewise.
22138         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22139         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22140         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22141         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22142         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22143         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22144         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22145         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22146         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22147         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22148         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22149         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22150         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22151         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22152         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22153         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22154         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22155         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22156         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22157         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22158         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22159         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22160         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22161         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22162         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22163         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22164         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22165         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22166         * sysdeps/posix/alarm.c (alarm): Likewise.
22167         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22168         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22169         * sysdeps/posix/dup.c (__dup): Likewise.
22170         * sysdeps/posix/dup2.c (__dup2): Likewise.
22171         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22172         (main): Likewise.
22173         * sysdeps/posix/flock.c (__flock): Likewise.
22174         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22175         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22176         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22177         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22178         * sysdeps/posix/isatty.c (__isatty): Likewise.
22179         * sysdeps/posix/killpg.c (killpg): Likewise.
22180         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22181         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22182         * sysdeps/posix/raise.c (raise): Likewise.
22183         * sysdeps/posix/remove.c (remove): Likewise.
22184         * sysdeps/posix/rename.c (rename): Likewise.
22185         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22186         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22187         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22188         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22189         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22190         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22191         * sysdeps/posix/sigset.c (sigset): Likewise.
22192         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22193         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22194         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22195         * sysdeps/posix/time.c (time): Likewise.
22196         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22197         (ttyname): Likewise.
22198         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22199         * sysdeps/posix/utime.c (utime): Likewise.
22200         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22201         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22202         Likewise.
22203         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22204         (pthread_spin_trylock): Likewise.
22205         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22206         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22207         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22208         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22209         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22210         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22211         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22212         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22213         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22214         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22215         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22216         * sysdeps/s390/ffs.c (__ffs): Likewise.
22217         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22218         Likewise.
22219         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22220         Likewise.
22221         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22222         Likewise.
22223         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22224         (pthread_barrier_destroy): Likewise.
22225         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22226         (__pthread_barrier_wait): Likewise.
22227         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22228         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22229         (__pthread_barrier_wait): Likewise.
22230         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22231         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22232         (memcmp_not_common_alignment): Likewise.
22233         (MEMCMP): Likewise.
22234         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22235         (_wordcopy_fwd_dest_aligned): Likewise.
22236         (_wordcopy_bwd_aligned): Likewise.
22237         (_wordcopy_bwd_dest_aligned): Likewise.
22238         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22239         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22240         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22241         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22242         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22243         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22244         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22245         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22246         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22247         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22248         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22249         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22250         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22251         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22252         * sysdeps/unix/stime.c (stime): Likewise.
22253         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22254         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22255         Likewise.  Use internal_function.
22256         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22257         Convert to prototype-style function definition.
22258         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22259         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22260         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22261         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22262         Likewise.  Use internal_function.
22263         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22264         prototype-style function definition
22265         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22266         Likewise.
22267         (__getlogin_r): Likewise.
22268         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22269         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22270         (__pthread_cond_broadcast): Likewise.
22271         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22272         (__pthread_cond_destroy): Likewise.
22273         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22274         (__pthread_cond_init): Likewise.
22275         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22276         (__pthread_cond_signal): Likewise.
22277         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22278         (__pthread_cond_wait): Likewise.
22279         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22280         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22281         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22282         Likewise.
22283         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22284         Likewise.
22285         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22286         Likewise.
22287         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22288         Likewise.
22289         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22291         (__ftruncate64): Likewise.
22292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22293         (truncate64): Likewise.
22294         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22295         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22296         (pthread_getcpuclockid): Likewise.
22297         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22298         Likewise.
22299         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22300         Likewise.
22301         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22302         Likewise.
22303         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22304         Likewise.
22305         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22306         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
22307         (__libc_sigaction): Likewise.
22308         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
22309         Likewise.
22310         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22311         (__sigprocmask): Likewise.
22312         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
22313         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
22314         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
22315         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22316         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22317         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
22318         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22319         Likewise.
22320         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
22321         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
22322         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22323         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
22324         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
22325         Likewise.
22326         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22327         (__sigprocmask): Likewise.
22328         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
22329         (cfgetispeed): Likewise.
22330         (cfsetospeed): Likewise.
22331         (cfsetispeed): Likewise.
22332         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
22333         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
22334         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22335         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22336         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
22337         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
22338         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
22339         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
22340         Likewise.
22341         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
22342         Likewise.
22343         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
22344         Likewise.
22345         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22346         Likewise.
22347         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
22348
22349 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22350
22351         sunrpc: Rewrite with explicit TLS access using __thread.
22352         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
22353         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
22354         directly.
22355         (__rpc_thread_variables): Access thread_rpc_vars directly.
22356         Eliminate redundant assignment of the tvp variable.
22357
22358 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22359
22360         malloc: Rewrite with explicit TLS access using __thread.
22361         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
22362         (tsd_setspecific, tsd_getspecific): Remove.
22363         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
22364         (tsd_setspecific, tsd_getspecific): Likewise.
22365         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
22366         (tsd_setspecific, tsd_getspecific): Likewise.
22367         * malloc/arena.c (thread_arena): New TLS variable.
22368         (arena_key): Remove variable.
22369         (arena_get): Use thread_arena.
22370         (arena_lookup): Remove macro.
22371         (malloc_atfork, free_atfork, ptmalloc_lock_all)
22372         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
22373         (_int_new_arena, get_free_list, reused_arena)
22374         (arena_thread_freeres): Use thread_arena.
22375         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
22376         tsd_getspecific, tsd_setspecific from safety annotations.
22377         (Allocating Cleared Space): Remove arena_lookup from safety
22378         annotations.
22379
22380 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22381
22382         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
22383         struct scratch_buffer instead of extend_alloca.
22384
22385 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22386
22387         * sysdeps/unix/sysv/linux/kernel-features.h
22388         (__ASSUME_SOCK_CLOEXEC): Remove.
22389         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
22390         (__have_paccept): Remove unused macro.
22391         * include/unistd.h (__have_sock_cloexec): Remove declaration.
22392         * misc/syslog.c (openlog_internal): Remove fallback code for
22393         !__ASSUME_SOCK_CLOEXEC.
22394         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
22395         missing SOCK_CLOEXEC.
22396         * nscd/connections.c (have_sock_cloexec): Remove definition.
22397         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22398         * nscd/nscd_helper.c (open_socket): Remove fallback code for
22399         !__ASSUME_SOCK_CLOEXEC.
22400         * resolv/res_send.c (__have_o_nonblock): Remove definition.
22401         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22402         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
22403         definition.
22404         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
22405         code for !__ASSUME_SOCK_CLOEXEC.
22406
22407 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22408
22409         [BZ #18982]
22410         * manual/stdio.texi (Variable Arguments Output): Add portability
22411         note, explaining that vfprintf clobbers the va_list pointer.
22412
22413 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22414
22415         * math/libm-test.inc (fabs_test_data): Add more tests.
22416         (fdim_test_data): Likewise.
22417         (fma_test_data): Likewise.
22418         (fmax_test_data): Likewise.
22419         (fmin_test_data): Likewise.
22420         (fmod_test_data): Likewise.
22421
22422 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
22423
22424         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
22425         data.
22426
22427 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22428
22429         * math/libm-test.inc (ceil_test_data): Add more tests and more
22430         expectations for "inexact".
22431         (floor_test_data): Add more tests.
22432         (round_test_data): Likewise.
22433         (trunc_test_data): Likewise.
22434
22435         * crypt/cert.c (good_bye): Convert to prototype-style function
22436         definition.
22437         (get8): Likewise.
22438         (put8): Likewise.
22439         * crypt/crypt-entry.c (crypt): Likewise.
22440         (__fcrypt): Likewise.
22441         * crypt/crypt_util.c (_ufc_prbits): Likewise.
22442         (_ufc_set_bits): Likewise.
22443         (_ufc_clearmem): Likewise.
22444         (__init_des_r): Likewise.
22445         (shuffle_sb): Likewise.
22446         (shuffle_sb): Likewise.
22447         (_ufc_setup_salt_r): Likewise.
22448         (_ufc_mk_keytab_r): Likewise.
22449         (_ufc_dofinalperm_r): Likewise.
22450         (encrypt): Likewise.
22451         (__setkey_r): Likewise.
22452         (setkey): Likewise.
22453         * crypt/md5.c (md5_init_ctx): Likewise.
22454         (md5_read_ctx): Likewise.
22455         (md5_finish_ctx): Likewise.
22456         (md5_stream): Likewise.
22457         (md5_buffer): Likewise.
22458         (md5_process_bytes): Likewise.
22459         * crypt/sha256.c (__sha256_init_ctx): Likewise.
22460         (__sha256_finish_ctx): Likewise.
22461         (__sha256_process_bytes): Likewise.
22462         * crypt/sha512.c (__sha512_init_ctx): Likewise.
22463         (__sha512_finish_ctx): Likewise.
22464         (__sha512_process_bytes): Likewise.
22465         * ctype/isctype.c (__isctype): Likewise.
22466         * debug/backtrace.c (__backtrace): Likewise.
22467         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
22468         * debug/fgets_chk.c (__fgets_chk): Likewise.
22469         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
22470         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
22471         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
22472         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
22473         * debug/memset_chk.c (__memset_chk): Likewise.
22474         * debug/strcat_chk.c (__strcat_chk): Likewise.
22475         * debug/strncat_chk.c (__strncat_chk): Likewise.
22476         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
22477         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
22478         * dirent/dirfd.c (dirfd): Likewise.
22479         * dirent/getdents.c (__getdirentries): Likewise.
22480         * dirent/getdents64.c (getdirentries64): Likewise.
22481         * dirent/rewinddir.c (__rewinddir): Likewise.
22482         * dirent/seekdir.c (seekdir): Likewise.
22483         * dirent/telldir.c (telldir): Likewise.
22484         * elf/sln.c (makesymlinks): Likewise.
22485         (makesymlink): Likewise.
22486         * gmon/gmon.c (__moncontrol): Likewise.
22487         (__monstartup): Likewise.
22488         (write_hist): Likewise.
22489         (write_call_graph): Likewise.
22490         (write_bb_counts): Likewise.
22491         * grp/setgroups.c (setgroups): Likewise.
22492         * inet/inet_lnaof.c (inet_lnaof): Likewise.
22493         * inet/inet_net.c (inet_network): Likewise.
22494         * inet/inet_netof.c (inet_netof): Likewise.
22495         * inet/rcmd.c (rresvport_af): Likewise.
22496         (rresvport): Likewise.
22497         * io/access.c (__access): Likewise.
22498         * io/chdir.c (__chdir): Likewise.
22499         * io/chmod.c (__chmod): Likewise.
22500         * io/chown.c (__chown): Likewise.
22501         * io/close.c (__close): Likewise.
22502         * io/creat.c (creat): Likewise.
22503         * io/creat64.c (creat64): Likewise.
22504         * io/dup.c (__dup): Likewise.
22505         * io/dup2.c (__dup2): Likewise.
22506         * io/dup3.c (__dup3): Likewise.
22507         * io/euidaccess.c (__euidaccess): Likewise.
22508         * io/faccessat.c (faccessat): Likewise.
22509         * io/fchmod.c (__fchmod): Likewise.
22510         * io/fchmodat.c (fchmodat): Likewise.
22511         * io/fchown.c (__fchown): Likewise.
22512         * io/fchownat.c (fchownat): Likewise.
22513         * io/fcntl.c (__fcntl): Likewise.
22514         * io/flock.c (__flock): Likewise.
22515         * io/fts.c (fts_load): Likewise.
22516         (fts_close): Likewise.
22517         (fts_read): Likewise.
22518         (fts_set): Likewise.
22519         (fts_children): Likewise.
22520         (fts_build): Likewise.
22521         (fts_stat): Likewise.
22522         (fts_sort): Likewise.
22523         (fts_alloc): Likewise.
22524         (fts_lfree): Likewise.
22525         (fts_palloc): Likewise.
22526         (fts_padjust): Likewise.
22527         (fts_maxarglen): Likewise.
22528         (fts_safe_changedir): Likewise.
22529         * io/getwd.c (getwd): Likewise.
22530         * io/isatty.c (__isatty): Likewise.
22531         * io/lchown.c (__lchown): Likewise.
22532         * io/link.c (__link): Likewise.
22533         * io/linkat.c (linkat): Likewise.
22534         * io/lseek.c (__libc_lseek): Likewise.
22535         * io/mkdir.c (__mkdir): Likewise.
22536         * io/mkdirat.c (mkdirat): Likewise.
22537         * io/mkfifo.c (mkfifo): Likewise.
22538         * io/mkfifoat.c (mkfifoat): Likewise.
22539         * io/open.c (__libc_open): Likewise.
22540         * io/open64.c (__libc_open64): Likewise.
22541         * io/readlink.c (__readlink): Likewise.
22542         * io/readlinkat.c (readlinkat): Likewise.
22543         * io/rmdir.c (__rmdir): Likewise.
22544         * io/symlink.c (__symlink): Likewise.
22545         * io/symlinkat.c (symlinkat): Likewise.
22546         * io/ttyname.c (ttyname): Likewise.
22547         * io/ttyname_r.c (__ttyname_r): Likewise.
22548         * io/umask.c (__umask): Likewise.
22549         * io/unlink.c (__unlink): Likewise.
22550         * io/unlinkat.c (unlinkat): Likewise.
22551         * io/utime.c (utime): Likewise.
22552         * libio/clearerr.c (clearerr): Likewise.
22553         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
22554         * libio/feof.c (_IO_feof): Likewise.
22555         * libio/feof_u.c (feof_unlocked): Likewise.
22556         * libio/ferror.c (_IO_ferror): Likewise.
22557         * libio/ferror_u.c (ferror_unlocked): Likewise.
22558         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
22559         * libio/fileno.c (__fileno): Likewise.
22560         * libio/fputc.c (fputc): Likewise.
22561         * libio/fputc_u.c (fputc_unlocked): Likewise.
22562         * libio/fputwc.c (fputwc): Likewise.
22563         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
22564         * libio/freopen.c (freopen): Likewise.
22565         * libio/freopen64.c (freopen64): Likewise.
22566         * libio/fseek.c (fseek): Likewise.
22567         * libio/fseeko.c (fseeko): Likewise.
22568         * libio/fseeko64.c (fseeko64): Likewise.
22569         * libio/ftello.c (__ftello): Likewise.
22570         * libio/ftello64.c (ftello64): Likewise.
22571         * libio/fwide.c (fwide): Likewise.
22572         * libio/genops.c (_IO_un_link): Likewise.
22573         (_IO_link_in): Likewise.
22574         (_IO_least_marker): Likewise.
22575         (_IO_switch_to_main_get_area): Likewise.
22576         (_IO_switch_to_backup_area): Likewise.
22577         (_IO_switch_to_get_mode): Likewise.
22578         (_IO_free_backup_area): Likewise.
22579         (_IO_switch_to_put_mode): Likewise.
22580         (__overflow): Likewise.
22581         (__underflow): Likewise.
22582         (__uflow): Likewise.
22583         (_IO_setb): Likewise.
22584         (_IO_doallocbuf): Likewise.
22585         (_IO_default_underflow): Likewise.
22586         (_IO_default_uflow): Likewise.
22587         (_IO_default_xsputn): Likewise.
22588         (_IO_sgetn): Likewise.
22589         (_IO_default_xsgetn): Likewise.
22590         (_IO_sync): Likewise.
22591         (_IO_default_setbuf): Likewise.
22592         (_IO_default_seekpos): Likewise.
22593         (_IO_default_doallocate): Likewise.
22594         (_IO_init): Likewise.
22595         (_IO_old_init): Likewise.
22596         (_IO_default_sync): Likewise.
22597         (_IO_default_finish): Likewise.
22598         (_IO_default_seekoff): Likewise.
22599         (_IO_sputbackc): Likewise.
22600         (_IO_sungetc): Likewise.
22601         (_IO_set_column): Likewise.
22602         (_IO_set_column): Likewise.
22603         (_IO_adjust_column): Likewise.
22604         (_IO_get_column): Likewise.
22605         (_IO_init_marker): Likewise.
22606         (_IO_remove_marker): Likewise.
22607         (_IO_marker_difference): Likewise.
22608         (_IO_marker_delta): Likewise.
22609         (_IO_seekmark): Likewise.
22610         (_IO_unsave_markers): Likewise.
22611         (_IO_nobackup_pbackfail): Likewise.
22612         (_IO_default_pbackfail): Likewise.
22613         (_IO_default_seek): Likewise.
22614         (_IO_default_stat): Likewise.
22615         (_IO_default_read): Likewise.
22616         (_IO_default_write): Likewise.
22617         (_IO_default_showmanyc): Likewise.
22618         (_IO_default_imbue): Likewise.
22619         (_IO_iter_next): Likewise.
22620         (_IO_iter_file): Likewise.
22621         * libio/getc.c (_IO_getc): Likewise.
22622         * libio/getwc.c (_IO_getwc): Likewise.
22623         * libio/iofclose.c (_IO_new_fclose): Likewise.
22624         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
22625         * libio/iofflush.c (_IO_fflush): Likewise.
22626         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
22627         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
22628         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
22629         * libio/iofgets.c (_IO_fgets): Likewise.
22630         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
22631         * libio/iofgetws.c (fgetws): Likewise.
22632         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
22633         * libio/iofopen64.c (_IO_fopen64): Likewise.
22634         * libio/iofopncook.c (_IO_cookie_read): Likewise.
22635         (_IO_cookie_write): Likewise.
22636         (_IO_cookie_seek): Likewise.
22637         (_IO_cookie_close): Likewise.
22638         (_IO_cookie_seekoff): Likewise.
22639         (_IO_old_cookie_seek): Likewise.
22640         * libio/iofputs.c (_IO_fputs): Likewise.
22641         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
22642         * libio/iofputws.c (fputws): Likewise.
22643         * libio/iofputws_u.c (fputws_unlocked): Likewise.
22644         * libio/iofread.c (_IO_fread): Likewise.
22645         * libio/iofread_u.c (__fread_unlocked): Likewise.
22646         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
22647         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22648         * libio/ioftell.c (_IO_ftell): Likewise.
22649         * libio/iofwrite.c (_IO_fwrite): Likewise.
22650         * libio/iogetdelim.c (_IO_getdelim): Likewise.
22651         * libio/iogets.c (_IO_gets): Likewise.
22652         * libio/iopadn.c (_IO_padn): Likewise.
22653         * libio/iopopen.c (_IO_new_proc_open): Likewise.
22654         (_IO_new_popen): Likewise.
22655         (_IO_new_proc_close): Likewise.
22656         * libio/ioputs.c (_IO_puts): Likewise.
22657         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
22658         (_IO_seekoff): Likewise.
22659         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
22660         (_IO_seekpos): Likewise.
22661         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
22662         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
22663         * libio/ioungetc.c (_IO_ungetc): Likewise.
22664         * libio/ioungetwc.c (ungetwc): Likewise.
22665         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
22666         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
22667         * libio/iowpadn.c (_IO_wpadn): Likewise.
22668         * libio/libc_fatal.c (__libc_fatal): Likewise.
22669         * libio/memstream.c (__open_memstream): Likewise.
22670         (_IO_mem_sync): Likewise.
22671         (_IO_mem_finish): Likewise.
22672         * libio/oldfileops.c (_IO_old_file_init): Likewise.
22673         (_IO_old_file_close_it): Likewise.
22674         (_IO_old_file_finish): Likewise.
22675         (_IO_old_file_fopen): Likewise.
22676         (_IO_old_file_attach): Likewise.
22677         (_IO_old_file_setbuf): Likewise.
22678         (_IO_old_do_write): Likewise.
22679         (old_do_write): Likewise.
22680         (_IO_old_file_underflow): Likewise.
22681         (_IO_old_file_overflow): Likewise.
22682         (_IO_old_file_sync): Likewise.
22683         (_IO_old_file_seekoff): Likewise.
22684         (_IO_old_file_write): Likewise.
22685         (_IO_old_file_xsputn): Likewise.
22686         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
22687         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
22688         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
22689         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
22690         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
22691         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
22692         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
22693         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
22694         (_IO_old_popen): Likewise.
22695         (_IO_old_proc_close): Likewise.
22696         * libio/oldpclose.c (__old_pclose): Likewise.
22697         * libio/pclose.c (__new_pclose): Likewise.
22698         * libio/peekc.c (_IO_peekc_locked): Likewise.
22699         * libio/putc.c (_IO_putc): Likewise.
22700         * libio/putc_u.c (putc_unlocked): Likewise.
22701         * libio/putchar.c (putchar): Likewise.
22702         * libio/putchar_u.c (putchar_unlocked): Likewise.
22703         * libio/putwc.c (putwc): Likewise.
22704         * libio/putwc_u.c (putwc_unlocked): Likewise.
22705         * libio/putwchar.c (putwchar): Likewise.
22706         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
22707         * libio/rewind.c (rewind): Likewise.
22708         * libio/setbuf.c (setbuf): Likewise.
22709         * libio/setlinebuf.c (setlinebuf): Likewise.
22710         * libio/vasprintf.c (_IO_vasprintf): Likewise.
22711         * libio/vscanf.c (_IO_vscanf): Likewise.
22712         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
22713         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
22714         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
22715         * libio/wgenops.c (_IO_least_wmarker): Likewise.
22716         (_IO_switch_to_main_wget_area): Likewise.
22717         (_IO_switch_to_wbackup_area): Likewise.
22718         (_IO_wsetb): Likewise.
22719         (_IO_wdefault_pbackfail): Likewise.
22720         (_IO_wdefault_finish): Likewise.
22721         (_IO_wdefault_uflow): Likewise.
22722         (__woverflow): Likewise.
22723         (__wuflow): Likewise.
22724         (__wunderflow): Likewise.
22725         (_IO_wdefault_xsputn): Likewise.
22726         (_IO_wdefault_xsgetn): Likewise.
22727         (_IO_wdoallocbuf): Likewise.
22728         (_IO_wdefault_doallocate): Likewise.
22729         (_IO_switch_to_wget_mode): Likewise.
22730         (_IO_free_wbackup_area): Likewise.
22731         (_IO_switch_to_wput_mode): Likewise.
22732         (_IO_sputbackwc): Likewise.
22733         (_IO_sungetwc): Likewise.
22734         (_IO_adjust_wcolumn): Likewise.
22735         (_IO_init_wmarker): Likewise.
22736         (_IO_wmarker_delta): Likewise.
22737         (_IO_seekwmark): Likewise.
22738         (_IO_unsave_wmarkers): Likewise.
22739         * libio/wmemstream.c (open_wmemstream): Likewise.
22740         (_IO_wmem_sync): Likewise.
22741         (_IO_wmem_finish): Likewise.
22742         * locale/nl_langinfo.c (nl_langinfo): Likewise.
22743         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
22744         * locale/programs/simple-hash.c (init_hash): Likewise.
22745         (delete_hash): Likewise.
22746         (insert_entry): Likewise.
22747         (set_entry): Likewise.
22748         (next_prime): Likewise.
22749         (is_prime): Likewise.
22750         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
22751         (xmalloc): Likewise.
22752         (xrealloc): Likewise.
22753         * locale/programs/xstrdup.c (xstrdup): Likewise.
22754         * localedata/collate-test.c (xstrcoll): Likewise.
22755         * localedata/xfrm-test.c (xstrcmp): Likewise.
22756         * login/getlogin_r.c (__getlogin_r): Likewise.
22757         * login/getpt.c (__posix_openpt): Likewise.
22758         * login/login_tty.c (login_tty): Likewise.
22759         * login/setlogin.c (setlogin): Likewise.
22760         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
22761         (mach_msg_destroy_port): Likewise.
22762         (mach_msg_destroy_memory): Likewise.
22763         * malloc/mcheck.c (flood): Likewise.
22764         * misc/acct.c (acct): Likewise.
22765         * misc/brk.c (__brk): Likewise.
22766         * misc/chflags.c (chflags): Likewise.
22767         * misc/chroot.c (chroot): Likewise.
22768         * misc/fchflags.c (fchflags): Likewise.
22769         * misc/fstab.c (getfsspec): Likewise.
22770         (getfsfile): Likewise.
22771         * misc/fsync.c (fsync): Likewise.
22772         * misc/ftruncate.c (__ftruncate): Likewise.
22773         * misc/ftruncate64.c (__ftruncate64): Likewise.
22774         * misc/getdomain.c (getdomainname): Likewise.
22775         (getdomainname): Likewise.
22776         * misc/gethostname.c (__gethostname): Likewise.
22777         * misc/getpass.c (getpass): Likewise.
22778         * misc/getttyent.c (skip): Likewise.
22779         (value): Likewise.
22780         * misc/gtty.c (gtty): Likewise.
22781         * misc/hsearch.c (hsearch): Likewise.
22782         (hcreate): Likewise.
22783         * misc/hsearch_r.c (__hcreate_r): Likewise.
22784         (__hdestroy_r): Likewise.
22785         * misc/ioctl.c (__ioctl): Likewise.
22786         * misc/mkdtemp.c (mkdtemp): Likewise.
22787         * misc/mkostemp.c (mkostemp): Likewise.
22788         * misc/mkostemp64.c (mkostemp64): Likewise.
22789         * misc/mkostemps.c (mkostemps): Likewise.
22790         * misc/mkostemps64.c (mkostemps64): Likewise.
22791         * misc/mkstemp.c (mkstemp): Likewise.
22792         * misc/mkstemp64.c (mkstemp64): Likewise.
22793         * misc/mkstemps.c (mkstemps): Likewise.
22794         * misc/mkstemps64.c (mkstemps64): Likewise.
22795         * misc/mktemp.c (__mktemp): Likewise.
22796         * misc/preadv.c (preadv): Likewise.
22797         * misc/preadv64.c (preadv64): Likewise.
22798         * misc/pwritev.c (pwritev): Likewise.
22799         * misc/pwritev64.c (pwritev64): Likewise.
22800         * misc/readv.c (__readv): Likewise.
22801         * misc/revoke.c (revoke): Likewise.
22802         * misc/setdomain.c (setdomainname): Likewise.
22803         * misc/setegid.c (setegid): Likewise.
22804         * misc/seteuid.c (seteuid): Likewise.
22805         * misc/sethostid.c (sethostid): Likewise.
22806         * misc/sethostname.c (sethostname): Likewise.
22807         * misc/setregid.c (__setregid): Likewise.
22808         * misc/setreuid.c (__setreuid): Likewise.
22809         * misc/sstk.c (sstk): Likewise.
22810         * misc/stty.c (stty): Likewise.
22811         * misc/syscall.c (syscall): Likewise.
22812         * misc/syslog.c (setlogmask): Likewise.
22813         * misc/truncate.c (__truncate): Likewise.
22814         * misc/truncate64.c (truncate64): Likewise.
22815         * misc/ualarm.c (ualarm): Likewise.
22816         * misc/usleep.c (usleep): Likewise.
22817         * misc/ustat.c (ustat): Likewise.
22818         * misc/writev.c (__writev): Likewise.
22819         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
22820         * nptl/old_pthread_cond_broadcast.c
22821         (__pthread_cond_broadcast_2_0): Likewise.
22822         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
22823         Likewise.
22824         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
22825         Likewise.
22826         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
22827         Likewise.
22828         * nptl/pt-raise.c (raise): Likewise.
22829         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
22830         Likewise.
22831         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
22832         * nptl/pthread_barrierattr_destroy.c
22833         (pthread_barrierattr_destroy): Likewise.
22834         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22835         Likewise.
22836         * nptl/pthread_barrierattr_setpshared.c
22837         (pthread_barrierattr_setpshared): Likewise.
22838         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
22839         Likewise.
22840         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
22841         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22842         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
22843         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
22844         Likewise.
22845         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
22846         Likewise.
22847         * nptl/pthread_condattr_getpshared.c
22848         (pthread_condattr_getpshared): Likewise.
22849         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
22850         Likewise.
22851         * nptl/pthread_condattr_setpshared.c
22852         (pthread_condattr_setpshared): Likewise.
22853         * nptl/pthread_detach.c (pthread_detach): Likewise.
22854         * nptl/pthread_equal.c (__pthread_equal): Likewise.
22855         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
22856         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
22857         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
22858         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
22859         Likewise.
22860         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
22861         Likewise.
22862         * nptl/pthread_mutex_getprioceiling.c
22863         (pthread_mutex_getprioceiling): Likewise.
22864         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
22865         Likewise.
22866         * nptl/pthread_mutexattr_getprotocol.c
22867         (pthread_mutexattr_getprotocol): Likewise.
22868         * nptl/pthread_mutexattr_getpshared.c
22869         (pthread_mutexattr_getpshared): Likewise.
22870         * nptl/pthread_mutexattr_getrobust.c
22871         (pthread_mutexattr_getrobust): Likewise.
22872         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
22873         Likewise.
22874         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
22875         Likewise.
22876         * nptl/pthread_mutexattr_setprioceiling.c
22877         (pthread_mutexattr_setprioceiling): Likewise.
22878         * nptl/pthread_mutexattr_setprotocol.c
22879         (pthread_mutexattr_setprotocol): Likewise.
22880         * nptl/pthread_mutexattr_setpshared.c
22881         (pthread_mutexattr_setpshared): Likewise.
22882         * nptl/pthread_mutexattr_setrobust.c
22883         (pthread_mutexattr_setrobust): Likewise.
22884         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
22885         Likewise.
22886         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
22887         Likewise.
22888         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
22889         Likewise.
22890         * nptl/pthread_rwlockattr_getkind_np.c
22891         (pthread_rwlockattr_getkind_np): Likewise.
22892         * nptl/pthread_rwlockattr_getpshared.c
22893         (pthread_rwlockattr_getpshared): Likewise.
22894         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
22895         Likewise.
22896         * nptl/pthread_rwlockattr_setkind_np.c
22897         (pthread_rwlockattr_setkind_np): Likewise.
22898         * nptl/pthread_rwlockattr_setpshared.c
22899         (pthread_rwlockattr_setpshared): Likewise.
22900         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
22901         Likewise.
22902         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
22903         Likewise.
22904         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
22905         Likewise.
22906         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
22907         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
22908         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
22909         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
22910         * nptl/sem_close.c (sem_close): Likewise.
22911         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
22912         * nptl/sem_init.c (__old_sem_init): Likewise.
22913         * nptl/sigaction.c (__sigaction): Likewise.
22914         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
22915         * posix/_exit.c (_exit): Likewise.
22916         * posix/alarm.c (alarm): Likewise.
22917         * posix/confstr.c (confstr): Likewise.
22918         * posix/fpathconf.c (__fpathconf): Likewise.
22919         * posix/getgroups.c (__getgroups): Likewise.
22920         * posix/getpgid.c (__getpgid): Likewise.
22921         * posix/group_member.c (__group_member): Likewise.
22922         * posix/pathconf.c (__pathconf): Likewise.
22923         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
22924         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
22925         * posix/setgid.c (__setgid): Likewise.
22926         * posix/setpgid.c (__setpgid): Likewise.
22927         * posix/setuid.c (__setuid): Likewise.
22928         * posix/sleep.c (__sleep): Likewise.
22929         * posix/sysconf.c (__sysconf): Likewise.
22930         * posix/times.c (__times): Likewise.
22931         * posix/uname.c (__uname): Likewise.
22932         * posix/waitid.c (__waitid): Likewise.
22933         * pwd/getpw.c (__getpw): Likewise.
22934         * resolv/base64.c (b64_pton): Likewise.
22935         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
22936         * resolv/gethnamaddr.c (Dprintf): Likewise.
22937         (gethostbyname): Likewise.
22938         (gethostbyname2): Likewise.
22939         (gethostbyaddr): Likewise.
22940         (_sethtent): Likewise.
22941         (_gethtbyname): Likewise.
22942         (_gethtbyname2): Likewise.
22943         (_gethtbyaddr): Likewise.
22944         (map_v4v6_address): Likewise.
22945         (map_v4v6_hostent): Likewise.
22946         (addrsort): Likewise.
22947         (ht_sethostent): Likewise.
22948         (ht_gethostbyname): Likewise.
22949         (ht_gethostbyaddr): Likewise.
22950         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
22951         (inet_net_ntop_ipv4): Likewise.
22952         * resolv/inet_neta.c (inet_neta): Likewise.
22953         * resolv/inet_ntop.c (inet_ntop): Likewise.
22954         (inet_ntop4): Likewise.
22955         (inet_ntop6): Likewise.
22956         * resolv/inet_pton.c (__inet_pton): Likewise.
22957         (inet_pton4): Likewise.
22958         (inet_pton6): Likewise.
22959         * resolv/res_debug.c (loc_aton): Likewise.
22960         (loc_ntoa): Likewise.
22961         * resource/getpriority.c (__getpriority): Likewise.
22962         * resource/getrusage.c (__getrusage): Likewise.
22963         * resource/nice.c (nice): Likewise.
22964         * resource/setpriority.c (__setpriority): Likewise.
22965         * resource/setrlimit64.c (setrlimit64): Likewise.
22966         * resource/vlimit.c (vlimit): Likewise.
22967         * resource/vtimes.c (vtimes): Likewise.
22968         * rt/aio_error.c (aio_error): Likewise.
22969         * rt/aio_return.c (aio_return): Likewise.
22970         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
22971         * signal/kill.c (__kill): Likewise.
22972         * signal/killpg.c (killpg): Likewise.
22973         * signal/raise.c (raise): Likewise.
22974         * signal/sigaction.c (__sigaction): Likewise.
22975         * signal/sigaddset.c (sigaddset): Likewise.
22976         * signal/sigaltstack.c (sigaltstack): Likewise.
22977         * signal/sigandset.c (sigandset): Likewise.
22978         * signal/sigblock.c (__sigblock): Likewise.
22979         * signal/sigdelset.c (sigdelset): Likewise.
22980         * signal/sigempty.c (sigemptyset): Likewise.
22981         * signal/sigfillset.c (sigfillset): Likewise.
22982         * signal/sighold.c (sighold): Likewise.
22983         * signal/sigignore.c (sigignore): Likewise.
22984         * signal/sigintr.c (siginterrupt): Likewise.
22985         * signal/sigisempty.c (sigisemptyset): Likewise.
22986         * signal/sigismem.c (sigismember): Likewise.
22987         * signal/signal.c (signal): Likewise.
22988         * signal/sigorset.c (sigorset): Likewise.
22989         * signal/sigpause.c (__sigpause): Likewise.
22990         * signal/sigpending.c (sigpending): Likewise.
22991         * signal/sigprocmask.c (__sigprocmask): Likewise.
22992         * signal/sigrelse.c (sigrelse): Likewise.
22993         * signal/sigreturn.c (__sigreturn): Likewise.
22994         * signal/sigset.c (sigset): Likewise.
22995         * signal/sigsetmask.c (__sigsetmask): Likewise.
22996         * signal/sigstack.c (sigstack): Likewise.
22997         * signal/sigsuspend.c (__sigsuspend): Likewise.
22998         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
22999         * signal/sysv_signal.c (__sysv_signal): Likewise.
23000         * socket/accept.c (accept): Likewise.
23001         * socket/accept4.c (__libc_accept4): Likewise.
23002         * socket/bind.c (__bind): Likewise.
23003         * socket/connect.c (__connect): Likewise.
23004         * socket/getpeername.c (getpeername): Likewise.
23005         * socket/getsockname.c (__getsockname): Likewise.
23006         * socket/getsockopt.c (getsockopt): Likewise.
23007         * socket/listen.c (__listen): Likewise.
23008         * socket/recv.c (__recv): Likewise.
23009         * socket/recvmsg.c (__recvmsg): Likewise.
23010         * socket/send.c (__send): Likewise.
23011         * socket/sendmsg.c (__sendmsg): Likewise.
23012         * socket/shutdown.c (shutdown): Likewise.
23013         * socket/sockatmark.c (sockatmark): Likewise.
23014         * socket/socket.c (__socket): Likewise.
23015         * stdio-common/ctermid.c (ctermid): Likewise.
23016         * stdio-common/cuserid.c (cuserid): Likewise.
23017         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23018         * stdio-common/remove.c (remove): Likewise.
23019         * stdio-common/rename.c (rename): Likewise.
23020         * stdio-common/renameat.c (renameat): Likewise.
23021         * stdio-common/tempname.c (__gen_tempname): Likewise.
23022         * stdio-common/xbug.c (InitBuffer): Likewise.
23023         (AppendToBuffer): Likewise.
23024         (ReadFile): Likewise.
23025         * stdlib/a64l.c (a64l): Likewise.
23026         * stdlib/drand48_r.c (drand48_r): Likewise.
23027         * stdlib/getcontext.c (getcontext): Likewise.
23028         * stdlib/getenv.c (getenv): Likewise.
23029         * stdlib/l64a.c (l64a): Likewise.
23030         * stdlib/llabs.c (llabs): Likewise.
23031         * stdlib/lldiv.c (lldiv): Likewise.
23032         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23033         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23034         * stdlib/putenv.c (putenv): Likewise.
23035         * stdlib/random.c (__srandom): Likewise.
23036         (__initstate): Likewise.
23037         (__setstate): Likewise.
23038         * stdlib/random_r.c (__srandom_r): Likewise.
23039         (__setstate_r): Likewise.
23040         (__random_r): Likewise.
23041         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23042         * stdlib/setcontext.c (setcontext): Likewise.
23043         * stdlib/setenv.c (setenv): Likewise.
23044         (unsetenv): Likewise.
23045         * stdlib/srand48.c (srand48): Likewise.
23046         * stdlib/srand48_r.c (__srand48_r): Likewise.
23047         * stdlib/swapcontext.c (swapcontext): Likewise.
23048         * stdlib/system.c (__libc_system): Likewise.
23049         * stdlib/tst-strtod.c (expand): Likewise.
23050         * stdlib/tst-strtol.c (expand): Likewise.
23051         * stdlib/tst-strtoll.c (expand): Likewise.
23052         * streams/fattach.c (fattach): Likewise.
23053         * streams/fdetach.c (fdetach): Likewise.
23054         * streams/getmsg.c (getmsg): Likewise.
23055         * streams/isastream.c (isastream): Likewise.
23056         * string/ffs.c (__ffs): Likewise.
23057         * string/ffsll.c (ffsll): Likewise.
23058         * string/memcmp.c (memcmp_common_alignment): Likewise.
23059         (memcmp_not_common_alignment): Likewise.
23060         (MEMCMP): Likewise.
23061         * string/memcpy.c (memcpy): Likewise.
23062         * string/memmove.c (MEMMOVE): Likewise.
23063         * string/memset.c (memset): Likewise.
23064         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23065         * string/strchrnul.c (STRCHRNUL): Likewise.
23066         * string/strerror.c (strerror): Likewise.
23067         * string/strndup.c (__strndup): Likewise.
23068         * string/strverscmp.c (__strverscmp): Likewise.
23069         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23070         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23071         (clnttcp_freeres): Likewise.
23072         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23073         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23074         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23075         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23076         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23077         (xdr_callhdr): Likewise.
23078         * sunrpc/rpcinfo.c (udpping): Likewise.
23079         (tcpping): Likewise.
23080         (pstatus): Likewise.
23081         (pmapdump): Likewise.
23082         (brdcst): Likewise.
23083         (deletereg): Likewise.
23084         (getprognum): Likewise.
23085         (getvers): Likewise.
23086         (get_inet_address): Likewise.
23087         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23088         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23089         (svcudp_stat): Likewise.
23090         (svcudp_recv): Likewise.
23091         (svcudp_reply): Likewise.
23092         (svcudp_getargs): Likewise.
23093         (svcudp_freeargs): Likewise.
23094         (svcudp_destroy): Likewise.
23095         * sunrpc/xdr.c (xdr_bytes): Likewise.
23096         (xdr_netobj): Likewise.
23097         (xdr_string): Likewise.
23098         (xdr_wrapstring): Likewise.
23099         * sunrpc/xdr_float.c (xdr_float): Likewise.
23100         (xdr_double): Likewise.
23101         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23102         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23103         * sysvipc/ftok.c (ftok): Likewise.
23104         * sysvipc/msgctl.c (msgctl): Likewise.
23105         * sysvipc/msgget.c (msgget): Likewise.
23106         * sysvipc/msgrcv.c (msgrcv): Likewise.
23107         * sysvipc/msgsnd.c (msgsnd): Likewise.
23108         * sysvipc/semget.c (semget): Likewise.
23109         * sysvipc/semop.c (semop): Likewise.
23110         * sysvipc/shmat.c (shmat): Likewise.
23111         * sysvipc/shmctl.c (shmctl): Likewise.
23112         * sysvipc/shmdt.c (shmdt): Likewise.
23113         * sysvipc/shmget.c (shmget): Likewise.
23114         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23115         * termios/speed.c (cfgetospeed): Likewise.
23116         (cfgetispeed): Likewise.
23117         (cfsetospeed): Likewise.
23118         (cfsetispeed): Likewise.
23119         * termios/tcflow.c (tcflow): Likewise.
23120         * termios/tcflush.c (tcflush): Likewise.
23121         * termios/tcgetattr.c (__tcgetattr): Likewise.
23122         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23123         * termios/tcgetsid.c (tcgetsid): Likewise.
23124         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23125         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23126         * time/adjtime.c (__adjtime): Likewise.
23127         * time/dysize.c (dysize): Likewise.
23128         * time/ftime.c (ftime): Likewise.
23129         * time/getitimer.c (__getitimer): Likewise.
23130         * time/gettimeofday.c (__gettimeofday): Likewise.
23131         * time/gmtime.c (__gmtime_r): Likewise.
23132         (gmtime): Likewise.
23133         * time/localtime.c (__localtime_r): Likewise.
23134         (localtime): Likewise.
23135         * time/offtime.c (__offtime): Likewise.
23136         * time/settimeofday.c (__settimeofday): Likewise.
23137         * time/stime.c (stime): Likewise.
23138         * time/strftime_l.c (tm_diff): Likewise.
23139         (iso_week_days): Likewise.
23140         * time/strptime.c (strptime): Likewise.
23141         * time/time.c (time): Likewise.
23142         * time/timespec_get.c (timespec_get): Likewise.
23143         * time/tzset.c (tzset_internal): Likewise.
23144         (compute_change): Likewise.
23145         (__tz_compute): Likewise.
23146         * wcsmbs/btowc.c (__btowc): Likewise.
23147         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23148         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23149         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23150         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23151         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23152         * wcsmbs/wcscat.c (__wcscat): Likewise.
23153         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23154         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23155         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23156         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23157         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23158         * wcsmbs/wcslen.c (__wcslen): Likewise.
23159         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23160         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23161         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23162         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23163         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23164         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23165         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23166         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23167         * wcsmbs/wcstok.c (wcstok): Likewise.
23168         * wcsmbs/wctob.c (wctob): Likewise.
23169         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23170         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23171         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23172         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23173         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23174         * wcsmbs/wmemset.c (__wmemset): Likewise.
23175         * wctype/wcfuncs.c (__towlower): Likewise.
23176         (__towupper): Likewise.
23177
23178         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23179         (lll_unlock_elision): Add adapt_count parameter.
23180
23181 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23182
23183         * sysdeps/nptl/configure.ac: Do not give errors based on the
23184         results of top-level configure tests.
23185         * sysdeps/nptl/configure: Regenerated.
23186
23187         * configure.ac (libc_cv_Bgroup): Remove configure test.
23188         * configure: Regenerated.
23189         * config.make.in (have-Bgroup): Remove variable.
23190
23191         * configure.ac (sizeof_long_double): Remove configure test.
23192         * configure: Regenerated.
23193         * config.make.in (sizeof-long-double): Remove variable.
23194
23195         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23196         * configure: Regenerated.
23197         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23198         variable.
23199         (exceptions): Likewise.
23200         * sysdeps/arm/configure: Regenerated.
23201         * config.make.in (exceptions): Remove variable.
23202         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23203         $(exceptions).
23204         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23205         (CFLAGS-vdprintf_chk.c): Likewise.
23206         (CFLAGS-printf_chk.c): Likewise.
23207         (CFLAGS-fprintf_chk.c): Likewise.
23208         (CFLAGS-vprintf_chk.c): Likewise.
23209         (CFLAGS-vfprintf_chk.c): Likewise.
23210         (CFLAGS-gets_chk.c): Likewise.
23211         (CFLAGS-fgets_chk.c): Likewise.
23212         (CFLAGS-fgets_u_chk.c): Likewise.
23213         (CFLAGS-fread_chk.c): Likewise.
23214         (CFLAGS-fread_u_chk.c): Likewise.
23215         (CFLAGS-wprintf_chk.c): Likewise.
23216         (CFLAGS-fwprintf_chk.c): Likewise.
23217         (CFLAGS-vwprintf_chk.c): Likewise.
23218         (CFLAGS-vfwprintf_chk.c): Likewise.
23219         (CFLAGS-fgetws_chk.c): Likewise.
23220         (CFLAGS-fgetws_u_chk.c): Likewise.
23221         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23222         (CFLAGS-fputc.c): Likewise.
23223         (CFLAGS-fputwc.c): Likewise.
23224         (CFLAGS-freopen64.c): Likewise.
23225         (CFLAGS-freopen.c): Likewise.
23226         (CFLAGS-fseek.c): Likewise.
23227         (CFLAGS-fseeko64.c): Likewise.
23228         (CFLAGS-fseeko.c): Likewise.
23229         (CFLAGS-ftello64.c): Likewise.
23230         (CFLAGS-ftello.c): Likewise.
23231         (CFLAGS-fwide.c): Likewise.
23232         (CFLAGS-genops.c): Likewise.
23233         (CFLAGS-getc.c): Likewise.
23234         (CFLAGS-getchar.c): Likewise.
23235         (CFLAGS-getwc.c): Likewise.
23236         (CFLAGS-getwchar.c): Likewise.
23237         (CFLAGS-iofclose.c): Likewise.
23238         (CFLAGS-iofflush.c): Likewise.
23239         (CFLAGS-iofgetpos64.c): Likewise.
23240         (CFLAGS-iofgetpos.c): Likewise.
23241         (CFLAGS-iofgets.c): Likewise.
23242         (CFLAGS-iofgetws.c): Likewise.
23243         (CFLAGS-iofputs.c): Likewise.
23244         (CFLAGS-iofputws.c): Likewise.
23245         (CFLAGS-iofread.c): Likewise.
23246         (CFLAGS-iofsetpos64.c): Likewise.
23247         (CFLAGS-iofsetpos.c): Likewise.
23248         (CFLAGS-ioftell.c): Likewise.
23249         (CFLAGS-iofwrite.c): Likewise.
23250         (CFLAGS-iogetdelim.c): Likewise.
23251         (CFLAGS-iogetline.c): Likewise.
23252         (CFLAGS-iogets.c): Likewise.
23253         (CFLAGS-iogetwline.c): Likewise.
23254         (CFLAGS-ioputs.c): Likewise.
23255         (CFLAGS-ioseekoff.c): Likewise.
23256         (CFLAGS-ioseekpos.c): Likewise.
23257         (CFLAGS-iosetbuffer.c): Likewise.
23258         (CFLAGS-iosetvbuf.c): Likewise.
23259         (CFLAGS-ioungetc.c): Likewise.
23260         (CFLAGS-ioungetwc.c): Likewise.
23261         (CFLAGS-oldfileops.c): Likewise.
23262         (CFLAGS-oldiofclose.c): Likewise.
23263         (CFLAGS-oldiofgetpos64.c): Likewise.
23264         (CFLAGS-oldiofgetpos.c): Likewise.
23265         (CFLAGS-oldiofsetpos64.c): Likewise.
23266         (CFLAGS-oldiofsetpos.c): Likewise.
23267         (CFLAGS-peekc.c): Likewise.
23268         (CFLAGS-putc.c): Likewise.
23269         (CFLAGS-putchar.c): Likewise.
23270         (CFLAGS-putwc.c): Likewise.
23271         (CFLAGS-putwchar.c): Likewise.
23272         (CFLAGS-rewind.c): Likewise.
23273         (CFLAGS-wfileops.c): Likewise.
23274         (CFLAGS-wgenops.c): Likewise.
23275         (CFLAGS-oldiofopen.c): Likewise.
23276         (CFLAGS-iofopen.c): Likewise.
23277         (CFLAGS-iofopen64.c): Likewise.
23278         (CFLAGS-oldtmpfile.c): Likewise.
23279         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23280         (CFLAGS-fprintf.c): Likewise.
23281         (CFLAGS-printf.c): Likewise.
23282         (CFLAGS-vfwprintf.c): Likewise.
23283         (CFLAGS-vfscanf.c): Likewise.
23284         (CFLAGS-vfwscanf.c): Likewise.
23285         (CFLAGS-fscanf.c): Likewise.
23286         (CFLAGS-scanf.c): Likewise.
23287         (CFLAGS-isoc99_vfscanf.c): Likewise.
23288         (CFLAGS-isoc99_vscanf.c): Likewise.
23289         (CFLAGS-isoc99_fscanf.c): Likewise.
23290         (CFLAGS-isoc99_scanf.c): Likewise.
23291         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23292         (CFLAGS-isoc99_fwscanf.c): Likewise.
23293         (CFLAGS-isoc99_vwscanf.c): Likewise.
23294         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23295
23296         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23297         after mkstemp64.
23298         * login/tst-utmp.c (do_prepare): Likewise.
23299         * rt/tst-aio.c (do_prepare): Likewise.
23300         * rt/tst-aio64.c (do_prepare): Likewise.
23301
23302 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23303
23304         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23305         (__lll_lock_elision): Remove adapt_count decrement...
23306         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
23307         (__lll_trylock_elision): Likewise.
23308         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
23309         (__lll_unlock_elision): ... to here. And utilize
23310         new adapt_count parameter.
23311         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23312         (__lll_unlock_elision): Update to include adapt_count
23313         parameter.
23314         (lll_unlock_elision): Pass pointer to adapt_count
23315         variable.
23316
23317 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23318
23319         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
23320         Add elision adapt_count parameter to list of arguments.
23321         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23322         (lll_unlock_elision): Update with new parameter list
23323         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
23324         (lll_unlock_elision): Likewise.
23325         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
23326         (lll_unlock_elision): Likewise.
23327
23328 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         [BZ #19122]
23331         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
23332         attribute_hidden.
23333
23334         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
23335         attribute_hidden.
23336         [IS_IN (rtld)] (__strdup): Likewise.
23337         [IS_IN (rtld)] (__strerror_r): Likewise.
23338         [IS_IN (rtld)] (__strsep_g): Likewise.
23339         [IS_IN (rtld)] (memchr): Likewise.
23340         [IS_IN (rtld)] (memcmp): Likewise.
23341         [IS_IN (rtld)] (memcpy): Likewise.
23342         [IS_IN (rtld)] (memmove): Likewise.
23343         [IS_IN (rtld)] (memset): Likewise.
23344         [IS_IN (rtld)] (rawmemchr): Likewise.
23345         [IS_IN (rtld)] (stpcpy): Likewise.
23346         [IS_IN (rtld)] (strchr): Likewise.
23347         [IS_IN (rtld)] (strcmp): Likewise.
23348         [IS_IN (rtld)] (strlen): Likewise.
23349         [IS_IN (rtld)] (strnlen): Likewise.
23350         [IS_IN (rtld)] (strsep): Likewise.
23351
23352         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
23353         attribute_hidden.
23354         [IS_IN (rtld)] (__strtoul_internal): Likewise.
23355
23356         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
23357         attribute_hidden.
23358         [IS_IN (rtld)] (__libc_sigaction): Likewise.
23359
23360         * include/setjmp.h (__longjmp): Add attribute_hidden.
23361         [IS_IN (rtld)] (__sigsetjmp): Likewise.
23362
23363         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
23364         Add attribute_hidden.
23365
23366         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
23367         [IS_IN (rtld)] (__open): Likewise.
23368         [IS_IN (rtld)] (__fcntl): Likewise.
23369
23370         * include/dirent.h (__opendirat): Add attribute_hidden.
23371         (__getdents): Likewise.
23372         (__getdents64): Likewise.
23373         (__alloc_dir): Likewise.
23374         [IS_IN (rtld)] (__closedir): Likewise.
23375         [IS_IN (rtld)] (__fdopendir): Likewise.
23376         [IS_IN (rtld)] (__readdir): Likewise.
23377         [IS_IN (rtld)] (__readdir64): Likewise.
23378         [IS_IN (rtld)] (__rewinddir): Likewise.
23379
23380         * include/dlfcn.h (_dl_catch_error): Moved to ...
23381         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
23382         attribute_hidden.
23383
23384         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
23385         (_itoa_word): Likewise.
23386
23387         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
23388         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
23389         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
23390         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
23391         (_dl_higher_prime_number): Likewise.
23392         (_dl_debug_printf_c): Likewise.
23393         (_dl_signal_cerror): Likewise.
23394         (_dl_receive_error): Likewise.
23395         (_dl_reloc_bad_type): Likewise.
23396         (_dl_resolve_conflicts): Likewise.
23397         (_dl_check_all_versions): Likewise.
23398         (_dl_check_map_versions): Likewise.
23399         (_dl_sort_fini): Likewise.
23400         (_dl_debug_initialize): Likewise.
23401         (_dl_init_paths): Likewise.
23402         (_dl_show_auxv): Likewise.
23403         (_dl_next_ld_env_entry): Likewise.
23404         (_dl_important_hwcaps): Likewise.
23405         (_dl_load_cache_lookup): Likewise.
23406         (_dl_update_slotinfo): Likewise.
23407         (_dl_show_scope): Likewise.
23408
23409         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
23410         attribute_hidden.
23411         (_wordcopy_fwd_dest_aligned): Likewise.
23412         (_wordcopy_bwd_aligned): Likewise.
23413         (_wordcopy_bwd_dest_aligned): Likewise.
23414
23415         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
23416         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23417         Likewise.
23418         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23419         Likewise.
23420         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
23421
23422 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23423
23424         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
23425         GCC 5 requirement.
23426
23427 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23428
23429         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
23430         test.
23431         * sysdeps/i386/configure: Regenerated.
23432         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
23433         code unconditional.
23434
23435         * configure.ac (libc_cv_asm_previous_directive): Remove configure
23436         test.
23437         (libc_cv_asm_popsection_directive): Likewise.
23438         * configure: Regenerated.
23439         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
23440         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
23441         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
23442         (__make_section_unallocated): Make definition unconditional.
23443         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
23444         Remove conditional definition.
23445         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
23446         (__make_section_unallocated): Likewise.
23447
23448         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
23449         * configure: Regenerated.
23450         * config.make.in (static-libgcc): Remove variable.
23451         * Makerules (build-shlib-helper): Use -static-libgcc instead of
23452         $(static-libgcc).
23453         (build-module-helper): Likewise.
23454
23455         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
23456         * configure: Regenerated.
23457
23458 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23459
23460         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
23461         (struct char_buffer): New type.
23462         (char_buffer_start, char_buffer_size, char_buffer_error)
23463         (char_buffer_rewind, char_buffer_add): New functions.
23464         (ADDW): Remove macro, replaced by the char_buffer_add function.
23465         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
23466         of extend_alloca.  Make control flow more explicit.
23467
23468 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23469
23470         [BZ #19137]
23471         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
23472         Add -fomit-frame-pointer.
23473         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
23474
23475 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23476
23477         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
23478         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
23479         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
23480         only if !__GNUC_PREREQ (5,0).
23481         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
23482         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
23483         (INTERNAL_SYSCALL_NCS): Likewise.
23484         (LOADREGS_0): New macro for GCC 5.
23485         (ASMARGS_0): Likewise.
23486         (LOADREGS_1): Likewise.
23487         (ASMARGS_1): Likewise.
23488         (LOADREGS_2): Likewise.
23489         (ASMARGS_2): Likewise.
23490         (LOADREGS_3): Likewise.
23491         (ASMARGS_3): Likewise.
23492         (LOADREGS_4): Likewise.
23493         (ASMARGS_4): Likewise.
23494         (LOADREGS_5): Likewise.
23495         (ASMARGS_5): Likewise.
23496         (LOADREGS_6): Likewise.
23497         (ASMARGS_6): Likewise.
23498
23499 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23500
23501         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
23502         -fomit-frame-pointer.
23503         (CFLAGS-mmap64.c): Likewise.
23504         (CFLAGS-semtimedop.c): Likewise.
23505         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
23506         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
23507         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
23508         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
23509
23510 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23511
23512         [BZ #18928]
23513         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
23514         _dl_pointer_guard member.
23515         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
23516         initializer.
23517         (security_init): Always set up pointer guard.
23518         (process_envvars): Do not process LD_POINTER_GUARD.
23519
23520 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
23521
23522         [BZ #19134]
23523         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
23524         (.LC2): Likewise.
23525         (.LC3): Likewise.
23526         (__lround): Do not add 0.5 to integer or out-of-range arguments.
23527
23528 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23529
23530         [BZ #19129]
23531         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
23532         r0 and r1.
23533
23534 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
23535
23536         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
23537
23538 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
23539
23540         * include/stap-probe.h: Fix macro definition formatting.
23541
23542 2015-10-14  Florian Weimer  <fweimer@redhat.com>
23543
23544         [BZ #19074]
23545         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
23546         load and store num_ifs.
23547
23548 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23549
23550         [BZ #18822]
23551         * sysdeps/unix/sysv/linux/sched_getaffinity.c
23552         (__sched_getaffinity_new): Add libc_hidden_proto and
23553         libc_hidden_def.
23554
23555 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23556
23557         [BZ #19007]
23558         * scripts/localplt.awk: Also allow GOT references.
23559         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
23560         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
23561         with "+ REL R_386_GLOB_DAT".
23562         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
23563         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
23564
23565 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
23566
23567         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
23568         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23569         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
23570         Likewise.
23571         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
23572         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
23573         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
23574         INTERNAL_SYSCALLINTERNAL_SYSCALL and
23575         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23576         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
23577         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23578         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
23579         Likewise.
23580         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23581
23582 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23583
23584         [BZ #19125]
23585         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
23586         <math_private.h> and <stdint.h>.
23587         (__llround): Avoid conversions to and from long long int, and
23588         subtractions, where those might raise spurious exceptions.
23589         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
23590         <math_private.h> and <stdint.h>.
23591         (__llroundf): Avoid conversions to and from long long int, and
23592         subtractions, where those might raise spurious exceptions.
23593
23594 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23595
23596         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
23597         INLINE_SYSCALL_ERROR_RETURN_VALUE.
23598         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
23599         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
23600         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
23601         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
23602         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
23603         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
23604         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
23605         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
23606         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
23607         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23608         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
23609         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23610         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23611         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
23612         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
23613         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
23614         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
23615         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
23616         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
23617         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
23618         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
23619         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
23620         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
23621         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
23622         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
23623         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
23624         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23625         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
23626         (__xstat64_conv): Likewise.
23627         (__xstat32_conv): Likewise.
23628
23629 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23630
23631         * sysdeps/unix/sysv/linux/sysdep.h: New file.
23632         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
23633         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
23634         <sysdeps/unix/sysv/linux/sysdep.h>.
23635         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23636         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
23637         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
23638         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23639         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23640         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
23641         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
23642         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
23643         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
23644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23646         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23647         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23648         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23649         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23650         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23651         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
23652         (sysdep-dl-routines): Add sysdep.
23653         [$(subdir) == nptl] (libpthread-routines): Likewise.
23654         [$(subdir) == rt] (librt-routines): Likewise.
23655         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
23656         PIC when branching to SYSCALL_ERROR_LABEL.
23657         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
23658         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
23659         <sysdeps/unix/sysv/linux/sysdep.h>.
23660         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
23661         (SYSCALL_ERROR_ERRNO): Removed.
23662         (SYSCALL_ERROR_HANDLER): Changed to empty.
23663         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
23664         (__syscall_error): New prototype.
23665         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
23666         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
23667
23668 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
23669
23670         [BZ #19124]
23671         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
23672         (_dl_runtime_resolve_avx512): Make it a hidden alias of
23673         _dl_runtime_resolve_avx.
23674         (_dl_runtime_profile_avx512): Make it a hidden alias of
23675         _dl_runtime_profile_avx.
23676
23677 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
23678
23679         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
23680         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
23681         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
23682         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
23683
23684         [BZ #16422]
23685         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
23686         New configure test.
23687         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
23688         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
23689         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
23690         <math_private.h> and <stdint.h>.
23691         (__llrint): Avoid conversions to long long int where those might
23692         raise spurious exceptions.
23693         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
23694         <math_private.h> and <stdint.h>.
23695         (__llrintf): Avoid conversions to long long int where those might
23696         raise spurious exceptions.
23697
23698 2015-10-12  Andreas Schwab  <schwab@suse.de>
23699
23700         [BZ #18969]
23701         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
23702         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
23703         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
23704         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
23705         $(gen-locales).
23706         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
23707         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
23708         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
23709         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
23710         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
23711         $(gen-locales).
23712         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
23713         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
23714         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
23715         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
23716         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
23717         ($(objpfx)tst-ftell-active-handler.out)
23718         ($(objpfx)tst-ftell-append.out)
23719         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
23720         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
23721         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
23722         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
23723         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
23724         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
23725         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
23726         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
23727         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
23728         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
23729         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
23730         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
23731         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
23732         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
23733         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
23734         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
23735         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
23736         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
23737         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
23738         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
23739         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
23740         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
23741         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
23742         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
23743         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
23744         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
23745         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
23746         $(gen-locales).
23747         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
23748         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
23749         $(gen-locales).
23750         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
23751         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
23752         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
23753         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
23754         $(gen-locales).
23755         * libio/tst_wprintf2.c (main): Use explicit locale.
23756         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
23757
23758 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23759
23760         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
23761         __msg_sig_post.
23762         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
23763
23764 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23765
23766         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
23767         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23768
23769         * sysdeps/arm/libm-test-ulps: Regenerated.
23770
23771         [BZ #15470]
23772         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
23773
23774         [BZ #16399]
23775         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
23776         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
23777         and <fix-fp-int-convert-overflow.h>.
23778         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23779         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23780         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
23781         and <fix-fp-int-convert-overflow.h>.
23782         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
23783         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23784         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
23785         <fix-fp-int-convert-overflow.h>.
23786         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
23787         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23788         * sysdeps/ieee754/dbl-64/s_lround.c: Include
23789         <fix-fp-int-convert-overflow.h>.
23790         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
23791         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23792         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
23793         and <fix-fp-int-convert-overflow.h>.
23794         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23795         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23796         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
23797         <limits.h> and <fix-fp-int-convert-overflow.h>.
23798         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23799         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23800         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
23801         and <fix-fp-int-convert-overflow.h>.
23802         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
23803         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23804         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
23805         and <fix-fp-int-convert-overflow.h>.
23806         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
23807         FIX_DBL_LLONG_CONVERT_OVERFLOW.
23808         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
23809
23810 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
23811
23812         [BZ #18589]
23813         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
23814         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
23815         $(gen-locales).
23816
23817 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23818             Phil Blundell <pb@pbcl.net>
23819
23820         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
23821         * nptl/tst-cancel26.c: New file.
23822         * nptl/tst-cancel27.c: Likewise.
23823
23824 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
23825
23826         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
23827         __ILP32__ isn't defined.
23828         (lrint): Likewise.
23829         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
23830         (lrintf): Likewise.
23831         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
23832         (lrintl): Likewise.
23833         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
23834         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
23835         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
23836
23837 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23838
23839         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
23840         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
23841
23842         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
23843         file.
23844         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
23845         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
23846
23847 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
23848
23849         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
23850         configure test.
23851         * sysdeps/i386/configure: Regenerated.
23852         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
23853         configure test.
23854         * sysdeps/x86_64/configure: Regenerated.
23855         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
23856         Make code unconditional.
23857
23858         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
23859         test.
23860         * sysdeps/i386/configure: Regenerated.
23861         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
23862         test.
23863         * sysdeps/x86_64/configure: Regenerated.
23864         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
23865         Make code unconditional.
23866         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
23867         Likewise.
23868         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
23869         Likewise.
23870         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23871         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
23872         code unconditional.
23873         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23874         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
23875         code unconditional.
23876         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23877         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
23878         code unconditional.
23879         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
23880         code unconditional.
23881         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23882         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
23883         code unconditional.
23884         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23885         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
23886         code unconditional.
23887         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23888         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
23889         code unconditional.
23890         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23891         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
23892         code unconditional.
23893         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
23894         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
23895
23896         [BZ #19095]
23897         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
23898         mantissa to long int before shifting left.
23899
23900 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
23901
23902         [BZ #19094]
23903         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
23904         <limits.h>.
23905         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23906         when result overflows but exception would not result from cast.
23907         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
23908         <limits.h>.
23909         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23910         when result overflows but exception would not result from cast.
23911         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
23912         <limits.h>.
23913         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23914         when result overflows but exception would not result from cast.
23915         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
23916         <limits.h>.
23917         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23918         when result overflows but exception would not result from cast.
23919         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
23920         <limits.h>.
23921         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
23922         when result overflows but exception would not result from cast.
23923         * math/libm-test.inc (lrint_test_data): Add more tests.
23924         (llrint_test_data): Likewise.
23925
23926 2015-10-08  Roland McGrath  <roland@hack.frob.com>
23927
23928         [BZ #18872]
23929         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
23930         Move out from under [$(run-built-tests) = yes] conditional.
23931         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
23932         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
23933
23934 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
23935
23936         [BZ #18589]
23937         * string/Makefile (tests): Add bug-strcoll2.
23938         (LOCALES): Add cs_CZ.UTF-8.
23939         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
23940
23941         [BZ #18589]
23942         * string/bug-strcoll2.c: New file.
23943         * locale/categories.def: Revert commit
23944         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
23945         * locale/langinfo.h: Likewise.
23946         * locale/localeinfo.h: Likewise.
23947         * locale/C-collate.c: Likewise.
23948         * locale/programs/ld-collate.c (collate_output): Likewise.
23949         * string/strcoll_l.c (STRDIFF): Likewise.
23950         (STRCOLL): Likewise.
23951         * wcsmbs/wcscoll_l.c: Likewise.
23952
23953 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
23954
23955         * math/libm-test.inc (lround_test_data): Do not expect the absence
23956         of "inexact" for some tests with non-integer arguments.
23957         (llround_test_data): Likewise.
23958
23959         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
23960         test.
23961         (libc_cv_cc_sse2avx): Likewise.
23962         * sysdeps/i386/configure: Regenerated.
23963         * sysdeps/i386/i686/multiarch/Makefile
23964         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
23965         [$(subdir) = math].
23966         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
23967         code unconditional.
23968         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
23969         Likewise.
23970         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
23971         Likewise.
23972         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
23973         Likewise.
23974         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
23975         test.
23976         (libc_cv_cc_sse2avx): Likewise.
23977         * sysdeps/x86_64/configure: Regenerated.
23978         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
23979         unconditional.
23980         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
23981         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
23982         unconditional.
23983         (_dl_runtime_profile)
23984         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
23985         conditional code.
23986         * sysdeps/x86_64/fpu/multiarch/Makefile
23987         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
23988         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
23989         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23990         * sysdeps/x86_64/fpu/multiarch/e_exp.c
23991         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23992         * sysdeps/x86_64/fpu/multiarch/e_log.c
23993         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23994         * sysdeps/x86_64/fpu/multiarch/s_atan.c
23995         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
23996         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
23997         Likewise.
23998         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
23999         Likewise.
24000         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24001         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24002         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24003         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24004         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24005         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24006         (HAVE_SSE2AVX_SUPPORT): Likewise.
24007
24008 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24009
24010         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24011         instead of #pragma optimize.
24012
24013 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24014
24015         [BZ #17195]
24016         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24017         as is similarly done in systrim and _int_free already.
24018
24019 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24020
24021         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24022
24023 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24024
24025         [BZ #19088]
24026         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24027         <limits.h>.
24028         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24029         overflows but exception would not result from cast.
24030         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24031         and <limits.h>.
24032         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24033         overflows but exception would not result from cast.
24034         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24035         <limits.h>.
24036         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24037         overflows but exception would not result from cast.
24038         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24039         <limits.h>.
24040         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24041         overflows but exception would not result from cast.
24042         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24043         <limits.h>.
24044         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24045         overflows but exception would not result from cast.
24046         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24047         <limits.h>.
24048         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24049         overflows but exception would not result from cast.
24050         * math/libm-test.inc (lround_test_data): Add more tests.
24051         (llround_test_data): Likewise.
24052
24053 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24054
24055         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24056         (CFLAGS-ialloc.c): Ditto.
24057         (CFLAGS-scheck.c): Ditto.
24058
24059 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24060
24061         [BZ #19086]
24062         * manual/filesys.texi (Storage Allocation): Fix argument order for
24063         posix_fallocate64.
24064
24065 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24066
24067         [BZ #19085]
24068         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24069         exponent below 48 inside case for non-overflowing exponent.
24070         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24071
24072 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24073
24074         * iconvdata/cp737.h (from_idx): Add const.
24075         * iconvdata/cp775.h (from_idx): Likewise.
24076
24077 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24078
24079         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24080         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24081         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24082
24083         [BZ #19079]
24084         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24085         file, conditioned on [!_LP64].
24086         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24087         [!_LP64] (__lround): Do not define as function or alias.
24088         [!_LP64] (lround): Likewise.
24089         [!_LP64] (__lroundl): Likewise.
24090         [!_LP64] (lroundl): Likewise.
24091         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24092         macro.
24093         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24094         Likewise.
24095
24096 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24097
24098         * math/libm-test.inc (lrint_test_data): Add more tests.
24099         (llrint_test_data): Likewise.
24100         (lround_test_data): Likewise.
24101         (llround_test_data): Likewise.
24102
24103         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24104         (llrint_test_data): Add tests used for lrint.
24105
24106         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24107         test.
24108         * sysdeps/i386/configure: Regenerated.
24109         * sysdeps/i386/i686/multiarch/Makefile
24110         [$(config-cflags-sse4) = yes]: Make code unconditional.
24111         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24112         Likewise.
24113         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24114         Likewise.
24115         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24116         test.
24117         * sysdeps/x86_64/configure: Regenerated.
24118         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24119         Make code unconditional.
24120         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24121         Likewise.
24122         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24123         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24124
24125         * scripts/rpm2dynsym.sh: Remove file.
24126
24127 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24128
24129         * configure.ac (libc_cv_cxx_thread_local): Define.
24130         * configure: Regenerate.
24131         * config.make.in (have-cxx-thread_local): Define.
24132         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24133         (LDLIBS-tst-thread_local1): Define.
24134         (tests): Add tst-thread_local1.
24135         [have-cxx-thread_local != yes] (tests-unsupported): Add
24136         tst-thread_local1.
24137         * nptl/tst-thread_local1.cc: New file.
24138
24139 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24140
24141         [BZ #19078]
24142         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24143         (u_thres): Likewise.
24144         (__expl): Determine whether to call __kernel_standard_l based on
24145         value of result, not argument.
24146
24147         * math/libm-test.inc (scalb_test_data): Add more expectations for
24148         the "inexact" exception.
24149
24150         [BZ #19077]
24151         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24152         0.0L for argument 1.0L.
24153
24154         [BZ #19076]
24155         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24156         constant 0.0L when computing infinite result.
24157
24158 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24159
24160         [BZ #10432]
24161         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24162         malloc_usable_size.
24163
24164 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24165
24166         [BZ #19018]
24167         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24168         Mangle function pointer before storing it.
24169         (__call_tls_dtors): Demangle function pointer before calling it.
24170
24171 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24172
24173         [BZ #19012]
24174         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24175         Clean up on failure.
24176
24177 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24178
24179         [BZ #19071]
24180         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24181         long int variable to store possibly incremented high part of
24182         mantissa.
24183         * math/libm-test.inc (lround_test_data): Add tests used for
24184         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24185         for tests requiring 64-bit long.  Do not condition tests on
24186         [TEST_FLOAT] unnecessarily.
24187         (llround_test_data): Add tests used for lround.  Add another
24188         expectation for the "inexact" exception.  Do not condition tests
24189         on [TEST_FLOAT] unnecessarily.
24190
24191         [BZ #887]
24192         [BZ #19049]
24193         [BZ #19050]
24194         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24195         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24196         <fix-int-fp-convert-zero.h>.
24197         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24198         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24199         <fix-int-fp-convert-zero.h>.
24200         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24201         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24202         <fix-int-fp-convert-zero.h>.
24203         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24204         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24205         <fix-int-fp-convert-zero.h>.
24206         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24207         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24208         <fix-int-fp-convert-zero.h>.
24209         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24210         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24211         <fix-int-fp-convert-zero.h>.
24212         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24213         * sysdeps/ieee754/flt-32/s_erff.c: Include
24214         <fix-int-fp-convert-zero.h>.
24215         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24216         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24217         <fix-int-fp-convert-zero.h>.
24218         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24219         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24220         <fix-int-fp-convert-zero.h>.
24221         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24222         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24223         <fix-int-fp-convert-zero.h>.
24224         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24225         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24226         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24227         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24228         file.
24229         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24230
24231 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24232
24233         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24234
24235 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24236
24237         [BZ #19059]
24238         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24239         overflowing computation.
24240         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24241         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24242         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24243         Likewise.
24244         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24245         Likewise.
24246         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24247         Likewise.
24248         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24249         Likewise.
24250         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24251         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24252         Likewise.
24253         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24254         Likewise.
24255         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24256
24257         * nss/rewrite_field.c (__nss_rewrite_field): Use
24258         internal_function.
24259         * nss/valid_field.c (__nss_valid_field): Likewise.
24260         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24261
24262 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24263
24264         [BZ #18724]
24265         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24266         (__nss_invalid_field_characters, __nss_valid_field)
24267         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24268         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24269         tst-field.c: New file.
24270         * nss/Makefile (routines): Add valid_field, rewrite_field.
24271         (tests-static): Define unconditionally.
24272         (tests): Include tests-static.
24273         [build-static-nss] (tests-static): Use append.
24274         [build-static-nss] (tests): Remove modification.
24275         * nss/getent.c (print_group): Call putgrent.  Report error.
24276         (print_gshadow): Call putsgent.  Report error.
24277         (print_passwd): Call putpwent.  Report error.
24278         (print_shadow): Call putspent.  Report error.
24279         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24280         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24281         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24282         name, password, directory, shell fields for valid syntax.  Rewrite
24283         GECOS field to match syntax.
24284         * pwd/Makefile (tests): Add tst-putpwent.
24285         * pwd/tst-putpwent.c: New file.
24286         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24287         Check grName, grpasswd, gr_mem fields for valid syntax.
24288         Change loop variable i to size_t.
24289         * grp/Makefile (tests): Add tst-putgrent.
24290         * grp/tst-putgrent.c: New file.
24291         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24292         valid syntax.
24293         * shadow/Makefile (tests): Add tst-putspent.
24294         * shadow/tst-putspent.c: New file.
24295         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24296         sg_mem fields for valid syntax.
24297         * gshadow/Makefile (tests): Add tst-putsgent.
24298         * gshadow/tst-putsgent.c: New file.
24299
24300 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24301
24302         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24303         assembly instructions.
24304
24305 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24306
24307         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
24308         prefix from operands.
24309
24310 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
24311
24312         [BZ #16347]
24313         [BZ #19046]
24314         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
24315         <libc-internal.h>.
24316         (MAXLGM): Do not use diagnostic control macros.
24317         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
24318         threshold for ldbl-128ibm.
24319         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
24320         instead of multiplying by log then subtracting.
24321         * math/auto-libm-test-in: Add more tests of lgamma.
24322         * math/auto-libm-test-out: Regenerated.
24323
24324         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
24325         (TYPE_HEX_DIG): Likewise.
24326         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
24327         precisions when printing floating-point numbers.
24328         (check_float_internal): Likewise.
24329
24330 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24331
24332         [BZ #16620]
24333         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
24334         of log (10) rounded downward to 48 bits.
24335         (log10_low): Use corresponding low part of log (10).
24336
24337         [BZ #19032]
24338         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
24339         compute result as (x - x) / (x - x) not as 0 / 0.
24340         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
24341         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
24342
24343         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24344         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
24345         and expm1.
24346         * math/auto-libm-test-out: Regenerated.
24347         * math/libm-test.inc (acos_test_data): Add more tests.
24348         (asin_test_data): Likewise.
24349         (asinh_test_data): Likewise.
24350         (atan_test_data): Likewise.
24351         (atanh_test_data): Likewise.
24352         (atan2_test_data): Likewise.
24353         (cbrt_test_data): Likewise.
24354         (ceil_test_data): Likewise.
24355         (copysign_test_data): Likewise.
24356         (cos_test_data): Likewise.
24357         (cosh_test_data): Likewise.
24358         (erf_test_data): Likewise.
24359         (erfc_test_data): Likewise.
24360         (exp_test_data): Likewise.
24361         (exp10_test_data): Likewise.
24362         (exp2_test_data): Likewise.
24363         (expm1_test_data): Likewise.
24364         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24365
24366 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
24367
24368         [BZ #19006]
24369         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
24370         to ...
24371         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
24372         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
24373         to ...
24374         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
24375         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
24376         to ...
24377         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
24378         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
24379         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
24380         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
24381         to ...
24382         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
24383         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
24384         Moved to ...
24385         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
24386         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
24387         Moved to ...
24388         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
24389         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
24390         to ...
24391         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
24392         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
24393         Moved to ...
24394         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
24395         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
24396         to ...
24397         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
24398         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
24399         Removed.
24400         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
24401         Likewise.
24402         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
24403         Likewise.
24404         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
24405         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
24406         Likewise.
24407         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
24408         Likewise.
24409         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
24410         Likewise.
24411         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
24412         Likewise.
24413         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
24414         Likewise.
24415         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
24416         Likewise.
24417         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
24418         Likewise.
24419         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
24420         Likewise.
24421         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
24422         Likewise.
24423         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
24424         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
24425         Likewise.
24426         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
24427         Likewise.
24428         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
24429         Likewise.
24430         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
24431         Likewise.
24432         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
24433         Likewise.
24434         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
24435         Replace ../i486/pthread_cond_timedwait.S with
24436         ../pthread_cond_timedwait.S.
24437
24438 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24439
24440         * math/libm-test.inc (acos_test_data): Refine expectations for
24441         errno and "inexact" exceptions.
24442         (acosh_test_data): Likewise.
24443         (asin_test_data): Likewise.
24444         (asinh_test_data): Likewise.
24445         (atan_test_data): Likewise.
24446         (atanh_test_data): Likewise.
24447         (atan2_test_data): Likewise.
24448         (cbrt_test_data): Likewise.
24449         (ceil_test_data): Likewise.
24450         (copysign_test_data): Likewise.
24451         (cosh_test_data): Likewise.
24452         (erf_test_data): Likewise.
24453         (erfc_test_data): Likewise.
24454         (exp_test_data): Likewise.
24455         (exp10_test_data): Likewise.
24456         (exp2_test_data): Likewise.
24457         (expm1_test_data): Likewise.
24458         (fabs_test_data): Likewise.
24459         (floor_test_data): Likewise.
24460         (fma_test_data): Likewise.
24461         (fmax_test_data): Likewise.
24462         (fmin_test_data): Likewise.
24463         (fmod_test_data): Likewise.
24464         (fpclassify_test_data): Likewise.
24465         (frexp_test_data): Likewise.
24466         (hypot_test_data): Likewise.
24467         (ilogb_test_data): Likewise.
24468         (isgreater_test_data): Likewise.
24469         (isgreaterequal_test_data): Likewise.
24470         (isinf_test_data): Likewise.
24471         (isless_test_data): Likewise.
24472         (islessequal_test_data): Likewise.
24473         (islessgreater_test_data): Likewise.
24474         (isnan_test_data): Likewise.
24475         (isnormal_test_data): Likewise.
24476         (issignaling_test_data): Likewise.
24477         (isunordered_test_data): Likewise.
24478         (j0_test_data): Likewise.
24479         (j1_test_data): Likewise.
24480         (jn_test_data): Likewise.
24481         (lgamma_test_data): Likewise.
24482         (lrint_test_data): Likewise.
24483         (llrint_test_data): Likewise.
24484         (log_test_data): Likewise.
24485         (log10_test_data): Likewise.
24486         (log1p_test_data): Likewise.
24487         (log2_test_data): Likewise.
24488         (logb_test_data): Likewise.
24489         (lround_test_data): Likewise.
24490         (llround_test_data): Likewise.
24491         (modf_test_data): Likewise.
24492         (nearbyint_test_data): Likewise.
24493         (nextafter_test_data): Likewise.
24494         (nexttoward_test_data): Likewise.
24495         (pow_test_data): Likewise.
24496         (remainder_test_data): Likewise.
24497         (remquo_test_data): Likewise.
24498         (rint_test_data): Likewise.
24499         (round_test_data): Likewise.
24500         (signbit_test_data): Likewise.
24501         (sinh_test_data): Likewise.
24502         (sqrt_test_data): Likewise.
24503         (tanh_test_data): Likewise.
24504         (tgamma_test_data): Likewise.
24505         (trunc_test_data): Likewise.
24506         (y0_test_data): Likewise.
24507         (y1_test_data): Likewise.
24508         (yn_test_data): Likewise.
24509         (significand_test_data): Likewise.
24510
24511 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
24512
24513         * manual/filesys.texi (Storage Allocation): Document that
24514         posix_fallocate emulation fails when fd is open with O_WRONLY.
24515
24516 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
24517
24518         [BZ #19016]
24519         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
24520         allow more cases with X^2 + Y^2 >= 0.5.
24521         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
24522         normal element in sum instead of special-casing based on values of
24523         arguments.
24524         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
24525         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
24526         -1 as normal element in sum instead of special-casing based on
24527         values of arguments.
24528         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
24529         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
24530         (__x2y2m1): Update comment.
24531         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
24532         as normal element in sum instead of special-casing based on values
24533         of arguments.
24534         * math/s_clog.c (__clog): Handle more cases using log1p without
24535         hypot.
24536         * math/s_clog10.c (__clog10): Likewise.
24537         * math/s_clog10f.c (__clog10f): Likewise.
24538         * math/s_clog10l.c (__clog10l): Likewise.
24539         * math/s_clogf.c (__clogf): Likewise.
24540         * math/s_clogl.c (__clogl): Likewise.
24541         * math/auto-libm-test-in: Add more tests of clog and clog10.
24542         * math/auto-libm-test-out: Regenerated.
24543         * sysdeps/i386/fpu/libm-test-ulps: Update.
24544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24545
24546 2015-09-28  Martin Sebor  <msebor@redhat.com>
24547
24548         [BZ #18969]
24549         * string/Makefile (LOCALES): Define.
24550         (gen-locales.mk): Include.
24551         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
24552         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
24553         * string/tst-strxfrm2.c (do_test): Print the name of the locale
24554         on setlocale failure.
24555
24556 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
24557
24558         [BZ #18985]
24559         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
24560         (__strftime_internal): Likewise.
24561         * time/tst-strftime.c (do_bz18985): New test.
24562         (do_test): Call it.
24563
24564 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
24565
24566         [BZ #18956]
24567         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
24568         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
24569         extracting high part.
24570         * math/auto-libm-test-in: Add another test of pow.
24571         * math/auto-libm-test-out: Regenerated.
24572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24573
24574 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24575
24576         [BZ #18825]
24577         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
24578         New macro.
24579         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
24580         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24581         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
24582         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
24583         DBL_NARROW_EVAL, reloading the PIC register as needed.
24584         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
24585         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
24586         FLT_NARROW_EVAL.  Use separate return path for case when first
24587         argument is NaN.
24588         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
24589         DEFINE_LDBL_MIN.
24590         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
24591         PIC register.
24592         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
24593         math_check_force_underflow_nonneg.
24594         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
24595         underflow for subnormal result.
24596         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
24597         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
24598         math_check_force_underflow_nonneg.
24599         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
24600         math_check_force_underflow.
24601         * sysdeps/x86_64/fpu/x86_64-math-asm.h
24602         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
24603         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
24604         DEFINE_LDBL_MIN.
24605         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
24606         * math/auto-libm-test-in: Add more tests of pow.
24607         * math/auto-libm-test-out: Regenerated.
24608
24609 2015-09-25  Florian Weimer  <fweimer@redhat.com>
24610
24611         * nss/bug17079.c (init_test_items): Add diagnostic for
24612         inconsistent entries.
24613         (test_buffer_size): Skip inconsistent entries.
24614
24615 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
24616
24617         [BZ #13304]
24618         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
24619         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24620         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
24621
24622         [BZ #13304]
24623         * sysdeps/microblaze/s_fma.c: New file.
24624         * sysdeps/microblaze/s_fmaf.c: Likewise.
24625         * sysdeps/microblaze/sfp-machine.h: Likewise.
24626
24627 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
24628
24629         [BZ #17250]
24630         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
24631         member.
24632
24633 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24634
24635         [BZ #18803]
24636         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
24637         (MO): New macro.
24638         (__ieee754_hypot) [PIC]: Load PIC register.
24639         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
24640         DBL_NARROW_EVAL.
24641         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
24642         math_check_force_underflow_nonneg in case where result might be
24643         tiny.
24644         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
24645         Likewise.
24646         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24647         Likewise.
24648         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
24649         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
24650         * math/auto-libm-test-in: Add more tests of hypot.
24651         * math/auto-libm-test-out: Regenerated.
24652
24653 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
24654
24655         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
24656
24657 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
24658
24659         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
24660         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
24661         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24662         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24663         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
24664         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24665         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24666
24667         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
24668         LOAD_PIC_REG.
24669
24670         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
24671         (FLT_CHECK_FORCE_UFLOW): Likewise.
24672         (DBL_CHECK_FORCE_UFLOW): Likewise.
24673         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
24674         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
24675         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
24676         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24677         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
24678         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24679         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24680         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
24681         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
24682         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24683         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
24684         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
24685         (flt_min): Replace with use of DEFINE_FLT_MIN.
24686         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
24687         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
24688         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24689         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
24690         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
24691         (flt_min): Replace with use of DEFINE_FLT_MIN.
24692         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
24693         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
24694         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24695         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
24696         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
24697         (flt_min): Replace with use of DEFINE_FLT_MIN.
24698         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
24699         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
24700         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
24701         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
24702         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
24703         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
24704         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
24705         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
24706         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24707         (__atan): Use DBL_CHECK_FORCE_UFLOW.
24708         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
24709         (flt_min): Replace with use of DEFINE_FLT_MIN.
24710         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
24711         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
24712         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24713         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
24714         main computation.
24715         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
24716         (flt_min): Replace with use of DEFINE_FLT_MIN.
24717         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
24718         main computation.
24719         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
24720         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24721         (MO): New macro.
24722         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
24723         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
24724         (flt_min): Replace with use of DEFINE_FLT_MIN.
24725         (MO): New macro.
24726         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
24727         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
24728         (__log1pl): Use MO.
24729
24730         [BZ #19003]
24731         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
24732         $(config-cflags-nofma).
24733
24734 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24735
24736         * sysdeps/aarch64/libm-test-ulps: Regenerated.
24737
24738 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
24739
24740         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
24741         (TWO127): Likewise.
24742
24743         * sysdeps/generic/math_private.h (fabs_tg): New macro.
24744         (min_of_type): Likewise.
24745         (math_check_force_underflow): Likewise.
24746         (math_check_force_underflow_nonneg): Likewise.
24747         (math_check_force_underflow_complex): Likewise.
24748         * math/e_exp2l.c (__ieee754_exp2l): Use
24749         math_check_force_underflow_nonneg.
24750         * math/k_casinh.c (__kernel_casinh): Likewise.
24751         * math/k_casinhf.c (__kernel_casinhf): Likewise.
24752         * math/k_casinhl.c (__kernel_casinhl): Likewise.
24753         * math/s_catan.c (__catan): Use
24754         math_check_force_underflow_complex.
24755         * math/s_catanf.c (__catanf): Likewise.
24756         * math/s_catanh.c (__catanh): Likewise.
24757         * math/s_catanhf.c (__catanhf): Likewise.
24758         * math/s_catanhl.c (__catanhl): Likewise.
24759         * math/s_catanl.c (__catanl): Likewise.
24760         * math/s_ccosh.c (__ccosh): Likewise.
24761         * math/s_ccoshf.c (__ccoshf): Likewise.
24762         * math/s_ccoshl.c (__ccoshl): Likewise.
24763         * math/s_cexp.c (__cexp): Likewise.
24764         * math/s_cexpf.c (__cexpf): Likewise.
24765         * math/s_cexpl.c (__cexpl): Likewise.
24766         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
24767         * math/s_clog10.c (__clog10): Likewise.
24768         * math/s_clog10f.c (__clog10f): Likewise.
24769         * math/s_clog10l.c (__clog10l): Likewise.
24770         * math/s_clogf.c (__clogf): Likewise.
24771         * math/s_clogl.c (__clogl): Likewise.
24772         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
24773         * math/s_csinf.c (__csinf): Likewise.
24774         * math/s_csinh.c (__csinh): Likewise.
24775         * math/s_csinhf.c (__csinhf): Likewise.
24776         * math/s_csinhl.c (__csinhl): Likewise.
24777         * math/s_csinl.c (__csinl): Likewise.
24778         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
24779         * math/s_csqrtf.c (__csqrtf): Likewise.
24780         * math/s_csqrtl.c (__csqrtl): Likewise.
24781         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
24782         * math/s_ctanf.c (__ctanf): Likewise.
24783         * math/s_ctanh.c (__ctanh): Likewise.
24784         * math/s_ctanhf.c (__ctanhf): Likewise.
24785         * math/s_ctanhl.c (__ctanhl): Likewise.
24786         * math/s_ctanl.c (__ctanl): Likewise.
24787         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
24788         instead of volatile.
24789         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
24790         math_check_force_underflow.
24791         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
24792         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
24793         volatile when forcing underflow.
24794         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24795         math_check_force_underflow_nonneg.
24796         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
24797         Likewise.
24798         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
24799         math_check_force_underflow.
24800         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
24801         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
24802         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
24803         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
24804         math_check_force_underflow_nonneg.
24805         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
24806         math_check_force_underflow.
24807         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
24808         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
24809         instead of volatile.
24810         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
24811         math_check_force_underflow.
24812         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
24813         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24814         math_check_force_underflow_nonneg.
24815         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
24816         math_check_force_underflow.
24817         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
24818         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
24819         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
24820         math_check_force_underflow_nonneg.
24821         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
24822         Likewise.
24823         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
24824         math_check_force_underflow.
24825         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
24826         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
24827         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
24828         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
24829         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
24830         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
24831         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
24832         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
24833         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
24834         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
24835         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
24836         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
24837         Likewise.
24838         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
24839         math_check_force_underflow_nonneg.
24840         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
24841         Likewise.
24842         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
24843         math_check_force_underflow.
24844         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
24845         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
24846         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
24847         Likewise.
24848         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
24849         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
24850         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
24851         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
24852         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
24853         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
24854         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
24855         instead of volatile.
24856         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
24857         math_check_force_underflow.
24858         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
24859         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
24860         math_check_force_underflow.
24861         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
24862         Likewise.
24863         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
24864         Use math_check_force_underflow_nonneg.
24865         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
24866         math_check_force_underflow.
24867         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
24868         Likewise.
24869         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
24870         Likewise.
24871         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
24872         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
24873         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
24874         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
24875         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
24876         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
24877         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
24878         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
24879         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
24880         math_check_force_underflow_nonneg.
24881         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
24882         math_check_force_underflow.
24883         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
24884         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
24885         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
24886         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
24887         math_check_force_underflow_nonneg.
24888         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
24889         math_check_force_underflow.
24890         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
24891         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
24892         instead of volatile.
24893         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
24894         math_check_force_underflow.
24895
24896         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
24897         * stdlib/strtod_l.c: Include <math_private.h>.
24898         (overflow_value): Use math_narrow_eval.
24899         (underflow_value): Likewise.
24900         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24901         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24902         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
24903         (__ieee754_gamma_r): Likewise.
24904         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
24905         Likewise.
24906         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
24907         Likewise.
24908         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
24909         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
24910         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
24911         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
24912         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
24913         (__ieee754_gammaf_r): Likewise.
24914         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
24915         Likewise.
24916         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
24917         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
24918         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
24919         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
24920         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
24921         volatile.
24922         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
24923         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
24924         math_narrow_eval.
24925         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24926         Likewise.
24927         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24928         Likewise.
24929         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
24930         Likewise.
24931         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
24932         volatile.
24933         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
24934         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
24935         math_narrow_eval.
24936         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24937         Likewise.
24938         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24939         Likewise.
24940
24941 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
24942
24943         * nptl/Versions: Remove ignored symbols.
24944
24945 2015-09-22  Florian Weimer  <fweimer@redhat.com>
24946
24947         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
24948         * nss/Makefile (tests): Update.
24949
24950 2015-09-22  Florian Weimer  <fweimer@redhat.com>
24951
24952         * nss/bug18287.c: New file.
24953         * nss/Makefile (tests): Add bug18287.
24954
24955 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24956
24957         * mach/Versions (__mach_host_self_): Add symbol.
24958
24959 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24960
24961         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
24962         vm_page_size.
24963
24964 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24965
24966         Really fix sysdeps/i386/fpu/s_scalbn.S build
24967
24968         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
24969         (libc: GLIBC_2_22): Remove unused version set.
24970
24971 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
24972
24973         * config.make.in (enable-timezone-tools): New variable.
24974         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
24975         (enable_timezone_tools): Export to generated files.
24976         * configure: Regenerate.
24977         * INSTALL: Regenerate.
24978         * manual/install.texi (--disable-timezone-tools): Document new flag.
24979         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
24980         ifeq ($(enable-timezone-tools),yes) check.
24981
24982 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
24983
24984         * timezone/Makefile: Revert previous change.
24985
24986         [BZ #18980]
24987         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
24988         (DEFINE_DBL_MIN): Likewise.
24989         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
24990         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
24991         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
24992         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
24993         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
24994         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24995         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
24996         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
24997         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
24998         (dbl_min): Replace with use of DEFINE_DBL_MIN.
24999         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25000         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25001         (flt_min): Replace with use of DEFINE_FLT_MIN.
25002         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25003         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25004         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25005         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25006         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25007         (flt_min): Replace with use of DEFINE_FLT_MIN.
25008         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25009         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25010         (flt_min): Replace with use of DEFINE_FLT_MIN.
25011         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25012         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25013         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25014         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25015         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25016         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25017         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25018         (__ieee754_pow): Use DBL_NARROW_EVAL.
25019         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25020         (__ieee754_powf): Use FLT_NARROW_EVAL.
25021         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25022         (__ieee754_expf_sse2): Convert double-precision result to single
25023         precision.
25024         * sysdeps/i386/fpu/libm-test-ulps: Update.
25025
25026 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25027
25028         * timezone/Makefile: Ignore unused variable errors due to private.h
25029         (time_t_min) and (time_t_max).
25030         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25031         Likewise.
25032
25033 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25034
25035         [BZ #18981]
25036         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25037         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25038         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25039         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25040         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25041         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25042         (__scalbn): Use DBL_NARROW_EVAL.
25043         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25044         (__scalbnf): Use FLT_NARROW_EVAL.
25045
25046 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25047
25048         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25049         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25050         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25051         * stdio-common/printf_fp.c (___printf_fp):
25052         Use signbit to get the sign. Use isinf macro to allow inlining.
25053         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25054         * stdio-common/printf_size.c (__printf_size): Likewise.
25055
25056 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25057
25058         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25059
25060 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25061
25062         [BZ #18980]
25063         * sysdeps/generic/math_private.h: Include <float.h>.
25064         (math_narrow_eval): New macro.
25065         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25066         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25067         math_narrow_eval on overflowing return value.
25068         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25069         Likewise.
25070         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25071         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25072         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25073         Likewise.
25074         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25075
25076 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25077
25078         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25079         * math/Makefile: Remove isinf_ns.c.
25080         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25081         * math/multc3.c (__multc3): Likewise.
25082         * math/s_casin.c (__casin): Likewise.
25083         * math/s_casinf.c (__casinf): Likewise.
25084         * math/s_casinl.c (__casinl): Likewise.
25085         * math/s_cproj.c (__cproj): Likewise.
25086         * math/s_cprojf.c (__cprojf): Likewise.
25087         * math/s_cprojl.c (__cprofl): Likewise.
25088         * math/s_ctan.c (__ctan): Likewise.
25089         * math/s_ctanf.c (__ctanf): Likewise.
25090         * math/s_ctanh.c (__ctanh): Likewise.
25091         * math/s_ctanhf.c (__ctanhf): Likewise.
25092         * math/s_ctanhl.c (__ctanhl): Likewise.
25093         * math/s_ctanl.c (__ctanl): Likewise.
25094         * math/w_fmod.c (__fmod): Likewise.
25095         * math/w_fmodf.c (__fmodf): Likewise.
25096         * math/w_fmodl.c (_fmodl): Likewise.
25097         * math/w_remainder.c (__remainder): Likewise.
25098         * math/w_remainderf.c (__remainderf): Likewise.
25099         * math/w_remainderl.c (__remainderl): Likewise.
25100         * math/w_scalb.c (__scalb): Likewise.
25101         * math/w_scalbf.c (__scalbf): Likewise.
25102         * math/w_scalbl.c (__scalbl): Likewise.
25103         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25104         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25105         with isinf.
25106         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25107         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25108         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25109         __isinf_nsf with isinf.
25110         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25111         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25112         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25113         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25114         with isinf.
25115         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25116         __isinf_nsl with isinf.
25117         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25118         with isinf.
25119         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25120         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25121         __isinf_nsl with isinf.
25122         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25123         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25124         with isinf.
25125
25126 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25127
25128         * resolv/base64.c (rcsid): Remove unused static.
25129         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25130         static.  (tqpi1): Likewise.
25131         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25132         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25133         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25134         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25135         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25136         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25137         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25138         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25139         Likewise.
25140
25141 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25142
25143         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25144         <nptl/pthreadP.h>.
25145         (_longjmp_unwind): Use __libc_ptf_call.
25146         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25147
25148 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25149
25150         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25151         * sysdeps/arm/__longjmp.S: Likewise.
25152
25153 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25154
25155         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25156         Use __builtin_signbit.
25157         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25158         Use __builtin_signbitf.
25159         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25160         Use __builtin_signbitl.
25161         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25162         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25163
25164 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25165
25166         [BZ #15367]
25167         [BZ #17441]
25168
25169         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25170         * math/math.h (fpclassify): Use __builtin_fpclassify when
25171         available.  (signbit): Use __builtin_signbit(f/l).
25172         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25173         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25174         (isinf): Use __builtin_isinf_sign.
25175
25176 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25177
25178         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25179         * benchtests/bench-math-inlines.c: New benchmark.
25180         * benchtests/bench-util.h: New file.
25181         * benchtests/bench-util.c: New file.
25182         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25183
25184 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25185
25186         * elf/tst-dlmopen1.c: Define TEST_SO.
25187         (do_test): Use TEST_SO.
25188
25189         * elf/dl-load.c: Include libc-internal.h.
25190         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25191
25192 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25193
25194         [BZ #17887]
25195         * time/strptime_l.c (__strptime_internal): Make %z accept
25196         [+-]HH:MM time zones.
25197
25198 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25199
25200         [BZ #17886]
25201         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25202         valid time zone.
25203
25204 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25205
25206         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25207         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25208         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25209         (__ASSUME_FDATASYNC): Delete.
25210
25211 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25212
25213         * conform/linknamespace.pl: Require weak undefined symbols to be
25214         in the standard namespace.
25215         (%strong_syms): Rename to %seen_syms.
25216         (%strong_seen): Rename to %seen_where.
25217
25218 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25219
25220         [BZ #18970]
25221         * misc/error.c (error): Replace pthread_setcancelstate with
25222         __pthread_setcancelstate.
25223         (error_at_line): Likewise.
25224         * posix/wordexp.c (parse_comm): Likewise.
25225         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25226         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25227         (__pthread_setcancelstate): This.
25228         (pthread_setcancelstate): Add an alias.
25229         * nptl/nptl-init.c (pthread_functions): Replace
25230         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25231         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25232         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25233         hidden_proto.
25234         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25235         it with hidden_def.
25236         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25237         (pthread_setcancelstate): Renamed to ...
25238         (__pthread_setcancelstate): This.
25239         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25240         __libc_ptf_call with __pthread_setcancelstate.
25241
25242 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25243             Andreas Schwab  <schwab@suse.de>
25244
25245         [BZ #17118]
25246         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25247         result when imaginary part of argument is infinite using sine and
25248         cosine.
25249         * math/s_ctanf.c (__ctanf): Likewise.
25250         * math/s_ctanl.c (__ctanl): Likewise.
25251         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25252         of result when real part of argument is infinite using sine and
25253         cosine.
25254         * math/s_ctanhf.c (__ctanhf): Likewise.
25255         * math/s_ctanhl.c (__ctanhl): Likewise.
25256         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25257         (ctanh_test_data): Add more tests of ctanh.
25258
25259 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25260
25261         [BZ #15384]
25262         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25263         bit-mask as in subtraction.
25264         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25265         Likewise.
25266         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25267         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25268         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25269
25270         [BZ #18951]
25271         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25272         underflow exception for small results.
25273         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25274         Likewise.
25275         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25276         Likewise.
25277         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25278         Likewise.
25279         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25280         Likewise.
25281         * math/auto-libm-test-in: Add more tests of tgamma.
25282         * math/auto-libm-test-out: Regenerated.
25283
25284 2015-09-17  Andreas Schwab  <schwab@suse.de>
25285
25286         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25287
25288 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25289
25290         [BZ #18977]
25291         * math/bits/mathcalls.h
25292         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25293         not declare.
25294         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25295         Likewise.
25296         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25297         Likewise.
25298         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25299         Likewise.
25300         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25301         Likewise.
25302         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25303         Likewise.
25304         * conform/data/math.h-data
25305         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25306         function.
25307         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
25308         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
25309         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
25310         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
25311         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
25312         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
25313         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
25314         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
25315         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
25316         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
25317         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
25318
25319         [BZ #6803]
25320         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
25321         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
25322         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
25323         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
25324         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
25325         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
25326         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
25327         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
25328         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25329         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
25330         Likewise.
25331         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25332         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
25333         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
25334         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
25335         long_double_symbol calls.
25336         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
25337         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
25338         strong alias of __ldexpl.
25339         (scalbnl): Define using long_double_symbol.
25340         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
25341         Remove alias.
25342         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
25343         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
25344         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
25345         (scalbln_test_data): Add more errno expectations.
25346
25347 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
25348
25349         Cache the host port like we cache the task port.  This way we do not
25350         need to call the kernel just to get the port.  Furthermore, we no
25351         longer increase the reference count on every invocation of
25352         `mach_host_self'.
25353
25354         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
25355         Protect declarations against the macro expansion.
25356         * mach/mach_init.c (__mach_host_self_): New variable.
25357         (mach_init): Initialize `__mach_host_self_'.
25358         * mach/mach_init.h (__mach_host_self_): New declaration.
25359         (__mach_host_self, mach_host_self): New macros.
25360         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
25361         Release reference.
25362
25363 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25364
25365         [BZ #4404]
25366         * po/de.po: Update from Translation Project.
25367
25368         [BZ #16415]
25369         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
25370         (__expm1l): Remove code to handle positive infinity and overflow.
25371         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
25372         variable.
25373         (__expm1l): Remove code to handle positive infinity and overflow.
25374
25375 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25376             Paul Pluzhnikov  <ppluzhnikov@google.com>
25377
25378         [BZ #18872]
25379         * stdio-common/Makefile (tst-printf-bz18872): New test.
25380         (tst-printf-bz18872-mem.out): Likewise.
25381         * stdio-common/tst-printf-bz18872.sh: Generate new test.
25382         * stdio-common/vfprintf.c: Fix memory leaks.
25383
25384 2015-09-16  Andreas Schwab  <schwab@suse.de>
25385
25386         [BZ #17244]
25387         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
25388         Remove extra va_start/va_end calls.
25389
25390         [BZ #17243]
25391         * posix/execl.c (execl): Add missing va_end.
25392         * posix/execle.c (execle): Likewise.
25393         * posix/execlp.c (execlp): Likewise.
25394
25395 2015-09-15  Roland McGrath  <roland@hack.frob.com>
25396
25397         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
25398         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
25399
25400 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
25401
25402         [BZ #18967]
25403         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
25404         undefine around includes of <bits/mathcalls.h>.
25405         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
25406         not declare function.
25407         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
25408         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
25409         (scalb): Likewise.
25410         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
25411         not define macro.
25412         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
25413         variable.
25414         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
25415         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
25416         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
25417
25418         [BZ #18857]
25419         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
25420         return non-finite argument without doing ordered comparisons on
25421         it.
25422
25423         [BZ #16296]
25424         * math/fenv.h (fegetround): Use __attribute_pure__.
25425         * include/fenv.h (__fegetround): Likewise.
25426
25427         [BZ #18595]
25428         * math/s_ctan.c (__ctan): Force underflow exception for results
25429         whose real or imaginary part has small absolute value.
25430         * math/s_ctanf.c (__ctanf): Likewise.
25431         * math/s_ctanh.c (__ctanh): Likewise.
25432         * math/s_ctanhf.c (__ctanhf): Likewise.
25433         * math/s_ctanhl.c (__ctanhl): Likewise.
25434         * math/s_ctanl.c (__ctanl): Likewise.
25435         * math/auto-libm-test-in: Do not allow missing underflow for ctan
25436         and ctanh.  Add more tests of ctan and ctanh.
25437
25438         [BZ #15918]
25439         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
25440         handling of cases where one argument is an infinity.
25441
25442         [BZ #18875]
25443         [BZ #18966]
25444         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
25445         (MO): New macro.
25446         (__ieee754_exp10): For small results, force underflow exception
25447         and remove excess range and precision from return value.
25448         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
25449         (MO): New macro.
25450         (__ieee754_exp10f): For small results, force underflow exception
25451         and remove excess range and precision from return value.
25452         * math/auto-libm-test-in: Add more tests of exp10.
25453         * math/auto-libm-test-out: Regenerated.
25454
25455 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
25456
25457         [BZ #18875]
25458         [BZ #18961]
25459         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
25460         (MO): New macro.
25461         (__ieee754_exp): For small results, force underflow exception and
25462         remove excess range and precision from return value.
25463         (__exp_finite): Likewise.
25464         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
25465         (MO): New macro.
25466         (__ieee754_expf): For small results, force underflow exception and
25467         remove excess range and precision from return value.
25468         (__expf_finite): Likewise.
25469         * math/auto-libm-test-in: Add more tests of exp.
25470         * math/auto-libm-test-out: Regenerated.
25471
25472         [BZ #16521]
25473         [BZ #18875]
25474         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
25475         small results.
25476         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
25477         (MO): New macro.
25478         (__ieee754_exp2): For small results, force underflow exception and
25479         remove excess range and precision from return value.
25480         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
25481         (MO): New macro.
25482         (__ieee754_exp2f): For small results, force underflow exception
25483         and remove excess range and precision from return value.
25484         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
25485         (MO): New macro.
25486         (__ieee754_exp2l): Force underflow exception for small results.
25487         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
25488         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
25489         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
25490         (MO): New macro.
25491         (__ieee754_exp2l): Force underflow exception for small results.
25492         * math/auto-libm-test-in: Add more tests or exp2.
25493         * math/auto-libm-test-out: Regenerated.
25494
25495 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
25496
25497         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
25498
25499         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
25500         /dev/null.
25501
25502 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25503
25504         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25505         io fs process)): Drop spurious backslash.
25506
25507 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25508
25509         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
25510         Use sysinfo system call instead of parsing /proc/meminfo.
25511         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
25512         Likewise.
25513
25514 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
25515
25516         [BZ #16985]
25517         * programs/localedef.c (main): Display argv[remaining] when
25518         output_path is NULL.
25519
25520 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25521
25522         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
25523         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
25524         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
25525         tanh.
25526         * math/auto-libm-test-out: Regenerated.
25527         * sysdeps/i386/fpu/libm-test-ulps: Update.
25528         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25529         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25531
25532 2015-09-11  Roland McGrath  <roland@hack.frob.com>
25533
25534         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
25535         Use 'override' keyword to freeze the value here, preventing
25536         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
25537
25538 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
25539
25540         [BZ #14912]
25541         * sysdeps/aarch64/bits/atomic.h: Move to ...
25542         * sysdeps/aarch64/atomic-machine.h: ...here.
25543         (_AARCH64_BITS_ATOMIC_H): Rename macro to
25544         _AARCH64_ATOMIC_MACHINE_H.
25545         * sysdeps/alpha/bits/atomic.h: Move to ...
25546         * sysdeps/alpha/atomic-machine.h: ...here.
25547         * sysdeps/arm/bits/atomic.h: Move to ...
25548         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
25549         * bits/atomic.h: Move to ...
25550         * sysdeps/generic/atomic-machine.h: ...here.
25551         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25552         * sysdeps/i386/bits/atomic.h: Move to ...
25553         * sysdeps/i386/atomic-machine.h: ...here.
25554         * sysdeps/ia64/bits/atomic.h: Move to ...
25555         * sysdeps/ia64/atomic-machine.h: ...here.
25556         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
25557         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
25558         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25559         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
25560         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
25561         * sysdeps/microblaze/bits/atomic.h: Move to ...
25562         * sysdeps/microblaze/atomic-machine.h: ...here.
25563         * sysdeps/mips/bits/atomic.h: Move to ...
25564         * sysdeps/mips/atomic-machine.h: ...here.
25565         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
25566         * sysdeps/powerpc/bits/atomic.h: Move to ...
25567         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
25568         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
25569         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
25570         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
25571         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
25572         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
25573         <atomic-machine.h> instead of <bits/atomic.h>.
25574         * sysdeps/s390/bits/atomic.h: Move to ...
25575         * sysdeps/s390/atomic-machine.h: ...here.
25576         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
25577         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
25578         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25579         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
25580         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
25581         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
25582         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
25583         * sysdeps/tile/bits/atomic.h: Move to ...
25584         * sysdeps/tile/atomic-machine.h: ...here.
25585         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
25586         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
25587         <sysdeps/tile/atomic-machine.h> instead of
25588         <sysdeps/tile/bits/atomic.h>.
25589         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25590         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
25591         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
25592         <sysdeps/tile/atomic-machine.h> instead of
25593         <sysdeps/tile/bits/atomic.h>.
25594         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25595         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
25596         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
25597         <sysdeps/arm/atomic-machine.h> instead of
25598         <sysdeps/arm/bits/atomic.h>.
25599         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
25600         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
25601         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25602         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
25603         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
25604         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
25605         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
25606         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
25607         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
25608         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
25609         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
25610         * sysdeps/x86_64/bits/atomic.h: Move to ...
25611         * sysdeps/x86_64/atomic-machine.h: ...here.
25612         * include/atomic.h: Include <atomic-machine.h> instead of
25613         <bits/atomic.h>.
25614
25615         * sysdeps/mips/mips32/libm-test-ulps: Update.
25616         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25617
25618         [BZ #18952]
25619         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
25620         not convert non-integer negative arguments to int to determine the
25621         value of signgam.
25622         * math/auto-libm-test-in: Add more tests of lgamma.
25623         * math/auto-libm-test-out: Regenerated.
25624
25625         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
25626         cosh, csqrt, erfc, expm1 and lgamma.
25627         * math/auto-libm-test-out: Regenerated.
25628         * sysdeps/i386/fpu/libm-test-ulps: Update.
25629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25630
25631 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
25632
25633         [BZ #2542]
25634         [BZ #2543]
25635         [BZ #2558]
25636         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
25637         __lgamma_neg for arguments from -28.0 to -2.0.
25638         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
25639         __lgamma_negf for arguments from -15.0 to -2.0.
25640         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
25641         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
25642         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
25643         Call __lgamma_negl for arguments from -33.0 to -2.0.
25644         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
25645         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
25646         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
25647         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
25648         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
25649         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
25650         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
25651         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
25652         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
25653         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
25654         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
25655         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
25656         (__lgamma_neg): Likewise.
25657         (__lgamma_negl): Likewise.
25658         (__lgamma_product): Likewise.
25659         (__lgamma_productl): Likewise.
25660         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
25661         * math/auto-libm-test-in: Add more tests of lgamma.
25662         * math/auto-libm-test-out: Regenerated.
25663         * sysdeps/i386/fpu/libm-test-ulps: Update.
25664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25665
25666 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
25667
25668         [BZ #18675]
25669         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
25670
25671 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25672
25673         [BZ #14912]
25674         * bits/libc-lock.h: Move to ...
25675         * sysdeps/generic/libc-lock.h: ...here.
25676         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25677         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
25678         * sysdeps/mach/hurd/libc-lock.h: ...here.
25679         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25680         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
25681         * sysdeps/mach/bits/libc-lock.h: Move to ...
25682         * sysdeps/mach/libc-lock.h: ...here.
25683         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25684         * sysdeps/nptl/bits/libc-lock.h: Move to ...
25685         * sysdeps/nptl/libc-lock.h: ...here.
25686         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
25687         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
25688         * sysdeps/nptl/libc-lockP.h: ...here.
25689         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
25690         * crypt/crypt_util.c: Include <libc-lock.h> instead of
25691         <bits/libc-lock.h>.
25692         * dirent/scandir-tail.c: Likewise.
25693         * dlfcn/dlerror.c: Likewise.
25694         * elf/dl-close.c: Likewise.
25695         * elf/dl-iteratephdr.c: Likewise.
25696         * elf/dl-lookup.c: Likewise.
25697         * elf/dl-open.c: Likewise.
25698         * elf/dl-support.c: Likewise.
25699         * elf/dl-writev.h: Likewise.
25700         * elf/rtld.c: Likewise.
25701         * grp/fgetgrent.c: Likewise.
25702         * gshadow/fgetsgent.c: Likewise.
25703         * gshadow/sgetsgent.c: Likewise.
25704         * iconv/gconv_conf.c: Likewise.
25705         * iconv/gconv_db.c: Likewise.
25706         * iconv/gconv_dl.c: Likewise.
25707         * iconv/gconv_int.h: Likewise.
25708         * iconv/gconv_trans.c: Likewise.
25709         * include/link.h: Likewise.
25710         * inet/getnameinfo.c: Likewise.
25711         * inet/getnetgrent.c: Likewise.
25712         * inet/getnetgrent_r.c: Likewise.
25713         * intl/bindtextdom.c: Likewise.
25714         * intl/dcigettext.c: Likewise.
25715         * intl/finddomain.c: Likewise.
25716         * intl/gettextP.h: Likewise.
25717         * intl/loadmsgcat.c: Likewise.
25718         * intl/localealias.c: Likewise.
25719         * intl/textdomain.c: Likewise.
25720         * libidn/idn-stub.c: Likewise.
25721         * libio/libioP.h: Likewise.
25722         * locale/duplocale.c: Likewise.
25723         * locale/freelocale.c: Likewise.
25724         * locale/newlocale.c: Likewise.
25725         * locale/setlocale.c: Likewise.
25726         * login/getutent_r.c: Likewise.
25727         * login/getutid_r.c: Likewise.
25728         * login/getutline_r.c: Likewise.
25729         * login/utmp-private.h: Likewise.
25730         * login/utmpname.c: Likewise.
25731         * malloc/mtrace.c: Likewise.
25732         * misc/efgcvt.c: Likewise.
25733         * misc/error.c: Likewise.
25734         * misc/fstab.c: Likewise.
25735         * misc/getpass.c: Likewise.
25736         * misc/mntent.c: Likewise.
25737         * misc/syslog.c: Likewise.
25738         * nis/nis_call.c: Likewise.
25739         * nis/nis_callback.c: Likewise.
25740         * nis/nss-default.c: Likewise.
25741         * nis/nss_compat/compat-grp.c: Likewise.
25742         * nis/nss_compat/compat-initgroups.c: Likewise.
25743         * nis/nss_compat/compat-pwd.c: Likewise.
25744         * nis/nss_compat/compat-spwd.c: Likewise.
25745         * nis/nss_nis/nis-alias.c: Likewise.
25746         * nis/nss_nis/nis-ethers.c: Likewise.
25747         * nis/nss_nis/nis-grp.c: Likewise.
25748         * nis/nss_nis/nis-hosts.c: Likewise.
25749         * nis/nss_nis/nis-network.c: Likewise.
25750         * nis/nss_nis/nis-proto.c: Likewise.
25751         * nis/nss_nis/nis-pwd.c: Likewise.
25752         * nis/nss_nis/nis-rpc.c: Likewise.
25753         * nis/nss_nis/nis-service.c: Likewise.
25754         * nis/nss_nis/nis-spwd.c: Likewise.
25755         * nis/nss_nisplus/nisplus-alias.c: Likewise.
25756         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
25757         * nis/nss_nisplus/nisplus-grp.c: Likewise.
25758         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
25759         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
25760         * nis/nss_nisplus/nisplus-network.c: Likewise.
25761         * nis/nss_nisplus/nisplus-proto.c: Likewise.
25762         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
25763         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
25764         * nis/nss_nisplus/nisplus-service.c: Likewise.
25765         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
25766         * nis/ypclnt.c: Likewise.
25767         * nptl/libc_pthread_init.c: Likewise.
25768         * nss/getXXbyYY.c: Likewise.
25769         * nss/getXXent.c: Likewise.
25770         * nss/getXXent_r.c: Likewise.
25771         * nss/nss_db/db-XXX.c: Likewise.
25772         * nss/nss_db/db-netgrp.c: Likewise.
25773         * nss/nss_db/nss_db.h: Likewise.
25774         * nss/nss_files/files-XXX.c: Likewise.
25775         * nss/nss_files/files-alias.c: Likewise.
25776         * nss/nsswitch.c: Likewise.
25777         * posix/regex_internal.h: Likewise.
25778         * posix/wordexp.c: Likewise.
25779         * pwd/fgetpwent.c: Likewise.
25780         * resolv/res_hconf.c: Likewise.
25781         * resolv/res_libc.c: Likewise.
25782         * shadow/fgetspent.c: Likewise.
25783         * shadow/lckpwdf.c: Likewise.
25784         * shadow/sgetspent.c: Likewise.
25785         * socket/opensock.c: Likewise.
25786         * stdio-common/reg-modifier.c: Likewise.
25787         * stdio-common/reg-printf.c: Likewise.
25788         * stdio-common/reg-type.c: Likewise.
25789         * stdio-common/vfprintf.c: Likewise.
25790         * stdio-common/vfscanf.c: Likewise.
25791         * stdlib/abort.c: Likewise.
25792         * stdlib/cxa_atexit.c: Likewise.
25793         * stdlib/fmtmsg.c: Likewise.
25794         * stdlib/random.c: Likewise.
25795         * stdlib/setenv.c: Likewise.
25796         * string/strsignal.c: Likewise.
25797         * sunrpc/auth_none.c: Likewise.
25798         * sunrpc/bindrsvprt.c: Likewise.
25799         * sunrpc/create_xid.c: Likewise.
25800         * sunrpc/key_call.c: Likewise.
25801         * sunrpc/rpc_thread.c: Likewise.
25802         * sysdeps/arm/backtrace.c: Likewise.
25803         * sysdeps/generic/ldsodefs.h: Likewise.
25804         * sysdeps/generic/stdio-lock.h: Likewise.
25805         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
25806         * sysdeps/i386/backtrace.c: Likewise.
25807         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
25808         * sysdeps/m68k/backtrace.c: Likewise.
25809         * sysdeps/mach/hurd/cthreads.c: Likewise.
25810         * sysdeps/mach/hurd/dirstream.h: Likewise.
25811         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
25812         * sysdeps/nptl/malloc-machine.h: Likewise.
25813         * sysdeps/nptl/stdio-lock.h: Likewise.
25814         * sysdeps/posix/dirstream.h: Likewise.
25815         * sysdeps/posix/getaddrinfo.c: Likewise.
25816         * sysdeps/posix/system.c: Likewise.
25817         * sysdeps/pthread/aio_suspend.c: Likewise.
25818         * sysdeps/s390/s390-32/backtrace.c: Likewise.
25819         * sysdeps/s390/s390-64/backtrace.c: Likewise.
25820         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
25821         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
25822         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
25823         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
25824         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
25825         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
25826         * sysdeps/unix/sysv/linux/system.c: Likewise.
25827         * sysdeps/x86_64/backtrace.c: Likewise.
25828         * time/alt_digit.c: Likewise.
25829         * time/era.c: Likewise.
25830         * time/tzset.c: Likewise.
25831         * wcsmbs/wcsmbsload.c: Likewise.
25832         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
25833         instead of <bits/libc-lock.h> in comment.
25834
25835 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
25836
25837         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
25838         Only use .set mips2 if the current ISA is below mips2.
25839         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
25840         Likewise.
25841         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
25842         mips32r2 if the current ISA is below mips32r2.
25843         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
25844         (TLS_IE): Updated to use the TLD_RDHWR macro.
25845         (TLS_LE): Likewise.
25846         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
25847         __ASSEMBLER__ condition.
25848
25849 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25850
25851         Fix parallel build of before-compile targets.
25852
25853         * sysdeps/mach/Makefile ($(patsubst
25854         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
25855         mach-before-compile target.
25856         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25857         io fs process)): Move rule to dedicated hurd-before-compile target.
25858
25859 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25860
25861         Fix rules generating headers in hurd/ and mach/ when initial make call
25862         has subdir= explicitly set.
25863
25864         * sysdeps/mach/Makefile ($(patsubst
25865         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
25866         calling $(MAKE).
25867         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25868         io fs process)): Force subdir to hurd when calling $(MAKE).
25869         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
25870         subdir to mach when calling $(MAKE).
25871
25872 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
25873
25874         Check sysheaders when looking for Mach and Hurd headers
25875
25876         * sysdeps/mach/configure.ac: Add sysheaders check.
25877         * sysdeps/mach/configure: Regenerate.
25878         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
25879         * sysdeps/mach/hurd/configure: Regenerate.
25880
25881 2015-09-04  Roland McGrath  <roland@hack.frob.com>
25882
25883         [BZ #18921]
25884         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
25885         Fix inverted sense of test of 'o_directory_works' value.
25886         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
25887         Bernhard Voelker <mail@bernhard-voelker.de>.
25888
25889 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
25890
25891         [BZ #14912]
25892         * bits/linkmap.h: Move to ...
25893         * sysdeps/generic/linkmap.h: ...here.
25894         * sysdeps/aarch64/bits/linkmap.h: Move to ...
25895         * sysdeps/aarch64/linkmap.h: ...here.
25896         * sysdeps/arm/bits/linkmap.h: Move to ...
25897         * sysdeps/arm/linkmap.h: ...here.
25898         * sysdeps/hppa/bits/linkmap.h: Move to ...
25899         * sysdeps/hppa/linkmap.h: ...here.
25900         * sysdeps/ia64/bits/linkmap.h: Move to ...
25901         * sysdeps/ia64/linkmap.h: ...here.
25902         * sysdeps/mips/bits/linkmap.h: Move to ...
25903         * sysdeps/mips/linkmap.h: ...here.
25904         * sysdeps/s390/bits/linkmap.h: Move to ...
25905         * sysdeps/s390/linkmap.h: ...here.
25906         * sysdeps/sh/bits/linkmap.h: Move to ...
25907         * sysdeps/sh/linkmap.h: ...here.
25908         * sysdeps/x86/bits/linkmap.h: Move to ...
25909         * sysdeps/x86/linkmap.h: ...here.
25910         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
25911
25912 2015-09-04  Andreas Schwab  <schwab@suse.de>
25913
25914         [BZ #18635]
25915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
25916         (__makecontext): Terminate FDE before return label.
25917         (__novec_makecontext): Likewise.
25918
25919 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
25920
25921         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
25922         first member of struct sv in syscall macro.
25923
25924 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
25925
25926         [BZ #14912]
25927         * bits/stdio-lock.h: Move to ...
25928         * sysdeps/generic/stdio-lock.h: ...here.
25929         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
25930         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
25931         * sysdeps/nptl/stdio-lock.h: ...here.
25932         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
25933         * include/libio.h: Include <stdio-lock.h> instead of
25934         <bits/stdio-lock.h>.
25935         * sysdeps/nptl/fork.c: Likewise.
25936         * sysdeps/pthread/flockfile.c: Likewise.
25937         * sysdeps/pthread/ftrylockfile.c: Likewise.
25938         * sysdeps/pthread/funlockfile.c: Likewise.
25939
25940         [BZ #14912]
25941         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
25942         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
25943         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
25944         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
25945         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
25946         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
25947         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
25948
25949 2015-09-03  Roland McGrath  <roland@hack.frob.com>
25950
25951         * elf/Makefile (test-xfail-tst-protected1a): New variable.
25952         (test-xfail-tst-protected1b): New variable.
25953
25954 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
25955
25956         [BZ #14912]
25957         * bits/libc-tsd.h: Move to ...
25958         * sysdeps/generic/libc-tsd.h: ...here.
25959         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
25960         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
25961         * sysdeps/mach/hurd/libc-tsd.h: ...here.
25962         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
25963         * include/ctype.h: Include <libc-tsd.h> instead of
25964         <bits/libc-tsd.h>.
25965         * include/rpc/rpc.h: Likewise.
25966         * locale/localeinfo.h: Likewise.
25967         * sunrpc/rpc_thread.c: Likewise.
25968         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
25969         * sysdeps/nptl/malloc-machine.h: Likewise.
25970
25971         * Makefile (headers): Remove bits/libc-lock.h.
25972         * libio/Makefile (headers): Remove bits/stdio-lock.h.
25973
25974         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
25975         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
25976         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
25977         <bits/stdio-lock.h>.
25978         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
25979         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
25980
25981 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
25982
25983         [BZ #18757]
25984         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
25985         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
25986         BZ #18757.
25987
25988 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
25989
25990         * malloc/mtrace.pl: Filter out NULL entries.
25991
25992 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
25993
25994         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
25995         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
25996         macro.
25997
25998         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
25999         (TCP_CC_INFO): Likewise.
26000         (TCP_SAVE_SYN): Likewise.
26001         (TCP_SAVED_SYN): Likewise.
26002
26003 2015-08-31  Brett Neumeier <brett@neumeier.us>
26004
26005         [BZ #18870]
26006         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26007
26008 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26009
26010         [BZ #18873]
26011         Fix broken overflow check in posix_fallocate
26012         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26013         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26014         Fix parenthesization typo.
26015
26016 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26017
26018         [BZ #18887]
26019         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26020         tst-mntent-blank-passno.
26021         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26022         * misc/tst-mntent-blank-corrupt.c: New test.
26023         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26024         * misc/tst-mntent.c (do_test): ... here.
26025
26026 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26027
26028         [BZ #4404]
26029         * po/de.po: Fix SIGALRM typo.
26030
26031 2015-08-28  James Perkins  <james@loowit.net>
26032
26033         * time/tst-strptime2.c (tests): Replace short list of test
26034         strings for strptime %z specifier with code which exhaustively
26035         tests every combination of sign and 0 to 5 digits. Tests for
26036         rejection of invalid strings.
26037
26038 2015-08-28  James Perkins  <james@loowit.net>
26039
26040         [BZ #16141]
26041         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26042         calculation, removing incorrect decimal time rounding, so that
26043         all minute values result in a valid seconds value.
26044         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26045         offset range limits to UTC-99:59 through UTC+99:59 to parse
26046         current and historical use cases.
26047         * time/tst-strptime2.c (tests): Modify and add tests for the
26048         strptime %z input field descriptor, specifically conversion of
26049         minutes to seconds and validating an offset range of -9959 to
26050         +9959.
26051
26052 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26053             Dmitry V. Levin  <ldv@altlinux.org>
26054
26055         [BZ #18877]
26056         * posix/Makefile (tests): Add tst-mmap-offset.
26057         * posix/tst-mmap.c: New file.
26058         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26059         offset calculation for negative values.
26060
26061 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26062
26063         * sysdeps/i386/init-arch.h: New file.
26064         * sysdeps/i386/i586/init-arch.h: Likewise.
26065         * sysdeps/i386/i686/init-arch.h: Likewise.
26066         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26067         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26068         * sysdeps/x86/cpu-features.h (bit_I586): New.
26069         (bit_I686): Likewise.
26070         (bit_CX8): Likewise.
26071         (bit_CMOV): Likewise.
26072         (index_CX8): Likewise.
26073         (index_CMOV): Likewise.
26074         (index_I586): Likewise.
26075         (index_I686): Likewise.
26076         (reg_CX8): Likewise.
26077         (reg_CMOV): Likewise.
26078         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26079         available at compile-time.
26080         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26081         available at compile-time.
26082         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26083         (USE_I686): Likewise.
26084
26085 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26086
26087         * sysdeps/i386/bcopy.S: New file.
26088         * sysdeps/i386/bzero.S: Likewise.
26089         * sysdeps/i386/memcpy.S: Likewise.
26090         * sysdeps/i386/memmove.S: Likewise.
26091         * sysdeps/i386/mempcpy.S: Likewise.
26092         * sysdeps/i386/memset.S: Likewise.
26093         * sysdeps/i386/bzero.c: Removed.
26094         * sysdeps/i386/memset.c: Likewise.
26095         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26096         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26097         * sysdeps/i386/i586/memset_chk.S: Likewise.
26098         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26099         * sysdeps/i386/memcpy_chk.S: Here.
26100         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26101         * sysdeps/i386/memmove_chk.S: Here.
26102         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26103         * sysdeps/i386/mempcpy_chk.S: Likewise.
26104         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26105         * sysdeps/i386/memset_chk.S: Likewise.
26106
26107 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26108
26109         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26110         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26111         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26112         * soft-fp/fmadf4.c: Ditto.
26113         * soft-fp/fmatf4.c: Ditto.
26114
26115 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26116
26117         * sysdeps/i386/i586/Implies: Removed.
26118         * sysdeps/i386/i686/Implies: Likewise.
26119
26120 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26121
26122         * sysdeps/i386/i486/strlen.S: Moved to ...
26123         * sysdeps/i386/strlen.S: Here.
26124
26125 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26126
26127         * sysdeps/i386/i486/strcat.S: Moved to ...
26128         * sysdeps/i386/strcat.S: Here.
26129
26130 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26131
26132         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26133         * sysdeps/i386/pthread_spin_trylock.S: Here.
26134         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26135         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26136
26137 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26138
26139         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26140         * sysdeps/i386/string-inlines.c: Here.
26141
26142 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26143
26144         * sysdeps/i386/i486/htonl.S: Moved ...
26145         * sysdeps/i386/htonl.S: here.
26146
26147 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26148
26149         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26150         * sysdeps/i386/bits/atomic.h: Here.
26151
26152 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26153
26154         * sysdeps/i386/i486/Versions: Removed.
26155
26156 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26157
26158         [BZ #2898]
26159         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26160         Based on patch by Aurelien Jarno.
26161
26162 2015-08-26  Stan Shebs  <stanshebs@google.com>
26163
26164         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26165         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26166
26167 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26168
26169         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26170         * sysdeps/powerpc/dl-procinfo.c:
26171         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26172         feature so it shows when LD_SHOW_AUXV=1.
26173
26174 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26175
26176         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26177         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26178         definition.  ISA 2.07B no longer requires full sync.
26179
26180 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26181
26182         [BZ #18863]
26183         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26184         (si_call_addr): Define.
26185         (si_syscall): Define.
26186         (si_arch): Define.
26187
26188 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26189
26190         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26191         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26192         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26193         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26194         (__memset_zero_constant_len_parameter): New.
26195         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26196         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26197         (__memset_zero_constant_len_parameter): Don't define if
26198         __memset_chk or USE_AS_BZERO are defined.
26199
26200         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26201         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26202         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26203
26204         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26205         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26206         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26207         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26208         comments.
26209         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26210         -mno-mmx for $(all-rtld-routines).
26211         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26212         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26213         i386.
26214
26215 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26216
26217         * sysdeps/generic/unwind.h
26218         (_Unwind_Word): Use __mode__(__unwind_word__)
26219         instead of __mode__(__word__).
26220         (_Unwind_Sword): Likewise.
26221
26222         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26223         (MAX_NEEDED_INPUT): New define.
26224         (MAX_NEEDED_OUTPUT): New define.
26225
26226         * NEWS: New item for IBM z13 string optimizations.
26227
26228         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26229         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26230         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26231         * sysdeps/s390/multiarch/Makefile
26232         (sysdep_routines): Add memrchr functions.
26233         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26234         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26235
26236         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26237         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26238         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26239         * sysdeps/s390/multiarch/Makefile
26240         (sysdep_routines): Add wmemcmp functions.
26241         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26242         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26243         * benchtests/bench-wmemcmp.c: New File.
26244         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26245
26246         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26247         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26248         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26249         * sysdeps/s390/multiarch/Makefile
26250         (sysdep_routines): Add wmemset functions.
26251         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26252         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26253         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26254         * string/test-memset.c: Add wmemset support.
26255         * wcsmbs/test-wmemset.c: New File.
26256         * wcsmbs/Makefile (strop-tests): Add wmemset.
26257         * benchtests/bench-memset.c: Add wmemset support.
26258         * benchtests/bench-wmemset.c: New File.
26259         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26260
26261         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26262         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26263         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26264         * sysdeps/s390/multiarch/Makefile
26265         (sysdep_routines): Add memccpy functions.
26266         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26267         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26268         * string/memccpy.c: Use MEMCCPY if defined.
26269
26270         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26271         * sysdeps/s390/multiarch/memchr.c: Likewise.
26272         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26273         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26274         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26275         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26276         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26277         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26278         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26279         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26280         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26281         and rawmemchr functions.
26282         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26283         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26284         and wmemchr.
26285         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26286         * string/test-memchr.c: Add wmemchr support.
26287         * wcsmbs/test-wmemchr.c: New File.
26288         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26289         * benchtests/bench-memchr.c: Add wmemchr support.
26290         * benchtests/bench-wmemchr.c: New File.
26291         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26292
26293         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26294         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26295         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26296         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26297         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26298         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26299         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26300         wcscspn functions.
26301         * sysdeps/s390/multiarch/ifunc-impl-list.c
26302         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26303         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26304         * string/test-strcspn.c: Add wcscspn support.
26305         * wcsmbs/test-wcscspn.c: New File.
26306         * wcsmbs/Makefile (strop-tests): Add wcscspn.
26307         * benchtests/bench-strcspn.c: Add wcscspn support.
26308         * benchtests/bench-wcscspn.c: New File.
26309         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
26310
26311         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
26312         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
26313         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
26314         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
26315         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
26316         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
26317         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
26318         wcspbrk functions.
26319         * sysdeps/s390/multiarch/ifunc-impl-list.c
26320         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
26321         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
26322         * string/test-strpbrk.c: Add wcspbrk support.
26323         * wcsmbs/test-wcspbrk.c: New File.
26324         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
26325         * benchtests/bench-strpbrk.c: Add wcspbrk support.
26326         * benchtests/bench-wcspbrk.c: New File.
26327         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
26328
26329         * sysdeps/s390/multiarch/strspn-c.c: New File.
26330         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
26331         * sysdeps/s390/multiarch/strspn.c: Likewise.
26332         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
26333         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
26334         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
26335         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
26336         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
26337         wcsspn functions.
26338         * sysdeps/s390/multiarch/ifunc-impl-list.c
26339         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
26340         * string/test-strspn.c: Add wcsspn support.
26341         * wcsmbs/test-wcsspn.c: New File.
26342         * wcsmbs/Makefile (strop-tests): Add wcsspn.
26343         * benchtests/bench-strspn.c: Add wcsspn support.
26344         * benchtests/bench-wcsspn.c: New File.
26345         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
26346
26347         * sysdeps/s390/multiarch/strrchr-c.c: New File.
26348         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
26349         * sysdeps/s390/multiarch/strrchr.c: Likewise.
26350         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
26351         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
26352         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
26353         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
26354         wcsrchr functions.
26355         * sysdeps/s390/multiarch/ifunc-impl-list.c
26356         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
26357         * benchtests/bench-wcsrchr.c: New File.
26358         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
26359
26360         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
26361         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
26362         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
26363         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
26364         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
26365         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
26366         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
26367         wcschrnul functions.
26368         * sysdeps/s390/multiarch/ifunc-impl-list.c
26369         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
26370         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
26371         * string/test-strchr.c: Add wcschrnul support.
26372         * wcsmbs/test-wcschrnul.c: New File.
26373         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
26374         * benchtests/bench-strchr.c: Add wcschrnul support.
26375         * benchtests/bench-wcschrnul.c: New File.
26376         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
26377
26378         * sysdeps/s390/multiarch/strchr-c.c: New File.
26379         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
26380         * sysdeps/s390/multiarch/strchr.c: Likewise.
26381         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
26382         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
26383         * sysdeps/s390/multiarch/wcschr.c: Likewise.
26384         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
26385         wcschr functions.
26386         * sysdeps/s390/multiarch/ifunc-impl-list.c
26387         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
26388         * string/strchr.c (STRCHR): Define and use macro.
26389         * benchtests/bench-wcschr.c: New File.
26390         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
26391
26392         * sysdeps/s390/multiarch/strncmp-c.c: New File.
26393         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
26394         * sysdeps/s390/multiarch/strncmp.c: Likewise.
26395         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
26396         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
26397         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
26398         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
26399         wcsncmp functions.
26400         * sysdeps/s390/multiarch/ifunc-impl-list.c
26401         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
26402         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
26403         * benchtests/bench-strncmp.c: Add wcsncmp support.
26404         * benchtests/bench-wcsncmp.c: New File.
26405         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
26406
26407         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
26408         * sysdeps/s390/multiarch/strcmp.c: Likewise.
26409         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
26410         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
26411         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
26412         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
26413         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
26414         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
26415         wcscmp functions.
26416         * sysdeps/s390/multiarch/ifunc-impl-list.c
26417         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
26418         * string/strcmp.c (STRCMP): Define and use macro.
26419         * benchtests/bench-wcscmp.c: New File.
26420         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
26421         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
26422         instead of _HAVE_STRING_ARCH_memchr.
26423
26424         * sysdeps/s390/multiarch/strncat-c.c: New File.
26425         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
26426         * sysdeps/s390/multiarch/strncat.c: Likewise.
26427         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
26428         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
26429         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
26430         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
26431         wcsncat functions.
26432         * sysdeps/s390/multiarch/ifunc-impl-list.c
26433         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
26434         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
26435         * string/test-strncat.c: Add wcsncat support.
26436         * wcsmbs/test-wcsncat.c: New File.
26437         * wcsmbs/Makefile (strop-tests): Add wcsncat.
26438         * benchtests/bench-strncat.c: Add wcsncat support.
26439         * benchtests/bench-wcsncat.c: New File.
26440         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
26441
26442         * sysdeps/s390/multiarch/strcat-c.c: New File.
26443         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
26444         * sysdeps/s390/multiarch/strcat.c: Likewise.
26445         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
26446         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
26447         * sysdeps/s390/multiarch/wcscat.c: Likewise.
26448         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
26449         wcscat functions.
26450         * sysdeps/s390/multiarch/ifunc-impl-list.c
26451         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
26452         * string/strcat.c (STRCAT): Define and use macro.
26453         * wcsmbs/wcscat.c: Use WCSCAT if defined.
26454         * string/test-strcat.c: Add wcscat support.
26455         * wcsmbs/test-wcscat.c: New File.
26456         * wcsmbs/Makefile (strop-tests): Add wcscat.
26457         * benchtests/bench-strcat.c: Add wcscat support.
26458         * benchtests/bench-wcscat.c: New File.
26459         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
26460
26461         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
26462         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
26463         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
26464         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
26465         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
26466         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
26467         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
26468         wcpncpy functions.
26469         * sysdeps/s390/multiarch/ifunc-impl-list.c
26470         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
26471         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
26472         * string/test-stpncpy.c: Add wcpncpy support.
26473         * wcsmbs/test-wcpncpy.c: New File.
26474         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
26475         * benchtests/bench-stpncpy.c: Add wcpncpy support.
26476         * benchtests/bench-wcpncpy.c: New File.
26477         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
26478
26479         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
26480         * sysdeps/s390/multiarch/strncpy.c: Likewise.
26481         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
26482         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
26483         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
26484         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
26485         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
26486         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
26487         wcsncpy functions.
26488         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
26489         * sysdeps/s390/multiarch/ifunc-impl-list.c
26490         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
26491         * string/test-strncpy.c: Add wcsncpy support.
26492         * wcsmbs/test-wcsncpy.c: New File.
26493         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
26494         * benchtests/bench-strncpy.c: Add wcsncpy support.
26495         * benchtests/bench-wcsncpy.c: New File.
26496         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
26497
26498         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
26499         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
26500         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
26501         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
26502         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
26503         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
26504         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
26505         wcpcpy functions.
26506         * string/stpcpy.c: Use STPCPY if defined.
26507         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
26508         * sysdeps/s390/multiarch/ifunc-impl-list.c
26509         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
26510         * string/test-stpcpy.c: Add wcpcpy support.
26511         * wcsmbs/test-wcpcpy.c: New File.
26512         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
26513         * benchtests/bench-stpcpy.c: Add wcpcpy support.
26514         * benchtests/bench-wcpcpy.c: New File.
26515         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
26516
26517         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
26518         * sysdeps/s390/multiarch/strcpy.c: Likewise.
26519         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
26520         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
26521         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
26522         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
26523         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
26524         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
26525         wcscpy functions.
26526         * sysdeps/s390/multiarch/ifunc-impl-list.c
26527         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
26528         * benchtests/bench-wcscpy.c: New File.
26529         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
26530
26531         * sysdeps/s390/multiarch/strnlen-c.c: New File.
26532         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
26533         * sysdeps/s390/multiarch/strnlen.c: Likewise.
26534         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
26535         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
26536         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
26537         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
26538         wcsnlen functions.
26539         * sysdeps/s390/multiarch/ifunc-impl-list.c
26540         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
26541         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
26542         * string/test-strnlen.c: Add wcsnlen support.
26543         * wcsmbs/test-wcsnlen.c: New File.
26544         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
26545         * benchtests/bench-strnlen.c: Add wcsnlen support.
26546         * benchtests/bench-wcsnlen.c: New File.
26547         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
26548
26549         * sysdeps/s390/multiarch/Makefile: New File.
26550         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
26551         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
26552         * sysdeps/s390/multiarch/strlen.c: Likewise.
26553         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
26554         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
26555         * sysdeps/s390/multiarch/wcslen.c: Likewise.
26556         * string/strlen.c (STRLEN): Define and use macro.
26557         * sysdeps/s390/multiarch/ifunc-impl-list.c
26558         (IFUNC_VX_IMPL): New macro function.
26559         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
26560         * benchtests/Makefile (wcsmbs-bench): New variable.
26561         (string-bench-all): Added wcsmbs-bench.
26562         * benchtests/bench-wcslen.c: New File.
26563
26564         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
26565         s390_vx_libc_ifunc2): New macro function.
26566
26567         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
26568         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
26569         assembler support.
26570         * sysdeps/s390/configure: Regenerated.
26571
26572         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
26573         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26574
26575         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
26576         * sysdeps/s390/dl-procinfo.h: Add vector capability.
26577         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
26578
26579         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
26580         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
26581         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
26582         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
26583         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
26584         (memcmp, bcmp): Use __memcmp_default as alias source.
26585         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
26586         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
26587         Rename to __memcmp_default.
26588         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
26589         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
26590         (memcpy): Use __memcpy_default as alias source.
26591         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
26592         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
26593         Rename to __memcpy_default.
26594         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
26595         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
26596         (memset): Use __memset_default as alias source.
26597         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
26598         * sysdeps/s390/s390-32/memset.S (__memset_g5):
26599         Rename to __memset_default.
26600         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
26601         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
26602         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
26603         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
26604         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
26605         (memcmp, bcmp): Use __memcmp_default as alias source.
26606         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
26607         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
26608         Rename to __memcmp_default.
26609         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
26610         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
26611         (memcpy): Use __memcpy_default as alias source.
26612         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
26613         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
26614         Rename to __memcpy_default.
26615         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
26616         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
26617         (memset): Use __memset_default as alias source.
26618         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
26619         * sysdeps/s390/s390-64/memset.S (__memset_z900):
26620         Rename to __memset_default.
26621         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
26622         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
26623
26624         [BZ #18610]
26625         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
26626         __ieee_instruction_pointer to __unused.
26627         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
26628         __ieee_instruction_pointer.
26629         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
26630         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
26631         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
26632         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
26633         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
26634         Mark dxc-field as reserved.
26635
26636 2015-08-25  Roland McGrath  <roland@hack.frob.com>
26637
26638         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
26639         if the weak reference is not null.
26640
26641 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26642
26643         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
26644
26645         [BZ #11214]
26646         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
26647
26648 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26649
26650         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
26651         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
26652         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
26653         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
26654         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
26655         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
26656         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
26657         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
26658         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
26659         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
26660         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
26661         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
26662         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
26663         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
26664         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
26665         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
26666         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
26667         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
26668
26669 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26670
26671         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
26672         register other than r0 for tabort, it has special meaning.
26673         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
26674         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
26675         transaction before starting syscall.
26676
26677 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26678
26679         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
26680
26681 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26682
26683         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
26684
26685         * sysdeps/x86_64/rtld-memcmp.c: Removed.
26686         * sysdeps/x86_64/rtld-memset.S: Likewise.
26687         * sysdeps/x86_64/rtld-strchr.S: Likewise.
26688         * sysdeps/x86_64/rtld-strlen.S: Likewise.
26689         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
26690         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
26691
26692         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
26693
26694 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
26695
26696         * debug/strcpy_chk.c: Improve performance.
26697         * debug/stpcpy_chk.c: Likewise.
26698         * sysdeps/x86_64/strcpy_chk.S: Remove.
26699         * sysdeps/x86_64/stpcpy_chk.S: Remove.
26700
26701         [BZ #18240]
26702         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
26703
26704 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26705
26706         [BZ #15128]
26707         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
26708         ifuncmain8.
26709         (modules-names): Add ifuncmod8.
26710         ($(objpfx)ifuncmain8): New rule.
26711         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
26712         <cpuid.h>.
26713         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
26714         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
26715         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
26716         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
26717         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
26718         * sysdeps/x86_64/dl-trampoline.h: Likewise.
26719         * sysdeps/x86_64/ifuncmain8.c: New file.
26720         * sysdeps/x86_64/ifuncmod8.c: Likewise.
26721         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
26722         Removed.
26723         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
26724         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
26725         Change rtld_savespace_sse to __glibc_unused2.
26726         (RTLD_CHECK_FOREIGN_CALL): Removed.
26727         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
26728         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
26729         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
26730
26731 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26732
26733         * sysdeps/aarch64/bzero.S (__bzero): Remove.
26734
26735 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
26736
26737         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
26738         Unconditionally set __fpcr to avoid uninialized warning.
26739         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
26740
26741 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26742
26743         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
26744         is corrupt.
26745
26746         * malloc/arena.c (arena_get2): Drop unused argument.
26747         (arena_lock): Adjust.
26748         (arena_get_retry): Likewise.
26749
26750 2015-08-24  Andreas Schwab  <schwab@suse.de>
26751
26752         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
26753         Don't define.
26754         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
26755         (__ASSUME_IPC64): Don't undef.
26756         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
26757         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
26758         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
26759         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
26760         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
26761         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
26762         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
26763         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
26764         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
26765         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
26766         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
26767         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
26768         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
26769         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
26770         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
26771         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
26772         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
26773         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
26774         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
26775         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
26776         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
26777
26778 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
26779
26780         * manual/Makefile (install): Only build manual when perl is available.
26781
26782 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26783
26784         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
26785         '#undef memcpy' by '#undef memchr'.
26786
26787 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26788
26789         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
26790         memchr not point to the internal __GI_memchr implementation.
26791
26792 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26793
26794         * timezone/Makefile (CFLAGS-zdump.c): Remove
26795         -Wno-strict-prototypes.
26796         (CFLAGS-zic.c): Likewise.
26797         (CFLAGS-ialloc.c): Likewise.
26798         (CFLAGS-scheck.c): Likewise.
26799
26800         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
26801         -Wno-error=undef.
26802
26803 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26804
26805         * i386/i686/multiarch/strcasestr-c.c: Removed.
26806         * x86_64/multiarch/strcasestr.c: Likewise.
26807         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
26808         Remove strcasestr.
26809
26810 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
26811
26812         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
26813
26814         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
26815         variables for high and low parts before possibly modifying them.
26816
26817 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26818
26819         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
26820         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
26821         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
26822         of "multiarch/init-arch.h".
26823         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
26824         * sysdeps/x86/init-arch.h: This.
26825
26826 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26827
26828         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
26829         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
26830
26831 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
26832
26833         [BZ #17787]
26834         * manual/macros.texi: Add twoexp macro.
26835         * manual/filesys.texi: Fix exponents.
26836         * manual/llio.texi: Likewise.
26837         * manual/stdio.texi: Likewise.
26838
26839 2015-08-20  Florian Weimer  <fweimer@redhat.com>
26840
26841         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
26842         incorrect use.
26843
26844 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
26845
26846         [BZ #18370]
26847         * math/s_csqrt.c (__csqrt): Force underflow exception for results
26848         whose real or imaginary part has small absolute value.
26849         * math/s_csqrtf.c (__csqrtf): Likewise.
26850         * math/s_csqrtl.c (__csqrtl): Likewise.
26851         * math/auto-libm-test-in: Add more tests of csqrt.
26852         * math/auto-libm-test-out: Regenerated.
26853         * sysdeps/i386/fpu/libm-test-ulps: Update.
26854
26855 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26856
26857         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
26858         __ppc_set_ppr_very_low): New functions.
26859         * manual/platform.texi: Add documentation about
26860         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
26861
26862 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
26863
26864         * string/stpncpy.c (stpncpy): Improve performance using
26865         __strnlen/memcpy/memset.
26866
26867 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
26868
26869         [BZ #18796]
26870         * scripts/test-installation.pl: Don't add -lmvec to build options if
26871         libmvec wasn't built.
26872
26873 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
26874
26875         [BZ #14341]
26876         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
26877         case when there is a gap between DT_REL and DT_JMPREL sections.
26878         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
26879         (LDFLAGS-tst-split-dynreloc): New.
26880         (tst-split-dynreloc-ENV): Likewise.
26881         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
26882         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
26883
26884 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26885
26886         [BZ #18822]
26887         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
26888         attribute_hidden.
26889         (__xstat64_conv): Likewise.
26890         (__xstat32_conv): Likewise.
26891
26892 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26893
26894         [BZ #18822]
26895         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
26896         Don't load %ebx when calling __setcontext.  Call __setcontext
26897         with HIDDEN_JUMPTARGET.
26898         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
26899         libc_hidden_def.
26900
26901 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26902
26903         * sysdeps/i386/i686/Makefile
26904         [$(subdir) == string] (sysdep_routines): Moved to ...
26905         * sysdeps/i386/Makefile: Here.
26906         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
26907         * sysdeps/i386/cacheinfo.c: Here.
26908         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
26909         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
26910         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
26911         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
26912
26913 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26914
26915         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
26916         __i586__ is defined.
26917         (HAS_I686): Defined to 1 if __i686__ is defined.
26918
26919 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
26920
26921         * elf/Makefile [$(have-z-execstack) = yes]
26922         (CPPFLAGS-tst-execstack.c): New variable.
26923
26924         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
26925         conditional to [defined UTMPX || _HAVE_UT_TYPE].
26926         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
26927         UTMPX || _HAVE_UT_TV].
26928         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
26929         UTMPX || _HAVE_UT_TV - 0].
26930
26931 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
26932
26933         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
26934         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
26935         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
26936
26937 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26938
26939         * sysdeps/powerpc/dl-procinfo.c:
26940         (_dl_powerpc_cap_flags): Added missing strings for some
26941         hwcap features.
26942         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
26943
26944 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26945
26946         Port the 0x7efe...feff pattern to GCC 6.
26947         See Steve Ellcey's bug report in:
26948         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
26949         * string/memrchr.c (MEMRCHR):
26950         * string/rawmemchr.c (RAWMEMCHR):
26951         * string/strchr.c (strchr):
26952         * string/strchrnul.c (STRCHRNUL):
26953         Rewrite code to avoid issues with signed shift overflow.
26954
26955 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26956
26957         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
26958         whether cpuid is available only if HAS_CPUID is 0.
26959         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
26960         (HAS_I586): Likewise.
26961         (HAS_I686): Likewise.
26962
26963 2015-08-18  Zack Weinberg  <zackw@panix.com>
26964
26965         * misc/Versions (libc): Add GLIBC_2.23.
26966
26967 2015-08-18  Alan Modra  <amodra@gmail.com>
26968
26969         [BZ #18421]
26970         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
26971         .Lp__global.
26972         (_start): Load %dp via .Lp__global.
26973         [!SHARED]: Use .section .rodata.
26974
26975 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26976
26977         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
26978         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
26979
26980 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26981
26982         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
26983         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
26984
26985 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26986
26987         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
26988         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
26989
26990 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26991
26992         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
26993         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
26994
26995 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
26996
26997         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
26998         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
26999
27000 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27001
27002         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27003         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27004
27005 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27006
27007         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27008
27009 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27010
27011         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27012         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27013         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27014         (__ASSUME_LWS_CAS): Delete.
27015
27016 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27017
27018         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27019         * sysdeps/hppa/configure: Regenerated.
27020         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27021         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27022         * sysdeps/hppa/nptl/tls.h: Likewise.
27023
27024 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27025
27026         [BZ #18823]
27027         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27028         for scaling up small arguments.
27029         * math/s_csqrtf.c (__csqrtf): Likewise.
27030         * math/s_csqrtl.c (__csqrtl): Likewise.
27031         * math/auto-libm-test-in: Add more tests of csqrt.
27032         * math/auto-libm-test-out: Regenerated.
27033
27034 2015-08-17  Andreas Schwab  <schwab@suse.de>
27035
27036         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27037         version set GLIBC_2.19.
27038
27039 2015-08-16  Zack Weinberg  <zackw@panix.com>
27040
27041         [BZ #18681]
27042         * misc/regexp.h: This interface is no longer supported.
27043         Remove all contents, leaving only an #error directive.
27044         * misc/regexp.c (loc1, loc2, locs, step, advance):
27045         Demote to compatibility symbols.
27046
27047 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27048
27049         [BZ #18084]
27050         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27051         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27052         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27053         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27054         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27055         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27056         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27057         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27058         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27059
27060 2015-08-15  Zack Weinberg  <zackw@panix.com>
27061
27062         [BZ #18795]
27063         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27064         buffer length is known to be too large, not if it's known to be
27065         small enough.
27066         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27067         overflow at runtime, involving a length parameter, twice: once
27068         with a compile-time constant length parameter, once without.
27069
27070 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27071
27072         [BZ #18824]
27073         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27074         scaling x * y up instead of down.
27075         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27076         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27077         * math/auto-libm-test-in: Add more tests of fma.
27078         * math/auto-libm-test-out: Regenerated.
27079
27080 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27081
27082         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27083
27084 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27085
27086         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27087         unnecessary movq.
27088         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27089         Likewise.
27090
27091 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27092
27093         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27094         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27095         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27096         and tgamma.
27097         * math/auto-libm-test-out: Regenerated.
27098         * sysdeps/i386/fpu/libm-test-ulps: Update.
27099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27100
27101         [BZ #16520]
27102         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27103         (__tanh): Force underflow exception for arguments with small
27104         absolute value.
27105         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27106         (__tanhf): Force underflow exception for arguments with small
27107         absolute value.
27108         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27109         (__tanhl): Force underflow exception for arguments with small
27110         absolute value.
27111         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27112         (__tanhl): Force underflow exception for arguments with small
27113         absolute value.
27114         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27115         (__tanhl): Force underflow exception for arguments with small
27116         absolute value.
27117         * math/auto-libm-test-in: Add more tests of tanh.
27118         * math/auto-libm-test-out: Regenerated.
27119         * sysdeps/i386/fpu/libm-test-ulps: Update.
27120
27121 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27122
27123         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27124         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27125
27126 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27127
27128         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27129         <cpuid.h>.
27130
27131 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27132
27133         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27134         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27135
27136 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27137
27138         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27139         Remove $(objpfx)init-arch.o.
27140         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27141         init-arch.
27142         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27143         (INIT_ARCH_EXT): Defined as empty.
27144         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27145         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27146         __init_cpu_features call.  Replace HAS_XXX with
27147         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27148         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27149         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27150         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27151         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27152         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27153         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27154         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27155         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27156         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27157         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27158         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27159         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27160         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27161         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27162         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27163         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27164         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27165         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27166         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27167         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27168         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27169         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27170         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27171         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27172         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27173         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27174         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27175         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27176         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27177         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27178         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27179         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27180         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27181         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27182         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27183
27184 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27185
27186         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27187         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27188         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27189         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27190         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27191         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27192         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27193         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27194         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27195         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27196         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27197         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27198         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27199         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27200         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27201         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27202         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27203         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27204         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27205         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27206         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27207         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27208         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27209         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27210         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27211         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27212         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27213         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27214         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27215         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27216         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27217         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27218         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27219         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27220         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27221         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27222         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27223         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27224         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27225         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27226         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27227         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27228         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27229
27230 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27231
27232         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27233         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27234         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27235         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27236         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27237         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27238         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27239         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27240         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27241         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27242         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27243         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27244         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27245         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27246         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27247         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27248         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27249         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27250         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27251         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27252         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27253         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27254         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27255         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27256         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27257         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27258         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27259         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27260         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27261         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27262         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27263         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27264         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27265         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27266         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27267         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27268         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27269         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27270         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27271         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27272         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27273         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27274         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27275
27276 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27277
27278         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27279         (dl_platform_init): Call init_cpu_features.
27280         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27281         * sysdeps/i386/i686/cacheinfo.c
27282         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27283         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27284         * sysdeps/i386/i686/multiarch/Versions: Removed.
27285         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27286         Removed.
27287         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27288         * sysdeps/unix/sysv/linux/x86/Makefile
27289         (libpthread-sysdep_routines): Remove init-arch.
27290         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27291         <sysdeps/x86_64/dl-procinfo.c> instead of
27292         sysdeps/generic/dl-procinfo.c>.
27293         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27294         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27295         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27296         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27297         [$(subdir) == elf] (tests-static): Add
27298         tst-get-cpu-features-static.
27299         * sysdeps/x86/Versions: New file.
27300         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27301         * sysdeps/x86/cpu-features.c: Likewise.
27302         * sysdeps/x86/cpu-features.h: Likewise.
27303         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27304         * sysdeps/x86/libc-start.c: Likewise.
27305         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27306         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
27307         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
27308         * sysdeps/x86_64/dl-procinfo.c: Likewise.
27309         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
27310         Assume USE_MULTIARCH is defined and don't check it.
27311         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
27312         (is_amd): Likewise.
27313         (max_cpuid): Likewise.
27314         (intel_check_word): Likewise.
27315         (__cache_sysconf): Don't call __init_cpu_features.
27316         (__x86_preferred_memory_instruction): Removed.
27317         (init_cacheinfo): Don't call __init_cpu_features. Replace
27318         __cpu_features with GLRO(dl_x86_cpu_features).
27319         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
27320         (dl_platform_init): Call init_cpu_features.
27321         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
27322         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
27323         * sysdeps/x86_64/multiarch/Versions: Removed.
27324         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
27325         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
27326         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
27327         Removed.
27328         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
27329
27330 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27331
27332         [BZ #18820]
27333         * libio/Makefile (test-fmemopen-mem): New test.
27334         * libio/test-fmemopen.c (do_bz18820): New test.
27335         * libio/fmemopen.c (__fmemopen): Fix memory leak.
27336         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
27337
27338 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27339
27340         [BZ #16734]
27341         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
27342         (FREE_BUF): Delete.
27343         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
27344         * libio/genops.c (_IO_setb): Use malloc and free directly.
27345         (_IO_default_doallocate, _IO_default_finish): Likewise.
27346         ( _IO_unbuffer_all): Likewise.
27347         ( libc_freeres_fn): Likewise.
27348         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
27349         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
27350         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
27351         (_IO_wdefault_doallocate): Likewise.
27352
27353 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
27354
27355         [BZ #18086]
27356         * sysdeps/posix/nice.c (nice): Restore old errno.
27357         * posix/tst-nice.c (do_test): Add test for BZ #18086.
27358
27359 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
27360
27361         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
27362
27363 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27364
27365         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
27366         __bcopy and add a weak_alias to bcopy.
27367         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
27368         for static build.
27369
27370         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
27371         cleanup macro usage.
27372         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
27373         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
27374         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27375         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
27376         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27377         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
27378         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
27379         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27380         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
27381         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
27382         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27383         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
27384         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27385         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
27386         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
27387         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
27388         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
27389         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
27390         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27391
27392         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
27393         libc_hidden_def.
27394         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
27395
27396         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
27397         (sysdep_routines): Add strstr-ppc64.
27398         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
27399
27400 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
27401
27402         [BZ #18778]
27403         * elf/Makefile (tests): Add Add tst-nodelete2.
27404         (modules-names): Add tst-nodelete2mod.
27405         (tst-nodelete2mod.so-no-z-defs): New.
27406         ($(objpfx)tst-nodelete2): Likewise.
27407         ($(objpfx)tst-nodelete2.out): Likewise.
27408         (LDFLAGS-tst-nodelete2): Likewise.
27409         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
27410         out of loop through all loaded libraries.
27411         * elf/tst-nodelete2.c: New file.
27412         * elf/tst-nodelete2mod.c: Likewise.
27413         * elf/tst-znodelete-zlib.cc: Delete.
27414
27415 2015-08-11  Andreas Schwab  <schwab@suse.de>
27416
27417         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
27418         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
27419         (__openat64_nocancel): Likewise.
27420
27421 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
27422
27423         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
27424         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
27425         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
27426         * math/auto-libm-test-out: Regenerated.
27427         * sysdeps/i386/fpu/libm-test-ulps: Update.
27428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27429
27430 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27431
27432         [BZ #18790]
27433         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
27434         threshold for returning +/- 1.
27435         * math/auto-libm-test-in: Add more tests of tanh.
27436         * math/auto-libm-test-out: Regenerated.
27437         * sysdeps/i386/fpu/libm-test-ulps: Update.
27438
27439 2015-08-10  Andreas Schwab  <schwab@suse.de>
27440
27441         [BZ #18781]
27442         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
27443         MORE_OFLAGS to oflag.
27444         * io/test-lfs.c (do_test): Test openat64.
27445
27446 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27447
27448         [BZ #18789]
27449         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
27450         smaller threshold for returning the argument.
27451         * math/auto-libm-test-in: Add more tests of sinh.
27452         * math/auto-libm-test-out: Regenerated.
27453         * sysdeps/i386/fpu/libm-test-ulps: Update.
27454
27455 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27456
27457         [BZ #18674]
27458         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
27459         break.
27460
27461 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
27462
27463         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
27464         (generated): Don't add $(addprefix z.,$(tzfiles)).
27465
27466 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27467
27468         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
27469         * scripts/sysd-rules.awk: Likewise.
27470
27471 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27472
27473         * iconvdata/tst-tables.sh: Change echo -n to printf.
27474         * nss/db-Makefile: Likewise.
27475         * posix/tst-getconf.sh: Likewise.
27476         * stdio-common/tst-unbputc.sh: Likewise.
27477
27478 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27479
27480         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
27481         MADV_*_PAGES defines behind this feature check.
27482
27483 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
27484
27485         [BZ #18480]
27486         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
27487         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
27488         Define.
27489         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
27490         LOAD_REGS_5, LOAD_REGS_6): Update.
27491         (INTERNAL_SYSCALL): Update using new LOAD defines.
27492         (INTERNAL_SYSCALL_NCS): Likewise.
27493         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
27494
27495 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27496
27497         [BZ #16734]
27498         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
27499
27500 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27501
27502         [BZ #17905]
27503         * catgets/Makefile (tst-catgets-mem): New test.
27504         * catgets/catgets.c (catopen): Don't use unbounded alloca.
27505         * catgets/open_catalog.c (__open_catalog): Likewise.
27506         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
27507
27508 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
27509
27510         [BZ #18787]
27511         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
27512         clobber registers.
27513         (atomic_compare_and_exchange_val_acq): Use register asms to assign
27514         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
27515         Cast return to __typeof (oldval).
27516
27517 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
27518
27519         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
27520         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
27521         and delete sys/syscall.h include.
27522
27523 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
27524
27525         [BZ #16517]
27526         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
27527         (tan): Force underflow exception for arguments with small absolute
27528         value.
27529         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
27530         (__kernel_tanf): Force underflow exception for arguments with
27531         small absolute value.
27532         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
27533         (__kernel_tanl): Force underflow exception for arguments with
27534         small absolute value.
27535         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
27536         (__kernel_tanl): Force underflow exception for arguments with
27537         small absolute value.
27538         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
27539         (__kernel_tanl): Force underflow exception for arguments with
27540         small absolute value.
27541         * math/auto-libm-test-in: Add more tests of tan.
27542         * math/auto-libm-test-out: Regenerated.
27543
27544 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27545
27546         Fix sysdeps/i386/fpu/s_scalbn.S build
27547
27548         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
27549
27550 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
27551
27552         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
27553
27554 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27555
27556         Fix gcrt0.o compilation
27557
27558         When static-start-installed-name is different from
27559         start-installed-name, we must not use the shared objects.
27560
27561         * csu/Makefile
27562         (extra-objs): Add gmon-start.o when building shared library and
27563         $(static-start-installed-name) is different from
27564         $(start-installed-name).
27565         $(objpfx)g$(static-start-installed-name): When building shared
27566         library and $(static-start-installed-name) is different from
27567         $(static-start-installed-name), revert to non-shared rule,
27568         i.e. using $(objpfx)% and gmon-start.o.
27569
27570 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
27571
27572         [BZ #16519]
27573         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
27574         (__ieee754_sinh): Force underflow exception for arguments with
27575         small absolute value.
27576         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
27577         (__ieee754_sinhf): Force underflow exception for arguments with
27578         small absolute value.
27579         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
27580         (__ieee754_sinhl): Force underflow exception for arguments with
27581         small absolute value.
27582         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
27583         (__ieee754_sinhl): Force underflow exception for arguments with
27584         small absolute value.
27585         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
27586         (__ieee754_sinhl): Force underflow exception for arguments with
27587         small absolute value.
27588         * math/auto-libm-test-in: Add more tests of sinh.
27589         * math/auto-libm-test-out: Regenerated.
27590         * sysdeps/i386/fpu/libm-test-ulps: Update.
27591
27592 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27593
27594         * libio/oldfileops.c: Include unistd.h.
27595
27596 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
27597
27598         * stdlib/isomac.c: Include ctype.h.
27599
27600 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
27601
27602         * dirent/tst-seekdir.c (main): Converted to ...
27603         (do_test): ... this.
27604         (TEST_FUNCTION): New macro.
27605         Include test-skeleton.c.
27606         * elf/tst-dlmodcount.c (main): Converted to ...
27607         (do_test): ... this.
27608         (TEST_FUNCTION): New macro.
27609         Include test-skeleton.c.
27610         * elf/tst-order-main.c (main): Converted to ...
27611         (do_test): ... this.
27612         (TEST_FUNCTION): New macro.
27613         Include test-skeleton.c.
27614         * elf/tst-pie2.c (main): Converted to ...
27615         (do_test): ... this.
27616         (TEST_FUNCTION): New macro.
27617         Include test-skeleton.c.
27618         * inet/tst-ether_aton.c (main): Converted to ...
27619         (do_test): ... this.
27620         (TEST_FUNCTION): New macro.
27621         Include test-skeleton.c.
27622         * misc/tst-mntent.c (main): Converted to ...
27623         (do_test): ... this.
27624         (TEST_FUNCTION): New macro.
27625         Include test-skeleton.c.
27626         * misc/tst-tsearch.c (main): Converted to ...
27627         (do_test): ... this.
27628         (TEST_FUNCTION): New macro.
27629         Include test-skeleton.c.
27630         * posix/tst-regexloc.c (main): Converted to ...
27631         (do_test): ... this.
27632         (TEST_FUNCTION): New macro.
27633         Include test-skeleton.c.
27634         * resolv/tst-aton.c (main): Converted to ...
27635         (do_test): ... this.
27636         (TEST_FUNCTION): New macro.
27637         Include test-skeleton.c.
27638         * stdio-common/test-fwrite.c (main): Converted to ...
27639         (do_test): ... this.
27640         (TEST_FUNCTION): New macro.
27641         Include test-skeleton.c.
27642         * stdio-common/tst-ferror.c (main): Converted to ...
27643         (do_test): ... this.
27644         (TEST_FUNCTION): New macro.
27645         Include test-skeleton.c.
27646         * stdio-common/tst-printf.c (main): Converted to ...
27647         (do_test): ... this.
27648         (TEST_FUNCTION): New macro.
27649         Include test-skeleton.c.
27650         * stdio-common/tst-printfsz.c (main): Converted to ...
27651         (do_test): ... this.
27652         (TEST_FUNCTION): New macro.
27653         Include test-skeleton.c.
27654         * stdlib/tst-strtod.c (main): Converted to ...
27655         (do_test): ... this.
27656         (TEST_FUNCTION): New macro.
27657         Include test-skeleton.c.
27658         * string/tst-strlen.c (main): Converted to ...
27659         (do_test): ... this.
27660         (TEST_FUNCTION): New macro.
27661         Include test-skeleton.c.
27662         * string/tst-svc.c (main): Converted to ...
27663         (do_test): ... this.
27664         (TEST_FUNCTION): New macro.
27665         Include test-skeleton.c.
27666         * time/tst-strptime.c (main): Converted to ...
27667         (do_test): ... this.
27668         (TEST_FUNCTION): New macro.
27669         Include test-skeleton.c.
27670         * timezone/tst-timezone.c (main): Converted to ...
27671         (do_test): ... this.
27672         (TEST_FUNCTION): New macro.
27673         Include test-skeleton.c.
27674
27675 2015-08-05  Zack Weinberg  <zackw@panix.com>
27676
27677         * misc/regexp.h: Update comments.
27678
27679 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
27680
27681         [BZ #18635]
27682         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
27683         before return label.
27684
27685 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27686
27687         [BZ #18661]
27688         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
27689         when calling __errno_location.
27690         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
27691         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
27692
27693 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27694
27695         [BZ #18661]
27696         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
27697         (__lll_timedwait_tid): Align stack to 16 bytes when calling
27698         __gettimeofday.
27699
27700 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27701
27702         [BZ #18661]
27703         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
27704         (__start_context): Don't use pop to restore %rdi so that stack
27705         is aligned to 16 bytes when calling __setcontext.
27706
27707 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27708
27709         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
27710         only for libc.
27711         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
27712
27713 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27714
27715         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
27716         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
27717         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
27718
27719 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27720
27721         * string/memccpy.c (memccpy):
27722         Improve performance by using memchr/memcpy/__mempcpy.
27723
27724 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27725
27726         * string/strncpy.c (strncpy):
27727         Improve performance by using __strnlen/memcpy.
27728
27729 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27730
27731         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
27732         Optimize to avoid an unnecessary FPCR read.
27733
27734 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
27735
27736         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
27737         Optimize to reduce FPCR/FPSR accesses.
27738
27739 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
27740
27741         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
27742         dead->data[category] != NULL.
27743
27744 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
27745
27746         [BZ #18647]
27747         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
27748         and |x| close to 1, use absolute value of x when computing log.
27749         * math/auto-libm-test-in: Add more tests of pow.
27750         * math/auto-libm-test-out: Regenerated.
27751
27752 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27753
27754         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
27755         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
27756         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
27757
27758 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
27759
27760         [BZ #18525]
27761         * locales/km_KH: Remove timezone definition.
27762         * locales/lo_LA: Likewise.
27763         * locales/my_MM: Likewise.
27764         * locales/nan_TW@latin: Likewise.
27765         * locales/th_TH: Likewise.
27766         * locales/uk_UA: Likewise.
27767
27768 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
27769
27770         [BZ #18265]
27771         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
27772         (wcsncat): Likewise.
27773         (wcscmp): Likewise.
27774         (wcsncmp): Likewise.
27775
27776 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27777
27778         * test-skeleton.c (usage): New function.
27779         (main): Call usage when opt is '?'.
27780
27781 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27782
27783         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
27784         before first use.
27785
27786 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
27787
27788         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
27789         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
27790         in there too.
27791
27792 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
27793
27794         * version.h (RELEASE): Set to "development".
27795         (VERSION): Set to "2.22.90"
27796
27797         * version.h (RELEASE): Set to "stable".
27798         (VERSION): Set to "2.22"
27799         * include/features.h (__GLIBC_MINOR__): Set to 22.
27800
27801 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
27802
27803         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
27804         Restructure macro to avoid "value computed is not used" warning.
27805         (atomic_compare_and_exchange_val_acq): Likewise.
27806
27807 2015-08-04  Andreas Schwab  <schwab@suse.de>
27808
27809         [BZ #18635]
27810         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
27811         ret.
27812         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
27813
27814 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
27815
27816         * po/pl.po: Updated translation.
27817         * po/uk.po: Likewise.
27818         * po/fi.po: Likewise.
27819         * po/ko.po: Likewise.
27820         * po/ru.po: Likewise.
27821         * po/vi.po: Likewise.
27822
27823 2015-07-31  Zack Weinberg  <zackw@panix.com>
27824
27825         [BZ #18681]
27826         * regexp.h: Add unconditional #warning stating that this header
27827         will be removed soon.  Revise banner comment to match.
27828         (compile): Consistently use ERROR instead of RETURN to report
27829         errors (partial fix for BZ #18681).
27830         * regexp.c: Don't include regexp.h. Remove some unnecessary
27831         declarations.
27832
27833 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
27834
27835         * po/libc.pot: Regenerated.
27836
27837 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
27838
27839         [BZ #18740]
27840         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
27841         float-vlen4-arch-ext-cflags): Removed.
27842         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
27843         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
27844
27845 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27846
27847         [BZ #14113]
27848         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
27849         aligned to __aligned__.
27850         (pthread_cond_t, pthread_rwlock_t): Likewise.
27851
27852 2015-07-30  Torvald Riegel  <triegel@redhat.com>
27853
27854         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
27855
27856 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27857
27858         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
27859         (struct sigaction): Change sa_flags from a long to an int, and add
27860         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
27861
27862 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27863
27864         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
27865         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
27866         sysdeps/generic/sysdep.h include.
27867         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
27868         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
27869         sysdeps/hppa/sysdep.h.
27870         (ENTRY, PSEUDO): Undefine before defining.
27871
27872 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
27873
27874         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
27875         from scratch to use INTERNAL_SYSCALL.
27876
27877 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
27878
27879         [BZ #18078]
27880         * scripts/check-localplt.awk: Support alternate relocations.
27881         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
27882         sections.
27883         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
27884         malloc entries with + REL R_386_GLOB_DAT.
27885         * sysdeps/x86_64/localplt.data: New file.
27886
27887 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
27888
27889         [BZ #18731]
27890         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
27891         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
27892         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
27893
27894 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27895
27896         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
27897
27898 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27899
27900         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
27901         directly in terms of __sync_fetch_and_add and delete (int) cast.
27902
27903 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27904
27905         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
27906         the -D_ASM_IA64_CURRENT_H flag.
27907
27908 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
27909
27910         [BZ #18641]
27911         * pwd/pwd.h (putpwent): Delete __nonnull markings.
27912
27913 2015-07-27  Andreas Schwab  <schwab@suse.de>
27914
27915         * conform/conformtest.pl (checknamespace): Filter out string
27916         literals while tokenizing.
27917
27918 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
27919
27920         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27921         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
27922         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27923
27924 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
27925
27926         * nptl/tst-join7mod.c: Add #include <string.h>.
27927
27928 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
27929
27930         * sysdeps/nios2/libm-test-ulps: Update.
27931
27932 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
27933
27934         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
27935         Fix order of arguments to the rt_sigprocmask syscall.
27936         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
27937         Likewise.
27938
27939 2015-07-24  Roland McGrath  <roland@hack.frob.com>
27940
27941         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
27942
27943 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27944
27945         [BZ #18457]
27946         * nptl/Makefile (tests): New test case tst-join7.
27947         (modules-names): New test case module tst-join7mod.
27948         * nptl/tst-join7.c: New file.
27949         * nptl/tst-join7mod.c: New file.
27950         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
27951         all translation units in libc.so, libpthread.so and rtld.
27952
27953 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27954
27955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27956
27957 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
27958
27959         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
27960         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27961         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27962         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27963         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27964         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27965         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27966         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27967         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27968         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27969         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27970         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27971         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
27972         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
27973         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
27974         implementation.
27975
27976 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27977
27978         [BZ #17711]
27979         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27980         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
27981         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27982         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
27983         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
27984         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
27985
27986 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27987
27988         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
27989         instead of just saying load lock in the comments.
27990
27991 2015-07-23  Roland McGrath  <roland@hack.frob.com>
27992
27993         * sysdeps/unix/Subdirs: Moved ...
27994         * sysdeps/posix/Subdirs: ... here.
27995         * login/pty.h (struct termios, struct winsize): Add forward decls.
27996         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
27997         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
27998         * sysdeps/arm/nacl/libc.abilist: Updated.
27999         * sysdeps/nacl/libutil.abilist: New file.
28000
28001         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28002         (SIGWINCH): New macro.
28003
28004         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28005         * sysdeps/arm/nacl/libc.abilist: Add it.
28006
28007 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28008
28009         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28010
28011 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28012
28013         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28014         Swap __glibc_reserved0 and sa_flags order.
28015
28016 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28017
28018         [BZ #18657]
28019         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28020         are pending TLS destructor calls.
28021         * include/link.h (struct link_map): Add concurrency note for
28022         L_TLS_DTOR_COUNT.
28023         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28024         Don't touch the link map flag.  Atomically increment
28025         l_tls_dtor_count.
28026         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28027         Avoid taking the load lock and don't touch the link map flag.
28028         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28029         * stdlib/Makefile (tests): Use it.
28030         * stdlib/tst-tls-atexit.c (do_test): dlopen
28031         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28032         to allow tst-tls-atexit-nodelete test case to use it.
28033
28034 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28035
28036         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28037         to bits/types.h.
28038         (msgqnum_t): New typedef.
28039         (msglen_t): Likewise.
28040         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28041         and msg_qbytes type to msglen_t.
28042
28043 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28044
28045         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28046         pad0 to __glibc_reserved0.
28047         (struct stat64): Likewise.
28048
28049 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28050
28051         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28052         Change sa_flags from a long to an int and add __glibc_reserved0 before
28053         it for padding.
28054
28055 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28056
28057         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28058         anonymous by deleting "siginfo" name.
28059
28060 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28061
28062         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28063         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28064         rather than __nacl_irt_filename.
28065         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28066
28067         * NEWS: New item for arm-nacl port.
28068         * sysdeps/arm/nacl/libc.abilist: New file.
28069         * sysdeps/nacl/ld.abilist: New file.
28070         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28071         * sysdeps/nacl/libanl.abilist: New file.
28072         * sysdeps/nacl/libcrypt.abilist: New file.
28073         * sysdeps/nacl/libdl.abilist: New file.
28074         * sysdeps/nacl/libm.abilist: New file.
28075         * sysdeps/nacl/libpthread.abilist: New file.
28076         * sysdeps/nacl/libresolv.abilist: New file.
28077         * sysdeps/nacl/librt.abilist: New file.
28078
28079 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28080
28081         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28082         __startcontext to initialize the new context.
28083         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28084         up CFI directive to forbid further backtracing.
28085
28086 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28087
28088         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28089         reference.
28090         * charmaps/ANSI_X3.4-1968: Likewise.
28091         * charmaps/BS_4730: Likewise.
28092         * charmaps/BS_VIEWDATA: Likewise.
28093         * charmaps/CP1250: Likewise.
28094         * charmaps/CP1251: Likewise.
28095         * charmaps/CP1252: Likewise.
28096         * charmaps/CP1253: Likewise.
28097         * charmaps/CP1254: Likewise.
28098         * charmaps/CP1255: Likewise.
28099         * charmaps/CP1256: Likewise.
28100         * charmaps/CSN_369103: Likewise.
28101         * charmaps/EBCDIC-DK-NO: Likewise.
28102         * charmaps/GB_1988-80: Likewise.
28103         * charmaps/GREEK-CCITT: Likewise.
28104         * charmaps/GREEK7: Likewise.
28105         * charmaps/INIS-8: Likewise.
28106         * charmaps/ISIRI-3342: Likewise.
28107         * charmaps/ISO_2033-1983: Likewise.
28108         * charmaps/ISO_5427-EXT: Likewise.
28109         * locales/POSIX: Likewise.
28110         * locales/ar_SA: Likewise.
28111         * locales/be_BY: Likewise.
28112         * locales/be_BY@latin: Likewise.
28113         * locales/ca_ES: Likewise.
28114         * locales/cs_CZ: Likewise.
28115         * locales/da_DK: Likewise.
28116         * locales/de_BE: Likewise.
28117         * locales/de_CH: Likewise.
28118         * locales/de_LU: Likewise.
28119         * locales/en_AU: Likewise.
28120         * locales/en_BW: Likewise.
28121         * locales/en_CA: Likewise.
28122         * locales/en_DK: Likewise.
28123         * locales/en_GB: Likewise.
28124         * locales/en_IE: Likewise.
28125         * locales/en_NZ: Likewise.
28126         * locales/en_ZA: Likewise.
28127         * locales/en_ZW: Likewise.
28128         * locales/es_AR: Likewise.
28129         * locales/es_BO: Likewise.
28130         * locales/es_CL: Likewise.
28131         * locales/es_CO: Likewise.
28132         * locales/es_DO: Likewise.
28133         * locales/es_EC: Likewise.
28134         * locales/es_ES: Likewise.
28135         * locales/es_HN: Likewise.
28136         * locales/es_MX: Likewise.
28137         * locales/es_PA: Likewise.
28138         * locales/es_PE: Likewise.
28139         * locales/es_PY: Likewise.
28140         * locales/es_SV: Likewise.
28141         * locales/es_US: Likewise.
28142         * locales/es_UY: Likewise.
28143         * locales/es_VE: Likewise.
28144         * locales/et_EE: Likewise.
28145         * locales/fa_IR: Likewise.
28146         * locales/fo_FO: Likewise.
28147         * locales/fr_CA: Likewise.
28148         * locales/fr_CH: Likewise.
28149         * locales/gv_GB: Likewise.
28150         * locales/he_IL: Likewise.
28151         * locales/hr_HR: Likewise.
28152         * locales/id_ID: Likewise.
28153         * locales/is_IS: Likewise.
28154         * locales/it_CH: Likewise.
28155         * locales/iw_IL: Likewise.
28156         * locales/kl_GL: Likewise.
28157         * locales/ko_KR: Likewise.
28158         * locales/kw_GB: Likewise.
28159         * locales/lg_UG: Likewise.
28160         * locales/lt_LT: Likewise.
28161         * locales/lv_LV: Likewise.
28162         * locales/mi_NZ: Likewise.
28163         * locales/nhn_MX: Likewise.
28164         * locales/nl_BE: Likewise.
28165         * locales/pl_PL: Likewise.
28166         * locales/sk_SK: Likewise.
28167         * locales/sl_SI: Likewise.
28168         * locales/sv_FI: Likewise.
28169         * locales/tl_PH: Likewise.
28170         * locales/tr_TR: Likewise.
28171         * locales/vi_VN: Likewise.
28172
28173 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28174
28175         [BZ #17475]
28176         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28177         of tu_IN and bh_IN.
28178
28179 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28180
28181         [BZ #18694]
28182         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28183         bits/wordsize.h.
28184         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28185
28186 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28187
28188         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28189         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28190         (spawn_thread): New function.
28191         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28192         (do_test): ... here.  Use IS_LOADED to test for its
28193         availability.
28194
28195 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28196
28197         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28198
28199 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28200
28201         [BZ #18696]
28202         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28203         si_addr_bnd.
28204         (si_lower): New.
28205         (si_upper): Likewise.
28206
28207 2015-07-16  David S. Miller  <davem@davemloft.net>
28208
28209         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28210
28211 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28212
28213         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28214         buffer.
28215         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28216         fail output information.
28217
28218 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28219
28220         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28221         and strstr-ppc64..
28222         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28223         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28224         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28225         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28226         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28227
28228 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28229
28230         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28231         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28232         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28233         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28234
28235 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28236
28237         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28238         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28239         rtld_hidden_proto.
28240         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28241
28242 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28243
28244         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28245         the test can fail.
28246
28247         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28248
28249         [BZ #18676]
28250         * elf/tst-nodelete-opened.c: New test case.
28251         * elf/tst-nodelete-opened-lib.c: New test case module.
28252         * elf/Makefile (tests, modules-names): Use them.
28253         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28254         early.
28255
28256 2015-07-15  David S. Miller  <davem@davemloft.net>
28257
28258         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28259         futex-intenal.h
28260         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28261         * sysdeps/sparc/sparc64/Makefile: Likewise.
28262         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28263         Remove space from macro define.
28264         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28265
28266 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28267
28268         [BZ #17475]
28269         * locale/iso-639.def: Update Bhili and Tulu language codes as
28270         per iso639-3.
28271
28272 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28273
28274         * elf/tst-leaks1.c (main): Converted to ...
28275         (do_test): ... this.
28276         (TEST_FUNCTION): New macro.
28277         Include test-skeleton.c.
28278         * localedata/tst-langinfo.c (main): Converted to ...
28279         (do_test): ... this.
28280         (TEST_FUNCTION): New macro.
28281         Include test-skeleton.c.
28282         * math/test-fpucw.c (main): Converted to ...
28283         (do_test): ... this.
28284         (TEST_FUNCTION): New macro.
28285         Include test-skeleton.c.
28286         * math/test-tgmath.c (main): Converted to ...
28287         (do_test): ... this.
28288         (TEST_FUNCTION): New macro.
28289         Include test-skeleton.c.
28290         * math/test-tgmath2.c (main): Converted to ...
28291         (do_test): ... this.
28292         (TEST_FUNCTION): New macro.
28293         Include test-skeleton.c.
28294         * setjmp/tst-setjmp.c (main): Converted to ...
28295         (do_test): ... this.
28296         (TEST_FUNCTION): New macro.
28297         Include test-skeleton.c.
28298         * stdio-common/tst-sscanf.c (main): Converted to ...
28299         (do_test): ... this.
28300         (TEST_FUNCTION): New macro.
28301         Include test-skeleton.c.
28302         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28303         (do_test): ... this.
28304         (TEST_FUNCTION): New macro.
28305         Include test-skeleton.c.
28306
28307         * elf/tst-audit9.c (main): Converted to ...
28308         (do_test): ... this.
28309         (TEST_FUNCTION): New macro.
28310         Include test-skeleton.c.
28311
28312 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
28313
28314         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
28315
28316 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28317
28318         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
28319         New variable.
28320
28321 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28322
28323         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28324
28325 2015-07-14  Roland McGrath  <roland@hack.frob.com>
28326
28327         * sysdeps/generic/dl-fileid.h: New file.
28328         * sysdeps/posix/dl-fileid.h: New file.
28329         * sysdeps/nacl/dl-fileid.h: New file.
28330         * include/link.h: Include <dl-fileid.h>.
28331         (struct link_map): Replace l_dev and l_ino with l_file_id.
28332         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
28333         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
28334         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
28335
28336 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28337
28338         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
28339
28340 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28341
28342         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
28343         Add iff $CXX is set.
28344         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
28345         Likewise.
28346         (tst-nodelete-zmodiff): Likewise.
28347         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
28348
28349 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28350
28351         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
28352
28353 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28354
28355         * sysdeps/aarch64/fpu/math_private.h
28356         (define math_opt_barrier): Add AArch64 version.
28357         (math_force_eval): Likewise.
28358
28359 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28360
28361         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
28362
28363 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
28364
28365         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
28366         %ld with %jd and cast to intmax_t.
28367         (do_test_length_zero): Likewise.
28368
28369 2015-07-10  Roland McGrath  <roland@hack.frob.com>
28370
28371         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
28372
28373 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
28374
28375         * sysdeps/tile/libm-test-ulps: Regenerated.
28376
28377         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
28378         Comment out the whole function, not just its body.
28379
28380 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28381
28382         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
28383         locks.
28384
28385         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
28386
28387 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28388
28389         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
28390         (sem_assume_only_signals_cause_futex_EINTR): Remove.
28391
28392 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28393
28394         * sysdeps/nptl/futex-internal.h: New file.
28395         * sysdeps/nacl/futex-internal.h: New file.
28396         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
28397         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
28398         error checking.
28399         (setxid_unmark_thread): Likewise.
28400         (__nptl_setxid): Likewise.
28401         (__wait_lookup_done): Likewise.
28402         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28403         * nptl/nptl-init.c (sighandler_setxid): Likewise.
28404         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28405         * nptl/pthread_once.c (clear_once_control): Likewise.
28406         (__pthread_once_slow): Likewise.
28407         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
28408         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
28409         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
28410         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28411         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
28412         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
28413         Likewise.
28414         (__pthread_rwlock_rdlock): Likewise.
28415         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
28416         Likewise.
28417         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
28418         Likewise.
28419         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
28420         Likewise.
28421         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
28422         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
28423         Likewise.
28424         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
28425         __ASSUME_PRIVATE_FUTEX check.
28426         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
28427         Check that shared futexes are supported.
28428         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
28429         wrappers with error checking.
28430         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
28431         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
28432         * nptl/pthread_barrierattr_setpshared.c
28433         (pthread_barrierattr_setpshared): Check that shared futexes are
28434         supported.
28435         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
28436         Likewise.
28437         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
28438         Likewise.
28439         * nptl/sem_init.c (futex_private_if_supported): Remove.
28440         (__new_sem_init): Adapt and check that shared futexes are supported.
28441         * nptl/sem_open.c (sem_open): Likewise.
28442         * nptl/sem_post.c (futex_wake): Remove.
28443         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
28444         (do_futex_wait): Use futex wrappers with error checking.
28445         * nptl/sem_wait.c: Include lowlevellock.h.
28446         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
28447         Use futex_supports_pshared.
28448         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
28449         Use futex wrappers with error checking.
28450         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
28451         Likewise.
28452         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
28453         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
28454         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
28455         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
28456         (futex_wake): Likewise.
28457         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
28458         (do_futex_wait): Use futex wrappers with error checking.
28459         (__new_sem_wait_slow): Update EINTR handling.
28460         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
28461
28462 2015-07-09  Martin Sebor  <msebor@redhat.com>
28463
28464         [BZ #18435]
28465         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28466         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
28467         * nptl/Makefile (test-xfail-tst-once5): Define.
28468
28469 2015-07-09  Roland McGrath  <roland@hack.frob.com>
28470
28471         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
28472         * elf/dl-minimal.c: For readability, reorder some definitions and
28473         introduce more page breaks.  Include <stdio.h>.
28474         (__libc_fatal): New function.
28475
28476         * include/unistd.h: Add rtld_hidden_proto for _exit.
28477         * posix/_exit.c: Add rtld_hidden_def.
28478         * sysdeps/mach/hurd/_exit.c: Likewise.
28479         * sysdeps/nacl/_exit.c: Likewise.
28480         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
28481         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
28482
28483 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
28484
28485         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
28486         bndmov encoding with zero displacement.
28487
28488 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
28489             H.J. Lu  <hongjiu.lu@intel.com>
28490
28491         [BZ #18134]
28492         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
28493         * sysdeps/i386/configure: Regenerated.
28494         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
28495         (_dl_runtime_profile): Save and restore Intel MPX return bound
28496         registers when calling _dl_call_pltexit.  Add
28497         PRESERVE_BND_REGS_PREFIX before return.
28498         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
28499         (LRV_BND1_OFFSET): Likewise.
28500         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
28501         lrv_bnd1.
28502         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
28503         typo in bndmov encoding.
28504         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
28505         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
28506         branch instructions to preserve bounds.
28507
28508 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28509
28510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
28511         [GLIBC_2.22]: Add fmemopen.
28512
28513 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28514
28515         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
28516         returns an error, also try to use host port from __mach_host_self for
28517         the __vm_wire call.
28518         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
28519
28520 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28521
28522         [BZ #18400]
28523         [BZ #18648]
28524         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
28525         Fix pr_uid and pr_gid members.
28526         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
28527         definition to elf_greg_t.
28528
28529 2015-07-08  Roland McGrath  <roland@hack.frob.com>
28530
28531         [BZ #18383]
28532         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
28533         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
28534         * sysdeps/arm/configure: Regenerated.
28535         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
28536         (test-xfail-tst-tlsalign-static): Variable removed.
28537
28538         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
28539         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
28540         rather than explicit 'ln -s'.
28541
28542         * resolv/rpc/netdb.h: New file.
28543         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
28544
28545 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28546
28547         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
28548         length buffers.
28549         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
28550         test-skeleton.c.
28551
28552         [BZ #6544]
28553         [BZ #11216]
28554         [BZ #12836]
28555         [BZ #13151]
28556         [BZ #13152]
28557         [BZ #14292]
28558         * include/stdio.h (fmemopen): Remove hidden prototype.
28559         (__fmemopen): Add new hidden prototype.
28560         * libio/Makefile: Add oldfmemopen object.
28561         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
28562         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
28563         compliance.
28564         * libio/oldfmemopen.c: New file: old fmemopen implementation for
28565         symbol compatibility.
28566         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
28567         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
28568         fmemopen.
28569         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
28570         on append and read mode.
28571         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
28572         fmemopen.
28573         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
28574         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
28575         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
28576         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
28577         Likewise.
28578         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
28579         [GLIBC_2.22]: Likewise.
28580         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
28581         Likewise.
28582         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
28583         Likewise.
28584         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
28585         [GLIBC_2.22]: Likewise.
28586         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
28587         [GLIBC_2.22]: Likewise.
28588         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
28589         [GLIBC_2.22]: Likewise.
28590         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
28591         [GLIBC_2.22]: Likewise.
28592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
28593         [GLIBC_2.22]: Likewise.
28594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
28595         [GLIBC_2.22]: Likewise.
28596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
28597         [GLIBC_2.22]: Likewise.
28598         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
28599         Likewise.
28600         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
28601         Likewise.
28602         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
28603         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
28604         [GLIBC_2.22]: Likewise.
28605         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
28606         [GLIBC_2.22]: Likewise.
28607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
28608         [GLIBC_2.22]: Likewise.
28609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
28610         [GLIBC_2.22]: Likewise.
28611         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
28612         Likewise.
28613         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
28614         Likewise.
28615         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
28616         Likewise.
28617         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
28618         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
28619
28620 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28621
28622         [BZ #18643]
28623         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
28624         IPV6_PATHMTU, and IPV6_DONTFRAG.
28625
28626 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
28627
28628         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
28629         and _IO_UNBUFFERED.
28630         * libio/oldfileops.c: Likewise.
28631         * libio/wfileops.c: Likewise.
28632
28633 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28634
28635         * nscd/selinux.c: Delete selinux/flask.h include.
28636
28637 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
28638
28639         [BZ #18641]
28640         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
28641         (putpwent): Likewise.
28642         (getpwnam): Likewise.
28643         (getpwent_r): Likewise.
28644         (getpwuid_r): Likewise.
28645         (getpwnam_r): Likewise.
28646         (fgetpwent_r): Likewise.
28647
28648 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
28649
28650         [BZ #18557]
28651         * inet/rcmd.c (__validuser2_sa): Check user first to
28652         short-circuit host check.
28653
28654 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
28655             Mikhail Ilin  <m.ilin@samsung.com>
28656
28657         [BZ #17833]
28658         * elf/Makefile (tests): Add tst-nodelete.
28659         (modules-names): Add tst-nodelete-uniquemod.
28660         (tst-nodelete-uniquemod.so-no-z-defs): New.
28661         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
28662         (tst-nodelete-zmod.so-no-z-defs): Likewise.
28663         ($(objpfx)tst-nodelete): Likewise.
28664         ($(objpfx)tst-nodelete.out): Likewise.
28665         (LDFLAGS-tst-nodelete): Likewise.
28666         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
28667         * elf/dl-close.c (_dl_close_worker): Add a parameter to
28668         implement forced object deletion.
28669         (_dl_close): Pass false to _dl_close_worker.
28670         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
28671         * elf/tst-nodelete.cc: New file.
28672         * elf/tst-nodeletelib.cc: Likewise.
28673         * elf/tst-znodeletelib.cc: Likewise.
28674         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
28675
28676 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28677
28678         [BZ #18508]
28679         * stdlib/Makefile ($(objpfx)tst-makecontext3):
28680         Depend on $(libdl).
28681         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
28682         is not called infinitely times.
28683         (backtrace_helper): New function.
28684         (trace_arg): New struct.
28685         (st1): Enlarge stack size.
28686         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
28687         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
28688         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
28689         Likewise.
28690
28691 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28692
28693         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28694
28695 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
28696
28697         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
28698         Include sys/types.h instead of bits/types.h.
28699         Remove inclusion of bits/wordsize.h.
28700
28701 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28702
28703         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
28704         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
28705         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
28706         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
28707         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
28708         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
28709
28710 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28711
28712         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
28713         link-defines.sym.
28714         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
28715         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
28716         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
28717         and LR_SIZE.
28718         * sysdeps/i386/link-defines.sym: New file.
28719
28720 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
28721
28722         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
28723         (modules-names): Add tst-auditmod3a tst-auditmod3b.
28724         ($(objpfx)tst-audit3): New rule.
28725         ($(objpfx)tst-audit3.out): Likewise.
28726         * sysdeps/i386/tst-audit3.c: New file.
28727         * sysdeps/i386/tst-audit3.h: Likewise.
28728         * sysdeps/i386/tst-auditmod3a.c: Likewise.
28729         * sysdeps/i386/tst-auditmod3b.c: Likewise.
28730
28731 2015-07-07  Torvald Riegel  <triegel@redhat.com>
28732
28733         [BZ #18633]
28734         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
28735         pointer in C code.
28736         (__strcat_c): Likewise.
28737         (__strcat_g): Likewise.
28738
28739 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
28740
28741         [BZ #18592]
28742         * misc/sbrk.c: Set errno to ENOMEM on overflow.
28743
28744 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28745
28746         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
28747         New function.  (__ieee754_sqrtf): New function.
28748         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
28749         New function.
28750         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
28751         New function.
28752
28753 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
28754
28755         * sysdeps/ieee754/support.c: Remove unused file.
28756
28757 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28758
28759         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
28760         registers instead of d ones so the layout is kernel abi compatible.
28761         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
28762         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
28763         Likewise.
28764
28765 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28766
28767         * sysdeps/aarch64/libm-test-ulps: Regenerated.
28768
28769 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28770
28771         [BZ #18619]
28772         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
28773         and return argument in case of subnormal argument.
28774
28775 2015-07-01  Martin Sebor  <msebor@redhat.com>
28776
28777         [BZ #18435]
28778         * nptl/Makefile: Add tst-once5.cc.
28779         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28780         Remove macro redefinitions.
28781         * nptl/tst-once5.cc: New test.
28782
28783 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
28784
28785         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28786
28787         * sysdeps/arm/libm-test-ulps: Regenerated.
28788
28789         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28790         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28791
28792 2015-06-30  Torvald Riegel  <triegel@redhat.com>
28793
28794         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
28795         lll_lock_wait_private and lll_futex_wake probes.
28796
28797         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28798         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
28799         Likewise.
28800         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
28801         atomic_spin_nop.
28802         * sysdeps/x86_64/bits/atomic.h: Likewise.
28803         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
28804         to atomic_spin_nop and move ...
28805         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28806         ... here and ...
28807         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
28808         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
28809         atomic_spin_nop instead of BUSY_WAIT_NOP.
28810         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
28811         Likewise.
28812         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
28813         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
28814         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
28815         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
28816         instead of atomic_delay.
28817
28818 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
28819
28820         [BZ #18613]
28821         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
28822         X_ADJ not X when adjusting exponent.
28823         (__ieee754_gamma_r): Do intermediate computations in
28824         round-to-nearest then adjust overflowing and underflowing results
28825         as needed.
28826         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
28827         of X_ADJ not X when adjusting exponent.
28828         (__ieee754_gammaf_r): Do intermediate computations in
28829         round-to-nearest then adjust overflowing and underflowing results
28830         as needed.
28831         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
28832         log of X_ADJ not X when adjusting exponent.
28833         (__ieee754_gammal_r): Do intermediate computations in
28834         round-to-nearest then adjust overflowing and underflowing results
28835         as needed.  Use 1.0L not 1.0f as numerator of division.
28836         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
28837         log of X_ADJ not X when adjusting exponent.
28838         (__ieee754_gammal_r): Do intermediate computations in
28839         round-to-nearest then adjust overflowing and underflowing results
28840         as needed.  Use 1.0L not 1.0f as numerator of division.
28841         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
28842         of X_ADJ not X when adjusting exponent.
28843         (__ieee754_gammal_r): Do intermediate computations in
28844         round-to-nearest then adjust overflowing and underflowing results
28845         as needed.  Use 1.0L not 1.0f as numerator of division.
28846         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
28847         to auto-libm-test-in.
28848         (tgamma_test): Use ALL_RM_TEST.
28849         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
28850         tests of tgamma with spurious-overflow.
28851         * math/auto-libm-test-out: Regenerated.
28852         * math/gen-libm-have-vector-test.sh: Do not check for START.
28853         * sysdeps/i386/fpu/libm-test-ulps: Update.
28854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28855
28856         [BZ #18612]
28857         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
28858         arguments, just return 0.5 times the argument, with underflow
28859         forced as needed.
28860         * math/auto-libm-test-in: Add more tests of j1.
28861         * math/auto-libm-test-out: Regenerated.
28862
28863         [BZ #16559]
28864         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
28865         (__ieee754_j1): Force underflow exception for small results.
28866         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28867         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
28868         (__ieee754_j1f): Force underflow exception for small results.
28869         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28870         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28871         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
28872         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
28873         (__ieee754_j1l): Force underflow exception for small results.
28874         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28875         * math/auto-libm-test-in: Add more tests of j1 and jn.
28876         * math/auto-libm-test-out: Regenerated.
28877
28878         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
28879         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
28880         (PF_MPLS): Likewise.
28881         (AF_IB): Likewise.
28882         (AF_MPLS): Likewise.
28883         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
28884         value and macro.
28885         (MS_RMT_MASK): Include MS_LAZYTIME.
28886
28887 2015-06-26  Mel Gorman  <mgorman@suse.de>
28888
28889         [BZ #18502]
28890         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
28891         already minimal.
28892
28893 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
28894
28895         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
28896         (DT_MIPS_NUM): Update.
28897         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
28898         DT_MIPS_RLD_MAP_REL.
28899
28900 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
28901
28902         [BZ #16559]
28903         [BZ #18602]
28904         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
28905         round-to-nearest internally then recompute results that
28906         underflowed to zero in the original rounding mode.
28907         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
28908         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28909         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
28910         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28911         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
28912         * sysdeps/i386/fpu/libm-test-ulps: Update.
28913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28914
28915 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
28916
28917         * NEWS: Fixed description of link with vector math library.
28918
28919 2015-06-25  Andreas Schwab  <schwab@suse.de>
28920
28921         [BZ #18549]
28922         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
28923         * libio/test-fmemopen.c (do_test): Add test for it.
28924
28925 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28926
28927         [BZ #17841]
28928         * Makeconfig (no-pie-ldflag): New.
28929         (+link): Set to $(+link-pie) if default to PIE.
28930         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
28931         * config.make.in (build-pie-default): New.
28932         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
28933         is default.  AC_SUBST.
28934         * configure: Regenerated.
28935         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
28936
28937 2015-06-24  Roland McGrath  <roland@hack.frob.com>
28938
28939         * nptl/descr.h (struct pthread): Change type of field setxid_futex
28940         to 'unsigned int'.
28941
28942         * resolv/gai_misc.h (struct waitlist): Change type of field
28943         counterp to 'volatile unsigned int *'.
28944         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
28945         FUTEXADDR and OLDVAL.
28946         * resolv/getaddrinfo_a.c (getaddrinfo_a):
28947         Give local variable TOTAL type 'volatile unsigned int'.
28948         (struct async_waitlist): Change type of field counter to 'unsigned int'.
28949         * resolv/gai_suspend.c (gai_suspend):
28950         Give local variable CNTR type 'unsigned int'.
28951
28952         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
28953         counterp to 'volatile unsigned int *'.
28954         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
28955         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
28956         (aio_suspend): Give local variable CNTR type 'unsigned int'.
28957         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
28958         Give local variable TOTAL type 'volatile unsigned int'.
28959         (struct async_waitlist): Change type of field counter to 'unsigned int'.
28960
28961 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
28962
28963         [BZ #18383]
28964         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
28965         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
28966         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
28967         comment for i386/x86-64.
28968         (test-xfail-tst-tlsalign-extern-static): Removed.
28969
28970 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
28971
28972         * math/test-double.h: New file.
28973         * math/test-float.h: Likewise.
28974         * math/test-ldouble.h: Likewise.
28975         * math/test-math-inline.h: Likewise.
28976         * math/test-math-no-inline.h: Likewise.
28977         * math/test-math-scalar.h: Likewise.
28978         * math/test-math-vector.h: Likewise.
28979         * math/test-vec-loop.h: Remove file.  Contents moved into
28980         test-math-vector.h.
28981         * math/libm-test.inc (MATHCONST): Do not document macro.
28982         * math/test-double.c: Include test-double.h, test-math-no-inline.h
28983         and test-math-scalar.h.
28984         (FUNC): Remove macro.
28985         (FUNC_TEST): Likewise.
28986         (FLOAT): Likewise.
28987         (MATHCONST): Likewise.
28988         (PRINTF_EXPR): Likewise.
28989         (PRINTF_XEXPR): Likewise.
28990         (PRINTF_NEXPR): Likewise.
28991         (TEST_DOUBLE): Likewise.
28992         (TEST_MATHVEC): Likewise.
28993         (__NO_MATH_INLINES): Likewise.
28994         * math/test-float.c: Include test-float.h, test-math-no-inline.h
28995         and test-math-scalar.h.
28996         (FUNC): Remove macro.
28997         (FUNC_TEST): Likewise.
28998         (FLOAT): Likewise.
28999         (MATHCONST): Likewise.
29000         (PRINTF_EXPR): Likewise.
29001         (PRINTF_XEXPR): Likewise.
29002         (PRINTF_NEXPR): Likewise.
29003         (TEST_FLOAT): Likewise.
29004         (TEST_MATHVEC): Likewise.
29005         (__NO_MATH_INLINES): Likewise.
29006         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29007         and test-math-scalar.h.
29008         (FUNC): Remove macro.
29009         (FUNC_TEST): Likewise.
29010         (FLOAT): Likewise.
29011         (MATHCONST): Likewise.
29012         (PRINTF_EXPR): Likewise.
29013         (PRINTF_XEXPR): Likewise.
29014         (PRINTF_NEXPR): Likewise.
29015         (TEST_DOUBLE): Likewise.
29016         (TEST_MATHVEC): Likewise.
29017         (TEST_INLINE): Likewise.
29018         (__NO_MATH_INLINES): Likewise.
29019         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29020         test-math-scalar.h.
29021         (FUNC): Remove macro.
29022         (FUNC_TEST): Likewise.
29023         (FLOAT): Likewise.
29024         (MATHCONST): Likewise.
29025         (PRINTF_EXPR): Likewise.
29026         (PRINTF_XEXPR): Likewise.
29027         (PRINTF_NEXPR): Likewise.
29028         (TEST_FLOAT): Likewise.
29029         (TEST_MATHVEC): Likewise.
29030         (TEST_INLINE): Likewise.
29031         (__NO_MATH_INLINES): Likewise.
29032         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29033         and test-math-scalar.h.
29034         (FUNC): Remove macro.
29035         (FUNC_TEST): Likewise.
29036         (FLOAT): Likewise.
29037         (MATHCONST): Likewise.
29038         (PRINTF_EXPR): Likewise.
29039         (PRINTF_XEXPR): Likewise.
29040         (PRINTF_NEXPR): Likewise.
29041         (TEST_LDOUBLE): Likewise.
29042         (TEST_MATHVEC): Likewise.
29043         (TEST_INLINE): Likewise.
29044         (__NO_MATH_INLINES): Likewise.
29045         * math/test-ldouble.c: Include test-ldouble.h,
29046         test-math-no-inline.h and test-math-scalar.h.
29047         (FUNC): Remove macro.
29048         (FUNC_TEST): Likewise.
29049         (FLOAT): Likewise.
29050         (MATHCONST): Likewise.
29051         (PRINTF_EXPR): Likewise.
29052         (PRINTF_XEXPR): Likewise.
29053         (PRINTF_NEXPR): Likewise.
29054         (TEST_LDOUBLE): Likewise.
29055         (TEST_MATHVEC): Likewise.
29056         (__NO_MATH_INLINES): Likewise.
29057         * math/test-double-vlen2.h: Include test-double.h,
29058         test-math-no-inline.h and test-math-vector.h.
29059         (FLOAT): Remove macro.
29060         (FUNC): Likewise.
29061         (MATHCONST): Likewise.
29062         (PRINTF_EXPR): Likewise.
29063         (PRINTF_XEXPR): Likewise.
29064         (PRINTF_NEXPR): Likewise.
29065         (TEST_DOUBLE): Likewise.
29066         (TEST_MATHVEC): Likewise.
29067         (__NO_MATH_INLINES): Likewise.
29068         (CNCT): Likewise.
29069         (CONCAT): Likewise.
29070         (WRAPPER_NAME): Likewise.
29071         (WRAPPER_DECL): Likewise.
29072         (WRAPPER_DECL_ff): Likewise.
29073         (WRAPPER_DECL_fFF): Likewise.
29074         (VECTOR_WRAPPER): Likewise.
29075         (VECTOR_WRAPPER_ff): Likewise.
29076         (VECTOR_WRAPPER_fFF): Likewise.
29077         (VEC_LEN): New macro.
29078         * math/test-double-vlen4.h: Include test-double.h,
29079         test-math-no-inline.h and test-math-vector.h.
29080         (FLOAT): Remove macro.
29081         (FUNC): Likewise.
29082         (MATHCONST): Likewise.
29083         (PRINTF_EXPR): Likewise.
29084         (PRINTF_XEXPR): Likewise.
29085         (PRINTF_NEXPR): Likewise.
29086         (TEST_DOUBLE): Likewise.
29087         (TEST_MATHVEC): Likewise.
29088         (__NO_MATH_INLINES): Likewise.
29089         (CNCT): Likewise.
29090         (CONCAT): Likewise.
29091         (WRAPPER_NAME): Likewise.
29092         (WRAPPER_DECL): Likewise.
29093         (WRAPPER_DECL_ff): Likewise.
29094         (WRAPPER_DECL_fFF): Likewise.
29095         (VECTOR_WRAPPER): Likewise.
29096         (VECTOR_WRAPPER_ff): Likewise.
29097         (VECTOR_WRAPPER_fFF): Likewise.
29098         (VEC_LEN): New macro.
29099         * math/test-double-vlen8.h: Include test-double.h,
29100         test-math-no-inline.h and test-math-vector.h.
29101         (FLOAT): Remove macro.
29102         (FUNC): Likewise.
29103         (MATHCONST): Likewise.
29104         (PRINTF_EXPR): Likewise.
29105         (PRINTF_XEXPR): Likewise.
29106         (PRINTF_NEXPR): Likewise.
29107         (TEST_DOUBLE): Likewise.
29108         (TEST_MATHVEC): Likewise.
29109         (__NO_MATH_INLINES): Likewise.
29110         (CNCT): Likewise.
29111         (CONCAT): Likewise.
29112         (WRAPPER_NAME): Likewise.
29113         (WRAPPER_DECL): Likewise.
29114         (WRAPPER_DECL_ff): Likewise.
29115         (WRAPPER_DECL_fFF): Likewise.
29116         (VECTOR_WRAPPER): Likewise.
29117         (VECTOR_WRAPPER_ff): Likewise.
29118         (VECTOR_WRAPPER_fFF): Likewise.
29119         (VEC_LEN): New macro.
29120         * math/test-float-vlen4.h: Include test-float.h,
29121         test-math-no-inline.h and test-math-vector.h.
29122         (FLOAT): Remove macro.
29123         (FUNC): Likewise.
29124         (MATHCONST): Likewise.
29125         (PRINTF_EXPR): Likewise.
29126         (PRINTF_XEXPR): Likewise.
29127         (PRINTF_NEXPR): Likewise.
29128         (TEST_FLOAT): Likewise.
29129         (TEST_MATHVEC): Likewise.
29130         (__NO_MATH_INLINES): Likewise.
29131         (CNCT): Likewise.
29132         (CONCAT): Likewise.
29133         (WRAPPER_NAME): Likewise.
29134         (WRAPPER_DECL): Likewise.
29135         (WRAPPER_DECL_ff): Likewise.
29136         (WRAPPER_DECL_fFF): Likewise.
29137         (VECTOR_WRAPPER): Likewise.
29138         (VECTOR_WRAPPER_ff): Likewise.
29139         (VECTOR_WRAPPER_fFF): Likewise.
29140         (VEC_LEN): New macro.
29141         * math/test-float-vlen8.h: Include test-float.h,
29142         test-math-no-inline.h and test-math-vector.h.
29143         (FLOAT): Remove macro.
29144         (FUNC): Likewise.
29145         (MATHCONST): Likewise.
29146         (PRINTF_EXPR): Likewise.
29147         (PRINTF_XEXPR): Likewise.
29148         (PRINTF_NEXPR): Likewise.
29149         (TEST_FLOAT): Likewise.
29150         (TEST_MATHVEC): Likewise.
29151         (__NO_MATH_INLINES): Likewise.
29152         (CNCT): Likewise.
29153         (CONCAT): Likewise.
29154         (WRAPPER_NAME): Likewise.
29155         (WRAPPER_DECL): Likewise.
29156         (WRAPPER_DECL_ff): Likewise.
29157         (WRAPPER_DECL_fFF): Likewise.
29158         (VECTOR_WRAPPER): Likewise.
29159         (VECTOR_WRAPPER_ff): Likewise.
29160         (VECTOR_WRAPPER_fFF): Likewise.
29161         (VEC_LEN): New macro.
29162         * math/test-float-vlen16.h: Include test-float.h,
29163         test-math-no-inline.h and test-math-vector.h.
29164         (FLOAT): Remove macro.
29165         (FUNC): Likewise.
29166         (MATHCONST): Likewise.
29167         (PRINTF_EXPR): Likewise.
29168         (PRINTF_XEXPR): Likewise.
29169         (PRINTF_NEXPR): Likewise.
29170         (TEST_FLOAT): Likewise.
29171         (TEST_MATHVEC): Likewise.
29172         (__NO_MATH_INLINES): Likewise.
29173         (CNCT): Likewise.
29174         (CONCAT): Likewise.
29175         (WRAPPER_NAME): Likewise.
29176         (WRAPPER_DECL): Likewise.
29177         (WRAPPER_DECL_ff): Likewise.
29178         (WRAPPER_DECL_fFF): Likewise.
29179         (VECTOR_WRAPPER): Likewise.
29180         (VECTOR_WRAPPER_ff): Likewise.
29181         (VECTOR_WRAPPER_fFF): Likewise.
29182         (VEC_LEN): New macro.
29183         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29184         test-vec-loop.h.
29185         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29186         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29187         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29188         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29189         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29190         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29191         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29192
29193 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29194
29195         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29196         (__getlogin_r): ... this.
29197
29198 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29199
29200         [BZ #18594]
29201         * math/s_ccosh.c (__ccosh): Compare with least normal value
29202         instead of comparing class with FP_SUBNORMAL.
29203         * math/s_ccoshf.c (__ccoshf): Likewise.
29204         * math/s_ccoshl.c (__ccoshl): Likewise.
29205         * math/s_cexp.c (__cexp): Likewise.
29206         * math/s_cexpf.c (__cexpf): Likewise.
29207         * math/s_cexpl.c (__cexpl): Likewise.
29208         * math/s_csin.c (__csin): Likewise.
29209         * math/s_csinf.c (__csinf): Likewise.
29210         * math/s_csinh.c (__csinh): Likewise.
29211         * math/s_csinhf.c (__csinhf): Likewise.
29212         * math/s_csinhl.c (__csinhl): Likewise.
29213         * math/s_csinl.c (__csinl): Likewise.
29214         * math/s_ctan.c (__ctan): Likewise.
29215         * math/s_ctanf.c (__ctanf): Likewise.
29216         * math/s_ctanh.c (__ctanh): Likewise.
29217         * math/s_ctanhf.c (__ctanhf): Likewise.
29218         * math/s_ctanhl.c (__ctanhl): Likewise.
29219         * math/s_ctanl.c (__ctanl): Likewise.
29220         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29221         csin, csinh, ctan and ctanh.
29222         * math/auto-libm-test-out: Regenerated.
29223         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29224         * sysdeps/i386/fpu/libm-test-ulps: Update.
29225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29226
29227 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29228
29229         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29230         return value is wrong, print the expected value too.
29231
29232 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29233
29234         [BZ #18585]
29235         * elf/readlib.c (is_gdb_python_file): New.
29236         (process_file): Don't issue errors on filenames with -gdb.py
29237         suffix.
29238
29239 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29240
29241         * math/auto-libm-test-in: Add more tests of csin and csinh.
29242         * math/auto-libm-test-out: Regenerated.
29243         * math/libm-test.inc (csin_test_data): Remove tests moved to
29244         auto-libm-test-in.
29245         (csinh_test_data): Likewise.
29246
29247         [BZ #18593]
29248         * math/s_csin.c (__csin): Negate before rather than after possibly
29249         overflowing multiplication.
29250         * math/s_csinf.c (__csinf): Likewise.
29251         * math/s_csinh.c (__csinh): Likewise.
29252         * math/s_csinhf.c (__csinhf): Likewise.
29253         * math/s_csinhl.c (__csinhl): Likewise.
29254         * math/s_csinl.c (__csinl): Likewise.
29255         * math/auto-libm-test-in: Add some tests of csin and csinh.
29256         * math/auto-libm-test-out: Regenerated.
29257         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29258         (csinh_test_data): Likewise.
29259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29260
29261         [BZ #18586]
29262         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29263         underflow exception for small results.
29264
29265 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29266
29267         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29268         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29269         variable and included header.
29270         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29271         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29272         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29273         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29274         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29275         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29276         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29277         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29278         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29279         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29280         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29281         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29282         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29283         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29284         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29285         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29286
29287 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29288
29289         [BZ #16526]
29290         [BZ #16538]
29291         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29292         (__sin): Force underflow exception for arguments with small
29293         absolute value.
29294         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29295         (__kernel_sinf): Force underflow exception for arguments with
29296         small absolute value.
29297         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29298         (__kernel_sincosl): Force underflow exception for arguments with
29299         small absolute value.
29300         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29301         (__kernel_sinl): Force underflow exception for arguments with
29302         small absolute value.
29303         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29304         (__kernel_sincosl): Force underflow exception for arguments with
29305         small absolute value.
29306         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
29307         (__kernel_sinl): Force underflow exception for arguments with
29308         small absolute value.
29309         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
29310         (__kernel_sinl): Force underflow exception for arguments with
29311         small absolute value.
29312         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
29313         (__kernel_sinf): Force underflow exception for arguments with
29314         small absolute value.
29315         * math/auto-libm-test-in: Add more tests of sin and sincos.
29316         * math/auto-libm-test-out: Regenerated.
29317
29318         [BZ #18245]
29319         [BZ #18583]
29320         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
29321         (__kernel_standard_l): Use feholdexcept and fesetenv around
29322         conversion to double instead of special-casing overflow and
29323         underflow.
29324         * math/libm-test.inc (fmod_test_data): Add more tests.
29325         (remainder_test_data): Likewise.
29326         (sqrt_test_data): Likewise.
29327
29328 2015-06-23  Torvald Riegel  <triegel@redhat.com>
29329
29330         [BZ #17403]
29331         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
29332         atomic_read_barrier, atomic_write_barrier): Define.
29333         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
29334         atomic_read_barrier, atomic_write_barrier): Define.
29335
29336 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29337
29338         * math/Makefile [$(PERL) != no]
29339         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
29340         dependency on libm-test.stmp below the inclusion of Rules.
29341
29342 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29343
29344         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29345         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
29346         and included header.
29347         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
29348         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
29349         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
29350         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
29351         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
29352         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
29353         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
29354         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
29355         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
29356         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
29357         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
29358         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
29359         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
29360         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
29361         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
29362         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
29363         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
29364         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
29365         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
29366
29367 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29368
29369         [BZ #18371]
29370         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
29371         intermediate but not final result might underflow.
29372         * math/s_csqrtf.c (__csqrtf): Likewise.
29373         * math/s_csqrtl.c (__csqrtl): Likewise.
29374         * math/auto-libm-test-in: Add more tests of csqrt.
29375         * math/auto-libm-test-out: Regenerated.
29376         * sysdeps/i386/fpu/libm-test-ulps: Update.
29377
29378         [BZ #18219]
29379         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
29380         threshold on absolute value of exponent for which scaling is used.
29381         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29382         * math/auto-libm-test-in: Add more tests of exp2.
29383         * math/auto-libm-test-out: Regenerated.
29384
29385 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
29386
29387         [BZ #17977]
29388         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
29389         when initializing interface list, based on the bug analysis
29390         and the patch proposed by Eric Newton.
29391         * resolv/tst-res_hconf_reorder.c: New test.
29392         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
29393         tst-res_hconf_reorder.
29394         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
29395         and $(shared-thread-library).
29396         (tst-res_hconf_reorder-ENV): New variable.
29397
29398         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
29399         in comment.
29400
29401 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
29402
29403         [BZ #16353]
29404         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
29405         (__expm1): Force underflow exception for arguments with small
29406         absolute value.
29407         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
29408         (__expm1f): Force underflow exception for arguments with small
29409         absolute value.
29410         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
29411         (__expm1): Force underflow exception for arguments with small
29412         absolute value.
29413         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
29414         (__expm1f): Force underflow exception for arguments with small
29415         absolute value.
29416         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29417         Check for small arguments before calling __expm1.
29418         * math/auto-libm-test-in: Do not mark underflow exceptions as
29419         possibly missing for bug 16353.
29420         * math/auto-libm-test-out: Regenerated.
29421
29422 2015-06-22  Andreas Schwab  <schwab@suse.de>
29423
29424         [BZ #18513]
29425         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
29426         PTR queries.
29427
29428 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
29429
29430         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
29431
29432         * string/strcoll_l.c: Remove unused struct element idxnow.
29433
29434 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
29435
29436         [BZ #18569]
29437         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
29438         underflow and return argument in case of subnormal argument.
29439         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29440         Likewise.
29441         * math/auto-libm-test-in: Add more tests of expm1.
29442         * math/auto-libm-test-out: Regenerated.
29443
29444         [BZ #16361]
29445         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29446         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29447         tiny results.
29448         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29449         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29450         tiny results.
29451         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
29452         mark underflow exceptions as possibly missing for bug 16361.
29453         * math/auto-libm-test-out: Regenerated.
29454
29455 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
29456
29457         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
29458         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
29459         Remove variable.
29460         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
29461         (test-xfail-XOPEN2K8/utmpx.h/conform).
29462
29463         * conform/conformtest.pl ($xerrors): New variable.
29464         (note_error): New function.
29465         (compiletest): New argument $xfail.  Use not_error.
29466         (runtest): Likewise.
29467         (top level): Handle xfail- lines.  Update calls to compiletest and
29468         runtest.  Handle xfail- and optional- in headers listed with
29469         allow-header.
29470         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
29471         (O_EXEC): Likewise.
29472         (O_SEARCH): Likewise.
29473         * conform/data/stropts.h-data (ioctl): Likewise.
29474         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
29475         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
29476         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
29477         (msghdr.msg_controllen): Likewise.
29478         (cmsghdr.cmsg_len): Likewise.
29479         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
29480         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
29481         variable.
29482         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
29483         (test-xfail-XPG4/stropts.h/conform): Likewise.
29484         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
29485         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
29486         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
29487         (test-xfail-UNIX98/stropts.h/conform): Likewise.
29488         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
29489         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
29490         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
29491         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
29492         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
29493         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
29494         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
29495         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
29496         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
29497         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
29498         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
29499         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
29500         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
29501         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
29502         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
29503
29504 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
29505
29506         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
29507         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
29508         definitions for proper unfolding of __MATHDECL_VEC.
29509
29510 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29511
29512         * benchtests/bench-strcoll.c:
29513         Include string.h.
29514         (main): Remove unused variable res.
29515
29516 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29517
29518         * timezone/Makefile (%/UTC %/Universal):
29519         Generate test-result files for UTC and Universal.
29520
29521 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29522
29523         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29524
29525 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
29526
29527         [BZ #16350]
29528         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
29529         for arguments with small absolute value.
29530         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
29531         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
29532         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
29533         (__asinh): Force underflow exception for arguments with small
29534         absolute value.
29535         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
29536         (__asinhf): Force underflow exception for arguments with small
29537         absolute value.
29538         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
29539         (__asinhl): Force underflow exception for arguments with small
29540         absolute value.
29541         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
29542         (__asinhl): Force underflow exception for arguments with small
29543         absolute value.
29544         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
29545         (__asinhl): Force underflow exception for arguments with small
29546         absolute value.
29547         * math/auto-libm-test-in: Do not mark underflow exceptions as
29548         possibly missing for bug 16350.
29549         * math/auto-libm-test-out: Regenerated.
29550
29551         * include/bits/ipc.h: Remove file.
29552         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
29553         variable.
29554         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
29555         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
29556         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
29557         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
29558         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
29559         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
29560         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
29561         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
29562         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
29563
29564         * math/auto-libm-test-in: Remove spurious underflow allowance for
29565         tests of cexp.
29566         * math/auto-libm-test-out: Regenerated.
29567
29568         [BZ #18558]
29569         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
29570         unconditional definition.
29571         (MCAST_BLOCK_SOURCE): Likewise.
29572         (MCAST_UNBLOCK_SOURCE): Likewise.
29573         (MCAST_LEAVE_GROUP): Likewise.
29574         (MCAST_JOIN_SOURCE_GROUP): Likewise.
29575         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
29576         (MCAST_MSFILTER): Likewise.
29577         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
29578         Remove variable.
29579         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
29580         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
29581         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
29582         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
29583         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
29584
29585 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
29586
29587         * NEWS: Mention addition of x86_64 vector sincosf.
29588         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
29589         * math/test-float-vlen4.h: Likewise.
29590         * math/test-float-vlen8.h: Likewise.
29591         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29592         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
29593         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29594         * sysdeps/x86_64/fpu/Versions: New versions added.
29595         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29596         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29597         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29598         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
29599         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
29600         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
29601         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
29602         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
29603         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
29604         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
29605         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
29606         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
29607         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
29608         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
29609         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
29610         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
29611         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
29612         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29613         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29614         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29615         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29616         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29617         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29618         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29619
29620         * NEWS: Mention addition of x86_64 vector sincos.
29621         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
29622         * math/math.h (__MATHDECL_VEC): New macro.
29623         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
29624         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
29625         declaration under condition.
29626         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
29627         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
29628         TEST_VEC_LOOP change.
29629         * math/test-double-vlen4.h: Likewise.
29630         * math/test-double-vlen8.h: Likewise.
29631         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
29632         * math/test-float-vlen4.h: Likewise.
29633         * math/test-float-vlen8.h: Likewise.
29634         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29635         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
29636         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29637         * sysdeps/x86_64/fpu/Versions: New versions added.
29638         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29639         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29640         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29641         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
29642         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
29643         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
29644         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
29645         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
29646         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
29647         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
29648         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
29649         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
29650         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
29651         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
29652         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
29653         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
29654         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
29655         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29656         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29657         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29658         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29659         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29660         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29661         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29662
29663         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29664         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29665         redirections for powf.
29666         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29667         * sysdeps/x86_64/fpu/Versions: New versions added.
29668         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29669         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
29670         Added build of SSE, AVX2 and AVX512 IFUNC versions.
29671         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
29672         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
29673         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
29674         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
29675         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
29676         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
29677         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
29678         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
29679         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
29680         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
29681         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
29682         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
29683         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
29684         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
29685         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29686         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29687         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29688         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29689         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29690         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29691         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29692         * math/test-float-vlen16.h: Fixed 2 argument macro.
29693         * math/test-float-vlen4.h: Likewise.
29694         * math/test-float-vlen8.h: Likewise.
29695         * NEWS: Mention addition of x86_64 vector powf.
29696
29697 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
29698
29699         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29700         and redefine.
29701         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
29702         and redefine.
29703         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
29704         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
29705         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29706
29707         [BZ #18553]
29708         * resource/getpriority.c (getpriority): Rename to __getpriority
29709         and define as weak alias of __getpriority.
29710         * resource/setpriority.c (setpriority): Rename to __setpriority
29711         and define as weak alias of __setpriority.
29712         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
29713         __getpriority and define as weak alias of __getpriority.
29714         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
29715         __setpriority and define as weak alias of __setpriority.
29716         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
29717         strong name.
29718         (setpriority): Use __setpriority as strong name.
29719         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
29720         __getpriority and define as weak alias of __getpriority.
29721         * include/sys/resource.h (__getpriority): Declare.  Use
29722         libc_hidden_proto.
29723         (__setpriority): Likewise.
29724         (getpriority): Don't use libc_hidden_proto.
29725         (setpriority): Likewise.
29726         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
29727         getpriority.  Call __setpriority instead of setpriority.
29728         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
29729         Remove variable.
29730
29731         [BZ #18547]
29732         * misc/getttyent.c (getttynam): Rename to __getttynam and define
29733         as weak alias of __getttynam.  Use prototype function definition.
29734         Call __setttyent, __getttyent and __endttyent instead of
29735         setttyent, getttyent and endttyent.
29736         (getttyent): Rename to __getttyent and define as weak alias of
29737         __getttyent.  Call __setttyent instead of setttyent.  Call
29738         __fgets_unlocked instead of fgets_unlocked.
29739         (setttyent): Rename to __setttyent and define as weak alias of
29740         __setttyent.
29741         (endttyent): Rename to __endttyent and define as weak alias of
29742         __endttyent.
29743         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
29744         (__setttyent): Likewise.
29745         (__endttyent): Likewise.
29746         (getttyent): Don't use libc_hidden_proto.
29747         (setttyent): Likewise.
29748         (endttyent): Likewise.
29749         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
29750         __endttyent instead of setttyent, getttyent and endttyent.
29751         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
29752         Remove variable.
29753
29754         [BZ #18546]
29755         * socket/recv.c (__recv): Use libc_hidden_def.
29756         * socket/socket.c (__socket): Likewise.
29757         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
29758         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
29759         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
29760         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
29761         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
29762         libc_hidden_def.
29763         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
29764         libc_hidden_weak.
29765         * include/sys/socket.h (__socket): Do not use attribute_hidden.
29766         Use libc_hidden_proto.
29767         (__recv): Likewise.
29768         * socket/Versions (libc): Export __recv and __socket at version
29769         GLIBC_PRIVATE.
29770         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
29771         instead of recv.
29772         (init_mq_netlink): Call __socket instead of socket.
29773         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
29774         Remove variable.
29775
29776         [BZ #18545]
29777         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
29778         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
29779         hidden_weak.
29780         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
29781         define as alias of __mq_timedsend.  Use hidden_weak.
29782         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
29783         __mq_timedsend as strong name.
29784         (mq_timedreceive): Use __mq_timedreceive as strong name.
29785         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
29786         (__mq_timedreceive): Likewise.
29787         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
29788         __mq_timedreceive instead of mq_timedreceive.
29789         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
29790         instead of mq_timedsend.
29791         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
29792         Remove variable.
29793
29794         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
29795         hidden_def and hidden_weak instead of libc_hidden_def and
29796         libc_hidden_weak.
29797         (top level): Refer to hidden_def in comment.
29798         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
29799         macro.  Use it instead of libc_hidden_def.
29800         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
29801         specify __GI_* name explicitly.
29802         (mq_timedreceive): Likewise.
29803         (mq_setattr): Likewise.
29804
29805         [BZ #18544]
29806         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
29807         __pthread_barrier_init and define as weak alias of
29808         __pthread_barrier_init.
29809         * sysdeps/sparc/nptl/pthread_barrier_init.c
29810         (pthread_barrier_init): Likewise.
29811         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
29812         __pthread_barrier_wait and define as weak alias of
29813         __pthread_barrier_wait.
29814         * sysdeps/sparc/nptl/pthread_barrier_wait.c
29815         (pthread_barrier_wait): Likewise.
29816         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
29817         (pthread_barrier_wait): Likewise.
29818         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
29819         (pthread_barrier_wait): Likewise.
29820         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
29821         (pthread_barrier_wait): Likewise.
29822         * nptl/Versions (libpthread): Export __pthread_barrier_init and
29823         __pthread_barrier_wait at version GLIBC_PRIVATE.
29824         * include/pthread.h (__pthread_barrier_init): Declare.
29825         (__pthread_barrier_wait): Likewise.
29826         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
29827         Call __pthread_barrier_wait instead of pthread_barrier_wait.
29828         (helper_thread): Likewise.
29829         (init_mq_netlink): Call __pthread_barrier_init instead of
29830         pthread_barrier_init.
29831
29832         [BZ #18542]
29833         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
29834         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
29835         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
29836         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
29837         vswscanf.
29838         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
29839         Remove variable.
29840
29841         [BZ #18540]
29842         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
29843         strong alias of _IO_fflush.  Use libc_hidden_def.
29844         * libio/iofflush_u.c (fflush_unlocked): Rename to
29845         __fflush_unlocked and define as weak alias of __fflush_unlocked.
29846         Use libc_hidden_weak.
29847         * include/stdio.h (__fflush_unlocked): Declare.  Use
29848         libc_hidden_proto.
29849         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
29850         fflush_unlocked.
29851         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
29852         Remove variable.
29853
29854         [BZ #18539]
29855         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
29856         define as weak alias of __addseverity.
29857         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
29858         Remove variable.
29859         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
29860         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
29861         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
29862
29863         [BZ #18536]
29864         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
29865         (__tfind): Likewise.
29866         (__tdelete): Likewise.
29867         (__twalk): Likewise.
29868         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
29869         __twalk to GLIBC_PRIVATE.
29870         * include/search.h (__tsearch): Use libc_hidden_proto.
29871         (__tfind): Likewise.
29872         (__tdelete): Likewise.
29873         (__twalk): Likewise.
29874         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
29875         Call __tdelete instead of tdelete.
29876         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
29877         tfind.  Call __tsearch instead of tsearch.
29878         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
29879         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
29880         Remove variable.
29881         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
29882
29883         [BZ #18534]
29884         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
29885         (dprintf): Define as a weak alias of __dprintf, not a strong
29886         alias.
29887         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
29888         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
29889         dprintf.
29890         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
29891         Remove variable.
29892         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
29893         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
29894
29895         [BZ #18533]
29896         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
29897         not a strong alias.
29898         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
29899         Remove variable.
29900
29901         [BZ #18532]
29902         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
29903         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
29904         (in6addr_loopback): Rename to __in6addr_loopback and define as
29905         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
29906         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
29907         libc_hidden_proto.
29908         (__in6addr_any): Likewise.
29909         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
29910         in6addr_any.
29911         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
29912         variable.
29913         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
29914
29915 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
29916
29917         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
29918         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
29919         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29920         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29921         redirections for pow.
29922         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29923         * sysdeps/x86_64/fpu/Versions: New versions added.
29924         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29925         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29926         build of SSE, AVX2 and AVX512 IFUNC versions.
29927         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
29928         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
29929         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
29930         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
29931         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
29932         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
29933         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
29934         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
29935         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
29936         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
29937         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
29938         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
29939         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
29940         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
29941         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
29942         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29943         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
29944         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29945         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
29946         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29947         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
29948         * NEWS: Mention addition of x86_64 vector pow.
29949
29950         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
29951         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29952         redirections for expf.
29953         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29954         * sysdeps/x86_64/fpu/Versions: New versions added.
29955         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29956         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29957         build of SSE, AVX2 and AVX512 IFUNC versions.
29958         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
29959         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
29960         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
29961         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
29962         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
29963         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
29964         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
29965         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
29966         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
29967         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
29968         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
29969         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
29970         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
29971         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
29972         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29973         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
29974         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29975         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
29976         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29977         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
29978         * NEWS: Mention addition of x86_64 vector expf.
29979
29980         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
29981         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
29982         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
29983         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
29984         redirections for exp.
29985         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
29986         * sysdeps/x86_64/fpu/Versions: New versions added.
29987         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29988         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
29989         build of SSE, AVX2 and AVX512 IFUNC versions.
29990         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
29991         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
29992         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
29993         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
29994         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
29995         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
29996         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
29997         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
29998         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
29999         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30000         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30001         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30002         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30003         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30004         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30005         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30006         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30007         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30008         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30009         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30010         * NEWS: Mention addition of x86_64 vector exp.
30011
30012         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30013         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30014         redirections for logf.
30015         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30016         * sysdeps/x86_64/fpu/Versions: New versions added.
30017         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30018         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30019         build of SSE, AVX2 and AVX512 IFUNC versions.
30020         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30021         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30022         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30023         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30024         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30025         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30026         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30027         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30028         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30029         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30030         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30031         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30032         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30033         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30034         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30035         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30036         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30037         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30038         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30039         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30040         * NEWS: Mention addition of x86_64 vector logf.
30041
30042         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30043         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30044         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30045         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30046         redirections for log.
30047         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30048         * sysdeps/x86_64/fpu/Versions: New versions added.
30049         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30050         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30051         build of SSE, AVX2 and AVX512 IFUNC versions.
30052         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30053         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30054         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30055         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30056         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30057         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30058         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30059         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30060         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30061         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30062         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30063         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30064         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30065         test.
30066         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30067         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30068         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30069         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30070         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30071         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30072         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30073         * NEWS: Mention addition of x86_64 vector log.
30074
30075 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30076
30077         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30078         cfi_adjust_cfa_offset argument.
30079         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30080         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30081
30082         [BZ #18034]
30083         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30084         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30085         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30086         ordering using ldar.
30087         (_dl_tlsdesc_dynamic): Likewise.
30088         (_dl_tlsdesc_return_lazy): Likewise.
30089         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30090         relaxed atomics instead of volatile and synchronize with release store.
30091         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30092         volatile.
30093         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30094
30095 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30096
30097         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30098         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30099         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30100         * sysdeps/x86_64/fpu/Versions: New versions added.
30101         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30102         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30103         build of SSE, AVX2 and AVX512 IFUNC versions.
30104         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30105         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30106         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30107         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30108         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30109         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30110         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30111         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30112         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30113         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30114         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30115         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30116         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30117         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30118         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30119         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30120         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30121         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30122         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30123         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30124         * NEWS: Mention addition of x86_64 vector sinf.
30125
30126 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30127
30128         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30129         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30130         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30131         Remove variable.
30132         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30133         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30134
30135 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30136
30137         [BZ #18530]
30138         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30139         strong alias of _IO_fputs.  Use libc_hidden_def.
30140         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30141         and define as weak alias of __fputs_unlocked.  Use
30142         libc_hidden_weak.
30143         * include/stdio.h (__fputs_unlocked): Declare.  Use
30144         libc_hidden_proto.
30145         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30146         fputs_unlocked.
30147
30148         [BZ #18529]
30149         * resolv/netdb.h [__USE_POSIX]: Change condition to
30150         [__USE_XOPEN2K].
30151         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30152         not expect.
30153         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30154         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30155         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30156         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30157         [XPG4 || UNIX98] (AI_ALL): Likewise.
30158         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30159         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30160         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30161         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30162         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30163         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30164         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30165         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30166         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30167         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30168         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30169         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30170         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30171         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30172         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30173         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30174         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30175         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30176         [XPG4 || UNIX98] (gai_strerror): Likewise.
30177         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30178         [XPG4 || UNIX98] (getnameinfo): Likewise.
30179
30180         [BZ #18528]
30181         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30182         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30183         __USE_XOPEN2K8].
30184         (getgrent): Likewise.
30185         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30186         expect.
30187         [XPG3 || POSIX2008] (endgrent): Likewise.
30188         [XPG3] (setgrent): Likewise.
30189         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30190         variable.
30191         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30192
30193         [BZ #18527]
30194         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30195         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30196         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30197         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30198         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30199         * include/unistd.h (__getlogin_r): Declare.  Use
30200         libc_hidden_proto.
30201         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30202         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30203         variable.
30204         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30205         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30206         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30207
30208 2015-06-12  Martin Sebor  <msebor@redhat.com>
30209
30210         [BZ #18512]
30211         * Makerules (check-install-supported): New target.
30212         (install): Add check-install-supported as a dependency.
30213         * manual/install.texi (Installing the C Library): Document
30214         that overriding prefix and exec_prefix is not supported.
30215         Mention DESTDIR.
30216         * INSTALL: Regenerate from the above.
30217
30218 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30219
30220         [BZ #18519]
30221         * posix/Versions (libc): Export __libc_pread at version
30222         GLIBC_PRIVATE.
30223         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30224         instead of pread.
30225         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30226         variable.
30227
30228         [BZ #18522]
30229         * misc/efgcvt_r.c
30230         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30231         (cvt_symbol): Use weak_alias instead of strong_alias.
30232         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30233         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30234         Remove variable.
30235         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30236         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30237
30238         [BZ #18520]
30239         * inet/herrno.c (h_errno): Rename to __h_errno.
30240         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30241         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30242         to __h_errno instead of h_errno.
30243         * nptl/herrno.c (h_errno): Rename to __h_errno.
30244         (__h_errno_location): Refer to __h_errno not h_errno.
30245         * resolv/Versions (h_errno): Rename to __h_errno.
30246         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30247         Remove variable.
30248         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30249
30250 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30251
30252         * configure.ac: More strict check for AVX512 assembler support.
30253         * configure: Regenerated.
30254
30255         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30256         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30257         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30258         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30259         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30260         * sysdeps/x86_64/fpu/Versions: New versions added.
30261         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30262         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30263         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30264         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30265         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30266         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30267         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30268         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30269         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30270         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30271         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30272         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30273         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30274         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30275         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30276         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30277         test.
30278         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30279         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30280         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30281         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30282         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30283         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30284         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30285         * NEWS: Mention addition of x86_64 vector sin.
30286
30287 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30288
30289         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30290         comment.
30291
30292 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30293
30294         [BZ #18479]
30295         * nptl/pt-interp.c: New file.
30296         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30297         Add pt-interp.
30298         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30299         $(common-objpfx)runtime-linker.h.
30300
30301 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30302
30303         * Makeconfig (+interp): Remove unused variable.
30304         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30305         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30306         $(elf-objpfx)runtime-linker.h.
30307         ($(elf-objpfx)runtime-linker.h): Rename to
30308         $(common-objpfx)runtime-linker.h and move ...
30309         * Makerules [$(build-shared) = yes]: ... here.
30310         * elf/interp.c: Include <runtime-linker.h> instead of
30311         <elf/runtime-linker.h>.
30312
30313 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30314
30315         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
30316         (__gettimeofday_syscall): Remove vsyscall fallback.
30317         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
30318         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
30319         Add syscall fallback function.
30320         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
30321         if vDSO is not present.
30322         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
30323         fallback function.
30324         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
30325         present.
30326         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
30327         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30328
30329 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30330
30331         [BZ #18497]
30332         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
30333         of wcscmp.
30334         (wcscmp): Define as weak alias of WCSCMP.
30335         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
30336         wcscoll.
30337         (USE_HIDDEN_DEF): Define.
30338         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
30339         __wcscoll.  Don't use libc_hidden_weak.
30340         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
30341         wcscmp.
30342         * sysdeps/i386/i686/multiarch/wcscmp-c.c
30343         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
30344         __GI_wcscmp.
30345         (weak_alias): Undefine and redefine.
30346         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
30347         __wcscmp and define as weak alias of __wcscmp.
30348         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
30349         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
30350         (__wcscoll): Likewise.
30351         (wcscmp): Don't use libc_hidden_proto.
30352         (wcscoll): Likewise.
30353         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
30354         wcscoll.
30355         * posix/regexec.c (check_node_accept_bytes): Likewise.
30356         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
30357         variable.
30358         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30359         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30360
30361         [BZ #18507]
30362         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
30363         __fstatvfs and define as weak alias of __fstatvfs.  Use
30364         libc_hidden_weak.
30365         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
30366         and define as weak alias of __statvfs.  Use libc_hidden_weak.
30367         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
30368         Define as alias of __fstatvfs, not fstatvfs.
30369         (fstatvfs64): Likewise.
30370         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
30371         Define as alias of __statvfs, not statvfs.
30372         (statvfs64): Likewise.
30373         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
30374         Remove variable.
30375
30376 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30377
30378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30379         (HAVE_GETCPU_VSYSCALL): Define.
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30381         (HAVE_GETCPU_VSYSCALL): Likewise.
30382         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
30383         * sysdeps/unix/sysv/linux/sched_getcpu.c
30384         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
30385         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
30386         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
30387         prototype.
30388         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30389         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
30390         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
30391         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
30392         Define.
30393         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
30394         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
30395         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
30396         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30397
30398 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
30399
30400         * sysdeps/x86_64/fpu/Makefile: New file.
30401         * sysdeps/x86_64/fpu/Versions: New file.
30402         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
30403         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
30404         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
30405         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
30406         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
30407         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
30408         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
30409         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
30410         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
30411         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
30412         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
30413         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
30414         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
30415         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30416         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30417         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
30418         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
30419         * sysdeps/x86_64/configure.ac: Options for libmvec build.
30420         * sysdeps/x86_64/configure: Regenerated.
30421         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
30422         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
30423         * manual/install.texi (Configuring and compiling): Document
30424         --disable-mathvec.
30425         * INSTALL: Regenerated.
30426         * NEWS: Mention addition of libmvec and x86_64 vector cos.
30427
30428         * math/Makefile: Added rules for vector tests.
30429         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
30430         declaration under condition.
30431         * math/test-double-vlen2.h: New file.
30432         * math/test-double-vlen4.h: New file.
30433         * math/test-double-vlen8.h: New file.
30434         * math/test-vec-loop.h: Added initialization macro.
30435         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
30436         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
30437         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
30438         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
30439         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
30440         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
30441         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
30442         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
30443         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
30444         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
30445         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
30446
30447         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30448         * sysdeps/x86_64/fpu/Versions: New versions added.
30449         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
30450         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
30451         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
30452         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
30453         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
30454         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
30455         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
30456         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
30457         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
30458         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
30459         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
30460         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
30461         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
30462         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30463         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30464         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30465         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
30466         * NEWS: Mention addition of x86_64 vector cosf.
30467
30468         * math/Makefile: Added CFLAGS for new tests.
30469         * math/test-float-vlen16.h: New file.
30470         * math/test-float-vlen4.h: New file.
30471         * math/test-float-vlen8.h: New file.
30472         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
30473         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
30474         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30475         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
30476         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
30477         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
30478         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
30479         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
30480         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
30481         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
30482         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
30483
30484 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
30485
30486         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
30487         * locale/programs/ld-ctype.c: Likewise.
30488
30489 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
30490
30491         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
30492         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
30493         bit_ZMM16_31_state): New macro.
30494         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30495         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
30496
30497 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
30498
30499         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
30500
30501 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
30502
30503         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
30504
30505 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30506
30507         [BZ #18498]
30508         * libio/memstream.c (open_memstream): Rename to __open_memstream
30509         and define as weak alias of __open_memstream.
30510         * include/stdio.h (__open_memstream): Declare.  Use
30511         libc_hidden_proto.
30512         (open_memstream): Don't use libc_hidden_proto.
30513         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
30514         open_memstream.
30515         * posix/getopt.c (_getopt_internal_r): Likewise.
30516         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
30517         variable.
30518         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
30519         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
30520         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
30521
30522         [BZ #18496]
30523         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30524         instead of wcrtomb.
30525
30526         [BZ #18483]
30527         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
30528         [__USE_XOPEN2K8].  Remove redundant #endif.
30529         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
30530         Remove redundant #if.
30531         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
30532         Remove variable.
30533         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
30534         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
30535
30536         [BZ #18495]
30537         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
30538         (__iswlower): Likewise.
30539         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
30540         (__iswlower): Likewise.
30541         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
30542         instead of towlower.
30543         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30544         instead of iswlower.  Call __towupper instead of towupper.
30545         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30546         instead of iswalnum.
30547
30548 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30549
30550         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
30551         errors to stderr.
30552
30553 2015-06-05  Florian Weimer  <fweimer@redhat.com>
30554
30555         [BZ #15661]
30556         [BZ #17322]
30557         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
30558         Check for overflow properly.  Check for O_APPEND.  Ignore large
30559         file system block sizes.  Add comments about problems.
30560         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
30561         * manual/filesys.texi (Storage Allocation): New node.
30562
30563 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30564
30565         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
30566         cancellable syscalls.
30567         (SYS_ify): Add guard to no redefine it.
30568         (INLINE_SYSCALL): Likewise.
30569         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
30570         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
30571         SYSCALL_CANCEL instead.
30572         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
30573         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
30574         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
30575         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
30576         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
30577         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
30578         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
30579         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
30580         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
30581         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
30582         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
30583         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
30584         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
30585         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
30586         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
30587         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
30588         Likewise.
30589         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
30590         (__libc_pread64): Likewise.
30591         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
30592         (__libc_preadv): Likewise.
30593         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
30594         (__libc_readv64): Likewise.
30595         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
30596         (__libc_pwrite): Likewise.
30597         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
30598         (__libc_pwrite64): Likewise.
30599         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
30600         (__libc_pwritev): Likewise.
30601         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
30602         (__libc_pwritev64): Likewise.
30603         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
30604         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
30605         (sync_file_range): Likewise.
30606         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
30607         Likewise.
30608         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
30609         Likewise.
30610         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
30611         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
30612         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
30613         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
30614         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
30615         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
30616         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
30617         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
30618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
30619         Likewise.
30620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
30621         (__libc_read64): Likewise.
30622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
30623         Likewise.
30624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
30625         Likewise.
30626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
30627         Likewise.
30628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
30629         Likewise.
30630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
30631         (__libc_pread64): Likewise.
30632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
30633         Likewise.
30634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
30635         (__libc_pwrite64): Likewise.
30636         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
30637         (sync_file_range): Likewise.
30638         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
30639         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
30640         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
30641         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
30642         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
30643         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
30644         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
30645         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
30646         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
30647         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
30648         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
30649         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
30650         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
30651         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
30652         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
30653         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
30654         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
30655         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
30656         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
30657         Likewise.
30658         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
30659         Likewise.
30660         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
30661         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
30662         Likewise.
30663         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
30664         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
30665         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
30666         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
30667         Likewise.
30668         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
30669         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
30670         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
30671         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
30672         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
30673
30674 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
30675
30676         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
30677         Include dl-vdso.
30678         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
30679         Use VDSO routines for gettimeofday, clock_gettime if
30680         available.
30681         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
30682         Declare VDSO symbols.
30683         * sysdeps/unix/sysv/linux/arm/sysdep.h:
30684         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
30685         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
30686         * sysdeps/unix/sysv/linux/arm/Versions: Add
30687         __vdso_clock_gettime.
30688
30689 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30690
30691         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
30692         be an inline implementation regardless of library is built within.
30693         (open_not_cancel_2): Likewise.
30694         (__read_nocancel): Likewise.
30695         (__write_nocancel): Likewise.
30696         (openat_not_cancel): Likewise.
30697         (openat_not_cancel_3): Likewise.
30698         (openat64_not_cancel): Likewise.
30699         (openat64_not_cancel_3): Likewise.
30700         (__close_nocancel): Likewise.
30701         (pause_not_cancel): Likewise.
30702         (nanosleep_not_cancel): Likewise.
30703         (sigsuspend_not_cancel): Likewise.
30704
30705 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30706
30707         [BZ #14958]
30708         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
30709         wake-up.
30710         (__pthread_rwlock_rdlock_slow): Likewise.
30711         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
30712         Likewise.
30713         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
30714         Likewise.
30715         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
30716         * nptl/tst-rwlock16.c: New file.
30717         * nptl/Makefile (tests): Add new test.
30718
30719 2015-06-04  Torvald Riegel  <triegel@redhat.com>
30720
30721         [BZ #18324]
30722         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
30723         missing wake-up of readers.
30724         * nptl/tst-rwlock15.c: New file.
30725         * nptl/Makefile (tests): Add new test.
30726
30727 2015-06-03  Roland McGrath  <roland@hack.frob.com>
30728
30729         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
30730         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
30731         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
30732         and __nacl_supply_interface_rtld.
30733         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
30734         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
30735         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
30736         Add __nacl_supply_interface_rtld.
30737         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
30738
30739 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30740
30741         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
30742         isfinite.
30743         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
30744         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
30745
30746 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
30747
30748         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
30749         __signbit* with standard C99 macros.
30750         * math/e_exp10l.c: Likewise.
30751         * math/e_exp2l.c: Likewise.
30752         * math/e_scalb.c: Likewise.
30753         * math/e_scalbf.c: Likewise.
30754         * math/e_scalbl.c: Likewise.
30755         * math/s_ldexp.c: Likewise.
30756         * math/s_ldexpf.c: Likewise.
30757         * math/s_ldexpl.c: Likewise.
30758         * math/w_atan2.c: Likewise.
30759         * math/w_atan2f.c: Likewise.
30760         * math/w_atan2l.c: Likewise.
30761         * math/w_cosh.c: Likewise.
30762         * math/w_coshf.c: Likewise.
30763         * math/w_coshl.c: Likewise.
30764         * math/w_exp10.c: Likewise.
30765         * math/w_exp10f.c: Likewise.
30766         * math/w_exp10l.c: Likewise.
30767         * math/w_exp2.c: Likewise.
30768         * math/w_exp2f.c: Likewise.
30769         * math/w_exp2l.c: Likewise.
30770         * math/w_fmod.c: Likewise.
30771         * math/w_fmodf.c: Likewise.
30772         * math/w_fmodl.c: Likewise.
30773         * math/w_hypot.c: Likewise.
30774         * math/w_hypotf.c: Likewise.
30775         * math/w_hypotl.c: Likewise.
30776         * math/w_jnl.c: Likewise.
30777         * math/w_lgamma.c: Likewise.
30778         * math/w_lgamma_r.c: Likewise.
30779         * math/w_lgammaf.c: Likewise.
30780         * math/w_lgammaf_r.c: Likewise.
30781         * math/w_lgammal.c: Likewise.
30782         * math/w_lgammal_r.c: Likewise.
30783         * math/w_pow.c: Likewise.
30784         * math/w_powf.c: Likewise.
30785         * math/w_powl.c: Likewise.
30786         * math/w_remainder.c: Likewise.
30787         * math/w_remainderf.c: Likewise.
30788         * math/w_remainderl.c: Likewise.
30789         * math/w_scalb.c: Likewise.
30790         * math/w_scalbf.c: Likewise.
30791         * math/w_scalbl.c: Likewise.
30792         * math/w_scalbln.c: Likewise.
30793         * math/w_scalblnf.c: Likewise.
30794         * math/w_scalblnl.c: Likewise.
30795         * math/w_sinh.c: Likewise.
30796         * math/w_sinhf.c: Likewise.
30797         * math/w_sinhl.c: Likewise.
30798         * math/w_tgamma.c: Likewise.
30799         * math/w_tgammaf.c: Likewise.
30800         * math/w_tgammal.c: Likewise.
30801         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30802         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
30803         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
30804         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
30805         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
30806         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30807         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
30808         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
30809         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
30810         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30811         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30812         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
30813         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
30814         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
30815         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
30816         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30817         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
30818         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
30819         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30820         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30821         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30822         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
30823         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
30824         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30825         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
30826         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30827         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
30828         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
30829         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30830         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30831         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
30832         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
30833         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
30834         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
30835         * stdio-common/printf_fp.c: Likewise.
30836         * stdio-common/printf_fphex.c: Likewise.
30837         * stdio-common/printf_size.c: Likewise.
30838
30839 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
30840
30841         [BZ #18470]
30842         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
30843         strnlen.
30844         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
30845         Remove variable.
30846         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
30847         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
30848         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
30849         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
30850         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
30851         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
30852         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
30853         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
30854         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
30855         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
30856
30857         [BZ #18468]
30858         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
30859         weak alias of __wmemchr.  Use libc_hidden_weak.
30860         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
30861         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
30862         instead of wmemchr.
30863
30864 2015-06-02  Roland McGrath  <roland@hack.frob.com>
30865
30866         [BZ #18383]
30867         * elf/tst-tlsalign-extern.c: New file.
30868         * elf/tst-tlsalign-extern-static.c: New file.
30869         * elf/tst-tlsalign-vars.c: New file.
30870         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
30871         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
30872         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
30873         ($(objpfx)tst-tlsalign-extern-static): Likewise.
30874         (test-xfail-tst-tlsalign-extern-static): New variable.
30875
30876 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
30877
30878         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
30879         Use variable name _sc_err instead of err.
30880         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
30881         instead of ret.
30882         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
30883         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
30884         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
30885         (INLINE_SYSCALL): Likewise.
30886
30887         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
30888         * include/string.h (__strnlen): Use libc_hidden_proto.
30889         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
30890         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
30891         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
30892         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
30893         (libc_hidden_def): Undefine and redefine.
30894         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
30895         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
30896         __GI_strnlen.
30897         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
30898         libc_hidden_def.
30899         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
30900
30901         [BZ #18469]
30902         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
30903         weak alias of __towlower.  Use libc_hidden_weak.
30904         (towupper): Rename to __towupper and define as weak alias of
30905         __towupper.  Use libc_hidden_weak.
30906         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
30907         (__towupper): Likewise.
30908         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
30909         __towlower instead of towlower.
30910
30911 2015-06-02  Roland McGrath  <roland@hack.frob.com>
30912
30913         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
30914         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
30915
30916 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30917
30918         * sysdeps/aarch64/libm-test-ulps: Update.
30919
30920 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30921
30922         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
30923         Define.
30924         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30926         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
30927         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
30928         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
30929         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
30930         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
30931
30932 2015-06-01  Martin Sebor  <msebor@redhat.com>
30933
30934         [BZ #18116]
30935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
30936         (__setcontext): Use extended four-operand version of mtsf whenever
30937         possible.
30938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
30939         (__novec_swapcontext): Likewise.
30940
30941 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30942
30943         * benchtests/scripts/compare_bench.py: New file.
30944         * benchtests/scripts/import_bench.py (mean): New function.
30945         (split_list): Likewise.
30946         (do_for_all_timings): Likewise.
30947         (compress_timings): Likewise.
30948
30949         * benchtests/scripts/import_bench.py: New file.
30950         * benchtests/scripts/validate_benchout.py: Import import_bench
30951         instead of jsonschema.
30952         (validate_bench): Remove function.
30953         (main): Use import_bench.
30954
30955 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
30956
30957         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
30958         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
30959
30960 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30961
30962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30963
30964 2015-05-28  Roland McGrath  <roland@hack.frob.com>
30965
30966         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
30967         set THREAD_SELF->tid to a magic value and futex-wake it.
30968         Pass its address to the thread_exit system call.
30969         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
30970         bit is clear.
30971         * sysdeps/nacl/lowlevellock.h: New file.
30972         * sysdeps/nacl/lll_timedwait_tid.c: New file.
30973
30974         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
30975         Add TIMEOUT to current time, don't subtract it.
30976
30977 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
30978
30979         [BZ #2981]
30980         [BZ #18422]
30981         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
30982         ($(objpfx)tst-audit2.out): Also depend on
30983         $(objpfx)tst-auditmod9b.so.
30984         * elf/tst-audit2.c: Include <dlfcn.h>.
30985         (calloc_called): New.
30986         (calloc): Allow to be called more than once.
30987         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
30988
30989 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
30990
30991         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
30992         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
30993
30994 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
30995
30996         * stdlib/monetary.h: Fix comment.
30997
30998 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
30999
31000         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31001         Avoid using variables in #defines that might cause shadowing.
31002         (INTERNAL_VSYSCALL_CALL): Likewise.
31003
31004 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31005
31006         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31007
31008         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31009         * nptl/lll_timedlock_wait.c: ... to this new file.
31010         * nptl/Makefile (libpthread-routines): Add it.
31011         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31012         * nptl/lll_timedwait_tid.c: ... to this new file.
31013         * nptl/Makefile (libpthread-routines): Add it.
31014         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31015         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31016         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31017         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31018         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31019         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31020         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31021         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31022         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31023         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31024
31025 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31026
31027         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31028         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31029         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31030         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31031         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31032         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31033         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31034         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31035         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31036         * sysdeps/unix/sysv/linux/tile/sysdep.h
31037         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31038         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31039         using vDSO syscall macro.
31040
31041 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31042
31043         [BZ #17293]
31044         * uk_UA: Fix sorting order for Ukrainian locale
31045
31046 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31047
31048         * stdlib/monetary.h: Fix comment.
31049
31050 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31051
31052         [BZ #18234]
31053         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31054         st_mtim and st_ctim members.
31055         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31056         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31057         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31058         (struct stat64): Likewise.
31059         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31060         (struct stat64): Likewise.
31061         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31062         (struct stat64): Likewise.
31063
31064 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31065
31066         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31067         Define and include sysdep-vdso.h.
31068         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31069         Likewise.
31070         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31071         Likewise.
31072         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31073         Define with VDSO_SYMBOL and use PTR_MANGLE.
31074         (__vdso_clock_gettime): Likewise.
31075         (__vdso_clock_getres): Likewise.
31076         (_libc_vdso_platform_setup): Likewise.
31077         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31078         Likewise.
31079         (_libc_vdso_platform_setup): Likewise.
31080         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31081         Likewise.
31082         (__vdso_clock_gettime): Likewise.
31083         (__vdso_clock_getres): Likewise.
31084         (__vdso_get_tbfreq): Likewise.
31085         (__vdso_getcpu): Likewise.
31086         (__vdso_time): Likewise.
31087         (__vdso_sigtramp_rt64): Likewise.
31088         (__vdso_signtramp32): Likewise.
31089         (__vdso_sigtramp_rt32): Likewise.
31090         (_libc_vdso_platform_setup): Likewise.
31091         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31092         Likewise.
31093         (__vdso_clock_gettime): Likewise.
31094         (__vdso_clock_getres): Likewise.
31095         (_libc_vdso_platform_setup): Likewise.
31096         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31097         Likewise.
31098         (__vdso_clock_gettime): Likewise.
31099         (_libc_vdso_platform_setup): Likewise.
31100         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31101         Likewise.
31102         (__vdso_getcpu): Likewise.
31103         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31104         Use VDSO_SYMBOL macro to define.
31105         (__vdso_clock_gettime): Likewise.
31106         (__vdso_clock_getres): Likewise.
31107         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31108         Likewise.
31109         (__vdso_clock_gettime): Likewise.
31110         (__vdso_clock_getres): Likewise.
31111         (__vdso_get_tbfreq): Likewise.
31112         (__vdso_getcpu): Likewise.
31113         (__vdso_time): Likewise.
31114         (__vdso_sigtramp_rt64): Likewise.
31115         (__vdso_signtramp32): Likewise.
31116         (__vdso_sigtramp_rt32): Likewise.
31117         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31118         Likewise.
31119         (__vdso_clock_gettime): Likewise.
31120         (__vdso_clock_getres): Likewise.
31121         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31122         Likewise.
31123         (__vdso_clock_gettime): Likewise.
31124         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31125         Likewise.
31126         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31127         macro.
31128         (INTERNAL_VSYSCALL): Likewise.
31129         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31130         Remove macro.
31131         (INTERNAL_VSYSCALL): Likewise.
31132         (INTERNAL_VSYSCALL_NCS): Likewise.
31133         (INTERNAL_VSYSCALL_CALL): New macro.
31134         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31135         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31136         Likewise.
31137         (INTERNAL_VSYSCALL): Likewise.
31138         (INTERNAL_VSYSCALL_NCS): Likewise.
31139         (INTERNAL_VSYSCALL_CALL): New macro.
31140         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31142         (INLINE_VSYSCALL): Remove macro.
31143         (INTERNAL_VSYSCALL): Remove macro.
31144         (INTERNAL_VSYSCALL_NCS): Remove macro.
31145         (INTERNAL_VSYSCALL_CALL): New macro.
31146         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31147         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31148         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31149         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31150         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31152         (INLINE_VSYSCALL): Remove macro.
31153         (INTERNAL_VSYSCALL): Likewise.
31154         (INTERNAL_VSYSCALL_NCS): Likewise.
31155         (INTERNAL_VSYSCALL_CALL): New macro.
31156         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31157         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31158         PTR_DEMANGLE on vDSO pointer.
31159         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31160         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31161         macro.
31162         (INTERNAL_SYSCALL): Likewise.
31163         (INTERNAL_VSYSCALL_NCS): Remove macro.
31164         (INTERNAL_VSYSCALL_CALL): New macro.
31165         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31166         Remove macro.
31167         (INTERNAL_VSYSCALL): Likewise.
31168         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31169         sysdep-vdso.h instead of libc-vdso.h.
31170         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31171         definition.
31172         (INLINE_VSYSCALL): Likewise.
31173         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31174         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31175         definition.
31176         (INLINE_VSYSCALL): Likewise.
31177         (INTERNAL_VSYSCALL): Likewise.
31178         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31179         * sysdeps/unix/sysv/linux/timespec_get.c
31180         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31181         (timespec_get): Use ANSI prototype.
31182         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31183         and definition for Linux.
31184
31185 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31186
31187         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31188         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31189
31190 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31191
31192         [BZ #2981]
31193         [BZ #18410]
31194         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31195         for missing DT_PLTRELSZ.
31196
31197 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         Remove obsolete aliases that broke 'locale -a'
31200         [BZ #18412]
31201         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31202         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31203         breaking some applications that use 'locale -a' output.
31204         Change the encoding of this file from Latin-1 to ASCII to avoid
31205         other potential problems with people grepping this file.
31206
31207 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31208
31209         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31210         -fasynchronous-unwind-tables.
31211         (CFLAGS-sendto.c): Likewise.
31212         (CFLAGS-sendmsg.c): Likewise.
31213         (CFLAGS-connect.c): Likewise.
31214         (CFLAGS-recvmsg.c): Likewise.
31215         (CFLAGS-recvfrom.c): Likewise.
31216         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31217         (SOCKETCALL): New macro: non-cancellable socketcall.
31218         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31219         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31220         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31221         * sysdeps/unix/sysv/linux/accept.c: New file.
31222         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31223         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31224         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31225         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31226         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31227         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31228         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31229         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31230         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31231         * sysdeps/unix/sysv/linux/send.c: Likewise.
31232         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31233         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31234         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31235         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31236         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31237         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31238         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31239         prototype.
31240         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31241         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31242         instead of __internal_xxx function.
31243         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31244         prototype.
31245         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31246         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31247         instead of __internal_xxx function.
31248         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31249         prototype.
31250         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31251         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31252         instead of __internal_xxx function.
31253         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31254         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31255         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31256         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31257         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31258         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31259         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31260         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31261         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31262         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31263         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31264         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31265         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31266         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31267         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31268         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31269         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31270         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31271         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31272         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31275         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31276         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31277         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31278         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31279         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31280         * sysdeps/unix/sysv/linux/send.S: Likewise.
31281         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31282         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31283         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31284         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31285         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31286         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31287         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31288         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31289         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31290         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31291         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31292         socketcall is implemented in GLIBC.
31293
31294 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31295
31296         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31297         (__fma): Ignore uninitialized warnings around packing.
31298         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31299         (__fmaf): Ignore uninitialized warnings around packing.
31300         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31301         (__fmal): Ignore uninitialized warnings around packing.
31302
31303         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31304         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31305         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31306         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31307
31308         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
31309         switch statement into default case.
31310         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
31311
31312         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
31313         a conditional in forcing "inexact".
31314         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
31315         Likewise.
31316
31317 2015-05-22  Roland McGrath  <roland@hack.frob.com>
31318
31319         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
31320         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
31321         for each INTERNAL_SYSCALL use.
31322
31323 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31324
31325         [BZ #438]
31326         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
31327         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
31328         variable.
31329
31330         [BZ #18444]
31331         * string/basename.c (basename): Rename to __basename and define as
31332         weak alias of __basename.  Use libc_hidden_weak.
31333         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
31334         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
31335         __basename instead of basename.
31336         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
31337         Remove variable.
31338         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31339
31340 2015-05-18  Florian Weimer  <fweimer@redhat.com>
31341
31342         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
31343         (_IO_JUMPS_FILE_plus): New.
31344         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
31345         _IO_CAST_FIELD_ACCESS.
31346         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
31347         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
31348         * libio/freopen.c (freopen): Likewise.
31349         * libio/freopen64.c (freopen64): Likewise.
31350         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
31351         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
31352         * libio/iofwide.c (_IO_fwide): Likewise.
31353         * libio/memstream.c (open_memstream): Likewise.
31354         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31355         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
31356         * libio/oldiopopen.c (_IO_old_popen): Likewise.
31357
31358 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
31359
31360         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
31361         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
31362         NADJ.
31363         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
31364         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
31365         NADJ.
31366         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
31367         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
31368         NADJ.
31369
31370         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
31371         (p == 4) case.
31372
31373         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
31374         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
31375         Remove variable.
31376         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31377         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31378         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31379
31380 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31381
31382         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
31383         Adjust jump table label generation macros.
31384
31385 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31386
31387         * stdio-common/vfprintf.c (vfprintf): Move local variables
31388         args_malloced, specs, specs_malloced, and the code after
31389         do_positional to the printf_positional function.
31390         (printf_positional): New function.
31391
31392 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31393
31394         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
31395         function.
31396         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
31397         STEP4_TABLE, process_arg): Move macro definitions
31398         out of the vfprintf function.  (Cosmetic change only.)
31399
31400 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
31401
31402         * benchtests/Makefile (stdio-common-bench): Define.
31403         (benchset): Add stdio-common-bench.
31404         * sprintf-inputs: New file.
31405         * sprintf-source.c: New file.
31406
31407 2015-05-21  Andreas Schwab  <schwab@suse.de>
31408
31409         [BZ #13028]
31410         [BZ #17053]
31411         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
31412         of struct __res_state.
31413         * resolv/res_send.c (__libc_res_nsend): Likewise.
31414         (get_nsaddr): New function.
31415         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
31416         statp directly.
31417
31418 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
31419
31420         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
31421         -D_POSIX_C_SOURCE=199506L.
31422
31423         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
31424
31425         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
31426         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
31427         Do not mention otherwise.
31428         [POSIX] (_XOPEN_VERSION): Do not expect.
31429         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
31430         [POSIX] (_POSIX2_C_BIND): Likewise.
31431         [POSIX] (_POSIX2_VERSION): Likewise.
31432         [POSIX] (_XOPEN_XPG2): Likewise.
31433         [POSIX] (_XOPEN_XPG3): Likewise.
31434         [POSIX] (_XOPEN_XPG4): Likewise.
31435         [POSIX] (_XOPEN_UNIX): Likewise.
31436         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
31437         [POSIX] (_POSIX_BARRIERS): Likewise.
31438         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
31439         [POSIX] (_POSIX_CPUTIME): Likewise.
31440         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
31441         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
31442         [POSIX] (_POSIX_SHELL): Likewise.
31443         [POSIX] (_POSIX_SPAWN): Likewise.
31444         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
31445         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
31446         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
31447         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
31448         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
31449         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
31450         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
31451         [POSIX] (_XBS5_LP64_OFF64): Likewise.
31452         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
31453         [POSIX] (_POSIX_TIMEOUTS): Likewise.
31454         [POSIX] (_POSIX2_PBS): Likewise.
31455         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
31456         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
31457         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
31458         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
31459         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
31460         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
31461         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
31462         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
31463         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
31464         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
31465         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
31466         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
31467         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
31468         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
31469         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
31470         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
31471         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
31472         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
31473         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
31474         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
31475         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
31476         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
31477         [POSIX] (_SC_2_C_BIND): Likewise.
31478         [POSIX] (_SC_2_C_VERSION): Likewise.
31479         [POSIX] (_SC_2_PBS): Likewise.
31480         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
31481         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
31482         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
31483         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
31484         [POSIX] (_SC_2_PBS_TRACK): Likewise.
31485         [POSIX] (_SC_ATEXIT_MAX): Likewise.
31486         [POSIX] (_SC_BARRIERS): Likewise.
31487         [POSIX] (_SC_BASE): Likewise.
31488         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
31489         [POSIX] (_SC_DEVICE_IO): Likewise.
31490         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
31491         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
31492         [POSIX] (_SC_FD_MGMT): Likewise.
31493         [POSIX] (_SC_FIFO): Likewise.
31494         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
31495         [POSIX] (_SC_FILE_LOCKING): Likewise.
31496         [POSIX] (_SC_FILE_SYSTEM): Likewise.
31497         [POSIX] (_SC_IOV_MAX): Likewise.
31498         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
31499         [POSIX] (_SC_NETWORKING): Likewise.
31500         [POSIX] (_SC_PAGE_SIZE): Likewise.
31501         [POSIX] (_SC_PASS_MAX): Likewise.
31502         [POSIX] (_SC_PIPE): Likewise.
31503         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
31504         [POSIX] (_SC_REGEXP): Likewise.
31505         [POSIX] (_SC_SHELL): Likewise.
31506         [POSIX] (_SC_SIGNALS): Likewise.
31507         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
31508         [POSIX] (_SC_SPIN_LOCKS): Likewise.
31509         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
31510         [POSIX] (_SC_USER_GROUPS): Likewise.
31511         [POSIX] (_SC_USER_GROUPS_R): Likewise.
31512         [POSIX] (_SC_STREAMS): Likewise.
31513         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
31514         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
31515         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
31516         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
31517         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
31518         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
31519         [POSIX] (_PC_FILESIZEBITS): Likewise.
31520         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
31521         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
31522         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
31523         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
31524         [POSIX] (uid_t): Likewise.
31525         [POSIX] (gid_t): Likewise.
31526         [POSIX] (off_t): Likewise.
31527         [POSIX] (pid_t): Likewise.
31528         [POSIX] (cuserid): Allow.
31529         (_SC_2_CHAR_TERM): Require constant.
31530         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
31531         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
31532         variable.
31533
31534 2015-05-20  Roland McGrath  <roland@hack.frob.com>
31535
31536         * sysdeps/nacl/pthread-pids.h: New file.
31537         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
31538         (create_thread): Use __nacl_get_tid to initialize PD->tid.
31539
31540         * nptl/pthread-pids.h: New file.
31541         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
31542         * nptl/nptl-init.c: Include <pthread-pids.h>.
31543         (__pthread_initialize_minimal_internal):
31544         Call __pthread_initialize_pids instead of set_tid_address syscall.
31545
31546         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
31547         * sysdeps/posix/usleep.c: ... here.
31548
31549 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31550
31551         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
31552         call_pselect6 object.
31553         [$(subdir) = io]: Remove call_sync_file_range object.
31554         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
31555         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
31556         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
31557         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
31558
31559 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
31560
31561         * math/s_cproj.c: Add include "math_private.h".
31562         * math/s_cprojf.c: Likewise.
31563         * math/s_cprojl.c: Likewise.
31564
31565 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
31566
31567         [BZ #18244]
31568         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
31569         high mantissa bit when testing whether P is a NaN.
31570         * math/libm-test.inc (remainder_test_data): Add more tests.
31571         (remquo_test_data): Likewise.
31572
31573         [BZ #18049]
31574         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
31575         below -32, return the argument, with underflow if subnormal.
31576         * math/auto-libm-test-in: Add more tests of atanh.
31577         * math/auto-libm-test-out: Regenerated.
31578
31579 2015-05-19  Roland McGrath  <roland@hack.frob.com>
31580
31581         [BZ #18434]
31582         * nptl/tst-sem15.c: New file.
31583         * nptl/Makefile (tests): Add it.
31584         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
31585         s/<</>>/ to fix typo in EOVERFLOW check.
31586         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
31587
31588 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31589
31590         * manual/strings.texi (envz_remove): Fix typo in safety
31591         annotations.
31592
31593 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31594             Steve Ellcey  <sellcey@imgtec.com>
31595
31596         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
31597         in order to avoid strict alias warnings.
31598         (iruserok_af): Ditto for ra.
31599
31600 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
31601
31602         [BZ #17581]
31603         * malloc/hooks.c
31604         (magicbyte): Convert to a function and avoid returning 0x01.
31605         (mem2mem_check): Avoid using a length byte equal to the magic byte.
31606         (mem2chunk_check): Fix unsigned comparisons to zero.
31607         Hoist defs of sz and magic.
31608
31609 2015-05-19  Richard Henderson  <rth@redhat.com>
31610
31611         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
31612
31613         * sysdeps/alpha/fpu/libm-test-ulps: Update.
31614
31615 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31616
31617         [BZ #16159]
31618         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
31619         * malloc/arena.c (arena_lock): Check if arena is corrupt.
31620         (reused_arena): Find a non-corrupt arena.
31621         (heap_trim): Pass arena to unlink.
31622         * malloc/hooks.c (malloc_check_get_size): Pass arena to
31623         malloc_printerr.
31624         (top_check): Likewise.
31625         (free_check): Likewise.
31626         (realloc_check): Likewise.
31627         * malloc/malloc.c (malloc_printerr): Add arena argument.
31628         (unlink): Likewise.
31629         (munmap_chunk): Adjust.
31630         (ARENA_CORRUPTION_BIT): New macro.
31631         (arena_is_corrupt): Likewise.
31632         (set_arena_corrupt): Likewise.
31633         (sysmalloc): Use mmap if there are no usable arenas.
31634         (_int_malloc): Likewise.
31635         (__libc_malloc): Don't fail if arena_get returns NULL.
31636         (_mid_memalign): Likewise.
31637         (__libc_calloc): Likewise.
31638         (__libc_realloc): Adjust for additional argument to
31639         malloc_printerr.
31640         (_int_free): Likewise.
31641         (malloc_consolidate): Likewise.
31642         (_int_realloc): Likewise.
31643         (_int_memalign): Don't touch corrupt arenas.
31644         * malloc/tst-malloc-backtrace.c: New test case.
31645
31646         * Makefile (summarize-tests): Fix return value on success.
31647
31648         * manual/string.texi (Envz Functions): Add envz_remove.
31649
31650 2015-05-18  Roland McGrath  <roland@hack.frob.com>
31651
31652         * sysdeps/posix/opendir.c: Include <stdbool.h>.
31653         (invalid_name): New function, broken out of ...
31654         (__opendirat): ... here.  Call it.
31655         (need_isdir_precheck): New function, broken out of ...
31656         (__opendirat): ... here.  Call it.
31657         Use __fxstatat64, not __xstatat64.
31658         (opendir_oflags): New function, broken out of ...
31659         (__opendirat): ... here.  Call it.
31660         (opendir_tail): New function, broken out of ...
31661         (__opendirat): ... here.  Call it.
31662         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
31663         opendir_tail, rather than punting to __opendirat.
31664         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
31665
31666 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
31667
31668         * .gitignore: Ignore generated *.pyc.
31669
31670 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
31671
31672         * include/stdio.h: Define __need_wint_t.
31673         * test-skeleton.c: Avoid `for' loop initial declaration.
31674         * nptl/tst-initializers1.c: Use test-skeleton.c.
31675
31676 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31677
31678         [BZ #18418]
31679         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
31680
31681 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31682
31683         [BZ #16352]
31684         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
31685         (__ieee754_atanh): Force underflow exception for results with
31686         small absolute value.
31687         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
31688         (__ieee754_atanhf): Force underflow exception for results with
31689         small absolute value.
31690         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
31691         (__ieee754_atanh): Force underflow exception for results with
31692         small absolute value.
31693         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
31694         (__ieee754_atanhf): Force underflow exception for results with
31695         small absolute value.
31696         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
31697         (__ieee754_atanhl): Force underflow exception for results with
31698         small absolute value.
31699         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
31700         (__ieee754_atanhl): Force underflow exception for results with
31701         small absolute value.
31702         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
31703         (__ieee754_atanhl): Force underflow exception for results with
31704         small absolute value.
31705         * math/auto-libm-test-in: Do not allow missing underflow
31706         exceptions from atanh.
31707         * math/auto-libm-test-out: Regenerated.
31708
31709         [BZ #18221]
31710         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
31711         2**-28 as threshold for returning x or +/- 1/x.
31712         * math/auto-libm-test-in: Add more tests of tan.
31713         * math/auto-libm-test-out: Regenerated.
31714
31715         [BZ #18220]
31716         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
31717         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
31718         * math/auto-libm-test-in: Add another test of lgamma.
31719         * math/auto-libm-test-out: Regenerated.
31720
31721 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
31722
31723         * stdio-common/printf_fp.c (___printf_fp): Use abs.
31724         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
31725         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
31726         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
31727         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
31728         (ADD2A): Use fabs.  (SUB2A): Use fabs.
31729         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
31730         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
31731         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
31732         (log1): Use fabs.  (my_log2): Use fabs.
31733         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
31734         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
31735         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
31736         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
31737         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
31738         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
31739         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
31740         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
31741         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
31742         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
31743         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
31744
31745 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
31746
31747         [BZ #18217]
31748         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
31749         as threshold for returning 1 - x.
31750         * math/auto-libm-test-in: Add more tests of erfc.
31751         * math/auto-libm-test-out: Regenerated.
31752
31753 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
31754
31755         [BZ #18196]
31756         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
31757         threshold for large arguments.
31758         * math/auto-libm-test-in: Add another test of atan.
31759         * math/auto-libm-test-out: Regenerated.
31760
31761         [BZ #16339]
31762         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
31763         (__log1p): Force underflow exception for results with small
31764         absolute value.
31765         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
31766         (__log1pf): Force underflow exception for results with small
31767         absolute value.
31768         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
31769         (__log1p): Force underflow exception for results with small
31770         absolute value.
31771         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
31772         (__log1pf): Force underflow exception for results with small
31773         absolute value.
31774         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
31775         (__log1pl): Force underflow exception for results with small
31776         absolute value.
31777         * math/auto-libm-test-in: Do not allow missing underflow
31778         exceptions from log1p.
31779         * math/auto-libm-test-out: Regenerated.
31780
31781 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
31782             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31783
31784         [BZ #16704]
31785         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
31786
31787 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
31788
31789         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
31790         (libmvec): New variable.
31791         * configure.ac: Added option for mathvec build.
31792         * configure: Regenerated.
31793         * mathvec/Depend: New file.
31794         * mathvec/Makefile: New file.
31795         * shlib-versions: Added libmvec.
31796         * math/Makefile: Added rule for libm.so installation.
31797
31798         * bits/math-vector.h: New file.
31799         * bits/libm-simd-decl-stubs.h: New header.
31800         * math/Makefile (headers): Added new header
31801         libm-simd-decl-stubs.h.
31802         * math/math.h (__MATHCALL_VEC): New macro.
31803
31804         * math/gen-libm-have-vector-test.sh: Script generates series of macros
31805         for conditions in testing functions.
31806         * math/Makefile: Added call of libm-have-vector-test.sh.
31807         * math/libm-test.inc (HAVE_VECTOR): New macros.
31808
31809         * math/libm-test.inc: START refactored.
31810         * math/test-double.c (TEST_MATHVEC): Add define.
31811         * math/test-float.c: Likewise.
31812         * math/test-idouble.c: Likewise.
31813         * math/test-ifloat.c: Likewise.
31814         * math/test-ildoubl.c: Likewise.
31815         * math/test-ldouble.c: Likewise.
31816         * sysdeps/generic/math-tests-arch.h
31817         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
31818         architecture check.
31819
31820         * math/test-double.c (FUNC_TEST): New macro.
31821         * math/test-float.c: Likewise.
31822         * math/test-idouble.c: Likewise.
31823         * math/test-ifloat.c: Likewise.
31824         * math/test-ildoubl.c: Likewise.
31825         * math/test-ldouble.c: Likewise.
31826         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
31827
31828 2015-05-13  Roland McGrath  <roland@hack.frob.com>
31829
31830         * sysdeps/nacl/fdopendir.c: New file.
31831
31832         * dirent/scandir-tail.c: New file.
31833         * dirent/scandir64-tail.c: New file.
31834         * dirent/Makefile (routines): Add them.
31835         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
31836         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
31837         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
31838         [!SCANDIR] (SCANDIR_TAIL): New macro.
31839         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
31840         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
31841         (SCANDIRAT): Macro removed.
31842         (SCANDIR_TAIL): New macro.
31843         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
31844         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
31845         (SCANDIRAT): Just call __opendirat and __scandir_tail.
31846         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
31847         (READDIR): Macro removed.
31848         (SCANDIR_TAIL): New macro.
31849         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
31850         (SCANDIR_TAIL): New macro.
31851
31852         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
31853         * dirent/scandir-cancel.c: ... to this new file.
31854         * dirent/Makefile (routines): Add it.
31855         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
31856         * sysdeps/unix/sysv/linux/i386/scandir64.c
31857         (SKIP_SCANDIR_CANCEL): Macro removed.
31858         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
31859
31860         * dirent/tst-scandir.c: New file.
31861         * dirent/tst-scandir64.c: New file.
31862         * dirent/Makefile (tests): Add them.
31863
31864 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
31865
31866         [BZ #18409]
31867         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
31868
31869 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31870
31871         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
31872         list.
31873
31874 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
31875
31876         * benchtests/bench-strcoll.c: New benchmark.
31877         * benchtests/Makefile: Generate locales and run benchmark.
31878         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
31879         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
31880         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
31881         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
31882         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
31883         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
31884         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
31885         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
31886         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
31887         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
31888         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
31889         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
31890         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
31891         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
31892         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
31893         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
31894         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
31895         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
31896         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
31897         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
31898         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
31899         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
31900         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
31901         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
31902
31903 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
31904
31905         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
31906         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
31907
31908 2015-05-12  Roland McGrath  <roland@hack.frob.com>
31909
31910         * posix/uname-values.h: New file.
31911         * posix/uname.c: Include that instead of <config-name.h>.
31912         * sysdeps/nacl/uname-values.h: New file.
31913         * sysdeps/arm/nacl/uname-values.h: New file.
31914
31915 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
31916
31917         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
31918         splitting into fields.
31919
31920 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
31921
31922         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
31923         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
31924         * locale/localeinfo.h: Add enum collation_encoding_type.
31925         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
31926         * programs/ld-collate.c (collate_output): Add encoding type info.
31927         * string/strcoll_l.c (STRDIFF): New function.
31928         * (STRCOLL): Use STRDIFF to skip over equal prefix.
31929         * wcsmbs/wcscoll_l.c: Define STRDIFF.
31930
31931 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
31932
31933         [BZ #18397]
31934         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
31935         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
31936         <fpu_control.h> instead of <math/fpu_control.c>.
31937         * sysdeps/mips/mips32/fpu/Makefile: New file.
31938
31939 2015-05-11  Andreas Schwab  <schwab@suse.de>
31940
31941         [BZ #18007]
31942         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
31943         nss_endgrent.
31944         (_nss_compat_endgrent): Call nss_endgrent.
31945         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
31946         nss_endpwent.
31947         (_nss_compat_endpwent): Call nss_endpwent.
31948         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
31949         needent, call nss_setspent only if non-zero.
31950         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
31951         (internal_endspent): Don't call nss_endspent.
31952         (_nss_compat_endspent): Call nss_endspent.
31953         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
31954         Remove.  All uses removed.
31955         (internal_setent): Remove parameter stayopen, add parameter
31956         stream.  Use it instead of global variable.
31957         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
31958         (internal_endent, internal_getent): Add parameter stream.  Use it
31959         instead of global variable.
31960         (CONCAT(_nss_files_end,ENTNAME))
31961         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
31962         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
31963         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
31964         uses removed.
31965         (internal_setent, internal_endent): Add parameter stream.  Use it
31966         instead of global variable.
31967         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
31968         stream.
31969         (get_next_alias): Add parameter stream.
31970         (_nss_files_getaliasent_r): Pass global stream.
31971         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
31972         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
31973         (_nss_files_gethostbyname4_r): Pass local stream to
31974         internal_setent, internal_getent and internal_endent.  Remove
31975         locking.
31976
31977 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
31978
31979         * tst-strfmon1.c (tests): Update expected currency symbol.
31980
31981 2015-05-08  Roland McGrath  <roland@hack.frob.com>
31982
31983         * sysdeps/nacl/gethostname.c: New file.
31984
31985 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
31986
31987         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
31988         and sinh.
31989         * math/auto-libm-test-out: Regenerated.
31990         * sysdeps/i386/fpu/libm-test-ulps: Update.
31991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31992
31993 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
31994
31995         [BZ #18125]
31996         * stdlib/tst-setcontext3.c: New file.
31997         * stdlib/tst-setcontext3.sh: New file.
31998         * stdlib/Makefile (tests): Add tst-setcontext3.
31999         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32000         to verify test program created output file.
32001         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32002         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32003         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32004         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32005
32006 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32007
32008         [BZ #18383]
32009         * elf/tst-tlsalign.c: New file.
32010         * elf/tst-tlsalign-static.c: New file.
32011         * elf/tst-tlsalign-lib.c: New file.
32012         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32013         (tests-static): Add tst-tlsalign-static.
32014         (modules-names): Add tst-tlsalign-lib.
32015         (test-xfail-tst-tlsalign): New variable.
32016         (test-xfail-tst-tlsalign-static): New variable.
32017
32018         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32019         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32020
32021 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32022
32023         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32024         csqrt, erfc, sin and sincos.
32025         * math/auto-libm-test-out: Regenerated.
32026         * sysdeps/i386/fpu/libm-test-ulps: Update.
32027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32028
32029 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32030
32031         * sysdeps/aarch64/libm-test-ulps: Update.
32032
32033 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32034
32035         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32036         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32037         * math/auto-libm-test-out: Regenerated.
32038         * sysdeps/i386/fpu/libm-test-ulps: Update.
32039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32040
32041 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32042
32043         [BZ #18265]
32044         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32045         (wcsncpy): Likewise.
32046
32047 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32048
32049         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32050         Assume __ASSUME_FALLOCATE is always true.
32051         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32052         (__posix_fallocate64_l64): Likewise.
32053         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32054         (posix_fallocate): Likewise.
32055         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32056         (__posix_fallocate64_l64): Likewise.
32057         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32058         [!__ASSUME_FALLOCATE]: Add comment.
32059
32060 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32061
32062         * sysdeps/unix/sysv/linux/i386/Makefile
32063         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32064         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32065         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32066         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32067         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32068         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32069         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32070
32071 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32072
32073         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32074         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32075         tgamma.
32076         * math/auto-libm-test-out: Regenerated.
32077         * sysdeps/i386/fpu/libm-test-ulps: Update.
32078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32079
32080 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32081
32082         * math/auto-libm-test-in: Add more tests of tgamma.
32083         * math/auto-libm-test-out: Regenerated.
32084         * sysdeps/i386/fpu/libm-test-ulps: Update.
32085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32086
32087         * math/auto-libm-test-in: Add more tests of tanh.
32088         * math/auto-libm-test-out: Regenerated.
32089         * sysdeps/i386/fpu/libm-test-ulps: Update.
32090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32091
32092         * math/auto-libm-test-in: Add more tests of tan.
32093         * math/auto-libm-test-out: Regenerated.
32094         * sysdeps/i386/fpu/libm-test-ulps: Update.
32095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32096
32097         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32098         * math/auto-libm-test-out: Regenerated.
32099         * sysdeps/i386/fpu/libm-test-ulps: Update.
32100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32101
32102         * math/auto-libm-test-in: Add another test of pow.
32103         * math/auto-libm-test-out: Regenerated.
32104         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32105
32106         * math/auto-libm-test-in: Add more tests of lgamma.
32107         * math/auto-libm-test-out: Regenerated.
32108         * sysdeps/i386/fpu/libm-test-ulps: Update.
32109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32110
32111         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32112         log1p.
32113         * math/auto-libm-test-out: Regenerated.
32114         * sysdeps/i386/fpu/libm-test-ulps: Update.
32115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32116
32117 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32118
32119         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32120         Elf64_Chdr structs and ELFCOMPRESS constants.
32121
32122 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32123
32124         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32125         expm1.
32126         * math/auto-libm-test-out: Regenerated.
32127         * sysdeps/i386/fpu/libm-test-ulps: Update.
32128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32129
32130         * math/auto-libm-test-in: Add more tests of erf and erfc.
32131         * math/auto-libm-test-out: Regenerated.
32132         * sysdeps/i386/fpu/libm-test-ulps: Update.
32133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32134
32135 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32136
32137         * config.h.in (HAVE_AARCH64_BE): Add.
32138
32139 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32140
32141         * math/auto-libm-test-in: Add more tests of csqrt.
32142         * math/auto-libm-test-out: Regenerated.
32143         * sysdeps/i386/fpu/libm-test-ulps: Update.
32144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32145
32146         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32147         * math/auto-libm-test-out: Regenerated.
32148         * sysdeps/i386/fpu/libm-test-ulps: Update.
32149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32150
32151         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32152
32153 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32154
32155         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32156         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32157
32158         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32159         (euidaccess, eaccess): Define as weak aliases.
32160
32161         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32162         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32163         but __suseconds_t is often 'long int' so some sources assume that
32164         type is being used (e.g. they use %ld to print tv_usec).
32165
32166 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32167
32168         [BZ #18007]
32169         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32170         (CVE-2014-8121)
32171         * nss/tst-nss-getpwent.c: New file.
32172         * nss/Makefile (tests): Add new test.
32173
32174 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32175
32176         [BZ #18346]
32177         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32178         exponents less than 48 as cases where high part of mantissa needs
32179         examining to determine whether argument is integral.
32180         * math/libm-test.inc (round_test_data): Add more tests.
32181
32182 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32183
32184         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32185
32186 2015-04-27  David S. Miller  <davem@davemloft.net>
32187
32188         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32189         __tls_get_addr.
32190         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32191
32192 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32193
32194         [BZ #18333]
32195         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32196
32197 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32198
32199         [BZ #18333]
32200         * time/tzset.c (parse_tzname): Return error on memory allocation
32201         failure.
32202         * test-skeleton.c (struct temp_name_list): Change type of name
32203         member to non-const.
32204         (add_temp_file): Create a copy of the file name.
32205         (delete_temp_files): Deallocate memory.
32206         (create_temp_file): Add comment.
32207
32208 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32209
32210         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32211         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32212
32213 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32214
32215         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32216         * sysdeps/arm/configure: Regenerated.
32217
32218 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32219
32220         [BZ #17715]
32221         * time/tzfile.c (__tzfile_read): Check for large values of
32222         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32223         * time/tzset.c (__tzstring_len): New function, based on the old
32224         __tzstring function.
32225         (__tzstring): Call __tzstring_len.
32226         (parse_tzname): New helper function extracted from
32227         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32228         the input string.
32229         (parse_offset): New helper function extracted from
32230         __tzset_parse_tz.  Replace switch with fallthrough with
32231         initialization before sscanf.
32232         (parse_rule): Likewise.
32233         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32234         new-style function definition.
32235         * timezone/Makefile (tests): Add tst-tzset.
32236         (tst-tzset.out): Dependencies on time zone files.
32237         (tst-tzset-ENV): Set TZDIR.
32238         (testdata/XT%): Copy crafted time zone files.
32239         * timezone/README: Mention crafted time zone files.
32240         * timezone/testdata/XT1, timezone/testdata/XT2,
32241         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32242         files.
32243         * timezone/tst-tzset.c: New test.
32244
32245 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32246
32247         * Makeconfig (+gccwarn): Remove -Winline.
32248
32249 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32250
32251         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32252
32253 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32254
32255         * NEWS: Mention sysconf() cache information support for s390.
32256         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32257
32258 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32259
32260         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32261         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32262         (__nearbyint): Likewise.
32263         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32264         (copysignl): Likewise.
32265
32266 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32267
32268         [BZ #18287]
32269         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32270         based on padding.  (CVE-2015-1781)
32271
32272 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32273
32274         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32275         libc-vdso.h.
32276         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32277         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32278         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32279         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32280         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32281         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32282         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32283         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32284         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32285         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32286         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32287         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32288         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32289         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32290         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32291         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32292         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32293         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32294         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32295         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32296         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32297         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32298         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32299
32300 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32301
32302         * stdlib/setenv.c (__add_to_environ):
32303         Dump core quickly if setenv (..., NULL, ...) is called.
32304         This time, do it the right way, and pacify GCC with a pragma.
32305
32306 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32307
32308         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
32309         IMAP->l_prev cannot be null, and #if out the code for the contrary
32310         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
32311         believe that NS (&_dl_ns[NSID]) could point outside the array.
32312
32313         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
32314         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
32315         before using NSID as an index.
32316
32317 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
32318
32319         [BZ #17825]
32320         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
32321         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
32322         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
32323
32324 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32325
32326         Add preliminary port to Google Native Client on ARM.
32327         * abi-tags (.*-.*-nacl.*): New entry.
32328         * sysdeps/arm/nacl: New directory.
32329         * sysdeps/nacl: New directory.
32330
32331 2015-04-16  David S. Miller  <davem@davemloft.net>
32332
32333         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
32334         lowlevellock-futex.h
32335
32336 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
32337
32338         * sysdeps/tile/configure.ac: New file.
32339         * sysdeps/tile/configure: Regenerated.
32340
32341 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32342
32343         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
32344         conditionals for weak_alias and libc_hidden_weak.
32345         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
32346         libc_hidden_weak and weak_alias.
32347         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
32348         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
32349         and weak_alias for static one.
32350
32351 2015-04-15  David S. Miller  <davem@davemloft.net>
32352
32353         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
32354
32355 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32356
32357         [BZ #18206]
32358         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
32359           Use signed comparision instead of substraction to avoid
32360           overflow bug.
32361         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
32362           Take the sign of ret.
32363         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
32364           Do not expect precise return values. Only the sign matters.
32365         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
32366         * wcsmbs/test-wcsncmp.c: New File.
32367         * string/test-strncmp.c: Add wcsncmp support.
32368
32369 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32370
32371         [BZ #6792]
32372         * math/w_log1p.c: New file.
32373         * math/w_log1pf.c: Likewise.
32374         * math/w_log1pl.c: Likewise.
32375         * math/Makefile (libm-calls): Add w_log1p.
32376         * math/s_log1pl.c (log1pl): Remove weak_alias.
32377         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
32378         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
32379         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
32380         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
32381         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
32382         [NO_LONG_DOUBLE] (log1pl): Likewise.
32383         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
32384         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
32385         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
32386         (log1p): Remove long_double_symbol.
32387         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
32388         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
32389         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
32390         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
32391         remove weak_alias for corresponding log1p function.
32392         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
32393         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
32394         * sysdeps/ia64/fpu/w_log1p.c: New file.
32395         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
32396         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
32397         * math/libm-test.inc (log1p_test_data): Add errno expectations.
32398
32399 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
32400
32401         [BZ #18247]
32402         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
32403         decimal exponent by 1.
32404         * stdlib/tst-strtod-round-data: Add more tests.
32405         * stdlib/tst-strtod-round.c (tests): Regenerated.
32406
32407 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
32408
32409         * math/auto-libm-test-in: Add more tests of clog and clog10.
32410         * math/auto-libm-test-out: Regenerated.
32411         * sysdeps/i386/fpu/libm-test-ulps: Update.
32412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32413
32414 2015-04-09  Roland McGrath  <roland@hack.frob.com>
32415
32416         * Makeconfig (module-cppflags): Exclude all .v.i files.
32417         (skip-module-cppflags): Variable removed.
32418
32419         * configure.ac (libc_config_ok): Initialize before reading
32420         preconfigure scripts, not after.
32421         * configure: Regenerated.
32422
32423         * test-skeleton.c (TIMEOUT): Move #define to top level.
32424         (main): Grok environment variable TEST_DIRECT.  If set, print
32425         test expectation details into that file and then behave as if
32426         given --direct.
32427
32428 2015-04-09  Florian Weimer  <fweimer@redhat.com>
32429
32430         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
32431         warning on 32-bit.
32432
32433 2015-04-08  David S. Miller  <davem@davemloft.net>
32434
32435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32436
32437 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32438
32439         * math/auto-libm-test-in: Add more tests of atanh.
32440         * math/auto-libm-test-out: Regenerated.
32441         * sysdeps/i386/fpu/libm-test-ulps: Update.
32442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32443
32444         * math/auto-libm-test-in: Add more tests of atan.
32445         * math/auto-libm-test-out: Regenerated.
32446         * sysdeps/i386/fpu/libm-test-ulps: Update.
32447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32448
32449 2015-04-08  Florian Weimer  <fweimer@redhat.com>
32450
32451         * elf/pldd.c (main): Rewrite to use struct
32452         scratch_buffer instead of extend_alloca.
32453         * elf/pldd-xx.c (find_maps): Likewise.
32454         * grp/initgroups.c: Include <scratch_buffer.h> instead of
32455         <alloca.h>.
32456         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
32457         scratch_buffer instead of extend_alloca.
32458         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
32459         grp/compat-initgroups.c.
32460         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
32461         Rewrite to use struct scratch_buffer instead of extend_alloca.
32462         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
32463         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32464
32465 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32466
32467         * math/auto-libm-test-in: Add more tests of cbrt.
32468         * math/auto-libm-test-out: Regenerated.
32469         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32470
32471         * math/auto-libm-test-in: Add more tests of cabs.
32472         * math/auto-libm-test-out: Regenerated.
32473         * sysdeps/i386/fpu/libm-test-ulps: Update.
32474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32475
32476         [BZ #18210]
32477         [BZ #18211]
32478         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
32479         (__ieee754_atan2): Set FE_TONEAREST mode for internal
32480         computations.
32481         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
32482         clog10.
32483         * math/auto-libm-test-out: Regenerated.
32484         * sysdeps/i386/fpu/libm-test-ulps: Update.
32485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32486
32487         [BZ #18197]
32488         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
32489         (atan): Set FE_TONEAREST mode for internal computations.
32490         * math/auto-libm-test-in: Add more tests of atan.
32491         * math/auto-libm-test-out: Regenerated.
32492
32493 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
32494
32495         [BZ #17930]
32496         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
32497
32498 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32499
32500         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
32501
32502 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32503
32504         * include/scratch_buffer.h: New file.
32505         * malloc/scratch_buffer_grow.c: Likewise.
32506         * malloc/scratch_buffer_grow_preserve.c: Likewise.
32507         * malloc/scratch_buffer_set_array_size.c: Likewise.
32508         * malloc/tst-scratch_buffer.c: Likewise.
32509         * malloc/Makefile (routines): Add scratch_buffer_grow.
32510         (tests): Add test case.
32511         * malloc/Versions (GLIBC_PRIVATE): Export
32512         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
32513         __libc_scratch_buffer_set_array_size.
32514
32515 2015-04-06  Richard Henderson  <rth@redhat.com>
32516
32517         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
32518         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32519
32520         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
32521         unsigned int before printing.
32522
32523 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
32524
32525         [BZ #17596]
32526         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
32527         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
32528
32529 2015-04-02  Florian Weimer  <fweimer@redhat.com>
32530
32531         * include/libc-internal.h (libc_max_align_t): Define.
32532
32533 2015-04-02  Andreas Schwab  <schwab@suse.de>
32534
32535         [BZ #16850]
32536         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
32537
32538 2015-04-02  Mel Gorman  <mgorman@suse.de>
32539
32540         [BZ #17195]
32541         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
32542         as well as the main arena.
32543
32544 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32545
32546         [BZ #18185]
32547         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
32548         sharing L2 cache to 2 for Silvermont/Knights Landing.
32549
32550 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32551
32552         [BZ #17711]
32553         * config.make.in (have-protected-data): New.
32554         * configure.ac: Check linker support for protected data symbol.
32555         * configure: Regenerated.
32556         * elf/Makefile (modules-names): Add tst-protected1moda and
32557         tst-protected1modb if $(have-protected-data) is yes.
32558         (tests): Add tst-protected1a and tst-protected1b if
32559         $(have-protected-data) is yes.
32560         ($(objpfx)tst-protected1a): New.
32561         ($(objpfx)tst-protected1b): Likewise.
32562         (tst-protected1modb.so-no-z-defs): Likewise.
32563         * elf/tst-protected1a.c: New file.
32564         * elf/tst-protected1b.c: Likewise.
32565         * elf/tst-protected1mod.h: Likewise.
32566         * elf/tst-protected1moda.c: Likewise.
32567         * elf/tst-protected1modb.c: Likewise.
32568
32569 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
32570
32571         [BZ #17711]
32572         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
32573         indicates it is called from do_lookup_x on relocation against
32574         protected data, skip the data definion in the executable from
32575         copy reloc.
32576         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
32577         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
32578         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
32579         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
32580         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
32581         otherwise to 0.
32582         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32583         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
32584         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
32585         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
32586         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
32587         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
32588
32589 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
32590
32591         * sysdeps/nptl/pthread.h: Remove duplicate definition of
32592         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
32593
32594 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
32595
32596         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
32597         THREAD_SETMEM_NC.
32598         * sysdeps/x86_64/nptl/tls.h: Ditto.
32599
32600 2015-03-27  Roland McGrath  <roland@hack.frob.com>
32601
32602         * dlfcn/tststatic.c (main): Converted to ...
32603         (do_test): ... this.
32604         (TEST_FUNCTION): New macro.
32605         Include test-skeleton.c.
32606
32607 2015-03-26  Alan Modra  <amodra@gmail.com>
32608
32609         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
32610         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
32611         zero for undefined weak.
32612         (elf_machine_plt_conflict): Similarly.
32613
32614 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32615
32616         * math/auto-libm-test-in: Add more tests of acosh, asinh and
32617         atanh.
32618         * math/auto-libm-test-out: Regenerated.
32619         * sysdeps/i386/fpu/libm-test-ulps: Update.
32620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32621
32622         * math/auto-libm-test-in: Add another test of asin.
32623         * math/auto-libm-test-out: Regenerated.
32624         * sysdeps/i386/fpu/libm-test-ulps: Update.
32625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32626
32627         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
32628         Remove macro.
32629         (LLL_EBX_REG): Likewise.
32630         (LLL_ENTER_KERNEL): Likewise.
32631
32632         * math/auto-libm-test-in: Add more tests of asin.
32633         * math/auto-libm-test-out: Regenerated.
32634         * sysdeps/i386/fpu/libm-test-ulps: Update.
32635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32636
32637         [BZ #18138]
32638         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
32639         libc_do_syscall_args): New structure.
32640         (INTERNAL_SYSCALL_MAIN_0): New macro.
32641         (INTERNAL_SYSCALL_MAIN_1): Likewise.
32642         (INTERNAL_SYSCALL_MAIN_2): Likewise.
32643         (INTERNAL_SYSCALL_MAIN_3): Likewise.
32644         (INTERNAL_SYSCALL_MAIN_4): Likewise.
32645         (INTERNAL_SYSCALL_MAIN_5): Likewise.
32646         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
32647         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
32648         Replace conditional definitions by conditional definitions of ....
32649         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
32650         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
32651         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
32652         (libpthread-sysdep_routines): Add libc-do-syscall.
32653         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
32654         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
32655         to __NR_futex not 240.
32656
32657 2015-03-25  Alan Modra  <amodra@gmail.com>
32658
32659         * NEWS: Advertise TLS optimization.
32660         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
32661         (DT_PPC_NUM): Increment.
32662         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
32663         (CHECK_STATIC_TLS): Use here.
32664         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
32665         TLS descriptors.
32666         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
32667         * sysdeps/powerpc/dl-tls.c: New file.
32668         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
32669         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
32670         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
32671         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
32672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
32673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
32674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
32675
32676 2015-03-25  Alan Modra  <amodra@gmail.com>
32677
32678         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
32679         for overlapping .opd entries" to "support...".
32680         * sysdeps/powerpc/powerpc64/configure: Regenerate
32681
32682 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
32683
32684         * math/auto-libm-test-in: Add more tests of acos.
32685         * math/auto-libm-test-out: Regenerated.
32686         * sysdeps/i386/fpu/libm-test-ulps: Update.
32687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32688
32689         * math/auto-libm-test-in: Add more tests of expm1.
32690         * math/auto-libm-test-out: Regenerated.
32691         * sysdeps/i386/fpu/libm-test-ulps: Update.
32692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32693
32694 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
32695
32696         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32697         * math/auto-libm-test-out: Regenerated.
32698         * sysdeps/i386/fpu/libm-test-ulps: Update.
32699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32700
32701         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
32702         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32703
32704         * math/auto-libm-test-in: Add more tests of log2.
32705         * math/auto-libm-test-out: Regenerated.
32706         * sysdeps/i386/fpu/libm-test-ulps: Update.
32707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32708
32709 2015-03-23  Roland McGrath  <roland@hack.frob.com>
32710
32711         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
32712         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
32713         _IO_IS_APPENDING bit in READ_WRITE instead.
32714
32715 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32716
32717         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
32718         (__determine_cpumask_size): Replace extend_alloca with a
32719         variable-length array.  Do not treat res == 0 as an error.
32720
32721 2015-03-23  Florian Weimer  <fweimer@redhat.com>
32722
32723         [BZ #18100]
32724         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
32725         and integer overflow.
32726         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
32727         (main): Add integer overflow tests.
32728         * manual/pattern.texi (Calling Wordexp): Document additional use
32729         for WRDE_SYNTAX.
32730
32731 2015-03-23  Alan Modra  <amodra@gmail.com>
32732
32733         * config.h.in: Remove HAVE_ASM_PPC_REL16.
32734         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
32735         and false branch of conditional.
32736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
32737         Likewise.
32738
32739 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
32740
32741         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
32742         libc-modules.h
32743         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
32744         unused declaration of _hurd_intr_rpc_msg_in_trap.
32745         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
32746         defined instead of whether it is non-zero.
32747         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
32748         input constraint instead of both input and output constraint.  Use ecx
32749         clobber instead of %ecx.
32750         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
32751         mutex_unlock): Use a statement expression instead of an expression list.
32752         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
32753         type to vm_size_t instead of vm_address_t.
32754         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
32755         defined instead of whether it is non-zero.
32756         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
32757         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
32758         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
32759         comparisons with mapaddr.
32760         * nscd/nscd-client.h: Include <time.h>.
32761         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
32762         9th parameter to __vm_region instead of int.
32763         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
32764         * scripts/check-local-headers.sh (exclude): Add device/,
32765         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
32766         cthreads.h.
32767
32768 2015-03-19  Roland McGrath  <roland@hack.frob.com>
32769
32770         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
32771         to account for alignment padding.
32772         * sysdeps/arm/memmove.S: Likewise.
32773
32774 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
32775
32776         * sysdeps/unix/sysv/linux/generic/README: New file.
32777
32778 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
32779
32780         [BZ #18138]
32781         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
32782         (futex_abstimed_wait)
32783         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
32784         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
32785         of lll_futex_timed_wait.
32786
32787 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
32788
32789         [BZ #17542]
32790         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
32791
32792 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
32793
32794         [BZ #17090]
32795         [BZ #17620]
32796         [BZ #17621]
32797         [BZ #17628]
32798         * NEWS: Update.
32799         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
32800         entries with Static TLS too.  Skip entries past the end of the
32801         allocated DTV, from Alan Modra.
32802         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
32803         Static TLS DTV entry set up from...
32804         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
32805         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
32806         * nptl/allocatestack.c (init_one_static_tls): ... and here...
32807         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
32808         for Static TLS.
32809         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
32810         that the slot we find is associated with the given map before
32811         using its generation count.
32812         * nptl_db/db_info.c: Include ldsodefs.h.
32813         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
32814         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
32815         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
32816         (link_map::l_tls_offset): New struct field.
32817         (dtv_t::counter): Likewise.
32818         (rtld_global): New struct.
32819         (_rtld_global): New rtld variable.
32820         (dl_tls_dtv_slotinfo_list): New rtld global field.
32821         (dtv_slotinfo_list): New struct.
32822         (dtv_slotinfo): Likewise.
32823         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
32824         (td_lookup): Rename to...
32825         (td_mod_lookup): ... this.  Use new mod parameter instead of
32826         LIBPTHREAD_SO.
32827         * nptl_db/td_thr_tlsbase.c: Include link.h.
32828         (dtv_slotinfo_list, dtv_slotinfo): New functions.
32829         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
32830         addresses even if the DTV is out of date or missing them.
32831         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
32832         index zero-length arrays.
32833         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
32834         (td_lookup): Make it a macro implemented in terms of...
32835         (td_mod_lookup): ... this declaration.
32836         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
32837         (DB_MAIN_VARIABLE): Likewise.
32838
32839 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32840
32841         [BZ #18134]
32842         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
32843
32844 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
32845
32846         * stdlib/setenv.c (__add_to_environ): Revert previous change.
32847
32848 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
32849
32850         [BZ #18128]
32851         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
32852         (atomic_add, atomic_increment_and_test)
32853         (atomic_decrement_and_test): Fix 64-bit arithmetic.
32854
32855 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32856
32857         * stdlib/setenv.c (__add_to_environ):
32858         Dump core quickly if setenv (..., NULL, ...) is called.
32859
32860 2015-03-13  Roland McGrath  <roland@hack.frob.com>
32861
32862         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
32863         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
32864         all the necessary asm magic in one place.
32865         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
32866         using those.
32867
32868 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
32869
32870         [BZ #14906]
32871         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
32872         traced file mtime. Use consistent log message.
32873         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
32874         (register_traced_file): Call install_watches. Always set mtime.
32875         (invalidate_cache): Iterate over all trace files. Call install_watches.
32876         (inotify_check_files): Don't inline. Handle watching parent
32877         directories and configuration file movement in and out.
32878         (handle_inotify_events): New function.
32879         (main_loop_poll): Call handle_inotify_events.
32880         (main_loop_epoll): Likewise.
32881         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
32882         (struct traced_file): Use array of inotify fds. Add parent directory,
32883         and basename.
32884         (struct database_dyn): Remove unused file_mtime.
32885         (init_traced_file): New inline function.
32886         (define_traced_file): New macro.
32887         * nss/nss_db/db-init.c: Use define_traced_file.
32888         (_nss_db_init): Use init_traced_file.
32889         * nss/nss_files/files-init.c: Use define_traced_file.
32890         (_nss_files_init): Use init_traced_file.
32891
32892 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
32893
32894         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
32895         [_LIBC]: Do not include <stdlib.h>.
32896         [!_LIBC] (abort): Remove declaration.
32897         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
32898         _FP_STATIC_ASSERT instead of conditionally calling abort.
32899         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
32900         (_FP_EXTEND_CNAN): Likewise.
32901         (FP_TRUNC): Likewise.
32902         (__FP_CLZ): Likewise.
32903         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
32904
32905 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
32906
32907         * manual/string.texi (XPG basename): Fix prototype.
32908
32909 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
32910
32911         [BZ #18080]
32912         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
32913         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
32914         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
32915         (__setcontext): Likewise.
32916         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
32917         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
32918         Call rt_sigprocmask syscall one time to set new signal mask
32919         and retrieve the current signal mask instead of two calls.
32920         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
32921         (__swapcontext): Likewise.
32922         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
32923         * stdlib/tst-setcontext2.c: New file.
32924
32925 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
32926
32927         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32928
32929 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
32930
32931         [BZ #18093]
32932         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
32933         the wrong size.
32934
32935 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
32936
32937         [BZ #18043]
32938         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
32939
32940 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
32941
32942         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
32943         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
32944         Remove define.
32945         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
32946         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
32947         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
32948         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
32949         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
32950         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
32951         define.
32952         * nptl_db/td_symbol_list.c (td_lookup): Remove
32953         HAVE_ASM_GLOBAL_DOT_NAME code.
32954         * sysdeps/powerpc/powerpc64/configure.ac: Remove
32955         HAVE_ASM_GLOBAL_DOT_NAME check.
32956         * sysdeps/powerpc/powerpc64/configure: Regenerate.
32957         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
32958         (DOT_LABEL): Remove define.
32959         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
32960         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
32961         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
32962         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
32963         (__TLS_GET_ADDR): Likewise.
32964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
32965         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
32966
32967 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
32968
32969         [BZ #18111]
32970         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
32971         (_FPU_SETCW): Initialize cw from fpsr before storing.
32972         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
32973         (fesetexceptflag): Rewrite using fpu_control.h.
32974         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
32975
32976 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
32977
32978         [BZ #18110]
32979         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
32980         asms.
32981         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
32982
32983 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
32984
32985         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
32986         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
32987         abort.
32988         (_FP_FMA): Likewise.
32989         (_FP_DIV): Likewise.
32990
32991 2015-03-10  Roland McGrath  <roland@hack.frob.com>
32992
32993         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
32994         with 0 in that case.
32995         * Makefile (summarize-tests): New canned sequence, factored out of
32996         commands for targets tests and xtests.  Display summary lines that
32997         don't start with PASS: or XFAIL: rather than ones that do start with
32998         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
32999         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33000         do start with ERROR: or FAIL:.
33001         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33002         (except for [$(build-shared) = yes]).
33003         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33004         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33005         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33006         * nptl/Makefile: Revert 2015-03-04 changes.
33007         [$(CXX) empty] (tests-unsupported): New variable.
33008         * debug/Makefile: Likewise.
33009
33010         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33011         gnulib file.  Replace __attribute with __attribute__ throughout.
33012
33013 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33014
33015         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33016
33017 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33018
33019         [BZ #18104]
33020         * math/auto-libm-test-in: Add another test of pow.
33021         * math/auto-libm-test-out: Regenerated.
33022
33023 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33024
33025         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33026         $(config-cflags-nofma).
33027
33028 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33029
33030         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33031         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33032         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33033         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33034         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33035         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33036         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33037         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33038         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33039         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33040         Add comment on closing #endif.
33041
33042 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33043
33044         * posix/wordexp.c (CHAR_IN_SET): New macro.
33045         (parse_param): Use it.
33046
33047 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33048
33049         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33050
33051 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33052
33053         [BZ #18043]
33054         * posix/wordexp.c (parse_param): Fix buffer overflow.
33055         * posix/wordexp-test.c (test_case): Add test case.
33056
33057 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33058
33059         [BZ #18042]
33060         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33061         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33062
33063 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33064
33065         [BZ #18043]
33066         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33067         (do_bz18043): Delete.
33068         (at_page_end): New.
33069         (testit): Refactor to have words at the edge of unreadable page.
33070
33071 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33072
33073         [BZ #16734]
33074         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33075         Cleanup read-only streams as well.
33076         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33077
33078 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33079
33080         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33081         <bits/libc-lockP.h>
33082
33083 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33084
33085         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33086         on [__KERNEL__].
33087         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33088         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33089         * soft-fp/op-common.h (_FP_DECL): Likewise.
33090
33091 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33092
33093         * elf/ifuncdep2.c (global): Replace
33094         __attribute__((visibility("protected"))) with
33095         asm (".protected global").
33096         * elf/ifuncmod1.c (global): Likewise.
33097         * elf/ifuncmod5.c (global): Likewise.
33098
33099 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33100
33101         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33102         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33103
33104 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33105
33106         * manual/install.texi (Configuring and compiling):
33107         Document test-wrapper-env-only.
33108         * INSTALL: Regenerated.
33109
33110 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33111
33112         [BZ #18043]
33113         * posix/wordexp.c (parse_param): Fix buffer overflow.
33114         * posix/wordexp-test.c (do_bz18043): Add test case.
33115
33116 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33117
33118         * time/tst-strptime2.c (do_test): Ensure failing tests are
33119         reported correctly.
33120         * time/tst-strptime3.c (do_test): Likewise.
33121
33122 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33123
33124         Fix aio_error thread-safety.
33125         * sysdeps/pthread/aio_error.c: New file
33126         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33127         synchronization.
33128
33129 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33130
33131         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33132         (group_number, vfprintf): Use it.
33133         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33134         (JUMP, REF): Use it.
33135         (WORK_BUFFER_SIZE): New enum constant.
33136         (process_arg, vfprintf): Use it.
33137
33138 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33139
33140         * manual/errno.texi (Error Messages): Complete example function
33141         by adding missing #define.
33142         (program_invocation_name): Add statement indicating GNU
33143         extension and reference which header file declares the variable.
33144         (program_invocation_short_name): Likewise.
33145
33146 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33147
33148         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33149         compatibility note.
33150
33151 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33152
33153         * Makeconfig (test-wrapper-env-only): New variable.
33154         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33155         then use that with $(test-wrapper-env-only) rather than using
33156         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33157
33158 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33159
33160         [BZ #18082]
33161         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33162         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33163         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33164         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33165         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33166         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33167         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33168         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33169         Likewise.
33170         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33171         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33172         Likewise.
33173         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33174         Likewise.
33175         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33176         Likewise.
33177         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33178         Likewise.
33179         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33180         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33181         Likewise.
33182         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33183         Likewise.
33184         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33185         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33186
33187 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33188
33189         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33190         (ETH_ALEN): New macro.
33191         (struct ether_addr): Use it for length of ether_addr_octet.
33192
33193         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33194         (setdb): Don't call __nss_configure_lookup for "rpc".
33195         (do_test): Don't call test_rpc.
33196         (output_rpcent, test_rpc): Functions moved ...
33197         * sunrpc/test-rpcent.c: ... to this new file.
33198         * sunrpc/Makefile (tests): Add it.
33199
33200         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33201         __xpg_sigpause.
33202         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33203         * nptl/tst-signal6.c: Likewise.
33204         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33205         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33206
33207         * configure.ac (libc_cv_cxx_link_ok): New check.
33208         Reset CXX to empty if it fails to link.
33209         * configure: Regenerated.
33210         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33211         bug-atexit3-lib only if $(CXX) is nonempty.
33212         * nptl/Makefile (tests): Likewise for tst-cancel24.
33213         (tests, tests-static): Likewise for tst-cancel24-static.
33214         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33215         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33216         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33217         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33218
33219 2015-03-04  Andreas Schwab  <schwab@suse.de>
33220
33221         [BZ #17631]
33222         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33223         for non-GCC compilers.
33224         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33225         Likewise.
33226
33227 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33228
33229         [BZ #17776]
33230         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33231         integer before bitwise and assembly operations.
33232         (feclearexcept): Likewise.
33233         * math/test-fenvinline.c: New file.
33234         * math/Makefile: Add test-fenvinline test.
33235
33236 2015-03-03  Alan Modra  <amodra@gmail.com>
33237
33238         [BZ #16512]
33239         * scripts/localplt.awk: Strip off symbol version.
33240         * NEWS: Mention bug fix.
33241
33242 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33243
33244         * sysdeps/pthread/timer_routines.c
33245         (timer_free_list, thread_free_list, thread_active_list): Make static.
33246
33247 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33248
33249         [BZ #17779]
33250         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33251         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33252         Undefine.
33253         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33254         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33255         Likewise.
33256         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33257         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33258         Likewise.
33259
33260 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33261
33262         [BZ #18036]
33263         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33264         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33265
33266 2015-03-02  Andreas Schwab  <schwab@suse.de>
33267
33268         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33269         variable name.
33270
33271 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33272
33273         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33274         Return error status.
33275
33276 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33277
33278         [BZ #15969]
33279         * locale/findlocale.c (_nl_find_locale): Introduce const
33280         version of loc_name and drop unsafe type casts.
33281
33282 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33283
33284         * dlfcn/tststatic2.c (main): Converted to ...
33285         (do_test): ... this.
33286         (TEST_FUNCTION): New macro.
33287         Include test-skeleton.c.
33288
33289 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33290
33291         [BZ #17711]
33292         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33293         (tests-pie): Add vismain.
33294         (CFLAGS-vismain.c): New.
33295         * elf/vismain.c: Add comments for PIE requirement.
33296
33297 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33298
33299         [BZ #18046]
33300         [BZ #18047]
33301         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33302         0x1p-56L as threshold for just returning the argument.
33303         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33304         0x1p-32L as threshold for just returning the argument.
33305         * math/auto-libm-test-in: Add more tests of atanh.
33306         * math/auto-libm-test-out: Regenerated.
33307         * sysdeps/i386/fpu/libm-test-ulps: Update.
33308         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
33309
33310 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33311
33312         * string/bcopy.c (bcopy): Call memmove for performance.
33313
33314 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33315
33316         * string/bzero.c (__bzero): Call memset for performance.
33317
33318 2015-02-27  John David Anglin  <dave.anglin@bell.net>
33319
33320         [BZ #18068]
33321         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
33322         to 00100000.
33323
33324 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33325
33326         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
33327
33328 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33329
33330         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
33331         (__kernel_standard): Use CSTR macro when setting exc.name.
33332         * sysdeps/ieee754/Makefile [$(subdir) = math]
33333         (CFLAGS-k_standard.c): Remove variable.
33334
33335         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
33336         setting p and q from "else if" to "else".
33337         (qzero): Likewise.
33338         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
33339         (qone): Likewise.
33340         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
33341         (qzerof): Likewise.
33342         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
33343         (qonef): Likewise.
33344         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
33345         (qzero): Likewise.
33346         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
33347         (qone): Likewise.
33348
33349         [BZ #18038]
33350         [BZ #18039]
33351         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
33352         return pi/2 for arguments below 0x1p-113L.
33353         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
33354         return pi/2 for arguments below 0x1p-106L.
33355         * math/auto-libm-test-in: Add more tests of acos.
33356         * math/auto-libm-test-out: Regenerated.
33357
33358         [BZ #16351]
33359         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
33360         (MO): New macro.
33361         (__ieee754_asin): Force underflow exception for results with small
33362         absolute value.
33363         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
33364         (MO): New macro.
33365         (__ieee754_asinf): Force underflow exception for results with
33366         small absolute value.
33367         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
33368         (__ieee754_asin): Force underflow exception for results with small
33369         absolute value.
33370         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
33371         (__ieee754_asinf): Force underflow exception for results with
33372         small absolute value.
33373         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
33374         (__ieee754_asinl): Force underflow exception for results with
33375         small absolute value.
33376         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
33377         (__ieee754_asinl): Force underflow exception for results with
33378         small absolute value.
33379         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
33380         (__ieee754_asinl): Force underflow exception for results with
33381         small absolute value.
33382         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
33383         Include <math.h>.
33384         * math/auto-libm-test-in: Do not mark underflow exceptions as
33385         possibly missing for bug 16351.
33386         * math/auto-libm-test-out: Regenerated.
33387
33388         [BZ #18030]
33389         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
33390         of power of 2 down when low part has opposite sign.
33391         * math/libm-test.inc (logb_test_data): Add more tests.
33392
33393 2015-02-26  Andreas Schwab  <schwab@suse.de>
33394
33395         [BZ #18032]
33396         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
33397         over collating symbol inside a bracket expression.  Minor cleanup.
33398         * posix/tst-fnmatch3.c (do_test): Add test case.
33399
33400 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33401
33402         [BZ #18029]
33403         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
33404         Adjust exponent of power of 2 down when low part has opposite
33405         sign.
33406         * math/libm-test.inc (ilogb_test_data): Add more tests.
33407
33408 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
33409
33410         [BZ #15969]
33411         * locale/findlocale.c (_nl_find_locale): Fix constness error in
33412         the previous change.
33413
33414         [BZ #15969]
33415         * locale/findlocale.c (_nl_find_locale): Retry archive search
33416         after alias expansion.
33417
33418 2015-02-25  Roland McGrath  <roland@hack.frob.com>
33419
33420         * iconv/tst-iconv3.c (main): Converted to ...
33421         (do_test): ... this.
33422         (TEST_FUNCTION): New macro.
33423         Include test-skeleton.c.
33424
33425         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
33426         (convert): Make function static.
33427         (test_unalign): Likewise.  Add const to argument pointee types.
33428         (main): Replace with static function do_test.
33429         Print "Succeeded." only if RET is zero.
33430         (TEST_FUNCTION): New macro.
33431         Include test-skeleton.c.
33432
33433         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
33434         returns a null pointer.
33435
33436 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33437
33438         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
33439         to __memcpy_ppc only for static builds.
33440
33441 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
33442
33443         [BZ #18020]
33444         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
33445         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
33446         * math/auto-libm-test-in: Add more tests of asinh.
33447         * math/auto-libm-test-out: Regenerated.
33448         * sysdeps/i386/fpu/libm-test-ulps: Update.
33449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33450
33451 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
33452
33453         [BZ #15850]
33454         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
33455         and ip6_mtuinfo definitions here.
33456         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
33457         in this define too.  Update comment.
33458
33459 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
33460
33461         * elf/sprof.c (load_shobj): Tweak error message to match others.
33462
33463 2015-02-24  Kevin Easton  <kevin@guarana.org>
33464
33465         [BZ #16145] (partial fix)
33466         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
33467         to reduce lock contention.
33468
33469 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
33470
33471         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
33472         (struct timex): Update time comment.
33473         (ADJ_SETOFFSET): Define.
33474
33475 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33476
33477         [BZ #18019]
33478         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
33479         2**56 not 2**28 as threshold for log (2x) formula.
33480         * math/auto-libm-test-in: Add more tests of acosh.
33481         * math/auto-libm-test-out: Regenerated.
33482         * sysdeps/i386/fpu/libm-test-ulps: Update.
33483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33484
33485 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33486
33487         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
33488         parenthesis around the buf assignment.
33489         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
33490
33491 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33492
33493         [BZ #16783]
33494         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
33495         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
33496         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
33497         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33498         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33499         * math/libm-test.inc (scalb_test_data): Add more tests.
33500
33501 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
33502
33503         [BZ #17916]
33504         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
33505         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
33506
33507 2015-02-24  Eric Rannaud  <e@nanocritical.com>
33508
33509         [BZ #17523]
33510         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
33511         * io/bits/fcntl2.h (open): Use it.
33512         (openat): Likewise.
33513         * io/open.c (__libc_open): Likewise.
33514         * io/open64.c (__libc_open64): Likewise.
33515         * io/open64_2.c (__open64_2): Likewise.
33516         * io/open_2.c (__open_2): Likewise.
33517         * io/openat.c (__openat): Likewise.
33518         * io/openat64.c (__openat64): Likewise.
33519         * io/openat64_2.c (__openat64_2): Likewise.
33520         * io/openat_2.c (__openat_2): Likewise.
33521         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
33522         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
33523         * sysdeps/posix/open64.c (__libc_open64): Likewise.
33524         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
33525         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
33526         (__open_nocancel): Likewise.
33527         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
33528         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
33529         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
33530
33531 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
33532
33533         [BZ #14841]
33534         * resolv/gethnamaddr.c (getanswer): Skip logging if
33535         RES_USE_DNSSEC is set.
33536         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
33537
33538 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33539
33540         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
33541
33542 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
33543
33544         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
33545         201304L, for Unicode 7.
33546
33547 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
33548
33549         [BZ #17836]
33550         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
33551         shared library.  Add gmon-start.os otherwise.
33552         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
33553         $(objpfx)gmon-start.os if builing shared library.
33554         ($(objpfx)g$(static-start-installed-name)): Likewise.
33555
33556 2015-02-23  Andreas Schwab  <schwab@suse.de>
33557
33558         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
33559
33560 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
33561
33562         [BZ #17269]
33563         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
33564         (enlarge_userbuf): Likewise.
33565
33566 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
33567
33568         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
33569         * math/atest-exp.c (TIMEOUT): Adjust to 200.
33570         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
33571         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
33572
33573 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
33574
33575         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
33576         expression inside statement expression.
33577
33578 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
33579
33580         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
33581         <sysdeps/nptl/lowlevellock.h> and remove macros and
33582         functions that are now defined there.
33583         (SYS_futex): Remove.
33584         (lll_compare_and_swap): Remove.
33585         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
33586
33587 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
33588
33589         [BZ #17999]
33590         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
33591         instead of scandirat.
33592         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
33593         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
33594         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
33595         __scandirat.
33596         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
33597         (__scandirat): Declare.  Use libc_hidden_proto.
33598         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
33599         Remove variable.
33600         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
33601
33602 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33603
33604         [BZ #15319]
33605         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
33606         (MO): New macro.
33607         (__ieee754_atan2): For results with small absolute value, force
33608         underflow exception and remove excess range and precision from
33609         return value.
33610         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
33611         (MO): New macro.
33612         (__ieee754_atan2f): For results with small absolute value, force
33613         underflow exception and remove excess range and precision from
33614         return value.
33615         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
33616         (MO): New macro.
33617         (__atan): For results with small absolute value, force underflow
33618         exception and remove excess range and precision from return value.
33619         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
33620         (MO): New macro.
33621         (__atanf): For results with small absolute value, force underflow
33622         exception and remove excess range and precision from return value.
33623         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
33624         <math.h>.
33625         (__ieee754_atan2): Force underflow exception for results with
33626         small absolute value.
33627         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
33628         <math_private.h>.
33629         (atan): Force underflow exception for results with small absolute
33630         value.
33631         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
33632         (__atanf): Force underflow exception for results with small
33633         absolute value.
33634         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
33635         <math.h>.
33636         (__atanl): Force underflow exception for results with small
33637         absolute value.
33638         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
33639         (__atanl): Force underflow exception for results with small
33640         absolute value.
33641         * sysdeps/x86/fpu/bits/mathinline.h
33642         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
33643         (__ieee754_atan2): Only define inline for long double.
33644         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
33645         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
33646         * math/auto-libm-test-in: Do not mark underflow exceptions as
33647         possibly missing for bug 15319.  Add more tests of atan2.
33648         * math/auto-libm-test-out: Regenerated.
33649         * math/libm-test.inc (casin_test_data): Do not mark underflow
33650         exceptions as possibly missing for bug 15319.
33651         (casinh_test_data): Likewise.
33652         * sysdeps/i386/fpu/libm-test-ulps: Update.
33653
33654 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
33655
33656         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
33657         * sysdeps/mips/bits/endian.h: Fix comments.
33658
33659 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
33660
33661         [BZ #17996]
33662         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
33663         (hdestroy_r): Likewise.
33664         (hsearch_r): Likewise.
33665         (__hcreate_r): Declare and use libc_hidden_proto.
33666         (__hdestroy_r): Likewise.
33667         (__hsearch_r): Likewise.
33668         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
33669         (hcreate): Call __hcreate_r instead of hcreate_r.
33670         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
33671         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
33672         as weak alias of __hcreate_r.
33673         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
33674         __hdestroy_r.
33675         (hsearch_r): Rename to __hsearch_r and define as weak alias of
33676         __hsearch_r.
33677         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
33678         Remove variable.
33679         (test-xfail-XPG4/search.h/linknamespace): Likewise.
33680         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
33681         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
33682         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
33683
33684 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33685
33686         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
33687         arena_lock into a single arena_get.
33688
33689 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
33690
33691         * dl-reloc.c: Inlucde libc-internal.h.
33692         (_dl_try_allocate_static_tls): Call ALIGN_UP.
33693         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
33694         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
33695         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
33696         (grow_heap): Likewise.
33697         * malloc/malloc.c: Include libc-internal.h.
33698         (do_check_malloc): Call powerof2.
33699         (sysmalloc): Use pagesize. Call ALIGN_UP.
33700         (systrim): Use pagesize.
33701         (mremap_chunk): Use pagesize. Call ALIGN_UP.
33702         (__libc_valloc): Use pagesize.
33703         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
33704
33705 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33706
33707         [BZ #17991]
33708         * include/sys/resource.h (__getrlimit64): Declare.  Use
33709         libc_hidden_proto.
33710         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
33711         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
33712         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
33713         getrlimit64.
33714         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
33715         __getrlimit64.
33716         [!getrlimit64] (getrlimit64): Define as weak alias of
33717         __getrlimit64.  Use libc_hidden_weak.
33718         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
33719         using __getrlimit64 not __new_getrlimit64.
33720         (__GI_getrlimit64): Likewise.
33721         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
33722         Likewise.
33723         (__GI_getrlimit64): Likewise.
33724         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
33725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
33726         (getrlimit): Add __getrlimit64 alias.
33727         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
33728         Likewise.
33729         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
33730         Remove variable.
33731         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
33732         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
33733
33734 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
33735
33736         * libio/fileops.c: Add missing sys/mman.h
33737         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
33738
33739 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
33740
33741         * manual/math.texi (Errors in Math Functions): Clarify goals
33742         regarding inexact and underflow exceptions.
33743
33744 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33745
33746         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
33747         * sysdeps/mips/memset.S: Ditto.
33748
33749 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
33750
33751         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
33752
33753 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
33754
33755         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
33756         (__v1longjmp): Remove versioned symbol.
33757         (__v1siglongjmp): Remove alias and versioned symbol.
33758         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
33759         (__v2siglongjmp): Likewise.
33760
33761 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33762
33763         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
33764
33765 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
33766
33767         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
33768
33769 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33770
33771         [BZ #17987]
33772         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
33773         zero result does not depend on the sign resulting from
33774         subtraction.
33775         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33776         Likewise.
33777         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33778         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33779         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33780         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33781         * math/libm-test.inc (remquo_test_data): Add more tests.
33782
33783 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
33784
33785         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
33786         Problem reported by J William Piggott.
33787
33788 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
33789
33790         [BZ #17978]
33791         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
33792         products 4 * y and 2 * y where those would overflow.
33793         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33794         Likewise.
33795         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33796         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33797         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33798         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33799         * math/libm-test.inc (remquo_test_data): Add more tests.
33800
33801         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
33802
33803         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
33804         [defined _COMPILING_NEWLIB].
33805         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
33806         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
33807
33808         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
33809         [!defined __mips_isa_rev || __mips_isa_rev < 6].
33810
33811 2015-02-16  Torvald Riegel  <triegel@redhat.com>
33812
33813         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
33814         acquired.
33815
33816 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
33817
33818         [BZ #17792]
33819         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
33820         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
33821         HOST_STACK_END_ADDR): Likewise.
33822
33823 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
33824
33825         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
33826         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
33827         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
33828
33829 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33830
33831         * sysdeps/generic/c++-types.data: New file.
33832         * sysdeps/generic/ld.abilist: New file.
33833         * sysdeps/generic/libBrokenLocale.abilist: New file.
33834         * sysdeps/generic/libanl.abilist: New file.
33835         * sysdeps/generic/libc.abilist: New file.
33836         * sysdeps/generic/libcrypt.abilist: New file.
33837         * sysdeps/generic/libdl.abilist: New file.
33838         * sysdeps/generic/libm.abilist: New file.
33839         * sysdeps/generic/libpthread.abilist: New file.
33840         * sysdeps/generic/libresolv.abilist: New file.
33841         * sysdeps/generic/librt.abilist: New file.
33842
33843 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33844
33845         [BZ #17569]
33846         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
33847         Compute absolute value of x as modified by fmod, not original
33848         value of x.
33849         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
33850         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
33851         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
33852         RUN_TEST_ffI_f1_mod8.
33853         (remquo_test_data): Add more tests.
33854
33855 2015-02-13  Roland McGrath  <roland@hack.frob.com>
33856
33857         * sysdeps/init_array/pt-crti.S: New file.
33858
33859 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
33860
33861         [BZ #17967]
33862         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
33863         __builtin_fmaf instead of relying on contraction of a * b + c.
33864
33865 2015-02-12  J William Piggott  <elseifthen@gmx.com>
33866
33867         [BZ #17969]
33868         * manual/time.texi: correct the zoneinfo path in the TZ Variable
33869         node.
33870
33871 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
33872
33873         [BZ #17964]
33874         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
33875         __builtin_fma instead of relying on contraction of a * b + c.
33876
33877 2015-02-12  Roland McGrath  <roland@hack.frob.com>
33878
33879         * Makeconfig (ASFLAGS): Add -Werror=undef.
33880         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
33881         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
33882         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
33883
33884         * Makeconfig (after-link): New variable.
33885         (+link-pie, +link-pie-tests): Use it.
33886         (+link-static, +link-static-tests): Likewise.
33887         (+link, +link-tests): Likewise.
33888         * Makerules (build-module, build-module-asneeded): Likewise.
33889         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
33890         Likewise.
33891         * elf/Makefile ($(objpfx)ld.so): Likewise.
33892
33893 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
33894
33895         [BZ #17965]
33896         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
33897         both struct timeval and struct timespec.
33898
33899 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
33900
33901         [BZ #16560]
33902         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
33903         and redefine.
33904         (__ieee754_exp2l): Do not multiply small fractional parts by
33905         M_LN2l.
33906         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
33907         small argument.
33908         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
33909         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
33910         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
33911         * math/auto-libm-test-in: Add more tests of exp2.
33912         * math/auto-libm-test-out: Regenerated.
33913
33914 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
33915
33916         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
33917         unaligned path.
33918
33919 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33920
33921         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
33922         little endian.
33923
33924 2015-02-12  Andreas Schwab  <schwab@suse.de>
33925
33926         [BZ #15790]
33927         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
33928         Filter out elision flags from value returned in kind.
33929         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
33930         * nptl/tst-pthread-mutexattr.c: New file.
33931
33932 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33933
33934         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
33935         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
33936         into gnu-gnu, and update comment to refer to abi-tags.
33937
33938 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
33939
33940         [BZ #15467]
33941         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
33942         (__sincos): Set errno to EDOM for infinite argument.
33943         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
33944         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
33945         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
33946         (__sincosl): Set errno to EDOM for infinite argument.
33947         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
33948         (__sincosl): Set errno to EDOM for infinite argument.
33949         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
33950         (__sincosl): Set errno to EDOM for infinite argument.
33951         * math/libm-test.inc (sincos_test_data): Test errno setting.
33952
33953 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
33954
33955         * string/strxfrm_l.c: Remove #define STRCMP.
33956         * string/strcoll_l.c: Remove #define STRLEN.
33957         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
33958         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
33959
33960 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
33961
33962         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
33963         * sysdeps/mips/mips32/sfp-machine.h: ... here.
33964         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
33965         * sysdeps/mips/mips64/Makefile: ... here.
33966         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
33967         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
33968         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
33969         * sysdeps/mips/mips64/sfp-machine.h: ... here.
33970         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
33971         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
33972         * sysdeps/mips/mips64/n64/Implies: Likewise.
33973
33974 2015-02-10  Roland McGrath  <roland@hack.frob.com>
33975
33976         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
33977         <sys/time.h>, <string.h>, and <errno.h>.
33978         (dest_offset, dest_address, value, zero): Remove unused variables.
33979         (ldouble): Remove typedef.
33980         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
33981         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
33982         1).  Fix code style.
33983         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
33984         (check): Function removed.
33985         (CHECK): New macro.
33986         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
33987         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
33988         Don't call set_sigaction_FP and remove_sigaction_FP here.
33989         (ldouble_test): Just use 'long double' as macro argument, no need for
33990         the 'ldouble' typedef.
33991         (do_test): Set up SIGFPE handler at start, using plain signal rather
33992         than sigaction.  Fix code style.
33993
33994 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
33995
33996         [BZ #17949]
33997         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
33998         jump label.
33999
34000 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34001
34002         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34003         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34004
34005         * sysdeps/powerpc/configure.ac: Remove file.
34006         * sysdeps/powerpc/configure: Likewise.
34007
34008         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34009         [sysdep_routines]: Remove wordcopy-power6 object.
34010         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34011         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34012         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34013         (__memmove_ppc32): Likewise.
34014         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34015         file.
34016         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34017         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34018         Remove preprocessor.
34019
34020         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34021         [sysdep_routines]: Remove wide chars objects.
34022         [wcsmbs]: New rule for wide char objects.
34023
34024         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34025         Remove wordcopy-power6 obejct.
34026         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34027         Use local call for wordcopy and memcpy symbols.
34028         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34029         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34030         implementation for loader.
34031         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34032
34033         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34034         Remove wordcopy-power7 object.
34035         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34036         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34037         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34038         (_wordcopy_fwd_dest_aligned): Likewise.
34039         (_wordcopy_bwd_aligned): Likewise.
34040         (_wordcopy_bwd_dest_aligned): Likewise.
34041
34042         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34043         Rewrite to call __memmove_ppc instead of include default
34044         implementation.
34045
34046         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34047         Remove wide chars objects.
34048         [wcsmbs]: New rule for wide char objects.
34049
34050 2015-02-09  Andreas Schwab  <schwab@suse.de>
34051
34052         [BZ #17912]
34053         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34054         in terms of __O_DIRECTORY.
34055
34056 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34057
34058         * time/getdate.c: Include <stdbool.h>.
34059         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34060         call PTR_MANGLE.
34061         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34062         PTR_DEMANGLE.
34063
34064 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34065
34066         Add ersatz _Static_assert on older C hosts
34067         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34068         pre-C11 C platform that is not known to support _Static_assert.
34069
34070 2015-02-07  Richard Braun  <rbraun@sceen.net>
34071
34072         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34073         sigstate.
34074         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34075
34076 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34077
34078         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34079         priority against unexistent AIO_PRIO_DELTA_MAX.
34080         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34081         instead of int.
34082         * misc/fchflags.c (fchflags): Likewise.
34083         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34084         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34085         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34086         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34087         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34088         Declare macros.
34089         [__USE_MISC] (chflags, fchflags): Declare functions.
34090         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34091         EINVAL when nfds is greater than FD_SETSIZE.
34092         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34093         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34094         45.
34095         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34096         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34097         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34098         MACH_RCV_TIMED_OUT.
34099         * hurd/hurd/signal.h (_hurd_self_sigstate,
34100         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34101         Explicit casts from void *.
34102         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34103         * abi-tags: Rename gnu-gnu os into gnu.
34104
34105         [BZ #4719]
34106         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34107         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34108         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34109         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34110         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34111         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34112
34113         [BZ #17944]
34114         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34115         duplicates ADDR->sun_path with sockaddr LEN limitation.
34116         * sysdeps/mach/hurd/connect.c: Include <string.h>
34117         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34118         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34119         * sysdeps/mach/hurd/sendto.c: Likewise.
34120         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34121         implementing it by hand.
34122
34123 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34124
34125         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34126         Use sfi_breg on ldr.
34127         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34128         Likewise.
34129
34130         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34131         it's defined.
34132         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34133         Test SIGSETXID only if it's defined.
34134
34135         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34136
34137         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34138         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34139
34140         * nptl/tst-align2.c: Moved ...
34141         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34142         * nptl/Makefile (tests): Remove tst-align2.
34143         * sysdeps/unix/sysv/linux/Makefile
34144         [$(subdir) = nptl] (tests): Add tst-align-clone.
34145         * nptl/tst-getpid1.c: Moved ...
34146         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34147         * nptl/tst-getpid2.c: Moved ...
34148         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34149         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34150         * sysdeps/unix/sysv/linux/Makefile
34151         [$(subdir) = nptl] (tests): ... here.
34152         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34153         * sysdeps/unix/sysv/linux/Makefile
34154         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34155
34156         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34157         Drop trailing \n from perror argument.  Use return rather than exit.
34158
34159         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34160         on [SA_SIGINFO].
34161         * nptl/tst-cancel21.c (do_test): Likewise.
34162         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34163         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34164         [!SA_SIGINFO]: Make it a stub test.
34165
34166         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34167         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34168
34169         * posix/tst-getlogin.c: Move to ...
34170         * login/tst-getlogin.c: ... here.
34171         * posix/Makefile (tests): Move tst-getlogin to ...
34172         * login/Makefile (tests): ... here.
34173
34174         * libio/tst-atime.c (do_test): Move local variables SV and E
34175         inside [ST_NOATIME] conditional.
34176
34177         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34178
34179         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34180
34181         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34182         (wait_code): New function replaces macro.
34183         Call nanosleep rather than syscall.
34184
34185         * nptl/pt-system.c: Rewritten.  Put everything under
34186         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34187         Use IFUNC to redirect when possible.
34188
34189         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34190         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34191         Use IFUNC to redirect when possible.
34192
34193         * nptl/pt-fork.c: Rewritten.  Put everything under
34194         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34195         Use IFUNC to redirect when possible.
34196         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34197
34198         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34199         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34200         unconditionally nowadays.  This included the only reference to
34201         __vdso_clock_gettime that appears outside libc proper.
34202         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34203         Remove version set (containing only __vdso_clock_gettime).
34204         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34205         Add attribute_hidden.
34206         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34207         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34208         libc_hidden_data_def.
34209         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34210         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34211
34212         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34213         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34214         setrpcent, and getrpcport to ...
34215         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34216         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34217         getrpcbynumber_r, and getrpcent_r to ...
34218         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34219         * inet/getrpcbyname.c: Moved ...
34220         * sunrpc/getrpcbyname.c: ... here.
34221         * inet/getrpcbyname_r.c: Moved ...
34222         * sunrpc/getrpcbyname_r.c: ... here.
34223         * inet/getrpcbynumber.c: Moved ...
34224         * sunrpc/getrpcbynumber.c: ... here.
34225         * inet/getrpcbynumber_r.c: Moved ...
34226         * sunrpc/getrpcbynumber_r.c: ... here.
34227         * inet/getrpcent.c: Moved ...
34228         * sunrpc/getrpcent.c: ... here.
34229         * inet/getrpcent_r.c: Moved ...
34230         * sunrpc/getrpcent_r.c: ... here.
34231         * inet/Makefile (routines): Move those to ...
34232         * sunrpc/Makefile (routines): ... here.
34233         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34234         the $(subdirs) list.
34235         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34236         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34237         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34238         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34239
34240         * elf/Makefile (routines): Include $(all-dl-routines), not just
34241         $(dl-routines).
34242         (rtld-routines): Likewise.  Use = rather than :=.
34243         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34244         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34245         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34246         * sysdeps/arm/Makefile: Likewise.
34247         * sysdeps/i386/Makefile: Likewise.
34248         * sysdeps/x86_64/Makefile: Likewise.
34249         * sysdeps/hppa/Makefile [$(subdir) = elf]
34250         (sysdep_routines, sysdep-rtld-routines): Don't add
34251         $(sysdep-dl-routines) to these.
34252         * sysdeps/ia64/Makefile: Likewise.
34253         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34254         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34255         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34256         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34257         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34258         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34259         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34260         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34261         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34262         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34263         these; sysdep-dl-routines alone is enough.
34264
34265 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34266
34267         [BZ #17932]
34268         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34269         where multiplication results in zero and third argument is finite
34270         and nonzero.
34271         * math/auto-libm-test-in: Add more tests of fma.
34272         * math/auto-libm-test-out: Regenerated.
34273
34274         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34275         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34276         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34277         (_FP_CMP_EQ): Likewise.
34278         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34279
34280         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34281         extra argument CHECK_NAN.  Redefine as wrapper around
34282         _FP_EXTEND_CNAN.
34283
34284 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34285
34286         * version.h (RELEASE): Set to "stable".
34287         (VERSION): Set to "2.21"
34288         * include/features.h (__GLIBC_MINOR__): Set to 21.
34289
34290         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34291
34292 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34293             Paul Eggert  <eggert@cs.ucla.edu>
34294
34295         [BZ #16618]
34296         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34297         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34298         size in bytes. Store needed elements in wpmax. Use needed size
34299         in bytes for extend_alloca.
34300
34301 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34302
34303         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34304         binutls 2.25, and texinfo 5.2.
34305         * INSTALL: Regenerate.
34306         * sysdeps/nios2/configure: Regenerate.
34307         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
34308         * manual/contrib.texi: Update.
34309         * po/be.po: Update.
34310         * po/bg.po: Update.
34311         * po/ca.po: Update.
34312         * po/cs.po: Update.
34313         * po/da.po: Update.
34314         * po/de.po: Update.
34315         * po/el.po: Update.
34316         * po/eo.po: Update.
34317         * po/es.po: Update.
34318         * po/fi.po: Update.
34319         * po/fr.po: Update.
34320         * po/gl.po: Update.
34321         * po/hr.po: Update.
34322         * po/hu.po: Update.
34323         * po/ia.po: Update.
34324         * po/id.po: Update.
34325         * po/it.po: Update.
34326         * po/ja.po: Update.
34327         * po/ko.po: Update.
34328         * po/lt.po: Update.
34329         * po/nb.po: Update.
34330         * po/nl.po: Update.
34331         * po/pl.po: Update.
34332         * po/pt_BR.po: Update.
34333         * po/ru.po: Update.
34334         * po/rw.po: Update.
34335         * po/sk.po: Update.
34336         * po/sl.po: Update.
34337         * po/sv.po: Update.
34338         * po/tr.po: Update.
34339         * po/uk.po: Update.
34340         * po/vi.po: Update.
34341         * po/zh_CN.po: Update.
34342         * po/zh_TW.po: Update.
34343
34344         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
34345         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
34346         * sysdeps/hppa/dl-irel.h: Remove #warning.
34347         * sysdeps/hppa/entry.h: Provide prototype for
34348         __canonicalize_funcptr_for_compare and cast argument.
34349         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
34350         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
34351         * sysdeps/hppa/sotruss-lib.c: New file.
34352         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
34353         (atomic_compare_and_exchange_val_acq): Use __typeof__.
34354         (atomic_compare_and_exchange_bool_acq): Likewise.
34355         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
34356         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
34357
34358         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
34359         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
34360         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
34361
34362 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
34363
34364         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
34365         called function in non-PIC case.
34366
34367 2015-01-31  David S. Miller  <davem@davemloft.net>
34368
34369         * sysdeps/sparc/sparc32/bits/atomic.h
34370         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
34371         unlock not after it.
34372         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
34373         volatile register usage warnings from the compiler.
34374
34375         * sysdeps/sparc/nptl/sem_init.c: Delete.
34376         * sysdeps/sparc/nptl/sem_post.c: Delete.
34377         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
34378         * sysdeps/sparc/nptl/sem_wait.c: Delete.
34379         * sysdeps/sparc/sparc32/sem_init.c: New file.
34380         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
34381         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
34382         padding explicitly initialized.
34383         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
34384         padding for in-semaphore spinlock.
34385         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
34386         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
34387         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
34388         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
34389         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
34390         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
34391         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
34392         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
34393         version.
34394         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
34395         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
34396
34397 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
34398
34399         [BZ #17801]
34400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34401         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
34402         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
34403         New.
34404         (index_AVX_Fast_Unaligned_Load): Likewise.
34405         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
34406         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
34407         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
34408         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
34409         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
34410         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
34411         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
34412         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
34413         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
34414
34415 2015-01-29  Andreas Schwab  <schwab@suse.de>
34416
34417         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
34418
34419 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
34420
34421         [BZ #17892]
34422         * nscd/nscd_stat.c (send_stats): Initialize DATA.
34423
34424 2015-01-28  Martin Sebor  <msebor@redhat.com>
34425
34426         * math/README.libm-test: Clarify. Add "How to read the test output."
34427
34428 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
34429
34430         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
34431         Define to 0.
34432
34433 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
34434
34435         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
34436         (__HAVE_64B_ATOMICS): Define to 0.
34437
34438 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34439
34440         [BZ #17885]
34441         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
34442         value to set as new flag.
34443
34444         [BZ #16576]
34445         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
34446         and use _ARCH_PPCSQ instead.
34447         (__ieee754_sqrt): Likewise.
34448         (__ieee754_sqrtf): Likewise.
34449         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
34450         _ARCH_PPCSQ is defined.
34451         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
34452         fsqrt instruction.
34453         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
34454         _ARCH_PPCSQ is defined.
34455         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
34456         fsqrts instruction.
34457         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
34458
34459 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34460
34461         * iconv/loop.c: Suppress array out of bound warning caused by GCC
34462         bug (GCC BZ #64739).
34463
34464 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
34465
34466         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
34467         Mark _retval as used.
34468         (lll_futex_wake_unlock): Likewise.
34469         (lll_futex_timed_wait_requeue_pi): Likewise.
34470
34471         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
34472         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
34473         register variables.
34474
34475         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
34476         libm_hidden_def.
34477
34478         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
34479         (__bswap_64): Mark as __always_inline.
34480
34481 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
34482
34483         [BZ #15378]
34484         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
34485         when none of the search directories exist.
34486
34487 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34488
34489         [BZ #17869]
34490         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
34491         power8 in .machine directive.
34492
34493         [BZ #17868]
34494         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
34495         set dependency from opd value.
34496
34497 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34498
34499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34500         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
34501         architecture.
34502
34503 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34504
34505         [BZ #17870]
34506         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
34507         with uint64_t.
34508         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
34509         (uint64_t) 1.
34510         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
34511         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
34512         Replace 1UL with (uint64_t) 1.
34513         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
34514         int with uint64_t.
34515
34516 2015-01-23  Roland McGrath  <roland@hack.frob.com>
34517
34518         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
34519         (if_freenameindex): Likewise.
34520
34521         * resource/getrlimit64.c: Add missing libc_hidden_def.
34522
34523 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
34524
34525         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
34526         __label__.
34527         (_FP_FMA): Likewise.
34528         (_FP_TO_INT_ROUND): Likewise.
34529         (_FP_FROM_INT): Likewise.
34530
34531 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34532
34533         [BZ #16418]
34534         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34535         Make code racy and cancel safe.
34536
34537 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
34538
34539         * sysdeps/arm/unwind-resume.h: Fix copyright year.
34540         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
34541         attribution.
34542
34543         * pwd/tst-getpw.c: Rewrite.
34544
34545         [BZ #17702]
34546         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
34547         (modules-names): Add moddummy1 and moddummy2.
34548         ($(objpfx)tst-rec-dlopen): Define.
34549         * dlfcn/moddummy1.c: New file.
34550         * dlfcn/moddummy2.c: New file.
34551         * dlfcn/tst-rec-dlopen.c: New file.
34552         * elf/dl-cache.c (_dl_load_cache_lookup):
34553         Return char*. Copy result with alloca/strcpy/strdup.
34554         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
34555         returns char*. Free cached. If not saving realname
34556         free cached.
34557         * elf/dl-open.c (dl_open_worker): Do not assert that
34558         _r_debug->r_state is RT_CONSISTENT.
34559         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
34560         returns char*.
34561
34562 2015-01-21  Torvald Riegel  <triegel@redhat.com>
34563             Carlos O'Donell  <carlos@redhat.com>
34564
34565         [BZ #12674]
34566         * nptl/sem_waitcommon.c: New file.
34567         * nptl/sem_wait.c: Include sem_waitcommon.c.
34568         (__sem_wait_cleanup, do_futex_wait): Remove.
34569         (__new_sem_wait): Adapt.
34570         (__new_sem_trywait): New function.
34571         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
34572         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
34573         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
34574         (sem_timedwait): Adapt.
34575         * nptl/sem_post.c (__new_sem_post): Adapt.
34576         (futex_wake): New function.
34577         (__old_sem_post): Add release MO fence.
34578         * nptl/sem_open.c (sem_open): Adapt.
34579         * nptl/sem_init.c (__new_sem_init): Adapt.
34580         (futex_private_if_supported): New function.
34581         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
34582         (__old_sem_getvalue): Add using previous code.
34583         * sysdeps/nptl/internaltypes.h: Adapt.
34584         * nptl/tst-sem13.c (do_test): Adapt.
34585         * nptl/tst-sem11.c (main): Adapt.
34586         * nptl/sem_trywait.c: Remove.
34587         * nptl/DESIGN-sem.txt: Remove.
34588         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
34589         (gen-as-const-headers): Remove structsem.sym.
34590         * nptl/structsem.sym: Remove.
34591         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
34592         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
34593         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
34594         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
34595         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
34596         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
34597         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
34598         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
34599         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
34600         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
34601         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
34602         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
34603         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
34604         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
34605         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
34606         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
34607         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
34608         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
34609         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
34610         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
34611         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
34612         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
34613
34614 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
34615
34616         * INSTALL: Regenerated.
34617
34618         * po/libc.pot: Regenerated.
34619
34620 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
34621             Sandra Loosemore  <sandra@codesourcery.com>
34622             Andrew Jenner  <andrew@codesourcery.com>
34623             Joseph Myers  <joseph@codesourcery.com>
34624             Nathan Sidwell  <nathan@codesourcery.com>
34625
34626         * NEWS: Mention new Nios II port.
34627         * sysdeps/nios2/Implies: New file.
34628         * sysdeps/nios2/Makefile: New file.
34629         * sysdeps/nios2/Subdirs: New file.
34630         * sysdeps/nios2/Versions: New file.
34631         * sysdeps/nios2/__longjmp.S: New file.
34632         * sysdeps/nios2/abort-instr.h: New file.
34633         * sysdeps/nios2/backtrace.c: New file.
34634         * sysdeps/nios2/bits/endian.h: New file.
34635         * sysdeps/nios2/bits/fenv.h: New file.
34636         * sysdeps/nios2/bits/link.h: New file.
34637         * sysdeps/nios2/bits/setjmp.h: New file.
34638         * sysdeps/nios2/bsd-_setjmp.S: New file.
34639         * sysdeps/nios2/bsd-setjmp.S: New file.
34640         * sysdeps/nios2/configure: New generated file.
34641         * sysdeps/nios2/configure.ac: New file.
34642         * sysdeps/nios2/crti.S: New file.
34643         * sysdeps/nios2/crtn.S: New file.
34644         * sysdeps/nios2/dl-init.c: New file.
34645         * sysdeps/nios2/dl-machine.h: New file.
34646         * sysdeps/nios2/dl-sysdep.h: New file.
34647         * sysdeps/nios2/dl-tls.h: New file.
34648         * sysdeps/nios2/dl-trampoline.S: New file.
34649         * sysdeps/nios2/gccframe.h: New file.
34650         * sysdeps/nios2/gmp-mparam.h: New file.
34651         * sysdeps/nios2/jmpbuf-offsets.h: New file.
34652         * sysdeps/nios2/jmpbuf-unwind.h: New file.
34653         * sysdeps/nios2/ldsodefs.h: New file.
34654         * sysdeps/nios2/libc-tls.c: New file.
34655         * sysdeps/nios2/libm-test-ulps: New file.
34656         * sysdeps/nios2/machine-gmon.h: New file.
34657         * sysdeps/nios2/math-tests.h: New file.
34658         * sysdeps/nios2/math_private.h: New file.
34659         * sysdeps/nios2/memusage.h: New file.
34660         * sysdeps/nios2/nptl/Makefile: New file.
34661         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
34662         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
34663         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
34664         * sysdeps/nios2/nptl/pthreaddef.h: New file.
34665         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
34666         * sysdeps/nios2/nptl/tls.h: New file.
34667         * sysdeps/nios2/preconfigure: New file.
34668         * sysdeps/nios2/s_fma.c: New file.
34669         * sysdeps/nios2/s_fmaf.c: New file.
34670         * sysdeps/nios2/setjmp.S: New file.
34671         * sysdeps/nios2/sfp-machine.h: New file.
34672         * sysdeps/nios2/sotruss-lib.c: New file.
34673         * sysdeps/nios2/stackguard-macros.h: New file.
34674         * sysdeps/nios2/stackinfo.h: New file.
34675         * sysdeps/nios2/start.S: New file.
34676         * sysdeps/nios2/sysdep.h: New file.
34677         * sysdeps/nios2/tls-macros.h: New file.
34678         * sysdeps/nios2/tst-audit.h: New file.
34679         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
34680         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
34681         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
34682         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
34683         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
34684         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
34685         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
34686         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
34687         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
34688         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
34689         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
34690         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
34691         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
34692         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
34693         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
34694         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
34695         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
34696         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
34697         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
34698         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
34699         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
34700         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
34701         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
34702         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
34703         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
34704         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
34705         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
34706         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
34707         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
34708         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
34709         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
34710         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
34711         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
34712         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
34713         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
34714         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
34715         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
34716         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
34717         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
34718         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
34719         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
34720         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
34721         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
34722         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
34723
34724 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34725
34726         [BZ #17844]
34727         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
34728         (getutent): Use weak_alias in non SHARED case
34729         and default_symbol_version in SHARED case.
34730         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
34731         (getutent_r, pututline): Likewise.
34732         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
34733         (getutid): Likewise.
34734         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
34735         (getutid_r): Likewise.
34736         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
34737         (getutline): Likewise.
34738         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
34739         (getutline_r): Likewise.
34740         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
34741         (updwtmp): Likewise.
34742
34743 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34744
34745         [BZ #17848]
34746         * sysdeps/s390/s390-32/memcmp.S
34747         (memcmp_g5): Rename to __memcmp_g5.
34748         * sysdeps/s390/s390-32/memcpy.S
34749         (memcpy_g5): Rename to __memcpy_g5.
34750         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34751         (memcpy_mvcle) Rename to __memcpy_mvcle.
34752         * sysdeps/s390/s390-32/memset.S
34753         (memset_g5): Rename to __memset_g5.
34754         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
34755         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34756         and use prefixed functions.
34757         * sysdeps/s390/s390-32/multiarch/memcmp.S
34758         (memcmp_z196): Rename to __memcmp_z196.
34759         (memcmp_z10): Rename to __memcmp_z10.
34760         (memcmp): Set alias to __memcmp_g5.
34761         (bcmp): Set alias to __memcmp_g5.
34762         * sysdeps/s390/s390-32/multiarch/memcpy.S
34763         (memcpy_z196): Rename to __memcpy_z196.
34764         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34765         (memcpy_z10): Rename to __memcpy_z10.
34766         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34767         (memcpy): Set alias to __memcpy_g5.
34768         * sysdeps/s390/s390-32/multiarch/memset.S
34769         (memset_z196): Rename to __memset_z196.
34770         Jump to __memset_mvcle instead of memset_mvcle.
34771         (memset_z10): Rename to __memset_z10.
34772         Jump to __memset_mvcle instead of memset_mvcle.
34773         (memset_mvcle) Rename to __memset_mvcle.
34774         (memset): Set alias to __memset_g5.
34775         * sysdeps/s390/s390-64/memcmp.S
34776         (memcmp_z900): Rename to __memcmp_z900.
34777         * sysdeps/s390/s390-64/memcpy.S
34778         (memcpy_z900): Rename to __memcpy_z900.
34779         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34780         (memcpy_mvcle) Rename to __memcpy_mvcle.
34781         * sysdeps/s390/s390-64/memset.S
34782         (memset_z900): Rename to __memset_z900.
34783         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
34784         (IFUNC_RESOLVE): Prefix ifunc-resolve function
34785         and use prefixed functions.
34786         * sysdeps/s390/s390-64/multiarch/memcmp.S
34787         (memcmp_z196): Rename to __memcmp_z196.
34788         (memcmp_z10): Rename to __memcmp_z10.
34789         (memcmp): Set alias to __memcmp_z900.
34790         (bcmp): Set alias to __memcmp_z900.
34791         * sysdeps/s390/s390-64/multiarch/memcpy.S
34792         (memcpy_z196): Rename to __memcpy_z196.
34793         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34794         (memcpy_z10): Rename to __memcpy_z10.
34795         Jump to __memcpy_mvcle instead of memcpy_mvcle.
34796         (memcpy): Set alias to __memcpy_z900.
34797         * sysdeps/s390/s390-64/multiarch/memset.S
34798         (memset_z196): Rename to __memset_z196.
34799         Jump to __memset_mvcle instead of memset_mvcle.
34800         (memset_z10): Rename to __memset_z10.
34801         Jump to __memset_mvcle instead of memset_mvcle.
34802         (memset_mvcle) Rename to __memset_mvcle.
34803         (memset): Set alias to __memset_z900.
34804
34805 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
34806
34807         [BZ #17748]
34808         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
34809         __fesetenv instead of fesetenv.
34810
34811 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
34812
34813         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
34814         macro.
34815
34816 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34817
34818         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
34819         regression on LE.
34820
34821         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
34822         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
34823         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34824         strncmp-power8 object.
34825         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34826         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
34827         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
34828         * NEWS: Update.
34829
34830 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34831             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34832
34833         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
34834         trailing byte check.
34835
34836 2015-01-13  David S. Miller  <davem@davemloft.net>
34837
34838         * include/signal.h (__sigreturn): Guard with __USE_MISC.
34839
34840 2015-01-13  Roland McGrath  <roland@hack.frob.com>
34841
34842         * login/logout.c (logout): Use memset rather than bzero.
34843         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
34844         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
34845         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
34846         (_gethtbyaddr): Likewise.
34847         * locale/programs/simple-hash.c (bcopy): Macro removed.
34848
34849 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34850
34851         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34852         Add strcmp-power8 object.
34853         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34854         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
34855         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
34856         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
34857         __strcmp_power8 implementation.
34858         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
34859         * NEWS: Update.
34860
34861         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34862         Add strncpy-power8 and stpncpy-power8 objects.
34863         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34864         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
34865         implementations.
34866         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
34867         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
34868         __stpncpy_power8 implementation.
34869         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
34870         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
34871         __strncpy_power8 implementation.
34872         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
34873         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
34874         * NEWS: Update.
34875
34876         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
34877         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
34878         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
34879
34880         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34881         strncat-power8 object.
34882         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
34883         __strcat_power8 implementation.
34884         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34885         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
34886         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
34887         optimized strcat for power8.
34888
34889         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
34890         strcpy-power8 and stpcpy-power8 objects.
34891         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34892         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
34893         implementations.
34894         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
34895         multiarch stpcpy implementation for POWER8.
34896         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
34897         multiarch strcpy implementation for POWER8.
34898         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
34899         __strcpy_power8 function.
34900         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
34901         stpcpy for POWER8.
34902         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
34903         strcpy for POWER8.
34904         * NEWS: Update.
34905
34906 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
34907
34908         [BZ #16009]
34909         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
34910         weights and rules. Use do_xfrm_cached if data fits in cache,
34911         do_xfrm otherwise.  Moved former main loop to...
34912         * (do_xfrm_cached): New function.
34913         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
34914         find_idx, find_position and stack_push.
34915         * (find_idx): New function.
34916         * (find_position): Likewise.
34917         * localedata/sort-test.sh: Added test run for do_xfrm.
34918         * localedata/xfrm-test.c (main): Added command line option
34919         -nocache to run the test with strings that are too large for
34920         the STRXFRM cache.
34921
34922 2015-01-13  Torvald Riegel  <triegel@redhat.com>
34923
34924         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
34925         variable to lll_futex_wake call, not the value itself.
34926
34927 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
34928
34929         [BZ #17803]
34930         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
34931         twom64.  Adjust value to 0x1p-64L.
34932         (__scalblnl): Only return standard underflowing result for K <=
34933         -64 not K <= -63; adjust exponent for underflowing result by 64
34934         not 63.
34935         * math/libm-test.inc (scalbn_test_data): Add more tests.
34936         (scalbln_test_data): Likewise.
34937
34938         [BZ #17834]
34939         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
34940         0x1p63L.
34941         (__scalblnl): Get new exponent of adjusted subnormal value from ES
34942         not HX.
34943         * math/libm-test.inc (scalbn_test_data): Add more tests.
34944         (scalbln_test_data): Likewise.
34945
34946 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34947             Stefani Seibold  <stefani@seibold.net>
34948
34949         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
34950         (sysdep_routines): Add dl-vdso here, ...
34951         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
34952         (sysdep_routines): ... not here.
34953         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
34954         fallback when vDSO is not presented.
34955         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
34956         Define with libc_hidden_proto/libc_hidden_data_def definitions.
34957         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
34958         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
34959         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
34960         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
34961         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
34962         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
34963         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
34964         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
34965         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
34966         fallback configurable symbol when vDSO is not available.
34967         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
34968         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
34969         be able to redefine fallback symbol when vDSO is not available.
34970         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
34971         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
34972
34973 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34974
34975         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
34976         (TLS_INIT_TP): Add tm_capable initialization.
34977         (TLS_DEFINE_INIT_TP): Likewise.
34978         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
34979         TCB.
34980         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
34981         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
34982         calculation.
34983         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
34984         transactoion is lock elision is built and TCB tm_capable is set.
34985         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
34986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
34987         (INTERNAL_SYSCALL_NCS): Likewise.
34988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
34989         (INTERNAL_SYSCALL_NCS): Likewise.
34990         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
34991
34992         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
34993         for powerpc.
34994         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34995         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
34996         and remove it for 32 bits case.
34997         [pthread_rwlock_t] (__rwelision): New field for lock elision.
34998         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
34999         initialization.
35000         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35001         Disable lock elision with rdlocks if elision is not available.
35002
35003         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35004         (sysdep_routines): Add lock elision objects.
35005         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35006         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35007         [pthread_mutex_t] (__elision): Add field.
35008         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35009         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35010         elision definitions for powerpc.
35011         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35012         implementation of lock elision for powerpc.
35013         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35014         implementation of timed lock elision for powerpc.
35015         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35016         implementation of trylock with lock elision for powerpc.
35017         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35018         implementaion of unlock for lock elision for powerpc.
35019         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35020         automatic enable lock elision for mutexes.
35021         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35022         transaction execution definitions for powerpc.
35023         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35024         definitions.
35025         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35026         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35027         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35028         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35029         * NEWS: Update.
35030
35031 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35032
35033         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35034         for #include of <shm-directory.h>.
35035
35036 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35037
35038         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35039         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35040
35041 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35042
35043         [BZ #17791]
35044         * NEWS: Mention bug fix.
35045         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35046         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35047         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35048
35049 2015-01-09  Torvald Riegel <triegel@redhat.com>
35050
35051         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35052
35053 2015-01-09  Torvald Riegel <triegel@redhat.com>
35054
35055         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35056
35057 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35058
35059         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35060         pointer and cast to uintptr_t.
35061
35062 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35063
35064         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35065         removed.
35066         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35067
35068 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35069
35070         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35071         of 0.
35072
35073 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35074
35075         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35076         <nptl/pthreadP.h> instead.
35077         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35078
35079         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35080         already defined.
35081         [__SIGRTMIN] (init): Function removed.
35082         [__SIGRTMIN] (initialized): Variable removed.
35083         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35084         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35085         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35086         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35087         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35088         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35089         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35090         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35091         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35092         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35093         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35094         * sysdeps/nptl/allocrtsig.c: New file.
35095         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35096         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35097         * sysdeps/generic/testrtsig.h: File removed.
35098
35099         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35100         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35101
35102         * nptl/nptl-init.c (pthread_functions): Conditionalize
35103         .ptr__nptl_setxid initialization on [SIGSETXID].
35104
35105         * sysdeps/nptl/sys/procfs.h: New file.
35106         * nptl_db/Makefile (headers): Add it.
35107         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35108
35109         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35110         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35111         * nptl/pthread_attr_setaffinity.c: Include it.
35112         * nptl/pthread_setattr_default_np.c: Likewise.
35113         * nptl/check-cpuset.h: New file.
35114
35115 2015-01-08  Richard Henderson  <rth@redhat.com>
35116
35117         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35118         (CFLAGS-tst-execstack-prog.c): Likewise.
35119         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35120
35121 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35122             Sandra Loosemore  <sandra@codesourcery.com>
35123             Andrew Jenner  <andrew@codesourcery.com>
35124             Joseph Myers  <joseph@codesourcery.com>
35125             Nathan Sidwell  <nathan@codesourcery.com>
35126
35127         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35128         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35129         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35130         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35131         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35132         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35133         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35134         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35135         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35136         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35137         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35138         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35139         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35140         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35141         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35142         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35143         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35144
35145 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35146
35147         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35148         timespec struct member in syscall macro.
35149         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35150         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35151         first timeval struct member in syscall macro.
35152         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35153
35154 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35155
35156         [BZ #17748]
35157         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35158         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35159         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35160         __feupdateenv and define as weak alias of __feupdateenv.  Use
35161         libm_hidden_weak.
35162         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35163         libm_hidden_def.
35164         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35165         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35166         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35167         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35168         libm_hidden_def.
35169         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35170         __feupdateenv and define as weak alias of __feupdateenv.  Use
35171         libm_hidden_weak.
35172         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35173         libm_hidden_def.
35174         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35175         __feupdateenv and define as weak alias of __feupdateenv.  Use
35176         libm_hidden_weak.
35177         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35178         libm_hidden_def.
35179         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35180         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35181         (__feupdateenv): Likewise.
35182         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35183         __feupdateenv and define as weak alias of __feupdateenv.  Use
35184         libm_hidden_weak.
35185         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35186         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35187         libm_hidden_def.
35188         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35189         function.
35190         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35191         libm_hidden_def.
35192         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35193         __feupdateenv instead of feupdateenv.
35194         (default_libc_feupdateenv_test): Likewise.
35195         (libc_feresetround_ctx): Likewise.
35196
35197 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35198
35199         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35200         prototype.
35201
35202 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35203
35204         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35205         COLL_SYM in a couple of places to avoid uninitialized variable
35206         wanings on tilegx gcc 4.8.2.
35207
35208 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35209
35210         * sysdeps/aarch64/strcpy.S: New file.
35211         * sysdeps/aarch64/stpcpy.S: New file.
35212         * NEWS: Updated.
35213
35214 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35215
35216         * sysdeps/aarch64/strrchr.S: New file.
35217         * NEWS: Updated.
35218
35219 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35220
35221         [BZ #17658]
35222         * stdlib/setenv.c: Fix memory leak when setting large,
35223         duplicate string.
35224
35225 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35226
35227         [BZ #17273]
35228         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35229         and tabs from buffer before parsing fstab entry.
35230         * misc/tst-mntent.c (main): Add test for mount entry with
35231         trailing spaces and tabs.
35232
35233 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35234
35235         [BZ #17748]
35236         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35237         * math/fesetround.c (fesetround): Rename to __fesetround and
35238         define as weak alias of __fesetround.  Use libm_hidden_weak.
35239         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35240         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35241         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35242         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35243         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35244         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35245         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35246         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35247         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35248         __fesetround_inline.
35249         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35250         __fesetround_inline instead of __fesetround.
35251         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35252         __fesetround and define as weak alias of __fesetround.  Use
35253         libm_hidden_weak.  Call __fesetround_inline instead of
35254         __fesetround.
35255         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35256         __fesetround and define as weak alias of __fesetround.  Use
35257         libm_hidden_weak.
35258         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35259         Likewise.
35260         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35261         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35262         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35263         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35264         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35265         __fesetround and define as weak alias of __fesetround.  Use
35266         libm_hidden_weak.
35267         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35268         __fesetround instead of fesetround.
35269         (default_libc_feholdexcept_setround): Likewise.
35270         (libc_feholdsetround_ctx): Likewise.
35271         (libc_feholdsetround_noex_ctx): Likewise.
35272
35273         [BZ #17748]
35274         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35275         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35276         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35277         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35278         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35279         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35280         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35281         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35282         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35283         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35284         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35285         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35286         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35287         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35288         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35289         libm_hidden_def.
35290         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35291         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35292         Likewise.
35293         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35294         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35295         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35296         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35297         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35298         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35299         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35300         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35301         __fesetenv instead of fesetenv.
35302         (libc_feresetround_noex_ctx): Likewise.
35303         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35304         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35305         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35306         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35307         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35308         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35309         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35310         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35311         (__feupdateenv): Likewise.
35312         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35313         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35314         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35315         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
35316
35317 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35318
35319         [BZ #17806]
35320         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
35321         addresses have been freed.
35322
35323 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35324
35325         * resolv/res_init.c (__res_vinit): Improve comments about nserv
35326         and nservall.
35327
35328 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
35329
35330         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
35331         Clean up check_pf allocation pattern. addresses
35332
35333 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35334
35335         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
35336         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
35337         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
35338         * nptl/pthread_exit.c (__pthread_exit): Likewise.
35339         * nptl/pthread_join.c (pthread_join): Likewise.
35340         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
35341         * sysdeps/posix/waitid.c (__waitid): Likewise.
35342         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
35343         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
35344         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
35345         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
35346         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
35347         Likewise.
35348         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
35349         (__libc_pread64): Likewise.
35350         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
35351         (__libc_pwrite): Likewise.
35352         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
35353         (__libc_pwrite64): Likewsie.
35354         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
35355         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
35356         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
35357         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
35358         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
35359         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
35360         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
35361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
35362         Likewise.
35363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
35364         (__libc_pread64): Likewise.
35365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
35366         Likewise.
35367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
35368         (__libc_pwrite64): Likewise.
35369         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
35370         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
35371         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
35372         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
35373         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
35374         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
35375         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
35376         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
35377         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
35378         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
35379         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
35380         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
35381         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
35382         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
35383         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
35384         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
35385         Likewise.
35386
35387 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
35388
35389         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
35390         (CFLAGS-test-double.c): Likewise.
35391         (CFLAGS-test-ldouble.c): Likewise.
35392         (CPPFLAGS-test-ifloat.c): Likewise.
35393         (CPPFLAGS-test-idouble.c): Likewise.
35394         (CPPFLAGS-test-ildoubl.c): Likewise.
35395         (CFLAGS-test-test-fenv.c): Remove variable.
35396         (CFLAGS-test-misc.c): Likewise.
35397
35398 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
35399
35400         [BZ #17797]
35401         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
35402         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
35403         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
35404         CLOCKS_PER_SEC == 1000000.
35405         * time/clocktest.c (main): Replace %ld with %jd and cast to
35406         intmax_t.
35407
35408 2015-01-05  Roland McGrath  <roland@hack.frob.com>
35409
35410         * sysdeps/generic/unwind-resume.h: New file.
35411         * sysdeps/gnu/unwind-resume.c: Include it.
35412         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
35413         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
35414         argument list.
35415         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
35416         global rather than static.
35417         (_Unwind_Resume): Update user.
35418         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
35419         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
35420         rather than static.  Add __attribute__ ((cold)).
35421         (_Unwind_Resume, __gcc_personality_v0): Update callers.
35422         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
35423         * sysdeps/arm/arm-unwind-resume.S: New file.
35424         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
35425         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
35426         * sysdeps/arm/Makefile [$(subdir) = csu]
35427         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
35428         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
35429         Add rt-arm-unwind-resume.
35430         [$(subdir) = nptl]
35431         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35432         Add pt-arm-unwind-resume.
35433         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
35434         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
35435
35436 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35437
35438         [BZ #17748]
35439         * include/fenv.h (__feholdexcept): Declare.  Use
35440         libm_hidden_proto.
35441         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
35442         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
35443         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35444         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
35445         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
35446         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
35447         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
35448         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35449         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
35450         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
35451         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35452         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
35453         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
35454         (feholdexcept): Likewise.
35455         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
35456         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
35457         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35458         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35459         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
35460         __feholdexcept instead of feholdexcept.
35461         (default_libc_feholdexcept_setround): Likewise.
35462
35463 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35464
35465         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
35466         to avoid using stl/str to align destination.
35467
35468 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35469
35470         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
35471
35472 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35473
35474         [BZ #17796]
35475         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
35476         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
35477         Define as weak alias not strong alias.
35478
35479 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35480
35481         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
35482         bltzal with addiupc.
35483         (RTLD_START): Ditto.
35484
35485 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
35486
35487         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
35488         for __vdso_* functions in declarations.
35489         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
35490         definitions.
35491         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
35492         INTERNAL_VSYSCALL): Use struct return types to check for error.
35493
35494         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
35495         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
35496         function with cast from llround().
35497         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
35498         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
35499         Define.
35500
35501 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35502
35503         [BZ #17793]
35504         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
35505         Define as weak alias not strong alias.
35506
35507         [BZ #17635]
35508         * ctype/ctype-c99.c: New file.  isblank implementation moved from
35509         ...
35510         * ctype/ctype-extn.c: ... here.
35511         (__isblank_l): Move to ...
35512         * ctype/ctype-c99_l.c: ... here.  New file.
35513         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
35514         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
35515         Remove variable.
35516         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
35517         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
35518         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
35519         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
35520         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
35521
35522         [BZ #17777]
35523         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
35524         (posix_fadvise64): Define as weak alias not strong alias.
35525         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
35526         (posix_fallocate64): Likewise.
35527         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
35528         Remove variable.
35529         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
35530         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
35531         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
35532         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
35533         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
35534
35535 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
35536
35537         [BZ #16191]
35538         * NEWS: Mention bug fix.
35539         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
35540         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
35541         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
35542         (HOST_STACK_END_ADDR): Likewise.
35543
35544 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35545
35546         [BZ #17748]
35547         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
35548         * math/fegetround.c (fegetround): Rename to __fegetround and
35549         define as weak alias of __fegetround.  Use libm_hidden_weak.
35550         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
35551         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
35552         * sysdeps/arm/fegetround.c (fegetround): Likewise.
35553         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
35554         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
35555         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
35556         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
35557         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
35558         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
35559         Undefine after rather than before function definition; use
35560         parentheses around function name in definition.
35561         (__fegetround): Also undefine macro after function definition.
35562         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
35563         __fegetround and define as weak alias of __fegetround.  Use
35564         libm_hidden_weak.  Do not undefine as macro.
35565         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
35566         Likewise.
35567         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
35568         __fegetround and define as weak alias of __fegetround.  Use
35569         libm_hidden_weak.
35570         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
35571         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
35572         * sysdeps/tile/math_private.h (__fegetround): New inline function.
35573         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
35574         __fegetround and define as weak alias of __fegetround.  Use
35575         libm_hidden_weak.
35576         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
35577         __fegetround instead of fegetround.
35578
35579         [BZ #17782]
35580         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
35581         Condition macro definition on [__USE_MISC].
35582
35583         [BZ #17781]
35584         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
35585         (struct sigaction): Change type of sa_flags field to int.
35586
35587         [BZ #17780]
35588         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
35589         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
35590         __glibc_reserved0.
35591
35592         * nptl/version.c (banner): Use single year in copyright notice.
35593
35594         * NEWS: Update copyright dates.
35595         * catgets/gencat.c (print_version): Likewise.
35596         * csu/version.c (banner): Likewise.
35597         * debug/catchsegv.sh: Likewise.
35598         * debug/pcprofiledump.c (print_version): Likewise.
35599         * debug/xtrace.sh (do_version): Likewise.
35600         * elf/ldconfig.c (print_version): Likewise.
35601         * elf/ldd.bash.in: Likewise.
35602         * elf/pldd.c (print_version): Likewise.
35603         * elf/sotruss.sh: Likewise.
35604         * elf/sprof.c (print_version): Likewise.
35605         * iconv/iconv_prog.c (print_version): Likewise.
35606         * iconv/iconvconfig.c (print_version): Likewise.
35607         * locale/programs/locale.c (print_version): Likewise.
35608         * locale/programs/localedef.c (print_version): Likewise.
35609         * login/programs/pt_chown.c (print_version): Likewise.
35610         * malloc/memusage.sh (do_version): Likewise.
35611         * malloc/memusagestat.c (print_version): Likewise.
35612         * malloc/mtrace.pl: Likewise.
35613         * manual/libc.texinfo: Likewise.
35614         * nptl/version.c (banner): Likewise.
35615         * nscd/nscd.c (print_version): Likewise.
35616         * nss/getent.c (print_version): Likewise.
35617         * nss/makedb.c (print_version): Likewise.
35618         * posix/getconf.c (main): Likewise.
35619         * scripts/test-installation.pl: Likewise.
35620         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
35621
35622 2015-01-02  Will Newton  <will.newton@linaro.org>
35623
35624         * sysdeps/arm/armv7/configure: Removed.
35625         * sysdeps/arm/armv7/configure.ac: Likewise.
35626
35627 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
35628
35629         * All files with FSF copyright notices: Update copyright dates
35630         using scripts/update-copyrights.
35631         * intl/plural.c: Regenerated.
35632         * locale/programs/charmap-kw.h: Likewise.
35633         * locale/programs/locfile-kw.h: Likewise.
35634
35635 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
35636
35637         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
35638
35639 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35640
35641         [BZ #17748]
35642         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
35643         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
35644         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35645         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35646         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35647         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
35648         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35649         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
35650         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35651         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35652         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35653         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35654         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35655         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35656         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
35657         libm_hidden_def.
35658         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
35659         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
35660         Likewise.
35661         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
35662         define as weak alias of __fegetenv.  Use libm_hidden_weak.
35663         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
35664         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
35665         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
35666         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
35667         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
35668         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
35669         __fegetenv instead of fegetenv.
35670         (libc_feholdsetround_noex_ctx): Likewise.
35671
35672 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
35673
35674         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
35675         (Elf_MIPS_ABIFlags_v0): New structure.
35676         (EF_MIPS_FP64): Define.
35677         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
35678         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
35679         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
35680         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
35681         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
35682         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
35683         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
35684         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
35685         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
35686         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
35687         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
35688         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
35689         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
35690         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
35691         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
35692         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
35693         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
35694         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
35695         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
35696         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
35697         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
35698         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
35699         field.
35700         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
35701         EF_MIPS_FP64.
35702         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
35703         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
35704         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
35705         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
35706         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
35707         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
35708         * sysdeps/mips/tst-abi-interlink.c: Likewise.
35709         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
35710         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
35711         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
35712         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
35713         record the current FP ABI extension.
35714         (mips-mode-switch): Define to show if kernel headers support mode
35715         switching.
35716         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
35717         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
35718         supported SYSV ABI version to 3.
35719         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
35720         feature.
35721
35722 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35723             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35724
35725         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
35726         path.
35727         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
35728
35729 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
35730
35731         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
35732         __fegetround and redefine to call __fegetround.  Remove condition
35733         on [!__NO_MATH_INLINES].
35734         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
35735         function.
35736         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
35737         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
35738         Remove macro.
35739         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
35740         instead of <fenv_libc.h>.
35741         (__llrintl): Call fegetround instead of __fegetround.
35742         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
35743         instead of <fenv_libc.h>.
35744         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
35745         (__lrintl): Call fegetround instead of __fegetround.
35746         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
35747         instead of <fenv_libc.h>.
35748         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
35749         (__rintl): Call fegetround instead of __fegetround.
35750
35751 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35752
35753         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
35754         arrays.
35755
35756 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35757
35758         [BZ #17775]
35759         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
35760         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
35761         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
35762
35763 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35764
35765         * sysdeps/i386/tls-macros.h: Include <features.h>.
35766         (TLS_LE): Use non-PIC version for GCC >= 5.0.
35767         (TLS_IE): Likewise.
35768         (TLS_LD): Likewise.
35769         (TLS_GD): Likewise.
35770         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
35771         define for GCC >= 5.0.
35772
35773 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
35774
35775         * math/test-fenv.c (test_single_exception, set_single_exc,
35776         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
35777         feexcp_mask_test, feenable_test, fe_single_test): Add
35778         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
35779         case where they are not used.
35780         * math/libm-test.inc: Likewise.
35781         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
35782         unused in the absence of FP rounding/exception support.
35783         * stdio-common/tst-printf-round.c: Likewise.
35784         * stdlib/tst-strtod-round.c: Likewise.
35785         * stdlib/tst-strtod-underflow.c: Likewise.
35786
35787 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
35788
35789         [BZ #17723]
35790         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
35791         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
35792         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35793         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35794         libm_hidden_weak.
35795         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
35796         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35797         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
35798         libm_hidden_def.
35799         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35800         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35801         libm_hidden_weak.
35802         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
35803         Likewise.
35804         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
35805         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35806         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35807         libm_hidden_weak.
35808         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35809         libm_hidden_def.
35810         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
35811         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
35812         (__feraiseexcept): Likewise.
35813         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
35814         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
35815         libm_hidden_weak.
35816         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
35817         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
35818         libm_hidden_def.
35819         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
35820         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
35821         Use libm_hidden_def.
35822         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
35823         libm_hidden_def.
35824         (feraiseexcept): Define as weak not strong alias.  Use
35825         libm_hidden_weak.
35826         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
35827         New inline function.  Factored out of ...
35828         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
35829         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
35830         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
35831         feraiseexcept.
35832         * math/w_acos.c (__acos): Likewise.
35833         * math/w_asin.c (__asin): Likewise.
35834         * math/w_ilogb.c (__ilogb): Likewise.
35835         * math/w_j0.c (y0): Likewise.
35836         * math/w_j1.c (y1): Likewise.
35837         * math/w_jn.c (yn): Likewise.
35838         * math/w_log.c (__log): Likewise.
35839         * math/w_log10.c (__log10): Likewise.
35840         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
35841         * sysdeps/aarch64/fpu/math_private.h
35842         (libc_feupdateenv_test_aarch64): Likewise.
35843         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35844         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
35845         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
35846         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35847         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35848         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35849         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
35850         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35851         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35852         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35853
35854 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
35855
35856         [BZ #17732]
35857         * io/test-utime.c (main): Replace %ld with %jd and cast to
35858         intmax_t.
35859         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
35860         * nptl/tst-mutex5.c: Include <stdint.h>.
35861         (do_test): Replace %ld with %jd and cast to intmax_t.
35862         * posix/tst-regex.c (run_test): Likewise.
35863         (run_test_backwards): Likewise.
35864         * rt/tst-clock.c: Include <stdint.h>.
35865         (clock_test): Replace %ld with %jd and cast to intmax_t.
35866         * rt/tst-cpuclock1.c: Include <stdint.h>.
35867         (do_test): Replace %lu with %ju and cast to uintmax_t.
35868         * rt/tst-cpuclock2.c: Include <stdint.h>.
35869         (do_test): Replace %lu with %ju and cast to uintmax_t.
35870         * rt/tst-mqueue1.c: Include <stdint.h>.
35871         (check_attrs): Replace %ld with %jd and cast to intmax_t.
35872         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
35873         intmax_t.
35874         * rt/tst-mqueue4.c (do_test): Likewise.
35875         * rt/tst-timer4.c: Include <stdint.h>.
35876         (check_ts): Replace %ld with %jd and cast to intmax_t.
35877         (do_test): Likewise.
35878         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
35879         and cast to intmax_t.
35880         * sysdeps/pthread/tst-timer.c (main): Likewise.
35881         * time/clocktest.c (main): Likewise.
35882         * time/tst-posixtz.c (do_test): Likewise.
35883         * timezone/tst-timezone.c (main): Likewise.
35884
35885 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
35886             H.J. Lu  <hongjiu.lu@intel.com>
35887
35888         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
35889         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35890         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
35891         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
35892         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
35893         version if bit_Fast_Unaligned_Load is set.
35894         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
35895         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
35896         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
35897         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
35898         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
35899         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
35900         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35901         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
35902         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
35903         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
35904         to 4.
35905         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
35906         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
35907         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
35908         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
35909
35910 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
35911
35912         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
35913         instead of #if to avoid a Wundef warning.
35914         * stdlib/tst-limits.c (do_test): Likewise.
35915
35916         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
35917         parallel other exception macros.
35918         (fegetenv): Convert from macro to extern inline so that it applies
35919         retroactively to inline functions already seen by the compiler.
35920         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
35921
35922         * posix/Makefile (before-compile): Use $(objpfx) for
35923         posix-conf-vars-def.h.
35924
35925 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
35926
35927         * posix/getconf.c (main): Use size_t for type of I.
35928         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
35929         NSPEC.
35930
35931         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
35932         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
35933         * posix/posix-envs.def: Likewise.
35934         * sysdeps/posix/sysconf.c: Likewise.
35935         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
35936         (specs): Remove array.
35937         * scripts/gen-posix-conf-vars.awk: Support generation of specs
35938         array.
35939
35940         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
35941         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
35942         (__sysconf): Use CONF_IS_* macros.
35943
35944         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
35945         ($(objpfx)posix-conf-vars-def.h): New target.
35946         * posix/posix-conf-vars.list: New file.
35947         * posix/posix-conf-vars.h: New file.
35948         * posix/confstr.c: Include posix-conf-vars.h.
35949         (confstr): Use CONF_IS_* macros.
35950         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
35951         CONF_IS_* macros.
35952         * scripts/gen-posix-conf-vars.awk: New file.
35953
35954 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
35955
35956         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
35957         fegetround): Add no-op macros to avoid linknamespace issues.
35958
35959         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
35960         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
35961
35962         * sysdeps/unix/sysv/linux/tile/sysdep.h
35963         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
35964         assembly-specific section to avoid a redefinition warning.
35965
35966         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
35967         long before casting to pointer to avoid a cast warning.
35968
35969 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
35970
35971         * sysdeps/tile/tilegx/Implies: New file.
35972
35973 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
35974
35975         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
35976
35977 2014-12-23  Florian Weimer  <fweimer@redhat.com>
35978
35979         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
35980
35981 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
35982
35983         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
35984         not define.
35985         * sysdeps/unix/sysv/linux/utimes.c: Do not include
35986         <kernel-features.h>.
35987         (__utimes) [__NR_utimes]: Make code unconditional.
35988         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
35989         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35990         (__ASSUME_UTIMES): Do not undefine.
35991         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35992         (__ASSUME_UTIMES): Likewise.
35993         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
35994         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
35995         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
35996         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
35997
35998 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
35999
36000         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36001
36002 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36003
36004         [BZ #17747]
36005         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36006         alias to weak alias for j0l, y0l.
36007         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36008         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36009
36010         [BZ #17746]
36011         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36012         conversion.
36013
36014 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36015
36016         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36017         to zero if not already defined.
36018
36019 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36020
36021         [BZ #17724]
36022         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36023         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36024         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36025         (char *) casts added.
36026         * sysdeps/ieee754/k_standardf.c: New file.
36027         * sysdeps/ieee754/k_standardl.c: Likewise.
36028         * math/Makefile (libm-support): Remove k_standard.
36029         (libm-calls): Add k_standard.
36030
36031 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36032
36033         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36034         Optimize to avoid an unnecessary FPCR read.
36035
36036 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36037
36038         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36039         Optimize to reduce FPCR/FPSR accesses.
36040
36041 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36042
36043         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36044         Call libc_fetestexcept_aarch64.
36045
36046 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36047
36048         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36049         Call libc_fesetround_aarch64.
36050
36051 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36052
36053         [BZ #17733]
36054         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36055         (__bind): Do not define as weak alias.
36056         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36057         define.
36058         (__getsockname): Do not define as weak alias.
36059
36060 2014-12-22  Will Newton  <will.newton@linaro.org>
36061
36062         * manual/install.texi: Document that we require bison 2.7
36063         or above.
36064         * INSTALL: Regenerate.
36065         * configure.ac: Use AC_CHECK_PROG_VER instead of
36066         AC_PATH_PROG when checking for bison and check for
36067         version 2.7 or above.
36068         * configure: Regenerate.
36069
36070 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36071
36072         [BZ #17745]
36073         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36074         * sysdeps/tile/ffsll.c (ffsll): To here.
36075
36076         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36077
36078 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36079
36080         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36081         if not defined.
36082         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36083         definition.
36084         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36085         hidden ___tls_get_addr.
36086         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36087         hidden __tls_get_addr.
36088         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36089         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36090         Likewise.
36091
36092 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36093
36094         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36095         _dl_init call.
36096
36097 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36098
36099         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36100         from "call _dl_init@PLT".
36101         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36102
36103 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36104
36105         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36106         guarantees.
36107
36108 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36109
36110         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36111
36112 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36113
36114         [BZ #17744]
36115         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36116         strnlen.
36117
36118 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36119
36120         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36121         of multu on MIPSr6.
36122         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36123         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36124         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36125         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36126         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36127
36128 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36129
36130         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36131         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36132         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36133         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36134         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36135         mips32r6/mips64r6.
36136         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36137
36138 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36139
36140         * string/strncat.c (STRNCAT): Simplify implementation.
36141
36142 2014-12-19  David S. Miller  <davem@davemloft.net>
36143
36144         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36145         access the quad as both a long double and as a series of 4 words.
36146
36147         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36148         link_map->l_info array access.
36149
36150 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36151
36152         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36153
36154         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36155         * math/atest-exp2.c (TIMEOUT): Likewise.
36156         * math/atest-sincos.c (TIMEOUT): Likewise.
36157
36158 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36159
36160         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36161         -Wno-error with -fno-builtin-lround.
36162
36163 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36164
36165         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36166         Contains futex constants and functions moved over from ...
36167         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36168         <lowlevellock-futex.h>.
36169         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36170         (lll_timedwait_tid): Add comments and parentheses around macro
36171         arguments.
36172
36173 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36174
36175         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36176         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36177         (__lll_private_flag): Remove.
36178         (lll_futex_wait): Likewise.
36179         (lll_futex_timed_wait): Likewise.
36180         (lll_futex_wake): Likewise.
36181         (lll_futex_requeue): Likewise.
36182         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36183         (__lll_timedwait_tid): Spell out argument names.
36184         (lll_timedwait_tid): Add comments and parentheses around macro
36185         arguments.
36186         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36187         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36188
36189 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36190
36191         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36192         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36193         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36194         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36195         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36196         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36197         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36198         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36199         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36200         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36201         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36202         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36203         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36204         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36205         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36206         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36207         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36208         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36209         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36210
36211 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36212
36213         * sysdeps/x86_64/x32/Makefile: New file.
36214
36215 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36216
36217         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36218         1L with (mp_limb_t) 1.
36219
36220 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36221
36222         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36223         * nptl/libc_pthread_init.c: ... here.
36224         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36225         * nptl/register-atfork.c: ... here.
36226
36227         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36228         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36229         Use assert_perror to check its return value.
36230         (__gai_create_helper_thread): Likewise.
36231
36232         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36233
36234         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36235
36236 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36237
36238         [BZ #17725]
36239         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36240         __profil_counter.
36241         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36242         Likewise.
36243         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36244         Likewise.
36245         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36246         Likewise.
36247         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36248         (profil_counter): Likewise.
36249         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36250         (profil_counter): Likewise.
36251         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36252         Likewise.
36253         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36254         Likewise.
36255         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36256         (profil_counter): Likewise.
36257         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36258         Likewise.
36259         [!__profil_counter] (profil_counter): Define as weak alias of
36260         __profil_counter.
36261         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36262         (profil_counter): Rename to __profil_counter.
36263         [!__profil_counter] (profil_counter): Define as weak alias of
36264         __profil_counter.
36265         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36266         (profil_counter): Rename to __profil_counter.
36267         [!__profil_counter] (profil_counter): Define as weak alias of
36268         __profil_counter.
36269         * sysdeps/posix/profil.c: Update comment referring to
36270         profil_counter.
36271         (__profil): Use __profil_counter instead of profil_counter.
36272         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36273         __profil_counter.  Use __profil_counter_ushort and
36274         __profil_counter_uint in definitions.
36275         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36276         instead of profil_counter_uint and profil_counter_ushort.
36277
36278         [BZ #17722]
36279         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36280         define as weak alias of __inet_makeaddr.
36281         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36282         as weak alias of __inet_addr.
36283         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36284         as weak alias of __inet_pton.  Use libc_hidden_weak.
36285         * include/arpa/inet.h (__inet_pton): Declare.  Use
36286         libc_hidden_proto.
36287         (inet_makeaddr): Don't use libc_hidden_proto.
36288         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36289         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36290         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36291         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36292         Remove variable.
36293         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36294         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36295
36296 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36297
36298         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36299
36300 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36301
36302         * stdio-common/bug-vfprintf-nargs.c (do_test):
36303         Cast value to intptr_t to avoid format warning
36304         for usage with PRIdPTR printing macro.
36305
36306 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36307
36308         * libio/tst-widetext.c (do_test):
36309         Use format type %td instead of %Zd for ptrdiff_t
36310         in order to avoid format warning.
36311
36312 2014-12-17  Andreas Schwab  <schwab@suse.de>
36313
36314         * nscd/mem.c (gc): Add size_t cast to match printf format.
36315
36316 2014-12-16  Roland McGrath  <roland@hack.frob.com>
36317
36318         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
36319         (init): Apply PTR_MANGLE to pointers before storing them.
36320         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
36321         before using them.
36322
36323 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
36324
36325         [BZ #17719]
36326         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
36327         define as weak alias of __memrchr.
36328         (__memrchr): Do not define as strong alias of memrchr.
36329         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
36330         Remove variable.
36331         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
36332         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
36333         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
36334
36335         [BZ #17717]
36336         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
36337         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
36338         (if_indextoname): Rename to __if_indextoname and define as weak
36339         alias of __if_indextoname.  Use libc_hidden_weak.
36340         (if_freenameindex): Rename to __if_freenameindex and define as
36341         weak alias of __if_freenameindex.
36342         (if_nameindex): Rename to __if_nameindex and define as weak alias
36343         of __if_nameindex.
36344         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
36345         __if_nametoindex and define as weak alias of __if_nametoindex.
36346         Use libc_hidden_weak.
36347         (if_freenameindex): Rename to __if_freenameindex and define as
36348         weak alias of __if_freenameindex.
36349         (if_nameindex): Rename to __if_nameindex and define as weak alias
36350         of __if_nameindex.
36351         (if_indextoname): Rename to __if_indextoname and define as weak
36352         alias of __if_indextoname.  Use libc_hidden_weak.
36353         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
36354         __if_nametoindex and define as weak alias of __if_nametoindex.
36355         Use libc_hidden_weak.
36356         (if_freenameindex): Rename to __if_freenameindex and define as
36357         weak alias of __if_freenameindex.  Use libc_hidden_weak.
36358         (if_nameindex_netlink): Use __if_freenameindex instead of
36359         if_freenameindex.
36360         (if_nameindex): Rename to __if_nameindex and define as weak alias
36361         of __if_nameindex.  Use libc_hidden_weak.
36362         (if_indextoname): Rename to __if_indextoname and define as weak
36363         alias of __if_indextoname.  Use libc_hidden_weak.
36364         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
36365         libc_hidden_proto.
36366         [!_ISOMAC] (__if_freenameindex): Likewise.
36367         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
36368         if_nametoindex.
36369         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
36370         variable.
36371         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
36372         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
36373         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
36374         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
36375         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
36376         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
36377         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
36378
36379         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
36380         Remove variable.
36381         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
36382         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
36383
36384 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
36385
36386         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
36387         subscript above bounds'
36388
36389         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
36390         bounds.
36391
36392 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
36393
36394         * libio/tst-fopenloc.c: Use test-skeleton.c.
36395
36396         * stdlib/tst-bsearch.c: Use test-skeleton.c.
36397         (entry): Rename to ITEM.
36398         (do_test, comp): Adjust.
36399
36400         * stdio-common/tst-fseek.c: Use test-skeleton.c.
36401
36402 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36403
36404         * string/tester.c: Include <libc-internal.h>.
36405         (test_memset): Ignore -Wmemset-transposed-args.
36406
36407 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36408
36409         * misc/tst-mntent2.c (do_test): Fix warning.
36410
36411 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36412
36413         * elf/tst-unique4lib.cc(a): Mark as used.
36414
36415 2014-12-16  Florian Weimer  <fweimer@redhat.com>
36416
36417         [BZ #17630]
36418         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
36419         names.
36420
36421 2014-12-16  Allan McRae  <allan@archlinux.org>
36422
36423         * stdio-common/Makefile (tests): Re-add bug26.
36424
36425 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
36426
36427         [BZ #17657]
36428         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
36429         static array.
36430
36431 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
36432
36433         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
36434         (__lll_lock_wait): Likewise.
36435         (__lll_timedlock_wait): Likewise.
36436         (__lll_timedwait_tid): Likewise.
36437         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
36438         (__lll_robust_timedlock_wait): Likewise.
36439         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
36440         (lll_cond_trylock): Likewise.
36441         (__lll_lock): Likewise.
36442         (__lll_robust_lock): Likewise.
36443         (__lll_cond_lock): Likewise.
36444         (lll_robust_cond_lock): Likewise.
36445         (__lll_timedlock): Likewise.
36446         (__lll_robust_timedlock): Likewise.
36447         (__lll_unlock): Likewise.
36448         (__lll_robust_unlock): Likewise.
36449         (lll_wait_tid): Likewise.
36450         (lll_timedwait_tid): Likewise.
36451
36452 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36453
36454         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
36455
36456 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36457
36458         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
36459
36460 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36461
36462         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
36463         * stdio-common/tst-sprintf.c: Likewise.
36464
36465 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36466
36467         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
36468
36469 2014-12-15  Jeff Law  <law@redhat.com>
36470
36471         [BZ #16617]
36472         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
36473         on the heap.  (CVE-2012-3406)
36474         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
36475         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
36476         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
36477
36478 2014-12-15  Will Newton  <will.newton@linaro.org>
36479
36480         * manual/install.texi: Bump required version of texinfo
36481         to 4.7 from 4.5.
36482         * INSTALL: Regenerated.
36483         * configure.ac: Check for makeinfo version 4.7 and above.
36484         * configure: Regenerated.
36485
36486 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36487
36488         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
36489         PREFIX, string constant to insert between directory and name.
36490         * sysdeps/posix/shm_open.c: Update caller.
36491         * sysdeps/posix/shm_unlink.c: Likewise.
36492         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
36493         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
36494         (SEM_SHM_PREFIX): New macro.
36495         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
36496         [$(have-thread-library) = no].
36497         * nptl/Makefile (libpthread-routines): Add shm-directory.
36498         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
36499         * sysdeps/nptl/shm-directory.h: New file.
36500         * sysdeps/posix/shm-directory.c
36501         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
36502         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
36503         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
36504         INTERNAL_SYSCALL.
36505         (__where_is_shmfs): Function removed.
36506         (mountpoint, defaultmount, defaultdir, __namedsem_once):
36507         Variables removed.
36508         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
36509         Use SHM_GET_NAME.
36510         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
36511
36512         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36513         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
36514         unconditional for use inside libpthread.
36515         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
36516
36517 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36518
36519         * nptl/pthread_getaffinity.c: New file.
36520         * nptl/pthread_setaffinity.c: New file.
36521         * nptl/pthread_getname.c: New file.
36522         * nptl/pthread_setname.c: New file.
36523
36524         * nptl/pthread_create.c (START_THREAD_DEFN)
36525         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
36526
36527 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36528             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36529
36530         * resolv/res_send.c (send_vc): Disable warning resplen may
36531         be used uninitialized.
36532
36533 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
36534
36535         * nptl/tst-mutex6.c
36536         (ATTR_NULL): New define checks ATTR against NULL.
36537         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
36538         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
36539
36540 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
36541
36542         [BZ #17581]
36543         * malloc/hooks.c
36544         (mem2mem_check): Revert my previous change.
36545         (malloc_check_get_size): Revert my previous change.
36546         (mem2chunk_check): Revert my previous change.
36547
36548 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36549
36550         * sysdeps/posix/shm-directory.c: New file.
36551         * sysdeps/posix/shm-directory.h: New file.
36552         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
36553         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
36554         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
36555         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
36556         Transmute EPERM to EACCES.
36557         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
36558         from ...
36559         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
36560         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
36561
36562 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
36563
36564         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
36565         pointer and cast to uintptr_t.
36566         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
36567         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
36568         Add cast to avoid warning.
36569         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
36570
36571 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36572
36573         * nptl/semaphore.h: Move to ...
36574         * sysdeps/pthread/semaphore.h: ... here.
36575         * Makefile (installed-headers): Change nptl/semaphore.h to
36576         sysdeps/pthread/semaphore.h.
36577
36578 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36579
36580         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
36581         generated error format strings.
36582
36583         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
36584         -Wformat-extra-args warnings for scanf formats.
36585         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
36586         test of zero-length format (duh).
36587         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
36588         corner-case scanf format test.
36589         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
36590         generated fprintf format string.
36591         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
36592         corner-case sprintf format tests.
36593         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
36594         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
36595         -Wformat-extra-args warnings throughout.
36596         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
36597         (CFLAGS-scanf4.c): Likewise.
36598         (CFLAGS-scanf7.c): Likewise.
36599         (CFLAGS-tst-sprintf.c): Likewise.
36600         (CFLAGS-tst-printf.c): Likewise.
36601         (CFLAGS-tst-printfsz.c): Likewise.
36602
36603 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
36604
36605         * include/cpio.h: New file.
36606         * include/fmtmsg.h: Likewise.
36607
36608         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
36609         corresponding format argument to size_t.
36610         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
36611         arguments.
36612         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
36613         corresponding format argument to size_t.
36614         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
36615         arguments.
36616         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
36617         corresponding format argument to size_t.
36618         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
36619         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
36620         (CFLAGS-tst-mbswcs2.c): Likewise.
36621         (CFLAGS-tst-mbswcs3.c): Likewise.
36622         (CFLAGS-tst-mbswcs4.c): Likewise.
36623         (CFLAGS-tst-mbswcs5.c): Likewise.
36624         (CFLAGS-tst-trans.c): Likewise.
36625
36626 2014-12-11  Roland McGrath  <roland@hack.frob.com>
36627
36628         * posix/regexbug1.c (main): Use "%s" format with regerror results,
36629         rather than assuming they won't contain any '%'s.
36630
36631 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
36632
36633         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
36634         inhibit_loop_to_libcall to avoid recursive calls.
36635         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
36636         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
36637
36638 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36639
36640         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
36641         prototype.
36642
36643 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36644
36645         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
36646         integer value instead of boolean.
36647
36648 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
36649
36650         * malloc/malloc.c: Fix powerof2 check.
36651
36652 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36653
36654         * locale/programs/locfile.h (maybe_swap_uint32):
36655         Remove inline and add unused attribute.
36656
36657 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
36658
36659         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
36660         Truncating assembler expression to a .long expression.
36661
36662 2014-12-11  Andreas Schwab  <schwab@suse.de>
36663
36664         * elf/rtld.c (struct map_args): Constify str member.
36665         (do_preload): Constify fname argument.
36666
36667 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36668
36669         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
36670         constants definition.
36671
36672 2014-12-11  Andreas Schwab  <schwab@suse.de>
36673
36674         [BZ #16657]
36675         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
36676         FORCE_ELISION instead of DO_ELISION.
36677         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
36678         Remove.
36679         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
36680         Likewise.
36681
36682         * iconvdata/gconv-modules: Remove duplicate entry.
36683
36684 2014-12-11  Will Newton  <will.newton@linaro.org>
36685
36686         Merge gettext 0.19.3 into intl/.
36687
36688         This involves a number of cosmetic changes to comments
36689         and ANSI function definitions and prototypes throughout
36690         all the files. The gettext copyright header is used but
36691         with the date ranges taken from the glibc copy.
36692
36693         * NEWS: Add gettext merge to 2.21.
36694         * intl/bindtextdom.c: Switch to gettext copyright.
36695         Use ANSI definitions and prototypes.
36696         Use gl_* locking primitives rather than __libc_* ones.
36697         Use __builtin_expect rather than __glibc_likely/unlikely.
36698         * intl/dcgettext.c: Switch to gettext copyright.
36699         Use ANSI definitions and prototypes.
36700         * intl/dcigettext.c: Switch to gettext copyright.
36701         Use ANSI definitions and prototypes.
36702         (INTDIV0_RAISES_SIGFPE): New define.
36703         Use gl_* locking primitives rather than __libc_* ones.
36704         Include eval-plural.h instead of plural-eval.c.
36705         Use __builtin_expect rather than __glibc_likely/unlikely.
36706         * intl/dcngettext.c: Switch to gettext copyright.
36707         Use ANSI definitions and prototypes.
36708         * intl/dgettext.c: Likewise.
36709         * intl/dngettext.c: Likewise.
36710         * intl/plural-eval.c: Renamed to...
36711         * intl/eval-plural.h: ...this.
36712         * intl/explodename.c: Switch to gettext copyright.
36713         Use ANSI definitions and prototypes.
36714         (_nl_explode_name): Use strchr instead of __rawmemchr.
36715         * intl/finddomain.c: Switch to gettext copyright.
36716         Use ANSI definitions and prototypes.
36717         Use gl_* locking primitives rather than __libc_* ones.
36718         (_nl_find_domain): Use malloc rather than alloca for
36719         allocation of temporary locale name.
36720         * intl/gettext.c: Switch to gettext copyright.
36721         Use ANSI definitions and prototypes.
36722         * intl/gettextP.h: Switch to gettext copyright.
36723         Use ANSI definitions and prototypes.
36724         Use gl_* locking primitives rather than __libc_* ones.
36725         * intl/gmo.h: Switch to gettext copyright.
36726         (struct sysdep_string): Move struct segment_pair outside of
36727         struct definition.
36728         * intl/hash-string.c: Use ANSI definitions and prototypes.
36729         * intl/hash-string.h: Switch to gettext copyright.
36730         Use ANSI definitions and prototypes.
36731         * intl/l10nflist.c: Switch to gettext copyright.
36732         Use ANSI definitions and prototypes.
36733         (_nl_normalize_codeset): Avoid integer overflow.
36734         * intl/loadinfo.h: Switch to gettext copyright.
36735         Use ANSI definitions and prototypes.
36736         (LIBINTL_DLL_EXPORTED): New define.
36737         (PATH_SEPARATOR): New define.
36738         * intl/loadmsgcat.c: Switch to gettext copyright.
36739         * intl/localealias.c: Switch to gettext copyright.
36740         Use ANSI definitions and prototypes.
36741         (_nl_expand_alias): Use PATH_SEPARATOR.
36742         * intl/ngettext.c: Switch to gettext copyright.
36743         Use ANSI definitions and prototypes.
36744         * intl/plural-exp.c: Likewise.
36745         * intl/plural-exp.h: Switch to gettext copyright.
36746         Use ANSI definitions and prototypes.
36747         (struct expression): Move definition of enum operator outside
36748         of struct definition.
36749         * intl/plural.c: Regenerate.
36750         * intl/plural.y: Switch to gettext copyright.
36751         Use ANSI definitions and prototypes.
36752         Port to bison 3.0.
36753         * intl/textdomain.c: Switch to gettext copyright.
36754         Use ANSI definitions and prototypes.
36755         Use gl_* locking primitives rather than __libc_* ones.
36756
36757 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
36758
36759         * debug/warning-nop.c: Add used atrribute.
36760
36761 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36762
36763         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
36764
36765         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
36766         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
36767         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
36768
36769 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36770             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36771
36772         [BZ #17634]
36773         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
36774         Undefine after defining function.  Define as weak alias of
36775         __wcschr.  Use libc_hidden_weak.
36776         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
36777         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
36778         (libc_hidden_def): Also define __GI___wcschr alias.
36779         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
36780         __wcschr and define as weak alias of __wcschr.
36781         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
36782         __wcschr.
36783         [!WCSCHR] (DEFAULT_WCSCHR): Define.
36784         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
36785         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
36786         libc_hidden_weak.  Do not use libc_hidden_def.
36787         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
36788         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
36789         __GI___wcschr alias.
36790         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
36791         [IS_IN (libc)] (wcschr): Define as macro expanding to
36792         __redirect_wcschr.
36793         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
36794         [IS_IN (libc)] (__wcschr_power6): Likewise.
36795         [IS_IN (libc)] (__wcschr_power7): Likewise.
36796         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
36797         instead of wcschr.
36798         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
36799         __libc_wcschr.
36800         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
36801         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
36802         __wcschr and define as weak alias of __wcschr.  Use
36803         libc_hidden_builtin_def.
36804         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
36805         as weak alias of __wcschr.  Use libc_hidden_weak.
36806         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
36807         wcschr.
36808         * time/era.c (_nl_init_era_entries): Likewise.
36809         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
36810         variable.
36811         (test-xfail-XPG3/time.h/linknamespace): Likewise.
36812         (test-xfail-XPG4/time.h/linknamespace): Likewise.
36813
36814 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36815
36816         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
36817         format for long int variable.
36818
36819 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
36820
36821         [BZ #10672]
36822         * manual/search.texi: (Array Sort Function): Remove claim how to make
36823         qsort stable.
36824
36825 2014-12-10  Andreas Schwab  <schwab@suse.de>
36826
36827         [BZ #12847]
36828         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
36829         user-controlled locks.
36830
36831 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
36832
36833         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
36834         register.
36835
36836 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
36837
36838         * configure.ac (--disable-werror): New configure option.
36839         (enable_werror): New AC_SUBST.
36840         * configure: Regenerated.
36841         * config.make.in (enable-werror): New variable.
36842         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
36843         -Wno-error=undef.
36844         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
36845         * manual/install.texi (Configuring and compiling): Document
36846         --disable-werror.
36847         * INSTALL: Regenerated.
36848         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
36849         (CFLAGS-tst-chk2.c): Likewise.
36850         (CFLAGS-tst-chk3.c): Likewise.
36851         (CFLAGS-tst-chk4.cc): Likewise.
36852         (CFLAGS-tst-chk5.cc): Likewise.
36853         (CFLAGS-tst-chk6.cc): Likewise.
36854         (CFLAGS-tst-lfschk1.c): Likewise.
36855         (CFLAGS-tst-lfschk2.c): Likewise.
36856         (CFLAGS-tst-lfschk3.c): Likewise.
36857         (CFLAGS-tst-lfschk4.cc): Likewise.
36858         (CFLAGS-tst-lfschk5.cc): Likewise.
36859         (CFLAGS-tst-lfschk6.cc): Likewise.
36860
36861         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
36862         (main): Disable -Wdeprecated-declarations around calls to
36863         register_printf_function.
36864
36865         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
36866         (do_test): Disable -Wdiv-by-zero around some calls to
36867         fwrite_unlocked and fread_unlocked.
36868
36869         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
36870         (DIAG_POP_NEEDS_COMMENT): Likewise.
36871         (_DIAG_STR1): Likewise.
36872         (_DIAG_STR): Likewise.
36873         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
36874         * stdio-common/bug21.c: Include <libc-internal.h>.
36875         (do_test): Disable -Wformat around call to sscanf.
36876         * stdio-common/scanf14.c: Include <libc-internal.h>.
36877         (main): Disable -Wformat around some calls to scanf functions.
36878
36879 2014-12-09  Torvald Riegel  <triegel@redhat.com>
36880
36881         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
36882
36883 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36884
36885         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
36886         stack variable alignment.
36887
36888 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
36889
36890         [BZ #17682]
36891         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
36892         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
36893         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
36894         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
36895         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
36896         __getrlimit instead of getrlimit.
36897         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
36898         __gettimeofday instead of gettimeofday.
36899         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
36900         Likewise.
36901         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
36902         Likewise.
36903         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
36904         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
36905         Remove variable.
36906         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
36907         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
36908
36909 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36910
36911         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
36912         for wide-character tests.
36913
36914 2014-12-04  Roland McGrath  <roland@hack.frob.com>
36915
36916         * io/openat64.c: #include <libc-internal.h>
36917         (__openat64): Prototypify.  Use ignore_value on MODE.
36918         * io/openat.c: Likewise.
36919         * misc/reboot.c: #include <libc-internal.h>
36920         (reboot): Prototypify.  Use ignore_value on HOWTO.
36921         * misc/ptrace.c: #include <libc-internal.h>
36922         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
36923
36924 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
36925
36926         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
36927         XPG4, UNIX98 and XOPEN2K.
36928         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
36929         Remove variable.
36930         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
36931
36932 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36933
36934         * libio/fileops.c: Use ISO C style for function definitions.
36935         * libio/iofopen.c: Likewise.
36936         * libio/wfileops.c: Likewise.
36937
36938         [BZ #17653]
36939         * libio/fileops.c (_IO_new_file_underflow): Unset cached
36940         offset on EOF.
36941         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
36942         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
36943         (fgets_func): Function pointer to fgets and fgetws.
36944         (do_ftell_test): Add test to verify ftell value after read
36945         EOF.
36946         (do_test): Set fgets_func.
36947
36948         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
36949         O_TRUNC flag for w and w+ modes.
36950         (do_rewind_test): Likewise.
36951         (do_ftell_test): Likewise.
36952         (do_write_test): Likewise.
36953
36954         [BZ #17647]
36955         * libio/fileops.c (do_ftell): Seek only when there are
36956         unflushed writes.
36957         * libio/wfileops.c (do_ftell_wide): Likewise.
36958         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
36959         test case.
36960         (do_one_test): Call it.
36961
36962 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
36963
36964         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
36965         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
36966         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
36967         Remove variable.
36968         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
36969         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
36970         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
36971
36972 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
36973
36974         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
36975         Remove variable.
36976         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
36977
36978         [BZ #17668]
36979         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
36980         as weak alias of __getifaddrs.  Use libc_hidden_weak.
36981         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36982         __freeifaddrs.  Use libc_hidden_weak.
36983         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
36984         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
36985         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36986         __freeifaddrs.  Use libc_hidden_weak.
36987         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
36988         __getifaddrs and define as weak alias of __getifaddrs.  Use
36989         libc_hidden_weak.
36990         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
36991         __freeifaddrs.  Use libc_hidden_weak.
36992         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
36993         Remove variable.
36994         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
36995         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
36996
36997 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
36998
36999         [BZ #17601]
37000         * sysdeps/mips/start.S (__start): Use indirect jump to call
37001         __libc_start_main.
37002
37003 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37004
37005         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37006
37007         * nptl/tst-mutex1.c: Include <stdbool.h>.
37008         [!ATTR] (ATTR_NULL): New macro.
37009         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37010         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37011         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37012
37013         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37014         to char *.
37015
37016         [BZ #17665]
37017         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37018         Change conditional to [__USE_MISC].
37019
37020         [BZ #17664]
37021         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37022         fgets_unlocked.
37023         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37024         __fgets_unlocked.
37025         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37026         fgets_unlocked.
37027         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37028         Remove variable.
37029         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37030         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37031         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37032         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37033         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37034         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37035         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37036         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37037         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37038
37039         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37040
37041 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37042
37043         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37044         Remove strpbrk objects.
37045         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37046         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37047         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37048         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37049         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37050         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37051
37052         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37053         Remove strcspn objects.
37054         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37055         (__libc_ifunc_impl_list): Remove strcspn implementation.
37056         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37057         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37058         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37059         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37060
37061         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37062         Remove strspn objetcs.
37063         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37064         (__libc_ifunc_impl_list): Remove strspn implementation.
37065         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37066         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37067         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37068         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37069
37070 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37071
37072         [BZ #17581]
37073         * malloc/hooks.c
37074         (mem2mem_check): Add a terminator to the chain of checking blocks.
37075         (malloc_check_get_size): Use it here.
37076         (mem2chunk_check): Ditto.
37077
37078 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37079
37080         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37081         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37082
37083 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37084
37085         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37086
37087         * nptl/nptl-init.c: Include libc-internal.h.
37088         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37089
37090         * elf/ldconfig.c (search_dir): Expand comment.
37091
37092 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37093
37094         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37095         variable.
37096         (linknamespace-symlist-stdlibs-tests): Likewise.
37097         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37098         instead of $(objpfx)symlist-stdlibs.
37099         (linknamespace-libs-isoc): New variable.
37100         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37101         (linknamespace-libs-ISO): New variable.
37102         (linknamespace-libs-ISO99): Likewise.
37103         (linknamespace-libs-ISO11): Likewise.
37104         (linknamespace-libs-XPG3): Likewise.
37105         (linknamespace-libs-XPG4): Likewise.
37106         (linknamespace-libs-POSIX): Likewise.
37107         (linknamespace-libs-UNIX98): Likewise.
37108         (linknamespace-libs-XOPEN2K): Likewise.
37109         (linknamespace-libs-POSIX2008): Likewise.
37110         (linknamespace-libs-XOPEN2K8): Likewise.
37111         ($(objpfx)symlist-stdlibs): Replace by
37112         $(linknamespace-symlist-stdlibs-tests).  Use
37113         $(linknamespace-libs-$*) as set of libraries.
37114         ($(linknamespace-header-tests)): Update dependencies.  Use
37115         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37116         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37117         * conform/linknamespace.pl: Remove comment about considering
37118         definitions of symbols from irrelevant libraries.
37119
37120 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37121
37122         [BZ #13862]
37123         * elf/dl-tls.c: Include <atomic.h>.
37124         (oom): Remove #ifdef SHARED/#endif.
37125         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37126         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37127         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37128         big enough.
37129         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37130         * nptl/Makefile (tests): Add tst-stack4.
37131         (modules-names): Add tst-stack4mod.
37132         ($(objpfx)tst-stack4): New.
37133         (tst-stack4mod.sos): Likewise.
37134         ($(objpfx)tst-stack4.out): Likewise.
37135         ($(tst-stack4mod.sos)): Likewise.
37136         (clean): Likewise.
37137         * nptl/tst-stack4.c: New file.
37138         * nptl/tst-stack4mod.c: Likewise.
37139
37140 2014-11-27  J. Brown  <jb999@gmx.de>
37141
37142         * sysdeps/x86/bits/string.h: Add recent CPUs.
37143
37144 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37145
37146         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37147         sigblock.
37148
37149         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37150         feof.
37151
37152         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37153         variable.
37154
37155 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37156
37157         * nscd/connections.c: Include libc-internal.h because of macro
37158         usage ignore_value.
37159
37160 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37161
37162         * string/bits/string3.h (__warn_memset_zero_len): Don't
37163         declare for gcc newer than 5.0.
37164         (memset): Don't test for zero-length __LEN for gcc newer than
37165         5.0.
37166
37167 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37168
37169         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37170         size_t for %zu format.
37171
37172         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37173         difference, not %ju.
37174
37175 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37176
37177         * include/libc-internal.h (ignore_value): New macro.
37178         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37179         with ignore_value.
37180
37181         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37182         definition.
37183
37184         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37185         pthread_cleanup_push to void *.
37186
37187         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37188         Undefine.
37189
37190         [BZ #16619]
37191         [BZ #16740]
37192         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37193         instead of 1L << 52.
37194
37195         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37196         * libio/bug-rewind2.c (do_test): Likewise.
37197
37198         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37199         * debug/test-strcpy_chk-ifunc.c: Likewise.
37200         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37201         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37202         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37203         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37204         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37205         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37206         * Rules [$(multi-arch) = no] (tests): Do not filter out
37207         $(tests-ifunc).
37208         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37209         * debug/Makefile (tests-ifunc): Remove variable.
37210         (tests): Do not add $(tests-ifunc).
37211         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37212         (tests): Do not add $(tests-ifunc).
37213         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37214         [TEST_IFUNC]: Remove conditionals.
37215         * string/test-string.h (TEST_IFUNC): Remove macro.
37216         [TEST_IFUNC]: Remove conditionals.
37217
37218         * string/test-strchr.c [!WIDE] (L): New macro.
37219         [WIDE] (L): Likewise.
37220         (check1): Use CHAR instead of char.  Use L on string and character
37221         constants.
37222
37223 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37224
37225         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37226         tests.
37227         * sysdeps/powerpc/bits/atomic.h
37228         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37229         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37230         (atomic_exchange_and_add_acq): Likewise.
37231         (atomic_exchange_and_add_rel): Likewise.
37232         * sysdeps/powerpc/powerpc32/bits/atomic.h
37233         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37234         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37235         * sysdeps/powerpc/powerpc64/bits/atomic.h
37236         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37237         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37238
37239 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37240
37241         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37242         Change synchronization of __sched_fifo_min_prio and
37243         __sched_fifo_max_prio.
37244         * nptl/pthread_mutexattr_getprioceiling.c
37245         (pthread_mutexattr_getprioceiling): Likewise.
37246         * nptl/pthread_mutexattr_setprioceiling.c
37247         (pthread_mutexattr_setprioceiling): Likewise.
37248         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37249         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37250         Likewise.
37251
37252 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37253
37254         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37255         void.
37256
37257 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37258
37259         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37260         third argument const.
37261
37262 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37263
37264         fnmatch: work around GCC compiler warning bug with uninit var
37265         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37266         This works around a bug with x86-64 GCC 4.9.2 and earlier
37267         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37268         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37269         used uninitialized in this function [-Wmaybe-uninitialized]".
37270
37271 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37272
37273         * posix/bug-regex31.c (main): Return RES not 0.
37274
37275 2014-11-25  Anton Blanchard <anton@samba.org>
37276
37277         * sysdeps/powerpc/bits/atomic.h
37278         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37279
37280 2014-11-24  Sterling Augustine  <saugustine@google.com>
37281
37282         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37283
37284 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37285
37286         [BZ #17608]
37287         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37288
37289 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37290
37291         [BZ #17633]
37292         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37293         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37294         variable.
37295         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37296         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37297
37298 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37299
37300         * string/strncpy.c (strncpy): Improve performance by using memset.
37301
37302 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37303
37304         * string/strcpy.c (strcpy):
37305         Improve performance by using strlen and memcpy.
37306
37307 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
37308
37309         * string/strcoll_l.c (get_next_seq): __always_inline.
37310         * string/strcoll_l.c (do_compare): __always_inline.
37311
37312 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37313
37314         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
37315         defined.
37316         * include/mqueue.h: Likewise.
37317         * include/stdlib.h: Likewise.
37318
37319         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
37320         (get_null_defines): Adjust.
37321         * sunrpc/Makefile: Adjust comment.
37322         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
37323         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
37324         (CFLAGS-interp.c): Likewise.
37325         (CFLAGS-ldconfig.c): Likewise.
37326         (CPPFLAGS-.os): Likewise.
37327         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37328         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37329         * extra-modules.mk (extra-modules.mk): Likewise.
37330         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
37331         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
37332         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
37333         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
37334         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
37335         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
37336         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
37337         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
37338         * iconvdata/Makefile (CPPFLAGS): Likewise.
37339         (cpp-srcs-left): Add libof for all iconvdata routines.
37340         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
37341         * include/assert.h: Likewise.
37342         * include/ctype.h: Likewise.
37343         * include/errno.h: Likewise.
37344         * include/libc-symbols.h: Likewise.
37345         * include/math.h: Likewise.
37346         * include/netdb.h: Likewise.
37347         * include/resolv.h: Likewise.
37348         * include/stdio.h: Likewise.
37349         * include/stdlib.h: Likewise.
37350         * include/string.h: Likewise.
37351         * include/sys/stat.h: Likewise.
37352         * include/wctype.h: Likewise.
37353         * intl/l10nflist.c: Likewise.
37354         * libidn/idn-stub.c: Likewise.
37355         * libio/libioP.h: Likewise.
37356         * nptl/libc_multiple_threads.c: Likewise.
37357         * nptl/pthreadP.h: Likewise.
37358         * posix/regex_internal.h: Likewise.
37359         * resolv/res_hconf.c: Likewise.
37360         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
37361         * sysdeps/arm/memmove.S: Likewise.
37362         * sysdeps/arm/sysdep.h: Likewise.
37363         * sysdeps/generic/_itoa.h: Likewise.
37364         * sysdeps/generic/symbol-hacks.h: Likewise.
37365         * sysdeps/gnu/errlist.awk: Likewise.
37366         * sysdeps/gnu/errlist.c: Likewise.
37367         * sysdeps/i386/i586/memcpy.S: Likewise.
37368         * sysdeps/i386/i586/memset.S: Likewise.
37369         * sysdeps/i386/i686/memcpy.S: Likewise.
37370         * sysdeps/i386/i686/memmove.S: Likewise.
37371         * sysdeps/i386/i686/mempcpy.S: Likewise.
37372         * sysdeps/i386/i686/memset.S: Likewise.
37373         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37374         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37375         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
37376         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
37377         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37378         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37379         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
37380         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37381         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37382         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37383         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37384         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37385         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37386         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37387         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37388         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37389         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
37390         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
37391         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
37392         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37393         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37394         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37395         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37396         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37397         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37398         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37399         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
37400         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37401         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
37402         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
37403         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37404         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37406         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37407         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37408         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
37409         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37410         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37411         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
37412         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
37413         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37414         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37415         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
37416         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
37417         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37418         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37419         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
37420         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
37421         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37422         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
37423         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37424         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
37425         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
37426         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37427         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
37428         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
37429         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37430         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
37431         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
37432         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37433         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
37434         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37435         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
37436         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37437         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37438         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
37439         * sysdeps/posix/closedir.c: Likewise.
37440         * sysdeps/posix/opendir.c: Likewise.
37441         * sysdeps/posix/readdir.c: Likewise.
37442         * sysdeps/posix/rewinddir.c: Likewise.
37443         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
37444         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
37445         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
37446         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
37447         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
37448         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
37449         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
37450         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
37451         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
37452         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
37453         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
37454         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
37455         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
37456         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
37457         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
37458         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
37459         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
37460         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
37461         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
37462         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
37463         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
37464         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
37465         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
37466         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
37467         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
37468         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
37469         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
37470         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
37471         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
37472         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
37473         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
37474         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
37475         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
37476         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
37477         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
37478         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
37479         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
37480         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
37481         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
37482         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
37483         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
37484         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
37485         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
37486         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
37487         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
37488         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
37489         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
37490         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
37491         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
37492         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
37493         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
37494         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
37495         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
37496         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
37497         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
37498         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
37499         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
37500         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
37501         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
37502         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
37503         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
37504         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
37505         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
37506         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
37507         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
37508         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
37509         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
37510         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
37511         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
37512         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
37513         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
37514         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
37515         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
37516         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
37517         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
37518         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
37519         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
37520         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
37521         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37522         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
37523         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
37524         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
37525         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
37526         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
37527         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
37528         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
37529         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
37530         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
37531         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
37532         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
37533         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
37534         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
37535         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
37536         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
37537         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37538         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
37539         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
37540         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37541         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
37542         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
37543         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37544         * sysdeps/unix/alpha/sysdep.S: Likewise.
37545         * sysdeps/unix/alpha/sysdep.h: Likewise.
37546         * sysdeps/unix/make-syscalls.sh: Likewise.
37547         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37548         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37549         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37550         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
37551         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37552         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
37553         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
37554         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37555         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37556         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
37557         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37558         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37559         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37560         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37561         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37562         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
37563         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37564         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37565         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37566         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37567         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
37568         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37569         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37570         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37571         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37572         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37573         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37576         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
37577         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37578         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37579         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
37580         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37581         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
37582         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37583         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
37584         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37585         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
37586         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
37587         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37588         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37589         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37590         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
37591         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37593         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37594         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37595         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37596         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37597         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37598         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37599         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37600         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37601         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
37602         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37603         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37604         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37605         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
37606         * sysdeps/x86_64/memcpy.S: Likewise.
37607         * sysdeps/x86_64/memmove.c: Likewise.
37608         * sysdeps/x86_64/memset.S: Likewise.
37609         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
37610         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
37611         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
37612         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
37613         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
37614         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
37615         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37616         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
37617         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
37618         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
37619         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
37620         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
37621         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
37622         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37623         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37624         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
37625         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
37626         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
37627         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
37628         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
37629         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
37630         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
37631         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
37632         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
37633         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
37634         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
37635         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
37636         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
37637         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
37638         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
37639         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
37640         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
37641         * sysdeps/x86_64/strcmp.S: Likewise.
37642
37643         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
37644
37645         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
37646         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
37647         * elf/rtld-Rules: Likewise.
37648         * elf/setup-vdso.h: Likewise.
37649         * include/assert.h: Likewise.
37650         * include/bits/stdlib-float.h: Likewise.
37651         * include/errno.h: Likewise.
37652         * include/sys/stat.h: Likewise.
37653         * include/unistd.h: Likewise.
37654         * sysdeps/aarch64/setjmp.S: Likewise.
37655         * sysdeps/alpha/setjmp.S: Likewise.
37656         * sysdeps/arm/__longjmp.S: Likewise.
37657         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
37658         * sysdeps/arm/setjmp.S: Likewise.
37659         * sysdeps/arm/sysdep.h: Likewise.
37660         * sysdeps/generic/_itoa.h: Likewise.
37661         * sysdeps/generic/dl-sysdep.h: Likewise.
37662         * sysdeps/generic/ldsodefs.h: Likewise.
37663         * sysdeps/i386/dl-tls.h: Likewise.
37664         * sysdeps/i386/setjmp.S: Likewise.
37665         * sysdeps/m68k/setjmp.c: Likewise.
37666         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
37667         * sysdeps/mach/hurd/opendir.c: Likewise.
37668         * sysdeps/posix/getcwd.c: Likewise.
37669         * sysdeps/posix/opendir.c: Likewise.
37670         * sysdeps/posix/profil.c: Likewise.
37671         * sysdeps/powerpc/dl-procinfo.h: Likewise.
37672         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
37673         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
37674         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
37675         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
37676         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
37677         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
37678         * sysdeps/s390/dl-tls.h: Likewise.
37679         * sysdeps/s390/s390-32/setjmp.S: Likewise.
37680         * sysdeps/s390/s390-64/setjmp.S: Likewise.
37681         * sysdeps/sh/sh3/setjmp.S: Likewise.
37682         * sysdeps/sh/sh4/setjmp.S: Likewise.
37683         * sysdeps/unix/alpha/sysdep.h: Likewise.
37684         * sysdeps/unix/arm/sysdep.S: Likewise.
37685         * sysdeps/unix/i386/sysdep.S: Likewise.
37686         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37687         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
37688         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
37689         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
37690         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37691         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
37692         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
37693         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37694         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
37695         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
37696         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
37697         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
37698         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
37699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
37700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
37701         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
37702         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37703         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37704         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
37705         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
37706         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
37707         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37708         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37709         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
37710         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37711         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
37712         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37713         * sysdeps/unix/x86_64/sysdep.S: Likewise.
37714         * sysdeps/x86_64/setjmp.S: Likewise.
37715
37716         * include/math.h: Use IS_IN instead of IS_IN_libm.
37717         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
37718         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37719         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37720         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
37721         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37722         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37723         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37724         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37725         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37726         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37727         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
37728         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
37729         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
37730         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
37731         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
37732         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
37733         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
37734         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
37735         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
37736         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
37737         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
37738         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
37739         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
37740         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
37741         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
37742         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
37743         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
37744         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
37745         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
37746         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
37747         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
37748         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
37749         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
37750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
37751         Likewise.
37752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
37753         Likewise.
37754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
37755         Likewise.
37756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
37757         Likewise.
37758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
37759         Likewise.
37760         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
37761         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
37762         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
37763         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
37764         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
37765         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
37766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
37767         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
37768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
37769         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
37770         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
37771         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
37772         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
37773         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
37774         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
37775         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
37776         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
37777         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
37778         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
37779         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
37780         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
37781         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
37782         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
37783         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
37784         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
37785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
37786         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
37787
37788         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
37789         * nptl/pthreadP.h: Likewise.
37790         * nptl_db/structs.def: Likewise.
37791         * sysdeps/arm/sysdep.h: Likewise.
37792         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37793         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37794         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
37795         * sysdeps/unix/alpha/sysdep.h: Likewise.
37796         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37797         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
37798         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37799         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37800         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37801         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37802         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37803         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37804         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37805         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37806         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37807         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37808         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37809         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
37811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
37812         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37813         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37814         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37815         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37816         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37817         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37818         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
37819         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37820         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
37821         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37822
37823         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
37824         * nptl/pthreadP.h: Likewise.
37825         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
37826         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
37827         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
37828         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
37829         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
37830         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
37831         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
37832         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
37833         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
37834         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
37835         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
37836         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
37837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
37838         Likewise.
37839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
37840         Likewise.
37841         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
37842         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
37843         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
37844         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
37845         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
37846         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
37847         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
37848         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
37849
37850         * dlfcn/dladdr.c: Use IS_IN.
37851         * dlfcn/dladdr1.c: Likewise.
37852         * dlfcn/dlclose.c: Likewise.
37853         * dlfcn/dlerror.c: Likewise.
37854         * dlfcn/dlinfo.c: Likewise.
37855         * dlfcn/dlmopen.c: Likewise.
37856         * dlfcn/dlopen.c: Likewise.
37857         * dlfcn/dlsym.c: Likewise.
37858         * dlfcn/dlvsym.c: Likewise.
37859
37860         * include/ifaddrs.h: Use IS_IN.
37861         * inet/check_pf.c: Likewise.
37862         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
37863         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
37864
37865         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
37866         IS_IN_ldconfig.
37867         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
37868         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
37869
37870         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
37871         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
37872         IS_IN (libc).
37873
37874         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
37875
37876         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
37877         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37878         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37879         * include/libc-symbols.h (IS_IN_LIB): New macro.
37880         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
37881         * include/netdb.h: Likewise.
37882         * include/stap-probe.h: Remove all uses of IN_LIB.
37883
37884         * Makeconfig (module-cppflags-real): Define MODULE_NAME
37885         instead of IN_MODULE.
37886         * include/libc-symbols.h (IN_MODULE): Define using
37887         MODULE_NAME.
37888         (PASTE_NAME, PASTE_NAME1): New macros.
37889         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
37890         of IN_LIB.
37891         (STAP_PROBE_ASM): Likewise.
37892
37893 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37894
37895         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
37896         __mach_init in dlopened libc.
37897
37898 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
37899
37900         * sysdeps/arm/preconfigure.ac: Delete EABI check.
37901         * sysdeps/arm/preconfigure: Regenerate.
37902
37903 2014-11-21  Roland McGrath  <roland@hack.frob.com>
37904
37905         * nptl/pthread_create.c (__pthread_create_2_1): Set
37906         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
37907         when copying values from IATTR into PD.
37908
37909 2014-11-21  Will Newton  <will.newton@linaro.org>
37910             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
37911
37912         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
37913         Refactor inline-asm.  Also add comment.
37914
37915         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
37916         ElfW macro instead of hardcoded Elf64 types.
37917         (la_aarch64_gnu_pltenter): Likewise.
37918         * sysdeps/aarch64/dl-machine.h
37919         (elf_machine_runtime_setup): Use ElfW(Addr).
37920
37921         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
37922         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
37923         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
37924         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
37925         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
37926         (R_AARCH64_TLS_DTPMOD64): Rename to ..
37927         (R_AARCH64_TLS_DTPMOD): This.
37928         (R_AARCH64_TLS_DTPREL64): Rename to ...
37929         (R_AARCH64_TLS_DTPREL): This.
37930         (R_AARCH64_TLS_TPREL64): Rename to ...
37931         (R_AARCH64_TLS_TPREL): This.
37932         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
37933         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
37934         R_AARCH64_TLS_TPREL64.
37935         (elf_machine_rela): Likewise.
37936
37937 2014-11-21  Torvald Riegel  <triegel@redhat.com>
37938
37939         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
37940         by setting it to 0.  64b atomics are not supported currently.
37941
37942 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37943
37944         [BZ #16469]
37945         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
37946         search domain names.
37947
37948 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37949
37950         [BZ #16469]
37951         * NEWS: Update.
37952         * resolv/res_query.c (__libc_res_nquerydomain): Retain
37953         trailing dot.
37954         * posix/tst-getaddrinfo5.c: New.
37955         * posix/Makefile (tests): Add it.
37956
37957 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37958
37959         [BZ #14498]
37960         * NEWS: Fixed.
37961         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
37962         after parsing line but before break_if_match.
37963         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
37964         if there is a protocol mismatch.
37965
37966 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
37967
37968         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
37969         because the potential race is on the user-supplied stream.
37970
37971 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37972
37973         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
37974         string literal if not passed a buffer.
37975         * manual/job.texi (ctermid): Update reasoning, note deviation
37976         from posix, suggest mtasurace when not passed a buffer, for
37977         future non-preliminary safety notes.
37978
37979 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37980
37981         * manual/users.texi (cuserid): Fix MT-Safety note for the case
37982         of not passing it a buffer.
37983         Reported by Peng Haitao.
37984
37985 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
37986
37987         * manual/Makefile ($(objpfx)stamp-summary): Require
37988         check-safety.sh to pass.
37989         * manual/check-safety.sh: Wish for verification that every
37990         @deftypefn and @deftypefun is followed by a @safety remark.
37991
37992 2014-11-20  Roland McGrath  <roland@hack.frob.com>
37993
37994         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
37995
37996         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
37997         PTHREAD_CANCEL_ASYNCHRONOUS.
37998         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
37999         send SIGCANCEL.
38000
38001         * nptl/default-sched.h: New file.
38002         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38003         * nptl/pthread_create.c: Include it.
38004         (__pthread_create_2_1): Use collect_default_sched instead of making
38005         Linux syscalls here directly.
38006
38007 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38008
38009         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38010         __pthread_once): Use C11 atomics.
38011
38012 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38013
38014         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38015
38016 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38017
38018         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38019         atomic_thread_fence_acquire, atomic_thread_fence_release,
38020         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38021         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38022         atomic_compare_exchange_weak_relaxed,
38023         atomic_compare_exchange_weak_acquire,
38024         atomic_compare_exchange_weak_release,
38025         atomic_exchange_acquire, atomic_exchange_release,
38026         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38027         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38028         atomic_fetch_and_acquire,
38029         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38030
38031 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38032
38033         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38034         USE_ATOMIC_COMPILER_BUILTINS): Define.
38035         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38036         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38037         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38038         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38039         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38040         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38041         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38042         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38043         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38044         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38045         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38046         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38047         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38048         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38049         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38050         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38051         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38052         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38053         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38054         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38055         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38056         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38057         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38058         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38059         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38060         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38061         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38062         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38063         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38064         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38065         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38066         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38067         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38068         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38069         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38070         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38071         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38072         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38073         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38074         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38075
38076 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38077
38078         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38079         the sched_priority value here.  It was already checked when the user
38080         called pthread_attr_setschedparam.
38081
38082         * nptl/tst-bad-schedattr.c: New file.
38083         * nptl/Makefile (tests): Add it.
38084
38085 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38086             Florian Weimer  <fweimer@redhat.com>
38087             Joseph Myers  <joseph@codesourcery.com>
38088             Adam Conrad  <adconrad@0c3.net>
38089             Andreas Schwab  <schwab@suse.de>
38090             Brooks  <bmoses@google.com>
38091
38092         [BZ #17625]
38093         * wordexp-test.c (__dso_handle): Add prototype.
38094         (__register_atfork): Likewise.
38095         (__app_register_atfork): New function.
38096         (registered_forks): New global.
38097         (register_fork): New function.
38098         (test_case): Add 3 new tests for WRDE_CMDSUB.
38099         (main): Call __app_register_atfork.
38100         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38101         fork count is non-zero fail the test.
38102         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38103         is set.
38104         (parse_dollars): Remove check for WRDE_NOCMD.
38105         (parse_dquote): Likewise.
38106
38107 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38108
38109         * Makeconfig (built-modules): List non-library modules to be
38110         built.
38111         (module-cppflags): Include libc-modules.h for
38112         everything except shlib-versions.v.i.
38113         (CPPFLAGS): Use it.
38114         (before-compile): Add libc-modules.h.
38115         ($(common-objpfx)libc-modules.h,
38116         $(common-objpfx)libc-modules.stmp): New targets.
38117         (common-generated): Add libc-modules.h and libc-modules.stmp.
38118         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38119         * include/libc-symbols.h: Don't include libc-modules.h.
38120         * include/libc-modules.h: Remove file.
38121         * scripts/gen-libc-modules.awk: New script to generate
38122         libc-modules.h.
38123         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38124         Depend on libc-modules.stmp.
38125
38126         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38127
38128         * Makeconfig (in-module): Get value of libof set for the
38129         translation unit.
38130         (CPPFLAGS): Use $(in-module).
38131         * Makerules: Don't suffix routine names for nonlib.
38132         * include/libc-modules.h: New file.
38133         * include/libc-symbols.h: Include libc-modules.h
38134         (IS_IN): New macro to replace IS_IN_* macros.
38135         * elf/Makefile: Set libof-* for each routine.
38136         * elf/rtld-Rules: Likewise.
38137         * extra-modules.mk: Likewise.
38138         * iconv/Makefile: Likewise.
38139         * iconvdata/Makefile: Likewise.
38140         * locale/Makefile: Likewise.
38141         * malloc/Makefile: Likewise.
38142         * nss/Makefile: Likewise.
38143         * sysdeps/gnu/Makefile: Likewise.
38144         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38145         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38146         * sysdeps/s390/s390-64/Makefile: Likewise.
38147         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38148         CPPFLAGS for nscd instead of nonlib.
38149
38150 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38151
38152         * nptl/createthread.c: New file.
38153
38154         * nptl/createthread.c: Moved ...
38155         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38156
38157         * nptl/createthread.c: Add proper top-line comment.
38158         (do_clone): Folded into ...
38159         (create_thread): ... here.  Take new arguments STOPPED_START and
38160         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38161         increment __nptl_threads, do event-reporting logic, do
38162         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38163         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38164         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38165         just send SIGCANCEL.
38166         * nptl/pthread_create.c: Forward-declare create_thread before
38167         including createthread.c.
38168         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38169         declaration, and new macro START_THREAD_SELF to replace argument.
38170         Remove return statement.
38171         (report_thread_creation): New function.
38172         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38173         synchronization logic, and __nptl_nthreads increment here, around
38174         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38175         PD->parent_cancelhandling here, before create_thread.  When
38176         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38177         __deallocate_stack, and ENOMEM translation here.
38178
38179 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38180
38181         [BZ #17616]
38182         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38183         (mptwo): Rename to __mptwo.
38184         (__inv): Use __mptwo instead of mptwo.
38185         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38186         (mptwo): Rename to __mptwo.
38187         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38188         of mpone and __mptwo instead of mptwo.
38189         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38190         instead of mpone.
38191         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38192         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38193         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38194         of mpone and __mptwo instead of mptwo.
38195         (__mpranred): Use __mpone instead of mpone.
38196         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38197         variable.
38198         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38199         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38200         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38201         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38202         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38203         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38204         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38205         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38206         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38207         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38208         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38209         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38210         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38211         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38212         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38213         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38214         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38215         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38216         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38217
38218 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38219
38220         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38221         replace BSD Handler xref with BSD Signal Handling.
38222
38223 2014-11-17  Richard Henderson  <rth@redhat.com>
38224
38225         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38226         (_FP_PACK_RAW_2): Remove.
38227         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38228         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38229         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38230         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38231         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38232         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38233         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38234         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38235         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38236         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38237         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38238         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38239         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38240         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38241         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38242         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38243
38244 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38245
38246         * signal/signal.h [__USE_MISC]
38247         (struct sigvec): Remove type.
38248         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38249         (sigvec): Remove declaration.
38250         * sysdeps/posix/sigvec.c: Moved ...
38251         * signal/sigvec.c: ... here, replacing old file.
38252         (struct sigvec): New type, copied from old signal.h definition.
38253         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38254         (__sigvec): Convert definition to prototype.
38255         (sigvec): Replace weak_alias with compat_symbol.
38256         * signal/Versions (libc: GLIBC_2.21): New version set.
38257         * include/signal.h: Remove __sigvec declaration.
38258         * sysdeps/unix/bsd/sigvec.c: Remove file.
38259         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38260         * manual/signal.texi (BSD Handler): Remove subsection.
38261         Move siginterrupt up to ...
38262         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38263         (Blocking in BSD): Fold subsection into its parent.
38264         * NEWS: Mention sigvec removal.
38265
38266 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38267
38268         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38269         (DLA_FMS): Make definition conditional only on [__FMA4__].
38270         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38271         definition.
38272
38273         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38274         Make definition conditional only on [PROF].
38275         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38276         definition.
38277         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38278         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38279
38280         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38281         !__GNUC__].
38282         * include/signal.h (__sigpause): Move declaration above call to
38283         libc_hidden_proto.
38284         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38285         variable.
38286         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38287         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38288
38289 2014-11-14  David S. Miller  <davem@davemloft.net>
38290
38291         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38292         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38293
38294 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38295
38296         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38297         * configure: Regenerated.
38298         * manual/install.texi (Tools for Compilation): Document a
38299         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38300         compiler verified to work.
38301         * INSTALL: Regenerated.
38302
38303         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38304         redeclare with asm name.
38305         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38306         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
38307         including <string.h>.
38308         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38309         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
38310         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38311         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
38312         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38313         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
38314         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38315
38316 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
38317
38318         * stdlib/strtol.c (__strtol): Use prototype definition.
38319
38320         [BZ #17594]
38321         * stdlib/strtol.c (SYM__): New macro.
38322         (SYM__1): Likewise.
38323         (__strtol): Likewise.
38324         (strtol): Rename to __strtol and define as weak alias of
38325         __strtol.  Use libc_hidden_weak.
38326
38327 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38328
38329         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
38330         Use numbered labels in inline assembly.
38331
38332 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38333
38334         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
38335         Add setjmp LIBC_PROBE.
38336         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
38337         Likewise.
38338         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
38339         Add longjmp, longjmp_target LIBC_PROBE.
38340         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
38341         Likewise.
38342
38343 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38344
38345         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
38346         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
38347         to get rid of unused variable warning.
38348
38349 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38350
38351         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
38352         Check for unwind_backtrace ==  NULL only in SHARED case.
38353         (__backchain_backtrace): Compile only in SHARED case.
38354         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
38355         Likewise.
38356         (__backchain_backtrace): Declare as static.
38357
38358 2014-11-12  Roland McGrath  <roland@hack.frob.com>
38359
38360         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
38361         (__libc_multiple_threads_ptr): Variable moved ...
38362         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
38363
38364 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
38365
38366         * conform/GlibcConform.pm: New file.
38367         * conform/conformtest.pl: Use GlibcConform module.
38368         * conform/linknamespace.pl: New file.
38369         * conform/list-header-symbols.pl: Likewise.
38370         * conform/Makefile (linknamespace-symlists-base): New variable.
38371         (linknamespace-symlists-tests): Likewise.
38372         (linknamespace-header-base): Likewise.
38373         (linknamespace-header-tests): Likewise.
38374         (tests-special): Add new tests.
38375         ($(linknamespace-symlists-tests)): New rule.
38376         (linknamespace-libs): New variable.
38377         ($(objpfx)symlist-stdlibs): New rule.
38378         ($(linknamespace-header-tests)): Likewise.
38379         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
38380         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
38381         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
38382         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
38383         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
38384         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
38385         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
38386         (test-xfail-ISO/math.h/linknamespace): Likewise.
38387         (test-xfail-ISO/signal.h/linknamespace): Likewise.
38388         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
38389         (test-xfail-ISO/time.h/linknamespace): Likewise.
38390         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38391         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
38392         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38393         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38394         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
38395         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38396         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38397         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
38398         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38399         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38400         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
38401         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38402         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
38403         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
38404         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
38405         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38406         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
38407         (test-xfail-XPG3/search.h/linknamespace): Likewise.
38408         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
38409         (test-xfail-XPG3/time.h/linknamespace): Likewise.
38410         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
38411         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
38412         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
38413         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
38414         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
38415         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
38416         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
38417         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
38418         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38419         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
38420         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
38421         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
38422         (test-xfail-XPG4/search.h/linknamespace): Likewise.
38423         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
38424         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
38425         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
38426         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
38427         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
38428         (test-xfail-XPG4/time.h/linknamespace): Likewise.
38429         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
38430         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
38431         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
38432         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
38433         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
38434         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38435         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
38436         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
38437         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
38438         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
38439         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
38440         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
38441         (test-xfail-POSIX/time.h/linknamespace): Likewise.
38442         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
38443         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
38444         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
38445         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
38446         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
38447         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
38448         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
38449         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
38450         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
38451         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38452         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
38453         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
38454         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
38455         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
38456         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
38457         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
38458         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
38459         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
38460         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
38461         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
38462         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
38463         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
38464         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
38465         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
38466         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
38467         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
38468         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
38469         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
38470         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38471         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
38472         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
38473         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
38474         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
38475         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
38476         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
38477         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38478         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
38479         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
38480         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
38481         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
38482         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
38483         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
38484         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
38485         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
38486         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
38487         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
38488         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
38489         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
38490         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
38491         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
38492         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
38493         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38494         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
38495         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
38496         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
38497         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
38498         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
38499         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38500         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
38501         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
38502         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
38503         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
38504         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38505         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
38506         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
38507         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
38508         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
38509         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
38510         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
38511         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
38512         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
38513         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
38514         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38515         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
38516         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
38517         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
38518         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38519         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
38520         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
38521         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
38522         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
38523         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
38524         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38525         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
38526         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
38527         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
38528         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
38529         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
38530         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
38531         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
38532         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
38533         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
38534         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
38535         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
38536         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
38537         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38538         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
38539         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
38540
38541         [BZ #17589]
38542         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
38543         of fgets_unlocked.
38544
38545         [BZ #17585]
38546         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
38547         (memmem): Rename to __memmem and define as weak alias of
38548         __memmem.  Use libc_hidden_weak.
38549         (__memmem): Use libc_hidden_def.
38550         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
38551         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
38552         memmem.
38553
38554         [BZ #17582]
38555         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
38556         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
38557         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
38558         and define as weak alias of __fgets_unlocked.  Use
38559         libc_hidden_weak.
38560         (__fgets_unlocked): Use libc_hidden_def.
38561         * include/stdio.h (__fgets_unlocked): Declare.  Use
38562         libc_hidden_proto.
38563         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
38564         __fgets_unlocked instead of fgets_unlocked.
38565         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
38566         (GET_NPROCS_CONF_PARSER): Likewise.
38567         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
38568         (GET_NPROCS_CONF_PARSER): Likewise.
38569
38570         [BZ #17574]
38571         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
38572         weak alias of __wmemset.  Use libc_hidden_weak.
38573         (__wmemset): Use libc_hidden_def.
38574         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
38575         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
38576         of wmemset.
38577
38578         [BZ #17573]
38579         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
38580         with asm name __mempcpy.
38581         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
38582
38583         [BZ #17572]
38584         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
38585         and define as weak alias of __rawmemchr.
38586         (__rawmemchr): Do not define as strong alias of rawmemchr.
38587
38588         [BZ #17571]
38589         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
38590         alias of __qsort_r.
38591         (qsort): Call __qsort_r instead of qsort_r.
38592         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
38593         (__qsort_r): Declare.  Call libc_hidden_proto.
38594         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
38595         instead of qsort_r.
38596         * nscd/gai.c (__qsort_r): Define to qsort_r.
38597         * posix/tst-rfc3484.c (__qsort_r): Likewise.
38598         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
38599         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
38600
38601         [BZ #17570]
38602         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
38603         define as weak alias of __malloc_info.
38604
38605         [BZ #17584]
38606         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
38607         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38608         (__rewinddir): Use libc_hidden_def.
38609         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
38610         as weak alias of __rewinddir.  Don't use libc_hidden_def.
38611         (__rewinddir): Use libc_hidden_def.
38612         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
38613         weak alias of __rewinddir.  Don't use libc_hidden_def.
38614         (__rewinddir): Use libc_hidden_def.
38615         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
38616         (__rewinddir): Use libc_hidden_proto.
38617         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
38618         rewinddir.
38619         (__getcwd): Use __rewinddir instead of rewinddir.
38620
38621         [BZ #17583]
38622         * libio/fileno.c (fileno): Rename to __fileno and define as weak
38623         alias of __fileno.  Use libc_hidden_weak.
38624         (__fileno): Use libc_hidden_def.
38625         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
38626         * libio/ftello.c (ftello): Rename to __ftello and define as weak
38627         alias of __ftello.
38628         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
38629         __ftello.
38630         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
38631         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
38632         libc_hidden_def.
38633         (fread_unlocked): Don't use libc_hidden_ver.
38634         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
38635         and define as weak alias of __fread_unlocked.  Don't use
38636         libc_hidden_def.
38637         (__fread_unlocked): Use libc_hidden_def.
38638         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
38639         (ftello): Don't use libc_hidden_proto.
38640         (__ftello): Declare.  Use libc_hidden_proto.
38641         (fread_unlocked): Don't use libc_hidden_proto.
38642         (__fread_unlocked): Declare.  Use libc_hidden_proto.
38643         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
38644         and __ftello instead of fileno, fread_unlocked and ftello.
38645
38646 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
38647
38648         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
38649         GOT12.
38650         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
38651         Likewise.
38652         (_dl_start_user): Likewise.
38653         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
38654
38655 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
38656             Siddhesh Poyarekar  <siddhesh@redhat.com>
38657
38658         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
38659         Move argv and envp down instead of moving argc up.
38660         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
38661
38662 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
38663
38664         [BZ #17506]
38665         * test-skeleton.c (main): Return successful if one of
38666         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
38667         * string/tst-strcoll-overflow.c: Define expected status.
38668
38669 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
38670
38671         [BZ #17475]
38672         * locale/iso-639.def: Define Bhili and Tulu language codes.
38673
38674 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
38675
38676         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
38677
38678 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
38679
38680         [BZ #17555]
38681         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
38682
38683 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
38684
38685         * configure.ac: Updated check of minimal required version to
38686         2.22.
38687         * manual/install.texi (Tools for Compilation): Updated version
38688         number.
38689         * configure: Regenerated.
38690         * INSTALL: Likewise.
38691
38692 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
38693
38694         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
38695         __tls_get_addr.
38696
38697 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
38698
38699         * include/sys/wait.h (__libc_waitpid): Remove declaration.
38700         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
38701         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38702         libc_hidden_weak.
38703         (waitpid): Define as alias of __waitpid.
38704         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
38705         __waitpid.
38706         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38707         libc_hidden_weak.
38708         (waitpid): Define as alias of __waitpid.
38709         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
38710         __libc_waitpid alias.
38711         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
38712         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
38713         Likewise.
38714         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
38715         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
38716         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
38717         alias.
38718         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
38719         __waitpid.
38720         (__waitpid): Don't define as alias.  Use libc_hidden_def not
38721         libc_hidden_weak.
38722         (waitpid): Define as alias of __waitpid.
38723
38724 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
38725
38726         * manual/llio.texi: Add comment that write safety has been
38727         fixed in Linux.
38728
38729         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
38730         (localplt-build-dso): Add elf/ld.so.
38731         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
38732         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
38733         and free for ld.so.
38734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
38735         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
38736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
38737         Likewise.
38738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
38739         Likewise.
38740         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
38741         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
38742         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
38743         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
38744         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
38745         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
38746         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
38747         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
38748         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
38749         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
38750         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
38751
38752 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
38753
38754         [BZ #14132]
38755         * include/libc-symbols.h (INTUSE): Remove macro.
38756         (INTDEF): Likewise.
38757         (INTVARDEF): Likewise.
38758         (_INTVARDEF): Likewise.
38759         (INTDEF2): Likewise.
38760         (INTVARDEF2): Likewise.
38761         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
38762         rtld_hidden_def instead of INTVARDEF.
38763         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
38764         (_dl_starting_up_internal): Remove declaration.
38765         (_dl_starting_up): Use rtld_hidden_proto.
38766         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
38767         declaration.
38768         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
38769         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
38770         _dl_starting_up.
38771         * elf/dl-writev.h (_dl_writev): Likewise.
38772         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
38773         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
38774         _dl_starting_up_internal.
38775
38776 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38777
38778         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
38779         test-skeleton.c.
38780
38781 2014-11-05  Will Newton  <will.newton@linaro.org>
38782
38783         * benchtests/Makefile: (bench-malloc): Add malloc thread
38784         scalability benchmark.
38785         * benchtests/bench-malloc-threads.c: New file.
38786
38787 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
38788
38789         * sysdeps/aarch64/strchrnul.S: New file.
38790
38791 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38792
38793         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
38794         definition.
38795         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
38796         Likewise.
38797         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
38798         Likewise.
38799         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
38800         Likewise.
38801         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
38802         Likewise.
38803         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
38804         Likewise.
38805
38806 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
38807
38808         * catgets/test-gencat.c: Use test-skeleton.c.
38809         * catgets/tst-catgets.c: Likewise.
38810         * csu/tst-empty.c: Likewise.
38811         * elf/tst-audit2.c: Likewise.
38812         * elf/tst-global1.c: Likewise.
38813         * elf/tst-pathopt.c: Likewise.
38814         * elf/tst-piemod1.c: Likewise.
38815         * elf/tst-tls10.c: Likewise.
38816         * elf/tst-tls11.c: Likewise.
38817         * elf/tst-tls12.c: Likewise.
38818         * gnulib/tst-gcc.c: Likewise.
38819         * iconvdata/tst-e2big.c: Likewise.
38820         * iconvdata/tst-loading.c: Likewise.
38821         * iconv/tst-iconv1.c: Likewise.
38822         * iconv/tst-iconv2.c: Likewise.
38823         * inet/test-inet6_opt.c: Likewise.
38824         * inet/tst-gethnm.c: Likewise.
38825         * inet/tst-network.c: Likewise.
38826         * inet/tst-ntoa.c: Likewise.
38827         * intl/tst-codeset.c: Likewise.
38828         * intl/tst-gettext2.c: Likewise.
38829         * intl/tst-gettext3.c: Likewise.
38830         * intl/tst-ngettext.c: Likewise.
38831         * intl/tst-translit.c: Likewise.
38832         * io/test-stat.c: Likewise.
38833         * libio/test-fmemopen.c: Likewise.
38834         * libio/tst-freopen.c: Likewise.
38835         * libio/tst-sscanf.c: Likewise.
38836         * libio/tst-ungetwc1.c: Likewise.
38837         * libio/tst-ungetwc2.c: Likewise.
38838         * libio/tst-widetext.c: Likewise.
38839         * localedata/tst-ctype.c: Likewise.
38840         * localedata/tst-digits.c: Likewise.
38841         * localedata/tst-leaks.c: Likewise.
38842         * localedata/tst-mbswcs1.c: Likewise.
38843         * localedata/tst-mbswcs2.c: Likewise.
38844         * localedata/tst-mbswcs3.c: Likewise.
38845         * localedata/tst-mbswcs4.c: Likewise.
38846         * localedata/tst-mbswcs5.c: Likewise.
38847         * localedata/tst-setlocale.c: Likewise.
38848         * localedata/tst-trans.c: Likewise.
38849         * localedata/tst-wctype.c: Likewise.
38850         * localedata/tst-xlocale1.c: Likewise.
38851         * login/tst-grantpt.c: Likewise.
38852         * malloc/tst-calloc.c: Likewise.
38853         * malloc/tst-malloc.c: Likewise.
38854         * malloc/tst-mallocstate.c: Likewise.
38855         * malloc/tst-mcheck.c: Likewise.
38856         * malloc/tst-mtrace.c: Likewise.
38857         * malloc/tst-obstack.c: Likewise.
38858         * math/atest-exp2.c: Likewise.
38859         * math/atest-exp.c: Likewise.
38860         * math/atest-sincos.c: Likewise.
38861         * math/test-matherr.c: Likewise.
38862         * math/test-misc.c: Likewise.
38863         * math/test-powl.c: Likewise.
38864         * math/tst-definitions.c: Likewise.
38865         * misc/tst-dirname.c: Likewise.
38866         * misc/tst-efgcvt.c: Likewise.
38867         * misc/tst-fdset.c: Likewise.
38868         * misc/tst-hsearch.c: Likewise.
38869         * misc/tst-mntent2.c: Likewise.
38870         * nptl/tst-sem7.c: Likewise.
38871         * nptl/tst-sem8.c: Likewise.
38872         * nptl/tst-sem9.c: Likewise.
38873         * nss/test-netdb.c: Likewise.
38874         * posix/tst-fnmatch.c: Likewise.
38875         * posix/tst-getlogin.c: Likewise.
38876         * posix/tst-gnuglob.c: Likewise.
38877         * posix/tst-mmap.c: Likewise.
38878         * pwd/tst-getpw.c: Likewise.
38879         * resolv/tst-inet_ntop.c: Likewise.
38880         * rt/tst-timer.c: Likewise.
38881         * stdio-common/test-fseek.c: Likewise.
38882         * stdio-common/test-popen.c: Likewise.
38883         * stdio-common/test-vfprintf.c: Likewise.
38884         * stdio-common/tst-cookie.c: Likewise.
38885         * stdio-common/tst-fileno.c: Likewise.
38886         * stdio-common/tst-gets.c: Likewise.
38887         * stdio-common/tst-obprintf.c: Likewise.
38888         * stdio-common/tst-perror.c: Likewise.
38889         * stdio-common/tst-sprintf2.c: Likewise.
38890         * stdio-common/tst-sprintf3.c: Likewise.
38891         * stdio-common/tst-sprintf.c: Likewise.
38892         * stdio-common/tst-swprintf.c: Likewise.
38893         * stdio-common/tst-tmpnam.c: Likewise.
38894         * stdio-common/tst-unbputc.c: Likewise.
38895         * stdio-common/tst-wc-printf.c: Likewise.
38896         * stdlib/tst-environ.c: Likewise.
38897         * stdlib/tst-fmtmsg.c: Likewise.
38898         * stdlib/tst-limits.c: Likewise.
38899         * stdlib/tst-rand48-2.c: Likewise.
38900         * stdlib/tst-rand48.c: Likewise.
38901         * stdlib/tst-random2.c: Likewise.
38902         * stdlib/tst-random.c: Likewise.
38903         * stdlib/tst-strtol.c: Likewise.
38904         * stdlib/tst-strtoll.c: Likewise.
38905         * stdlib/tst-tls-atexit.c: Likewise.
38906         * stdlib/tst-xpg-basename.c: Likewise.
38907         * string/test-ffs.c: Likewise.
38908         * string/tst-bswap.c: Likewise.
38909         * string/tst-inlcall.c: Likewise.
38910         * string/tst-strtok.c: Likewise.
38911         * string/tst-strxfrm.c: Likewise.
38912         * sysdeps/x86_64/tst-audit10.c: Likewise.
38913         * sysdeps/x86_64/tst-audit3.c: Likewise.
38914         * sysdeps/x86_64/tst-audit4.c: Likewise.
38915         * sysdeps/x86_64/tst-audit5.c: Likewise.
38916         * time/tst-ftime_l.c: Likewise.
38917         * time/tst-getdate.c: Likewise.
38918         * time/tst-mktime3.c: Likewise.
38919         * time/tst-mktime.c: Likewise.
38920         * time/tst-posixtz.c: Likewise.
38921         * time/tst-strptime2.c: Likewise.
38922         * time/tst-strptime3.c: Likewise.
38923         * wcsmbs/tst-btowc.c: Likewise.
38924         * wcsmbs/tst-mbrtowc.c: Likewise.
38925         * wcsmbs/tst-mbsrtowcs.c: Likewise.
38926         * wcsmbs/tst-wchar-h.c: Likewise.
38927         * wcsmbs/tst-wcpncpy.c: Likewise.
38928         * wcsmbs/tst-wcrtomb.c: Likewise.
38929         * wcsmbs/tst-wcsnlen.c: Likewise.
38930         * wcsmbs/tst-wcstof.c: Likewise.
38931
38932 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
38933
38934         [BZ #14132]
38935         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
38936         INTDEF.
38937         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
38938         declaration.
38939         (_dl_mcount): Use rtld_hidden_proto.
38940         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
38941         _dl_mcount.
38942         * elf/rtld.c (_rtld_global_ro): Likewise.
38943
38944         [BZ #14132]
38945         * elf/dl-init.c (_dl_init): Don't use INTDEF.
38946         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
38947         of _dl_init_internal.
38948         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
38949         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
38950         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
38951         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
38952         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
38953         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
38954         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
38955         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
38956         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
38957         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
38958         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
38959         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
38960         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38961         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38962         * sysdeps/tile/dl-start.S (_start): Likewise.
38963         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
38964         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
38965
38966         [BZ #14132]
38967         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
38968         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
38969         (rtld_progname): Make macro definition unconditional.
38970         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
38971         INTDEF.
38972         (dlmopen_doit): Do not use INTUSE with _dl_argv.
38973         (dl_main): Likewise.
38974         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
38975         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
38976         instead of _dl_argv_internal.
38977         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
38978         __GI__dl_argv instead of INTUSE(_dl_argv).
38979         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
38980         __GI__dl_argv instead of _dl_argv_internal.
38981
38982         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
38983         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
38984         macro.
38985         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
38986         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
38987         New macro.
38988         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
38989         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
38990         macro.
38991         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
38992         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
38993
38994 2014-11-04  Andreas Schwab  <schwab@suse.de>
38995
38996         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
38997
38998 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38999
39000         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39001         mtvsrd instruction in binary form.
39002
39003 2014-11-03  Andreas Schwab  <schwab@suse.de>
39004
39005         [BZ #17522]
39006         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39007         for less than MB_LEN_MAX use a local buffer of that size.
39008         * libio/tst-fputws.c: New file.
39009         * libio/Makefile (tests): Add tst-fputws.
39010
39011 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39012
39013         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39014         the size of the fpu_fr.fpu_dregs[] array.
39015
39016 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39017
39018         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39019         (__nanosleep): Do not define as alias.
39020         (nanosleep): Define as alias of __nanosleep.
39021         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39022         __libc_nanosleep name.
39023
39024 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39025
39026         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39027         install.texi in comment.
39028
39029 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39030
39031         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39032         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39033         ... add here and use lwsync or sync ...
39034         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39035         ... and add here using lwsync.
39036
39037 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39038
39039         * elf/dl-machine-reject-phdr.h: New file.
39040         * elf/dl-load.c: #include that.
39041         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39042         if that returned true.
39043
39044 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39045
39046         [BZ #17496]
39047         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39048         gen-as-const-headers chunk.  Add a big scare comment after the last
39049         safe place to touch before-compile.
39050
39051 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39052
39053         * manual/install.texi (Tools for Compilation): Update autoconf
39054         version requirements.
39055         * INSTALL: Regenerated.
39056
39057         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39058         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39059         (__libc_pselect): Likewise.
39060
39061         [BZ #14138]
39062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39066
39067 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39068
39069         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39070         correct barrier instruction.
39071         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39072         Likewise.
39073         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39074         Likewise.
39075
39076 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39077
39078         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39079         after defining inlines.  Instead, just use parens to defeat macro
39080         expansion of __isctype in its declaration.
39081
39082 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39083
39084         * include/sys/uio.h (__libc_readv): Remove declaration.
39085         (__libc_writev): Likewise.
39086         * misc/readv.c (__libc_readv): Rename to __readv.
39087         (__readv): Do not define as alias.
39088         (readv): Define as alias of __readv.
39089         * misc/writev.c (__libc_writev): Rename to __writev.
39090         (__writev): Do not define as alias.
39091         (writev): Define as alias of __writev.
39092         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39093         (__readv): Do not define as alias.
39094         (readv): Define unconditionally as alias of __readv.
39095         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39096         (__writev): Do not define as alias.
39097         (writev): Define unconditionally as alias of __writev.
39098         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39099         name.
39100         (writev): Do not define __libc_writev name.
39101
39102 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39103
39104         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39105         (convert_charseq): New function, broken out of ...
39106         (use_from_charmap): ... here.  Call it.
39107         (use_to_charmap): Use convert_charseq and free instead of duplicating
39108         its code with a variable-length stack struct.
39109
39110 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39111
39112         * include/fcntl.h (__libc_creat): Remove declaration.
39113         * io/creat.c (__libc_creat): Rename to creat.
39114         (creat): Do not define as alias.
39115         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39116         of creat instead of __libc_creat.
39117         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39118         to creat.
39119         (creat): Do not define as alias.
39120         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39121         __libc_creat.
39122         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39123         __libc_creat name.
39124         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39125         Likewise.
39126
39127 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39128
39129         * manual/llio.texi: Add comments discussing why write() may be
39130         considered MT-unsafe on Linux.
39131
39132 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39133
39134         * dl-load.c (local_strdup): Remove.
39135         (expand_dynamic_string_token): Use __strdup.
39136         (decompose_rpath): Likewise.
39137         (_dl_map_object): Likewise.
39138
39139 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39140
39141         [BZ #14132]
39142         * sysdeps/generic/unwind-dw2-fde.c
39143         (__register_frame_info_bases_internal): Do not declare.
39144         (__register_frame_info_table_bases_internal): Likewise.
39145         (__deregister_frame_info_bases_internal): Likewise.
39146         (__register_frame_info_bases): Declare and use hidden_proto before
39147         definition.  Use hidden_def instead of INTDEF.
39148         (__register_frame_info_table_bases): Likewise.
39149         (__deregister_frame_info_bases): Likewise.
39150         (__register_frame_info): Do not use INTUSE.
39151         (__register_frame): Likewise.
39152         (__register_frame_info_table): Likewise.
39153         (__register_frame_table): Likewise.
39154         (__deregister_frame_info): Likewise.
39155         (__deregister_frame): Likewise.
39156
39157 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39158
39159         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39160         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39161         not undefine.
39162         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39163         Likewise.
39164         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39165         Likewise.
39166
39167 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39168
39169         [BZ #14138]
39170         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39171         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39172         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39173         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39174         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39175         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39176         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39177         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39178         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39179         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39180         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39181         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39182         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39183         syscall.
39184         (setfsuid): Likewise.
39185         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39186         (setfsuid): Likewise.
39187         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39188         (setfsuid): Likewise.
39189         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39190         Likewise.
39191         (setfsuid): Likewise.
39192         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39193         (setfsuid): Likewise.
39194         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39195         Likewise.
39196         (setfsuid): Likewise.
39197
39198 2014-10-27  Andreas Schwab  <schwab@suse.de>
39199
39200         [BZ #17501]
39201         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39202         check for Slow_SSE4_2 feature bit.
39203         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39204         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39205         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39206         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39207
39208 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39209
39210         * configure.ac: Validate compiler version with a empirical test of
39211         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39212         $CC -v output.
39213         * configure: Regenerated.
39214
39215         * inet/htons.c (htons): Prototypify.
39216         * inet/htonl.c (htonl): Likewise.
39217
39218 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39219
39220         * string/strncat.c (strncat): Improve performance by using strlen.
39221
39222 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39223
39224         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39225
39226 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39227
39228         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39229         Call libc_fetestexcept_aarch64.
39230
39231 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39232
39233         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39234         Call libc_feholdexcept_aarch64.
39235
39236 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39237
39238         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39239         Call get_rounding_mode.
39240
39241 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39242
39243         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39244         Simplify logic.
39245
39246 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39247
39248         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39249         Simplify logic.
39250
39251 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39252
39253         [BZ #14138]
39254         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39255         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39256         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39257         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39258         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39259         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39260         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39261         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39262         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39263         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39264         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39265         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39266         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39267         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39268         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39269         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39270         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39271         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39272         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39273         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39274         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39275         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39276         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39277         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39278         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39279         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39280         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39281         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39282         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39283         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39284         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39285         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39286         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39287         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39288         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39289         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39290         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39291         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39292         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39293         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39294         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39295         syscall.
39296         (geteuid): Likewise.
39297         (getgid): Likewise.
39298         (getuid): Likewise.
39299         (getresgid): Likewise.
39300         (getresuid): Likewise.
39301         (getgroups): Likewise.
39302         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39303         (geteuid): Likewise.
39304         (getgid): Likewise.
39305         (getuid): Likewise.
39306         (getresgid): Likewise.
39307         (getresuid): Likewise.
39308         (getgroups): Likewise.
39309         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
39310         (geteuid): Likewise.
39311         (getgid): Likewise.
39312         (getuid): Likewise.
39313         (getresgid): Likewise.
39314         (getresuid): Likewise.
39315         (getgroups): Likewise.
39316         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
39317         Likewise.
39318         (geteuid): Likewise.
39319         (getgid): Likewise.
39320         (getuid): Likewise.
39321         (getresgid): Likewise.
39322         (getresuid): Likewise.
39323         (getgroups): Likewise.
39324         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
39325         (geteuid): Likewise.
39326         (getgid): Likewise.
39327         (getuid): Likewise.
39328         (getresgid): Likewise.
39329         (getresuid): Likewise.
39330         (getgroups): Likewise.
39331         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
39332         Likewise.
39333         (geteuid): Likewise.
39334         (getgid): Likewise.
39335         (getuid): Likewise.
39336         (getgroups): Likewise.
39337
39338         [BZ #14138]
39339         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
39340         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
39341         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
39342         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
39343         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
39344         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
39345         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
39346         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
39347         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
39348         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
39349         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
39350         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
39351         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
39352         __chown.
39353         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
39354         (lchown): Likewise.
39355         (fchown): Likewise.
39356         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
39357         Likewise.
39358         (lchown): Likewise.
39359         (fchown): Likewise.
39360         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
39361         (lchown): Likewise.
39362         (fchown): Likewise.
39363         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
39364         Likewise.
39365         (lchown): Likewise.
39366         (fchown): Likewise.
39367
39368 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39369
39370         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
39371         Simplify logic.
39372
39373 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39374
39375         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39376         Cleanup logic.
39377
39378 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39379
39380         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39381         Remove unused include.
39382
39383 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39384
39385         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
39386         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
39387         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
39388         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
39389
39390 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
39391             Helge Deller <deller@gmx.de>
39392
39393         [BZ #17508]
39394         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
39395         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
39396         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
39397
39398 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
39399
39400         [BZ #14132]
39401         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
39402         Remove macro definition.
39403         (__ashrdi3_v_glibc20): Likewise.
39404         (__lshrdi3_v_glibc20): Likewise.
39405         (__cmpdi2_v_glibc20): Likewise.
39406         (__ucmpdi2_v_glibc20): Likewise.
39407         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
39408         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39409         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39410         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39411         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39412         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
39413
39414 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39415
39416         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
39417         old GNU extension [0] syntax.
39418         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
39419         alloca rather than an array member with variable length.
39420         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
39421         * nscd/nscd.c (invalidate_db): New function, broken out of ...
39422         (parse_opt): ... here.  Likewise use alloca there.
39423         Validate the -i argument before checking for rootness.
39424         (send_shutdown): New function, broken out of ...
39425         (parse_opt): ... here.
39426
39427 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39428
39429         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
39430         macro to get at the _rt_local_ro field.
39431         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
39432         ([PIC] case) or _dl_hwcap ([!PIC] case).
39433         * sysdeps/arm/setjmp.S: Likewise.
39434
39435         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
39436         * sysdeps/arm/configure.ac: New check to define it.
39437         * sysdeps/arm/configure: Regenerated.
39438         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
39439         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
39440         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
39441         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
39442         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
39443         Use move/movt pair instead of a load.
39444         (LDST_GLOBAL): Macro removed.
39445         (LDR_GLOBAL): New macro replaces it.
39446         (LDR_HIDDEN): New macro.
39447         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
39448         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
39449
39450         * setjmp/tst-setjmp-static.c: New file.
39451         * setjmp/Makefile (tests): Add it.
39452         (tests-static): New variable.
39453
39454 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
39455
39456         [BZ #17485]
39457         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
39458
39459 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
39460
39461         [BZ #14132]
39462         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
39463
39464 2014-10-21  Roland McGrath  <roland@hack.frob.com>
39465
39466         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
39467
39468 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39469
39470         * io/fts.c (dirent_not_directory): New function.
39471         (fts_build): Call it.
39472
39473 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39474
39475         * nptl/version.c (__nptl_main): Use normal __write rather than
39476         INTERNAL_SYSCALL.
39477         (banner): Update copyright years.
39478
39479         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
39480         gettimeofday.
39481         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
39482         * nptl/pthread_cond_timedwait.c: Likewise.
39483         * nptl/pthread_mutex_timedlock.c: Likewise.
39484         * nptl/sem_timedwait.c: Likewise.
39485
39486         * sysdeps/nptl/bits/libc-lock.h
39487         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39488         (__libc_lock_init_recursive): Return void, not 0.
39489         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
39490         (__libc_rwlock_init): Likewise.
39491         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
39492
39493 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39494
39495         [BZ #15215]
39496         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
39497         (__pthread_once_slow): ... here.
39498         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
39499         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
39500
39501 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39502
39503         [BZ #15215]
39504         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
39505         __PTHREAD_ONCE_FORK_GEN_INCR): New.
39506         * sysdeps/nptl/fork.c (__libc_fork): Use them.
39507         * nptl/pthread_once.c (__pthread_once): Likewise.
39508         Update comments.
39509
39510 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
39511
39512         [BZ #14138]
39513         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
39514         name.
39515         (writev): Use __libc_writev as strong name.
39516         * sysdeps/unix/sysv/linux/readv.c: Remove file.
39517         * sysdeps/unix/sysv/linux/writev.c: Likewise.
39518
39519 2014-10-17  Roland McGrath  <roland@hack.frob.com>
39520
39521         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
39522
39523         * sysdeps/i386/nptl/tls.h
39524         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
39525         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
39526         New macros.
39527         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
39528         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
39529         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
39530         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
39531         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
39532         Call CHECK_THREAD_SYSINFO instead of doing an assert.
39533
39534         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
39535         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
39536         on [__NR_futex].
39537         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
39538         broken out of ...
39539         (__pthread_mutex_init): ... here.  Call it.
39540         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
39541         Conditionalize PI cases on [__NR_futex].
39542         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
39543         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
39544         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
39545
39546         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
39547         conditional on [SIGSETXID].
39548         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
39549         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
39550         is defined.  Likewise for SIGSETXID.
39551         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
39552         Conditionalize definitions on [SIGSETXID].
39553         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
39554         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
39555         unblocking on [SIGCANCEL].
39556
39557         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
39558         [__NR_set_robust_list].
39559
39560 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
39561
39562         * string/strcoll_l.c (get_next_seq): Fix up formatting.
39563         (do_compare): Likewise.
39564
39565 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
39566
39567         [BZ #15884]
39568         * string/strcoll_l.c: Don't include stdio.h.
39569         (coll_seq): Remove members idxarr and rulearr.
39570         (get_next_seq_cached): Remove function.
39571         (get_next_seq): Likewise.
39572         (get_next_seq_nocache): Rename to get_next_seq.
39573         (do_compare): Remove function.
39574         (do_compare_nocache): Rename to do_compare.
39575         (STRCOLL): Remove weight and rules cache.
39576
39577 2014-10-16  Roland McGrath  <roland@hack.frob.com>
39578
39579         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
39580         * sysdeps/arm/sfp-machine.h: ... to here.
39581         * sysdeps/arm/Implies: Remove arm/soft-fp.
39582
39583 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
39584
39585         * conform/data/sys/utsname.h-data (*_t): Allow.
39586         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
39587         [POSIX] (WEXITED): Do not expect constant.
39588         [POSIX] (WSTOPPED): Likewise.
39589         [POSIX] (WNOHANG): Likewise.
39590         [POSIX] (WNOWAIT): Likewise.
39591         [POSIX] (siginfo_t): Do not expect type or elements.
39592         [POSIX] (pid_t): Do not expect type.
39593         [POSIX] (signal.h): Do not allow header.
39594         [POSIX] (sys/resource.h): Likewise.
39595         [POSIX] (si_*): Do not allow pattern.
39596         [POSIX] (W*): Likewise.
39597         [POSIX] (P_*): Likewise.
39598         [POSIX] (BUS_*): Likewise.
39599         [POSIX] (CLD_*): Likewise.
39600         [POSIX] (FPE_*): Likewise.
39601         [POSIX] (ILL_*): Likewise.
39602         [POSIX] (POLL_*): Likewise.
39603         [POSIX] (SEGV_*): Likewise.
39604         [POSIX] (SI_*): Likewise.
39605         [POSIX] (TRAP_*): Likewise.
39606         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
39607         variable.
39608
39609 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
39610
39611         [BZ #12926]
39612         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
39613         infinite loop when __recvmsg returns 0.
39614
39615 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
39616
39617         * CANCEL-FCT-WAIVE: Remove file.
39618         * CANCEL-FILE-WAIVE: Likewise.
39619
39620         [BZ #14132]
39621         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
39622         instead of INTVARDEF.
39623         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39624         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
39625         rtld_hidden_data_def instead of INTVARDEF.
39626         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
39627         * elf/dl-deps.c (expand_dst): Likewise.
39628         * elf/dl-load.c (_dl_dst_count): Likewise.
39629         (_dl_dst_substitute): Likewise.
39630         (decompose_rpath): Likewise.
39631         (_dl_init_paths): Likewise.
39632         (open_path): Likewise.
39633         (_dl_map_object): Likewise.
39634         * elf/rtld.c (dl_main): Likewise.
39635         (process_dl_audit): Likewise.
39636         (process_envvars): Likewise.
39637         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
39638         Remove declaration.
39639         (__libc_enable_secure): Use rtld_hidden_proto.
39640
39641 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39642
39643         * elf/dl-load.c
39644         (add_path): New function broken out of _dl_rtld_di_serinfo.
39645         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
39646
39647 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39648
39649         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
39650         parentheses around macro arguments.
39651         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
39652         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
39653         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
39654         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
39655         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
39656         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39657         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39658         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
39659         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
39660         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
39661         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
39662         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
39663         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
39664         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
39665         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
39666         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
39667         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
39668         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
39669         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
39670         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
39671         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
39672         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
39673         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
39674         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
39675         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
39676         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
39677         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
39678         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
39679         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
39680         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
39681         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
39682         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
39683         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
39684         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
39685         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
39686         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
39687         Likewise.
39688         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
39689         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39690         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39691         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
39692         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
39693         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
39694         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
39695         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
39696         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
39697         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
39698         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
39699         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
39700         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
39701         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
39702         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
39703         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
39704         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
39705         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
39706         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
39707         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
39708         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
39709         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
39710         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
39711         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
39712         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
39713         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
39714         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
39715         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
39716         (_FP_FRAC_SRS_1): Likewise.
39717         (_FP_FRAC_CLZ_1): Likewise.
39718         (_FP_MUL_MEAT_1_imm): Likewise.
39719         (_FP_MUL_MEAT_1_wide): Likewise.
39720         (_FP_MUL_MEAT_1_hard): Likewise.
39721         (_FP_SQRT_MEAT_1): Likewise.
39722         (_FP_FRAC_ASSEMBLE_1): Likewise.
39723         (_FP_FRAC_DISASSEMBLE_1): Likewise.
39724         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
39725         (__FP_CLZ_2): Likewise.
39726         (_FP_MUL_MEAT_2_wide): Likewise.
39727         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
39728         (_FP_MUL_MEAT_2_gmp): Likewise.
39729         (_FP_MUL_MEAT_2_120_240_double): Likewise.
39730         (_FP_SQRT_MEAT_2): Likewise.
39731         (_FP_FRAC_ASSEMBLE_2): Likewise.
39732         (_FP_FRAC_DISASSEMBLE_2): Likewise.
39733         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
39734         (_FP_FRAC_CLZ_4): Likewise.
39735         (_FP_MUL_MEAT_4_wide): Likewise.
39736         (_FP_MUL_MEAT_4_gmp): Likewise.
39737         (_FP_SQRT_MEAT_4): Likewise.
39738         (_FP_FRAC_ASSEMBLE_4): Likewise.
39739         (_FP_FRAC_DISASSEMBLE_4): Likewise.
39740         * soft-fp/op-common.h (_FP_CMP): Likewise.
39741         (_FP_CMP_EQ): Likewise.
39742         (_FP_CMP_UNORD): Likewise.
39743         (_FP_TO_INT): Likewise.
39744         (_FP_FROM_INT): Likewise.
39745         [!__FP_CLZ] (__FP_CLZ): Likewise.
39746         (_FP_DIV_HELP_imm): Likewise.
39747         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
39748         Likewise.
39749         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
39750         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
39751         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
39752         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
39753         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
39754         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39755         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39756         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
39757         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
39758         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
39759         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
39760         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
39761         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
39762         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
39763         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
39764         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
39765         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
39766         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
39767         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
39768         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
39769         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
39770         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
39771         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
39772         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
39773         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
39774         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
39775         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
39776         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
39777         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
39778         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
39779         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
39780         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
39781         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
39782         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
39783         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
39784         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
39785         (FP_UNPACK_RAW_SP): Likewise.
39786         (FP_PACK_RAW_S): Likewise.
39787         (FP_PACK_RAW_SP): Likewise.
39788         (FP_UNPACK_S): Likewise.
39789         (FP_UNPACK_SP): Likewise.
39790         (FP_UNPACK_SEMIRAW_S): Likewise.
39791         (FP_UNPACK_SEMIRAW_SP): Likewise.
39792         (FP_PACK_S): Likewise.
39793         (FP_PACK_SP): Likewise.
39794         (FP_PACK_SEMIRAW_S): Likewise.
39795         (FP_PACK_SEMIRAW_SP): Likewise.
39796         (_FP_SQRT_MEAT_S): Likewise.
39797         (FP_CMP_S): Likewise.
39798         (FP_CMP_EQ_S): Likewise.
39799         (FP_CMP_UNORD_S): Likewise.
39800         (FP_TO_INT_S): Likewise.
39801         (FP_FROM_INT_S): Likewise.
39802
39803         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
39804
39805         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
39806         (FP_EX_INVALID_IMZ): Likewise.
39807         (FP_EX_INVALID_IMZ_FMA): Likewise.
39808         (FP_EX_INVALID_ISI): Likewise.
39809         (FP_EX_INVALID_ZDZ): Likewise.
39810         (FP_EX_INVALID_IDI): Likewise.
39811         (FP_EX_INVALID_SQRT): Likewise.
39812         (FP_EX_INVALID_CVI): Likewise.
39813         (FP_EX_INVALID_VC): Likewise.
39814         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
39815         "invalid" exceptions.
39816         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
39817         (_FP_ADD_INTERNAL): Likewise.
39818         (_FP_MUL): Likewise.
39819         (_FP_FMA): Likewise.
39820         (_FP_DIV): Likewise.
39821         (_FP_CMP_CHECK_NAN): Likewise.
39822         (_FP_SQRT): Likewise.
39823         (_FP_TO_INT): Likewise.
39824         (FP_EXTEND): Likewise.
39825
39826 2014-10-09  Allan McRae  <allan@archlinux.org>
39827
39828         * po/fr.po: Update French translation from translation project.
39829
39830 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
39831
39832         [BZ #14132]
39833         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
39834         of INTDEF.
39835         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
39836         (__cxa_atexit): Use libc_hidden_proto.
39837         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
39838
39839         [BZ #14132]
39840         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
39841         declaration.
39842         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
39843         [!_ISOMAC] (__iswspace_l_internal): Likewise.
39844         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
39845         [!_ISOMAC] (__iswctype_internal): Likewise.
39846         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
39847         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
39848         alias.
39849         (fcntl): Remove __fcntl_internal alias.
39850         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
39851         __connect_internal alias.
39852         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
39853         Likewise.
39854
39855         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
39856         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
39857         FP_DENORM_ZERO.
39858         (_FP_CHECK_FLUSH_ZERO): New macro.
39859         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
39860         (_FP_CMP): Likewise.
39861         (_FP_CMP_EQ): Likewise.
39862         (_FP_TO_INT): Do not set inexact for subnormal arguments if
39863         FP_DENORM_ZERO.
39864         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
39865         (FP_TRUNC): Likewise.
39866
39867         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
39868         treated as invalid conversion, not as normal exponent.
39869
39870         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
39871         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
39872         (_FP_CMP_EQ): Likewise.
39873         (_FP_CMP_UNORD): Likewise.
39874         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
39875         (FP_CMP_EQ_D): Likewise.
39876         (FP_CMP_UNORD_D): Likewise.
39877         * soft-fp/extended.h (FP_CMP_E): Likewise.
39878         (FP_CMP_EQ_E): Likewise.
39879         (FP_CMP_UNORD_E): Likewise.
39880         * soft-fp/quad.h (FP_CMP_Q): Likewise.
39881         (FP_CMP_EQ_Q): Likewise.
39882         (FP_CMP_UNORD_Q): Likewise.
39883         * soft-fp/single.h (FP_CMP_S): Likewise.
39884         (FP_CMP_EQ_S): Likewise.
39885         (FP_CMP_UNORD_S): Likewise.
39886         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
39887         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
39888         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
39889         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
39890         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
39891         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
39892         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
39893         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
39894         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
39895         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
39896         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
39897         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
39898         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
39899         to FP_CMP_Q.
39900         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
39901         FP_CMP_Q.
39902         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
39903         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
39904         FP_CMP_EQ_Q.
39905         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
39906         FP_CMP_Q.
39907         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
39908         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
39909         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
39910         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
39911         FP_CMP_EQ_Q.
39912         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
39913         FP_CMP_Q.
39914         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
39915         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
39916         FP_CMP_EQ_Q.
39917         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
39918         FP_CMP_Q.
39919         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
39920         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
39921         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
39922         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
39923         FP_CMP_EQ_Q.
39924
39925         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
39926         a subnormal result, set the underflow exception if trapping on
39927         underflow is enabled.
39928         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
39929         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
39930         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
39931         redefine to 0.
39932         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
39933         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
39934         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
39935         * soft-fp/extendxftf2.c (__extendxftf2): Use
39936         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
39937
39938         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
39939         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
39940         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39941         FP_HANDLE_EXCEPTIONS.
39942         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
39943         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39944         FP_HANDLE_EXCEPTIONS.
39945         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
39946         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39947         FP_HANDLE_EXCEPTIONS.
39948         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
39949         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
39950         FP_HANDLE_EXCEPTIONS.
39951
39952 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
39953
39954         [BZ #14132]
39955         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
39956         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
39957         use INTUSE.
39958         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
39959         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
39960         Remove alias.
39961         (__adjtimex): Define using libc_hidden_ver.
39962         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
39963         Remove declaration.
39964         (ntp_gettime): Call __adjtimex directly.
39965         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
39966         Remove declaration.
39967         (ntp_gettimex): Call __adjtimex directly.
39968         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
39969         __adjtimex_internal alias.
39970
39971 2014-10-08  Roland McGrath  <roland@hack.frob.com>
39972
39973         [BZ #17460]
39974         * nscd/nscd.c (more_help): Rewrite list of tables collection
39975         using xstrdup and asprintf.
39976
39977         * nscd/nscd_conf.c: Remove local xstrdup declaration.
39978
39979 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
39980             Roland McGrath  <roland@hack.frob.com>
39981
39982         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
39983         (do_lookup_unique): ... local function 'enter' here; update callers.
39984
39985 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
39986
39987         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
39988         compat_symbol calls on [SHARED].
39989         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
39990         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
39991         Remove.
39992         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39993         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
39994         (oldsetrlimit): Remove.
39995         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
39996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
39997         (lchown): New syscall entry.
39998         (oldsetrlimit): Remove.
39999         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40000         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40001         (oldsetrlimit): Remove.
40002         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40003
40004         [BZ #14138]
40005         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40006         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40007         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40008         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40009         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40010         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40011         (fchown): Likewise.
40012         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40013         (fchown): Likewise.
40014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40015         Likewise.
40016
40017 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40018
40019         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40020         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40021         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40022         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40023         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40024         Likewise.
40025         (__old_sem_post): Likewise.
40026
40027 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40028
40029         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40030         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40031         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40032         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40033         Use INLINE_VSYSCALL macro.
40034         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40035         __vdso_clock_gettime.
40036         * sysdeps/unix/sysv/linux/tile/init-first.c
40037         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40038         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40039         __vdso_clock_gettime.
40040
40041         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40042         to set up frame more cleanly.
40043
40044         * sysdeps/tile/memcmp.c: New file.
40045
40046         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40047
40048         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40049         * sysdeps/tile/tilegx/strcasestr.c: New file.
40050         * sysdeps/tile/tilegx/strnlen.c: New file.
40051         * sysdeps/tile/tilegx/strstr.c: New file.
40052
40053         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40054
40055 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40056
40057         * nptl/tst-setuid3.c: Write errors to stdout.
40058
40059 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40060
40061         * elf/dl-deps.c
40062         (preload): New functions broken out of _dl_map_object_deps.
40063         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40064
40065 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40066
40067         [BZ #14138]
40068         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40069         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40070
40071 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40072
40073         * sysdeps/mips/strcmp.S: New.
40074
40075 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40076
40077         [BZ #14138]
40078         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40079         (linkat): Likewise.
40080         (mkdirat): Likewise.
40081         (readlinkat): Likewise.
40082         (renameat): Likewise.
40083         (symlinkat): Likewise.
40084         (unlinkat): Likewise.
40085         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40086         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40087         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40088         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40089         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40090         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40091         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40092
40093 2014-09-30  Will Newton  <will.newton@linaro.org>
40094
40095         * math/math.h: Define long double math functions if
40096         _LIBC_TEST is defined.
40097         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40098
40099         * localedata/Makefile: Move assignment to tests-special
40100         into an ifdef testing run-built-tests.
40101         * timezone/Makefile: Likewise.
40102
40103 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40104
40105         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40106         with $(BASH) not $(SHELL).
40107
40108 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40109             Matthew LeGendre  <legendre1@llnl.gov>
40110
40111         [BZ #17411]
40112         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40113         l_reloc_result.
40114
40115 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40116
40117         * stdio-common/printf_fp.c
40118         (hack_digit): New function, broken out of ...
40119         (__printf_fp): ... local function here.  Update call sites.
40120         hack_digit now takes an additional parameter that is a pointer
40121         to a struct of the referenced locals.  Those locals moved inside
40122         the struct and references updated.
40123
40124 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40125
40126         * aclocal.m4: Require autoconf 2.69.
40127         * configure: Regenerated.
40128         * sysdeps/aarch64/configure: Likewise.
40129         * sysdeps/alpha/configure: Likewise.
40130         * sysdeps/arm/armv7/configure: Likewise.
40131         * sysdeps/arm/configure: Likewise.
40132         * sysdeps/ia64/configure: Likewise.
40133         * sysdeps/mach/configure: Likewise.
40134         * sysdeps/mips/configure: Likewise.
40135         * sysdeps/s390/configure: Likewise.
40136         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40138
40139         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40140         file.
40141         * sysdeps/ia64/configure.ac: Likewise.
40142
40143 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40144
40145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40146         specify symbol version for ld.so.  Do not include entry for
40147         libpthread.
40148         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40149         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40150         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40151
40152         [BZ #14171]
40153         * Makeconfig [$(build-shared) = yes]
40154         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40155         makefiles.
40156         [$(build-shared) = yes && $(soversions.mk-done) = t]
40157         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40158         [$(build-shared) = yes && $(soversions.mk-done) = t]
40159         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40160         to Makerules.
40161         [$(build-shared) = yes && $(soversions.mk-done) = t]
40162         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40163         here.
40164         [$(build-shared) = yes && $(soversions.mk-done) = t]
40165         (common-generated): Don't append gnu/lib-names.h and
40166         gnu/lib-names.stmp here.
40167         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40168         (lib-names-h-abi): New variable.
40169         [$(build-shared) = yes && $(soversions.mk-done) = t]
40170         (lib-names-stmp-abi): Likewise.
40171         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40172         abi-variants] (before-compile): Append
40173         $(common-objpfx)$(lib-names-h-abi).
40174         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40175         abi-variants] (common-generated): Append gnu/lib-names.h.
40176         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40177         abi-variants] (install-others-nosubdir): Depend on
40178         $(inst_includedir)/$(lib-names-h-abi).
40179         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40180         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40181         [$(build-shared) = yes && $(soversions.mk-done) = t]
40182         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40183         [$(build-shared) = yes && $(soversions.mk-done) = t]
40184         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40185         [$(build-shared) = yes && $(soversions.mk-done) = t]
40186         (common-generated): Append $(lib-names-h-abi) and
40187         $(lib-names-stmp-abi).
40188         * scripts/lib-names.awk: Do not handle multi being set.
40189         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40190         Remove variable.
40191         (abi-lp64_be-ld-soname): Likewise.
40192         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40193         Likewise.
40194         (abi-hard-ld-soname): Likewise.
40195         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40196         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40197         Remove variable.
40198         (abi-o32_hard-ld-soname): Likewise.
40199         (abi-o32_soft_2008-ld-soname): Likewise.
40200         (abi-o32_hard_2008-ld-soname): Likewise.
40201         (abi-n32_soft-ld-soname): Likewise.
40202         (abi-n32_hard-ld-soname): Likewise.
40203         (abi-n32_soft_2008-ld-soname): Likewise.
40204         (abi-n32_hard_2008-ld-soname): Likewise.
40205         (abi-n64_soft-ld-soname): Likewise.
40206         (abi-n64_hard-ld-soname): Likewise.
40207         (abi-n64_soft_2008-ld-soname): Likewise.
40208         (abi-n64_hard_2008-ld-soname): Likewise.
40209         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40210         Likewise.
40211         (abi-64-v2-ld-soname): Likewise.
40212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40213         ld.so entries.
40214         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40215         variable.
40216         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40217         entry.
40218         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40219         variable.
40220         (abi-64-ld-soname): Likewise.
40221         (abi-x32-ld-soname): Likewise.
40222         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40223         entry.
40224         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40225
40226 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40227
40228         [BZ #14138]
40229         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40230         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40231         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40232         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40233         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40234         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40235         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40236         syscall entry for GLIBC_2.2 symbol version.
40237         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40238         Likewise.
40239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40240         (setrlimit): Likewise.
40241         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40242         Likewise.
40243
40244 2014-09-23  Will Newton  <will.newton@linaro.org>
40245
40246         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40247         _LINUX_ARM_SYSDEP_H include guard too.
40248         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40249         define.
40250
40251 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40252
40253         * sysdeps/unix/sysv/linux/eventfd.c:
40254         Make first argument unsigned.
40255         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40256         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40257
40258 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40259
40260         [BZ #16852]
40261         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40262         * socket/sys/socket.h: Likewise.
40263         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40264
40265 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40266
40267         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40268
40269 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40270
40271         * time/tst-ftime.c: New test.
40272         * time/Makefile (tests): Add tst-ftime.
40273
40274 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40275
40276         * soft-fp/extended.h: Fix comment formatting.
40277         * soft-fp/op-1.h: Likewise.
40278         * soft-fp/op-2.h: Likewise.
40279         * soft-fp/op-4.h: Likewise.
40280         * soft-fp/op-8.h: Likewise.
40281         * soft-fp/op-common.h: Likewise.
40282         * soft-fp/soft-fp.h: Likewise.
40283
40284         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40285
40286 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40287
40288         [BZ #6652]
40289         * Makeconfig (soversions-default-setname): Remove variable.
40290         ($(common-objpfx)soversions.i): Don't pass default_setname to
40291         soversions.awk.
40292         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40293         oldest_abi to abi-versions.awk.
40294         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40295         * config.make.in (oldest-abi): Remove variable.
40296         * configure.ac (--enable-oldest-abi): Remove configure option.
40297         * configure: Regenerated.
40298         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40299         text.
40300         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40301         * scripts/soversions.awk: Do not handle default_setname variable.
40302         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40303         variable.
40304         * sysdeps/mach/hurd/configure: Regenerated.
40305         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40306         variable.
40307         * sysdeps/unix/sysv/linux/configure: Regenerated.
40308
40309 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40310
40311         * elf/Makefile (CFLAGS-interp.c): Remove.
40312         ($(elf-objpfx)runtime-linker.h): Generate header with linker
40313         path string.
40314         * elf/interp.c: Include generated runtime-linker.h
40315
40316         * Makerules (lib%.so): Don't include $(+interp) in
40317         prerequisites.
40318         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
40319         * dlfcn/eval.c: Remove file.
40320
40321         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
40322         macros.
40323
40324         [BZ #17266]
40325         * misc/sys/cdefs.h: Define __extern_always_inline for clang
40326         4.2 and newer.
40327
40328         [BZ #17370]
40329         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
40330
40331 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40332             Jakub Jelinek  <jakub@redhat.com>
40333
40334         [BZ #17266]
40335         * libio/stdio.h: Check definition of __fortify_function
40336         instead of __extern_always_inline to include bits/stdio2.h.
40337         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
40338         check if __extern_always_inline is defined.
40339         [__USE_MISC || __USE_XOPEN]: Likewise.
40340         [__USE_ISOC99] Likewise.
40341         * misc/sys/cdefs.h (__fortify_function): Define only if
40342         __extern_always_inline is defined.
40343         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
40344         __extern_always_inline and __extern_inline only for g++-4.3
40345         and newer or a compatible gcc.
40346
40347 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
40348
40349         [BZ #17371]
40350         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
40351         last change to handle zero prefix length.
40352
40353 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40354
40355         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
40356         _SC_REGEX_VERSION.
40357
40358         * posix/getconf.c (vars): Add _POSIX_IPV6 and
40359         _POSIX_RAW_SOCKETS.
40360
40361 2014-09-13  Allan McRae  <allan@archlinux.org>
40362
40363         * po/ru.po: Update Russian translation from translation project.
40364
40365 2014-09-12  Roland McGrath  <roland@hack.frob.com>
40366
40367         * locale/programs/locale.c (show_locale_vars): Inline local function
40368         into its sole call site.  Clean up some style nits.
40369         (print_item): New function, broken out of ...
40370         (show_info): ... local function here.  Clean up style nits.
40371
40372         * locale/programs/ld-ctype.c (set_one_default): New function, broken
40373         out of ...
40374         (set_class_defaults): ... local function set_default here.
40375         Define set_default as a macro locally to pass constant parameters.
40376         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
40377         rather than a shared local.
40378
40379         * stdlib/rpmatch.c (try): New function, broken out of ...
40380         (rpmatch): ... local function here.  Also, prototypify definition.
40381
40382 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
40383
40384         * scripts/soversions.awk: Do not handle configuration names.
40385         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
40386         vendor and os variables to soversions.awk.
40387         * configure.ac: Do not modify gnu-* host_os.
40388         * configure: Regenerated
40389         * shlib-versions: Remove first column with configuration names.
40390         * nptl/shlib-versions: Likewise.
40391         * nptl_db/shlib-versions: Likewise.
40392         * sysdeps/hppa/shlib-versions: Likewise.
40393         * sysdeps/m68k/shlib-versions: Likewise.
40394         * sysdeps/mach/hurd/shlib-versions: Likewise.
40395         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
40396         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
40397         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
40398         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
40399         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
40400         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
40401         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
40402         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
40403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40404         Likewise.
40405         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40406         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40407         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40408         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40409         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40410         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
40411         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40412         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40413
40414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40415         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
40416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40417         Regenerated.
40418         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
40419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40420         Condition symbol version definitions on [HAVE_ELFV2_ABI].
40421
40422         * shlib-versions: Remove OS-specific entries.  Moved to files in
40423         sysdeps.
40424         * sysdeps/mach/hurd/shlib-versions: New file.
40425         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40426
40427         * nptl/shlib-versions: Remove architecture-specific entries.
40428         Moved to files in sysdeps.
40429         * shlib-versions: Likewise.
40430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
40431         file.
40432         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40433         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40434         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40435         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40436
40437         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
40438         (UDP_NO_CHECK6_RX): Likewise.
40439
40440 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40441
40442         * sysdeps/posix/sysconf.c (__sysconf): Spell
40443         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
40444
40445 2014-08-12  Florian Weimer  <fweimer@redhat.com>
40446
40447         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
40448         loading.
40449         * iconv/Versions (__gconv_transliterate): Export for use from
40450         gconv modules.
40451         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
40452         (struct __gconv_trans_data, __gconv_trans_fct,
40453         __gconv_trans_context_fct, __gconv_trans_query_fct,
40454         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
40455         definitions.
40456         (struct __gconv_step_data): Remove __trans member.
40457         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
40458         longer hidden.  Remove unused trans_data argument.
40459         * iconv/gconv_int.h (struct trans_struct): Remove definition.
40460         (__gconv_translit_find): Remove declaration.
40461         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
40462         prototype.
40463         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
40464         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
40465         trans_data argument.  Add hidden definition.
40466         (__gconv_translit_find): Remove.
40467         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
40468         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
40469         * iconv/skeleton.c: Remove transliteration initialization.
40470         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
40471         __gconv_step_data initialization.
40472         * libio/iofwide.c (__libio_translit_): Remove.
40473         (_IO_fwide): Adjust struct __gconv_step_data initialization.
40474         * wcsmbs/btowc.c (__btowc): Likewise.
40475         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
40476         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
40477         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
40478         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
40479         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
40480         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
40481         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
40482         * wcsmbs/wctob.c (wctob): Likewise.
40483
40484 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40485
40486         [BZ #16194]
40487         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
40488         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
40489         register usage.
40490         * sysdeps/x86/Makefile: Adjust.
40491
40492 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40493             Roland McGrath  <roland@hack.frob.com>
40494
40495         * locale/weight.h: Add include guard.
40496         (findidx): Make static rather than auto; take new parameters
40497         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
40498         * locale/weightwc.h: Likewise.
40499         * posix/fnmatch_loop.c
40500         (FCT): Change type of EXTRA from int32_t to wint_t.
40501         Don't include either header inside the function.
40502         Call FINDIDX rather than findidx, and pass new arguments.
40503         #undef FINDIDX at the end of the file.
40504         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
40505         FINDIDX before including fnmatch_loop.c for the non-wide version.
40506         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
40507         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
40508         for the wide version.
40509         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
40510         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
40511         Pass new arguments to findidx.
40512         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
40513         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
40514         Don't #include it inside the function.  Pass new arguments to findidx.
40515         * posix/regex_internal.h
40516         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
40517         (re_string_elem_size_at): Don't #include it inside the function.
40518         Pass new arguments to findidx.
40519         * string/strcoll_l.c: #include WEIGHT_H at top level.
40520         (get_next_seq): Don't #include it inside the function.
40521         Pass new arguments to findidx.
40522         (get_next_seq_nocache): Likewise.
40523         * string/strxfrm_l.c: #include WEIGHT_H at top level.
40524         (STRXFRM): Don't #include it inside the function.
40525         Pass new arguments to findidx.
40526
40527 2014-09-11  Florian Weimer  <fweimer@redhat.com>
40528
40529         [BZ #17344]
40530         * malloc/malloc.c (unlink): Turn asserts into a call to
40531         malloc_printerr.
40532
40533 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
40534
40535         [BZ #17370]
40536         * libio/wfileops (do_ftell_wide): Free OUT.
40537
40538 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
40539
40540         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
40541
40542 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
40543
40544         [BZ #17363]
40545         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
40546         group if the current group is empty.
40547
40548 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40549
40550         * benchtests/bench-memset.c (test_main): Add more test from size
40551         from 32 to 512 bytes.
40552         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40553         Add POWER8 memset object.
40554         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40555         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
40556         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
40557         implementation.
40558         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
40559         Likewise.
40560         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
40561         multiarch POWER8 memset optimization.
40562         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
40563         POWER8 memset optimization.
40564
40565         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
40566         Remove bzero multiarch objects.
40567         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
40568         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
40569         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
40570         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
40571         Remove define.
40572         [__bzero]: Redefine to specific name.
40573         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
40574         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
40575         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
40576         define.
40577         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
40578         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
40579
40580 2014-09-10  Florian Weimer  <fweimer@redhat.com>
40581
40582         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
40583         warnings into errors.
40584
40585         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
40586         __cxa_thread_atexit_impl prototype.
40587
40588 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40589
40590         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
40591         Fix capitalization of error message.
40592
40593 2014-09-09  Steve Ellcey  <sellcey@mips.com>
40594
40595         * sysdeps/mips/preconfigure: Modify ABI tests.
40596
40597 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
40598
40599         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
40600
40601 2014-09-07  Roland McGrath  <roland@hack.frob.com>
40602             Carlos O'Donell  <carlos@systemhalted.org>
40603
40604         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
40605         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
40606         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
40607         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
40608         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
40609         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
40610         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
40611         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
40612         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
40613         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
40614         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
40615         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
40616         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
40617         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
40618         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
40619         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
40620         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
40621         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
40622         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
40623         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
40624         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
40625         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
40626         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
40627         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
40628         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
40629         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
40630         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
40631         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
40632         Deconditionalize the code that was previously under [RESET_PID].
40633         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
40634         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
40635         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
40636         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
40637         include sysdep.h.
40638
40639 2014-09-08  Allan McRae  <allan@archlinux.org>
40640
40641         * version.h (RELEASE): Set to "development".
40642         (VERSION): Set to "2.20.90"
40643
40644 2014-09-07  Allan McRae  <allan@archlinux.org
40645
40646         * version.h (RELEASE): Set to "stable".
40647         (VERSION): Set to "2.20"
40648         * include/features.h (__GLIBC_MINOR__): Set to 20.
40649
40650         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
40651         Liebler.
40652
40653         * po/ko.po: Update Korean translation from translation project.
40654
40655 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
40656
40657         [BZ #17354]
40658         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
40659         macro for handling signed relocations.
40660
40661 2014-09-03  Florian Weimer  <fweimer@redhat.com>
40662
40663         [BZ #17325]
40664         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
40665         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
40666         assert.
40667         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
40668         * iconvdata/ibm935.c (BODY): Likewise.
40669         * iconvdata/ibm937.c (BODY): Likewise.
40670         * iconvdata/ibm939.c (BODY): Likewise.
40671         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
40672         assert.
40673         * iconvdata/Makefile (iconv-test.out): Pass module list to test
40674         script.
40675         * iconvdata/run-iconv-test.sh: New test loop for checking for
40676         decoder crashers.
40677
40678 2014-09-02  Khem Raj  <raj.khem@gmail.com>
40679
40680         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
40681         libm_hidden_ver.
40682
40683 2014-09-01  Allan McRae  <allan@archlinux.org>
40684
40685         * po/eo.po: Update Esperanto translation from translation project.
40686
40687         * po/ca.po: Update Catalan translation from translation project.
40688
40689 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40690
40691         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
40692         __proc_dostop call.
40693
40694 2014-08-27  Mark Wielaard  <mjw@redhat.com>
40695
40696         [BZ #17319]
40697         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
40698         to call set_thread_area instead of hand written asm.
40699         (__NR_set_thread_area): Removed define.
40700         (TLS_FLAG_WRITABLE): Likewise.
40701         (__ASSUME_SET_THREAD_AREA): Remove check.
40702         (TLS_EBX_ARG): Remove define.
40703         (TLS_LOAD_EBX): Likewise.
40704
40705 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40706
40707         Simplify atomicity of socket creation in bind.
40708
40709         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
40710         looking up the name after linking the file.
40711
40712 2014-08-27  Allan McRae  <allan@archlinux.org>
40713
40714         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
40715
40716 2014-08-26  Florian Weimer  <fweimer@redhat.com>
40717
40718         [BZ #17187]
40719         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
40720         trans_compare, open_translit, __gconv_translit_find):
40721         Remove module loading code.
40722
40723 2014-08-26  Allan McRae  <allan@archlinux.org>
40724
40725         * po/vi.po: Update Vietnamese translation from translation project.
40726
40727         * po/uk.po: Update Ukrainian translation from translation project.
40728
40729         * po/fr.po: Update French translation from translation project.
40730
40731         * po/ru.po: Update Russian translation from translation project.
40732
40733         * po/pl.po: Update Polish translation from translation project.
40734
40735         * po/cs.po: Update Czech translation from translation project.
40736
40737         * po/de.po: Update German translation from translation project.
40738
40739         * po/bg.po: Update Bulgarian translation from translation project.
40740
40741         * po/sv.po: Update Sweedish translation from translation project.
40742
40743         * po/nl.po: Update Dutch translation from translation project.
40744
40745         * po/es.po: Update Spanish translation from translation project.
40746
40747 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40748
40749         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
40750
40751         * catgets/Makefile (CPPFLAGS-gencat): Remove.
40752         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
40753         (CPPFLAGS-iconvconfig): Likewise.
40754         * timezone/Makefile (CPPFLAGS-zic): Likewise.
40755
40756         * include/libc-symbols.h: Remove unnecessary check for
40757         NOT_IN_libc.
40758         * nptl/pthreadP.h: Likewise.
40759         * sysdeps/aarch64/setjmp.S: Likewise.
40760         * sysdeps/alpha/setjmp.S: Likewise.
40761         * sysdeps/arm/sysdep.h: Likewise.
40762         * sysdeps/i386/setjmp.S: Likewise.
40763         * sysdeps/m68k/setjmp.c: Likewise.
40764         * sysdeps/posix/getcwd.c: Likewise.
40765         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40766         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
40767         * sysdeps/s390/s390-32/setjmp.S: Likewise.
40768         * sysdeps/s390/s390-64/setjmp.S: Likewise.
40769         * sysdeps/sh/sh3/setjmp.S: Likewise.
40770         * sysdeps/sh/sh4/setjmp.S: Likewise.
40771         * sysdeps/unix/alpha/sysdep.h: Likewise.
40772         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
40773         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
40774         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
40775         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
40776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40778         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
40779         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
40780         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
40781         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
40782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40783         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
40784         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
40785         * sysdeps/x86_64/setjmp.S: Likewise.
40786
40787 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
40788
40789         [BZ #17263]
40790         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
40791         <stdint.h>.
40792         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
40793         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
40794
40795 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
40796
40797         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
40798
40799         [BZ #17262]
40800         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
40801         and __x86_64__ when disabling x87 inline functions.
40802
40803 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
40804
40805         [BZ #17259]
40806         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
40807         asm statement with __cpuid_count.
40808
40809 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
40810
40811         * configure.ac: Change __ehdr_start code to dereference the struct.
40812         Run readelf on the output to look for relocations.
40813         * configure: Regenerated.
40814
40815 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
40816
40817         [BZ #17261]
40818         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
40819         value to 0.
40820         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
40821
40822 2014-08-12  Roland McGrath  <roland@hack.frob.com>
40823
40824         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
40825
40826 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
40827
40828         [BZ #16892]
40829         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
40830         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
40831
40832 2014-08-12  Sean Anderson  <seanga2@gmail.com>
40833
40834         * malloc/malloc.c: Fix typo in comment.
40835
40836 2014-08-09  Allan McRae  <allan@archlinux.org>
40837
40838         * Regenerate libc.po.
40839
40840 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
40841
40842         * intl/tst-gettext2.sh: Check every lang file for creation.
40843
40844 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40845
40846         * sysdeps/aarch64/fpu/math_private.h
40847         (libc_feholdsetround_noex_aarch64_ctx): New function.
40848
40849 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
40850
40851         * sysdeps/arm/armv6/strcpy.S (strcpy):
40852         Fix performance issue in misaligned cases.
40853
40854 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40855
40856         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
40857         Move definition from termios.h.
40858         (struct termio): Likewise.
40859         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40860         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40861         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40862         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40863         Likewise.
40864         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
40865         Move definition to ioctl-types.h
40866         (struct termio): Likewise.
40867         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
40868         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
40869         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
40870         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
40871         Likewise.
40872
40873 2014-08-05  Richard Henderson  <rth@redhat.com>
40874
40875         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
40876         exceptions.
40877         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
40878         Add fraiseexcpt.
40879         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
40880         Use __feraiseexcept.
40881         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
40882         Protect libm symbols with IS_IN_libm.
40883
40884         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
40885
40886 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
40887
40888         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
40889
40890 2014-08-04  Will Newton  <will.newton@linaro.org>
40891
40892         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
40893         file.
40894
40895 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
40896
40897         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
40898         variants for each function.
40899
40900 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40901
40902         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
40903         appended ...
40904         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
40905         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
40906         appended ...
40907         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
40908         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
40909         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
40910         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
40911         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
40912         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
40913         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
40914         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
40915         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
40916         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
40917         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
40918         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
40919         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
40920         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
40921         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
40922         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
40923         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
40924         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
40925         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
40926         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
40927         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
40928         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
40929         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
40930         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
40931         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
40932         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
40933         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
40934         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
40935         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
40936         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
40937         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
40938         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
40939         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
40940         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
40941         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
40942         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
40943         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
40944         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
40945         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
40946         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
40947         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
40948         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
40949         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
40950         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
40951         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
40952         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
40953         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
40954         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
40955         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
40956         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
40957         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
40958         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
40959         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
40960         Update #include.
40961         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
40962         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
40963
40964 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40965
40966         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
40967         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
40968         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
40969         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
40970         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
40971         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
40972
40973 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40974
40975         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
40976         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
40977         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
40978         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
40979
40980 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40981
40982         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
40983         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
40984         (__libc_vfork): Define function under this name.
40985         (__vfork): Define as an alias.
40986         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
40987         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
40988
40989 2014-08-04  Roland McGrath  <roland@hack.frob.com>
40990
40991         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
40992         that was previously under [RESET_PID].
40993         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
40994
40995 2014-08-04  Andreas Schwab  <schwab@suse.de>
40996
40997         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
40998
40999 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41000
41001         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41002         (main): Likewise.
41003
41004 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41005
41006         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41007
41008 2014-08-01  Richard Henderon  <rth@redhat.com>
41009
41010         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41011         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41012         typo in exact zero test.
41013         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41014         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41015         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41016
41017 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41018
41019         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41020         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41021         * sysdeps/arm/sysdep.h: ... here.
41022         [!__ASSEMBLER__]: Include <stdint.h>.
41023
41024 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41025
41026         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41027         (HAVE_WCTYPE_H): Likewise.
41028         (HAVE_ISWCTYPE): Likewise.
41029         (ENABLE_NLS): Likewise.
41030         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41031         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41032
41033         * posix/regex_internal.c: Check if DEBUG is defined and is
41034         set.
41035
41036         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41037         (HAVE_MBSRTOWCS): Likewise.
41038         * posix/fnmatch.c: Include string.h unconditionally.
41039
41040 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41041
41042         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41043         reversal.
41044
41045 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41046
41047         * sysdeps/generic/safe-fatal.h: New file.
41048         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41049         * nptl/forward.c: Include it.
41050         (__pthread_unwind): Use __safe_fatal as default action, rather
41051         than a bogus use of INTERNAL_SYSCALL that could never work.
41052
41053         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41054         * configure.ac (libc_cv_builtin_trap): New test.
41055         * configure: Regenerated.
41056         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41057         (ABORT_INSTRUCTION): Define using __builtin_trap.
41058
41059         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41060         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41061         * sysdeps/nptl/nptl-signals.h: New file.
41062         * nptl/pthreadP.h: Include <nptl-signals.h>.
41063
41064 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41065
41066         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41067         (ONE_DIRECTION): Define.
41068         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41069         (ONE_DIRECTION): Define.
41070         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41071         (ONE_DIRECTION): Define.
41072
41073 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41074
41075         * sysdeps/s390/Makefile: Delete file.
41076         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41077         * sysdeps/s390/__longjmp.c: Delete file.
41078         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41079         Remove fields __flags and __reserved.
41080         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41081         and add versioning.
41082         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41083         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41084         * sysdeps/s390/rtld-setjmp.S: Likewise.
41085         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41086         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41087         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41088         * sysdeps/s390/s390-32/setjmp.S: ... here.
41089         Add versioning.
41090         (__sigsetjmp): Remove setting __flags field.
41091         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41092         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41093         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41094         * sysdeps/s390/s390-64/setjmp.S: ... here.
41095         Add versioning.
41096         (__sigsetjmp): Remove setting __flags field.
41097         * sysdeps/s390/setjmp.S: Delete file.
41098         * sysdeps/s390/sigjmp.c: Likewise.
41099         * sysdeps/s390/v1-longjmp.c: Likewise.
41100         * sysdeps/s390/v1-setjmp.h: Likewise.
41101         * sysdeps/s390/v1-sigjmp.c: Likewise.
41102         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41103         Remove v1-longjmp_chk.
41104         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41105         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41106         Include debug/longjmp_chk.c and add versioning.
41107         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41108         Include nptl/pt-longjmp.c and add versioning.
41109         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41110         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41111         Include __longjmp.c.
41112         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41113         Move to ...
41114         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41115         (__getcontext): Remove setting __flags field.
41116         Add versioning.
41117         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41118         Don't restore upper high grps.
41119         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41120         Likewise.
41121         (__swapcontext): Remove setting uc_flags field.
41122         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41123         Delete file.
41124         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41125         Include __longjmp.c.
41126         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41127         Move to ...
41128         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41129         (__getcontext): Remove setting __flags field.
41130         Add versioning.
41131         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41132         (__swapcontext): Remove setting uc_flags field.
41133         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41134         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41135         Remove fields uc_high_gprs and __reserved.
41136         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41137         New file with reverted content.
41138         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41139         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41140         Regenerated.
41141         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41142         Regenerated.
41143
41144 2014-07-31  Andreas Schwab  <schwab@suse.de>
41145
41146         * config.h.in (HAVE_IFUNC): Define to 0.
41147         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41148         definedness.
41149
41150 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41151
41152         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41153         memmove-avx-unaligned, memcpy-avx-unaligned and
41154         mempcpy-avx-unaligned.
41155         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41156         Add tests for AVX memcpy functions.
41157         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41158         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41159         memcpy_chk.
41160         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41161         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41162         memmove_chk.
41163         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41164         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41165         mempcpy_chk.
41166         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41167         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41168         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41169
41170 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41171
41172         [BZ #17213]
41173         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41174         powerpc64le.
41175
41176 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41177
41178         [BZ #16839]
41179         * manual/llio.texi: Add section about open file description locks.
41180         * manual/examples/ofdlocks.c: Example of open file description
41181         lock usage.
41182         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41183         F_OFD_SETLK, and F_OFD_SETLKW.
41184
41185 2014-07-23  Allan McRae  <allan@archlinux.org>
41186
41187         * po/es.po: Update Spanish translation from translation project.
41188
41189 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41190
41191         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41192
41193 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41194
41195         [BZ #17078]
41196         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41197         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41198         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41199
41200 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41201
41202         [BZ #17088]
41203         * math/fesetenv.c (__fesetenv)
41204         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41205         * math/feupdateenv.c (__feupdateenv)
41206         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41207
41208         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41209         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41210         (__ASSUME_SOCKETCALL): Do not define.
41211
41212         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41213         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41214         (__ASSUME_SOCKETCALL): Do not define.
41215         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41216         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41217         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41218         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41219         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41220         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41221         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41222         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41223
41224         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41225         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41226         (__ASSUME_SOCKETCALL): Do not define.
41227         (__ASSUME_IPC64): Define unconditionally.
41228         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41229         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41230         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41231         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41232         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41233         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41234         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41235         Likewise.
41236
41237         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41238         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41239         (__ASSUME_SOCKETCALL): Do not define.
41240         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41241         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41242         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41243         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41244         (__ASSUME_REQUEUE_PI): Define unconditionally.
41245         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41246         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41247         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41248         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41249         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41250         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41251
41252         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41253         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41254         (__ASSUME_SOCKETCALL): Do not define.
41255         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41256         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41257         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41258         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41259         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41260         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41261
41262         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41263         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41264         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41265         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41266         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41267         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41268         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41269         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41270         (__ASSUME_GETCPU_SYSCALL): Likewise.
41271
41272         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41273         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41274         cases for individual architectures.
41275         * sysdeps/gnu/configure: Regenerated.
41276         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41277         LIBC_SLIBDIR_RTLDDIR.
41278         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41279         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41280         LIBC_SLIBDIR_RTLDDIR.
41281         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41283         LIBC_SLIBDIR_RTLDDIR.
41284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41285         Regenerated.
41286         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41287         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41288         file.
41289         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41290         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41291         file.
41292         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41293         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41294         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41295         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41296
41297         * sysdeps/aarch64/shlib-versions: Move to ...
41298         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41299         * sysdeps/alpha/shlib-versions: Move to ...
41300         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41301         * sysdeps/arm/shlib-versions: Move to ...
41302         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41303         * sysdeps/hppa/shlib-versions: Move all contents except for
41304         libgcc_s entry to ...
41305         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41306         entry from ...
41307         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
41308         * sysdeps/ia64/shlib-versions: Move to ...
41309         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
41310         entry from ...
41311         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
41312         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
41313         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
41314         * sysdeps/microblaze/shlib-versions: Move to ...
41315         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
41316         * sysdeps/mips/shlib-versions: Move to ...
41317         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
41318         entry from ...
41319         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
41320         * sysdeps/tile/shlib-versions: Move to ...
41321         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
41322         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
41323         from ...
41324         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
41325         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
41326         entry from ...
41327         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
41328
41329 2014-07-17  Will Newton  <will.newton@linaro.org>
41330
41331         * sysdeps/arm/bits/atomic.h
41332         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
41333         (__arch_compare_and_exchange_bool_16_int): Likewise.
41334         (__arch_compare_and_exchange_bool_64_int): Likewise.
41335
41336         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
41337         into an #else block.
41338
41339 2014-07-16  Roland McGrath  <roland@hack.frob.com>
41340
41341         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
41342         just Linux configurations.  Test empirically that the compiler sets
41343         __ARM_EABI__, rather than using the tuple to decide.
41344         * sysdeps/arm/preconfigure: Regenerated.
41345         * sysdeps/unix/sysv/linux/arm/configure: File removed.
41346         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
41347         contents appended ...
41348         * sysdeps/arm/configure.ac: ... here.
41349         * sysdeps/arm/configure: Regenerated.
41350
41351 2014-07-15  Roland McGrath  <roland@hack.frob.com>
41352
41353         * nptl/pthread_kill.c: New file.
41354         * nptl/pthread_sigmask.c: New file.
41355         * nptl/pthread_sigqueue.c: New file.
41356
41357         * sysdeps/nptl/lowlevellock.h: New file.
41358         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
41359         * sysdeps/nptl/lowlevellock-futex.h: New file.
41360
41361         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
41362         Remove dead declarations.
41363
41364 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
41365
41366         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
41367         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
41368         config-cflags-avx2.
41369         * sysdeps/x86_64/configure.ac: Likewise.
41370         * sysdeps/i386/configure: Regenerated.
41371         * sysdeps/x86_64/configure: Likewise.
41372         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41373         memset-avx2 only if config-cflags-avx2 is yes.
41374         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41375         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
41376         defined.
41377         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
41378         only if HAVE_AVX2_SUPPORT is defined.
41379         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41380
41381 2014-07-14  Alan Modra  <amodra@gmail.com>
41382
41383         [BZ #17153]
41384         * elf/elf.h (DT_PPC64_NUM): Correct value.
41385         * NEWS: Add to fixed bug list.
41386
41387 2014-07-13  Jim Meyering  <meyering@fb.com>
41388
41389         [BZ 17150]
41390         regex: don't deref NULL upon heap allocation failure
41391         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
41392         failure in one more place.
41393         To trigger the segfault, configure grep -with-included-regex,
41394         build it, and run these commands:
41395         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
41396
41397 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
41398
41399         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
41400
41401 2014-07-11  Richard Henderson  <rth@redhat.com>
41402
41403         * sysdeps/aarch64/libm-test-ulps: Update.
41404
41405 2014-07-10  Florian Weimer  <fweimer@redhat.com>
41406
41407         [BZ #17135]
41408         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
41409         * nptl/allocatestack.c (__nptl_setxid_error): New function.
41410         (__nptl_setxid): Initialize error member.  Call
41411         __nptl_setxid_error.
41412         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
41413         * nptl/descr.h (struct xid_command): Add error member.
41414         * nptl/tst-setuid3.c: New file.
41415         * nptl/Makefile (tests): Add it.
41416
41417 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41418
41419         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
41420         New define.
41421         (__lll_trylock): Use __lll_base_trylock.
41422         (__lll_cond_trylock): Likewise.
41423
41424 2014-07-10  Roland McGrath  <roland@hack.frob.com>
41425
41426         * nptl/pthread_create.c (start_thread): Use atomic_or and
41427         lll_futex_wake directly rather than lll_robust_dead.
41428         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41429         (lll_robust_dead): Macro removed.
41430         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
41431         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41432         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41433         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41434         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41435         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41436         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41437         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41438         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41439         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41440         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41441         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41442         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41443         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41444         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41445
41446         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
41447         Use atomic_compare_and_exchange_val_acq directly rather than
41448         lll_robust_trylock.
41449         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41450         (__lll_robust_trylock, lll_robust_trylock): Removed.
41451         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41452         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41453         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41454         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41455         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41456         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41457         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41458         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41459         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41460         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41461         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41462         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41463         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41464         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41465
41466 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41467
41468         * manual/locale.texi (Locale Names): New section documenting
41469         locale name syntax.  Adjust menu and node chaining accordingly.
41470         (Choosing Locale): Reference Locale Names, Locale Categories.
41471         Mention setting LC_ALL=C.  Reflect that name syntax is now
41472         documented.
41473         (Locale Categories): New section title.  Reference Locale Names.
41474         LC_ALL is an environment variable, but not a category.
41475         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
41476         description, now in Locale Name.  Reference that section.  Locale
41477         name syntax is now documented.
41478
41479 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41480
41481         [BZ #17137]
41482         * locale/findlocale.c (name_present, valid_locale_name): New
41483         functions.
41484         (_nl_find_locale): Use the loc_name variable to store name
41485         candidates.  Call name_present and valid_locale_name to check and
41486         validate locale names.  Return an error if the locale is invalid.
41487
41488 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41489
41490         * locale/setlocale.c (setlocale): Use strdup for allocating
41491         composite name copy.
41492
41493 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41494
41495         Sync up with gnulib.
41496         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
41497         [!_LIBC && ENABLE_NLS]: Include gettext.h.
41498         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
41499         and _GL_ARG_NONNULL.
41500         [USE_UNLOCKED_IO]: Include unlocked-io.h.
41501         [!_LIBC]: Include code for Windows and Cygwin.
41502         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
41503         Include prototype for int strerror_r.
41504         [!_LIBC] (is_open): New function.
41505         (flush_stdout): New function.
41506         (print_errno_message): Use it.
41507         (error): Likewise.
41508         (error_at_line): Likewise.
41509         (error_tail) Add function attribute macros.  Use
41510         __builtin_expect.
41511
41512         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
41513
41514         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
41515
41516         * io/ftw.c: Include sys/param.h unconditionally.
41517
41518         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
41519
41520         [BZ #17125]
41521         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
41522         libc_freeres_ptr.
41523         (freecache): New function to free CACHE on exit.
41524
41525         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
41526         initialization.
41527
41528 2014-07-09  David S. Miller  <davem@davemloft.net>
41529
41530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41531
41532         * sysdeps/sparc/nptl/internaltypes.h: Delete.
41533         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
41534         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
41535         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
41536         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
41537         * sysdeps/sparc/nptl/sem_init.c: Likewise.
41538         * sysdeps/sparc/nptl/sem_post.c: Likewise.
41539         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
41540         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
41541         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
41542         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
41543         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
41544         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
41545
41546 2014-07-09  Andreas Schwab  <schwab@suse.de>
41547
41548         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
41549         output.
41550         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
41551         (do_test): Likewise.
41552
41553         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41554
41555 2014-07-09  Will Newton  <will.newton@linaro.org>
41556
41557         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
41558         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
41559         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
41560         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
41561         * sysdeps/hppa/start.S (_start): Likewise.
41562
41563 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
41564
41565         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
41566
41567         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
41568         defined.
41569
41570 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41571
41572         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
41573         after checking that it is non-NULL.
41574
41575         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
41576
41577 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41578
41579         * sysdeps/powerpc/memmove.c: Remove file.
41580         * sysdeps/powerpc/powerpc32/power4/memcopy.h
41581         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
41582         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
41583         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
41584         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
41585         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
41586         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
41587         string memmove instead of removed powerpc one.
41588
41589         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41590         [weak_alias]: Fix compiler warning due trailing data.
41591         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
41592         [weak_alias]: Likewise.
41593         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
41594         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
41595
41596         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41597         (__libc_ifunc_impl_list): Add memmove functions.
41598
41599 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
41600
41601         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
41602         Remove code.
41603         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
41604         Likewise.
41605         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
41606         Likewise.
41607         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
41608         Likewise.
41609         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
41610         Likewise.
41611         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
41612         Likewise.
41613         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
41614         Likewise.
41615         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
41616         Likewise.
41617         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
41618         Likewise.
41619         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
41620         Likewise.
41621         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
41622         Likewise.
41623         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
41624         Likewise.
41625         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
41626         Likewise.
41627         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
41628         Likewise.
41629         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
41630         Likewise.
41631         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
41632         Likewise.
41633         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
41634         Likewise.
41635
41636 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41637
41638         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
41639         to avoid alignment traps in non-cacheable memory.
41640         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
41641
41642         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
41643         multiarch objects.
41644         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
41645         file: multiarch power7 memmove.
41646         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
41647         multiarch default memmove.
41648         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
41649         multiarch memove for powerpc32/power4.
41650
41651         * string/bcopy.c: Use full path to include memmove.c.
41652         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
41653         multiarch objects.
41654         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
41655         bcopy for powerpc64.
41656         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
41657         bcopy for powerpc64.
41658         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
41659         and memmove implementations.
41660         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
41661         optimized multiarch memmove for POWER7/powerpc64.
41662         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
41663         default multiarch memmove for powerpc64.
41664         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
41665         multiarch for powerpc64.
41666         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
41667         for POWER7/powerpc64.
41668         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
41669         memmove for POWER7/powerpc64.
41670
41671         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
41672         glibc default one.
41673
41674         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
41675         __ELF_NATIVE_CLASS equal to 64.
41676
41677 2014-07-07  Roland McGrath  <roland@hack.frob.com>
41678
41679         * sysdeps/nptl/lowlevellock.h: File removed.
41680
41681         * NEWS: NPTL is no longer an add-on!
41682         * nptl/internaltypes.h: Moved ...
41683         * sysdeps/nptl/internaltypes.h: ... here.
41684         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
41685         * sysdeps/nptl/fork.c: Likewise.
41686         * sysdeps/nptl/gai_misc.h: Likewise.
41687         * sysdeps/nptl/librt-cancellation.c: Likewise.
41688         * sysdeps/nptl/jmp-unwind.c: Likewise.
41689         * sysdeps/nptl/setxid.h: Likewise.
41690         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
41691         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
41692         * sysdeps/unix/sysv/linux/arm/Implies: New file.
41693         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
41694         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
41695         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
41696         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
41697         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
41698         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
41699         * sysdeps/unix/sysv/linux/mips/Implies: New file.
41700         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
41701         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
41702         * sysdeps/unix/sysv/linux/sh/Implies: New file.
41703         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
41704         * sysdeps/unix/sysv/linux/tile/Implies: New file.
41705         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
41706         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
41707         * nptl/Makeconfig: Moved ...
41708         * sysdeps/nptl/Makeconfig: ... here.
41709         * nptl/configure: File removed.
41710         * nptl/ANNOUNCE: File removed.
41711         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
41712         * sysdeps/unix/sysv/linux/configure: Regenerated.
41713
41714         * nptl/Makefile (routines): Add libc_pthread_init,
41715         libc_multiple_threads, register-atfork and unregister-atfork.
41716         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
41717         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
41718         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
41719         pthread-pi-defines.sym, structsem.sym.
41720         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
41721         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
41722         [$(subdir) = nptl] (tests): Add tst-setgetname.
41723         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
41724         * sysdeps/unix/sysv/linux/sigaction.c: Just include
41725         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
41726         [!LIBC_SIGACTION]: Remove aliases.
41727         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
41728         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
41729         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
41730         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
41731         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
41732         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
41733         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
41734         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
41735         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
41736         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
41737         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
41738         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
41739         __libc_allocate_rtsig_private.
41740         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
41741         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
41742         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
41743         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
41744         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
41745         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
41746         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
41747         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
41748         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
41749         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
41750         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
41751         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
41752         * nptl/internaltypes.h: ... here.
41753         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
41754         * sysdeps/nptl/jmp-unwind.c: ... here.
41755         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
41756         * nptl/libc-lowlevellock.c: ... here.
41757         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
41758         * nptl/libc_multiple_threads.c: ... here.
41759         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
41760         * nptl/libc_pthread_init.c: ... here.
41761         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
41762         * nptl/lowlevelbarrier.sym: ... here.
41763         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
41764         * nptl/lowlevelcond.sym: ... here.
41765         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
41766         * nptl/lowlevellock.c: ... here.
41767         * nptl/lowlevellock.h: Moved ...
41768         * sysdeps/nptl/lowlevellock.h: ... here.
41769         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
41770         * nptl/lowlevelrobustlock.c: ... here.
41771         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
41772         * nptl/lowlevelrobustlock.sym: ... here.
41773         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
41774         * nptl/lowlevelrwlock.sym: ... here.
41775         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
41776         * nptl/pt-fork.c: ... here.
41777         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
41778         * nptl/pthread-pi-defines.sym: ... here.
41779         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
41780         * nptl/pthread_attr_getaffinity.c: ... here.
41781         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
41782         * nptl/pthread_attr_setaffinity.c: ... here.
41783         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
41784         * nptl/pthread_mutex_cond_lock.c: ... here.
41785         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
41786         Update #include.
41787         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
41788         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
41789         * nptl/pthread_once.c: ... here, replacing old file.
41790         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
41791         * nptl/pthread_yield.c: ... here.
41792         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
41793         * nptl/register-atfork.c: ... here.
41794         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
41795         * nptl/sem_post.c: ... here.
41796         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
41797         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
41798         * nptl/sem_timedwait.c: ... here.
41799         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
41800         * nptl/sem_trywait.c: ... here.
41801         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
41802         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
41803         * nptl/sem_wait.c: ... here.
41804         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
41805         * nptl/structsem.sym: ... here.
41806         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
41807         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
41808         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
41809         * nptl/unregister-atfork.c: ... here.
41810         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
41811         * nptl/unwindbuf.sym: ... here.
41812         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
41813         * sysdeps/nptl/fork.c: ... here.
41814         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
41815         * sysdeps/nptl/fork.h: ... here.
41816         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
41817         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
41818         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
41819         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
41820         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
41821         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
41822         * sysdeps/unix/sysv/linux/getpid.c: ... here.
41823         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
41824         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
41825         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
41826         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
41827         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
41828         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
41829         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
41830         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
41831         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
41832         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
41833         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
41834         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
41835         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
41836         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
41837         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
41838         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
41839         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
41840         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
41841         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
41842         * sysdeps/unix/sysv/linux/raise.c: ... here.
41843         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
41844         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
41845         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
41846         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
41847         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
41848         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
41849         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
41850         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
41851         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
41852         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
41853         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
41854         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
41855         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
41856         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
41857         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
41858
41859 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41860
41861         * sysdeps/generic/memcopy.h: Add comment for
41862         MEMCPY_OK_FOR_FWD_MEMMOVE.
41863
41864 2014-07-04  Will Newton  <will.newton@linaro.org>
41865
41866         * string/memchr.c: Merge from gnulib.
41867         [_LIBC]: Remove conditionals.
41868         (__ptr_t): Remove define.
41869         (LONG_MAX_32_BITS): Likewise.
41870         (LONG_MAX): Likewise.
41871         (MEMCHR): Use ANSI prototype and optimize algorithm.
41872
41873         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
41874
41875 2014-07-03  Roland McGrath  <roland@hack.frob.com>
41876
41877         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
41878         (lll_futex_timed_wait_bitset): Fix syscall argument count.
41879
41880         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
41881         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
41882         in a bare environment with no <stdlib.h> installed.
41883         * sysdeps/nptl/configure: Regenerated.
41884
41885         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
41886
41887         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
41888         AC_EGREP_CPP for kernel header checks, so they only succeed if
41889         including <linux/version.h> actually works right.
41890         * sysdeps/unix/sysv/linux/configure: Regenerated.
41891
41892         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
41893         value so it's not diagnosed as unused.
41894
41895         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
41896         thing) with "ifeq ($(subdir),rt)".
41897
41898 2014-07-03  Richard Henderson  <rth@redhat.com>
41899
41900         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
41901         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
41902         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
41903
41904         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
41905         (math_force_eval): New.
41906
41907         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
41908         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
41909
41910         * sysdeps/alpha/fpu/s_round.c: Remove file.
41911         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
41912
41913         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
41914         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
41915         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
41916         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
41917         (_dl_start, print_statistics): Likewise.
41918         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
41919         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
41920
41921         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41922         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41923         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41924         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41925         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41926         (HP_SMALL_TIMING_AVAIL): Define.
41927         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41928         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
41929         (HP_SMALL_TIMING_AVAIL): Define.
41930         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41931         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
41932
41933         * sysdeps/aarch64/hp-timing.h: New file.
41934
41935         * sysdeps/generic/hp-timing.h: Remove dead comment.
41936         * sysdeps/generic/hp-timing-common.h: New file.
41937         * sysdeps/alpha/hp-timing.h: Include it.
41938         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
41939         * sysdeps/i386/i686/hp-timing.h: Likewise.
41940         * sysdeps/ia64/hp-timing.h: Likewise.
41941         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
41942         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
41943         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
41944         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
41945         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
41946         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
41947         (hp_timing_t): New.
41948
41949         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
41950         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
41951         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
41952         * elf/rtld.c (_dl_start_final): Likewise.
41953         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
41954         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41955         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41956         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41957         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41958         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41959         (HP_TIMING_DIFF_INIT): Remove.
41960         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41961         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
41962         (HP_TIMING_DIFF_INIT): Remove.
41963         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
41964         * sysdeps/i386/i686/hp-timing.c: Remove file.
41965         * sysdeps/x86_64/hp-timing.c: Remove file.
41966         * sysdeps/ia64/hp-timing.c: Remove file.
41967         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
41968         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
41969         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
41970         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
41971
41972         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
41973         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
41974         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
41975         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41976         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
41977         (HP_TIMING_ACCUM): Remove.
41978         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41979         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
41980         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
41981
41982         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
41983         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
41984         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
41985         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
41986         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
41987         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
41988         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
41989         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
41990
41991         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
41992
41993 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
41994
41995         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
41996
41997 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41998
41999         Sync up with gettext.
42000         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42001         [_MSC_VER]: Include malloc.h
42002         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42003         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42004         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42005         TEMP_FAILURE_RETRY.  Cast return of alloca.
42006         [!_LIBC] Call gl_rwlock_init.
42007         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42008
42009 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42010
42011         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42012         before checking its value.
42013
42014 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42015
42016         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42017
42018         * debug/memcpy_chk.c: Don't include pagecopy.h.
42019         * debug/mempcpy_chk.c: Likewise.
42020         * string/memcpy.c: Likewise.
42021         * string/memmove.c: Likewise.
42022         * sysdeps/powerpc/memmove.c: Likewise.
42023         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42024         definition of PAGE_COPY_FWD_MAYBE here...
42025         * sysdeps/generic/pagecopy.h: ... from here.
42026         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42027
42028 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42029             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42030
42031         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42032         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42033         optimizations.
42034         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42035         (__libc_ifunc_impl_list): Likewise.
42036         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42037         multiarch strcat for PPC64.
42038         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42039         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42040
42041 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42042
42043         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42044
42045 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42046
42047         * intl/loadmsgcat.c: Remove declaration of
42048         get_sysdep_segment_value.
42049         (get_sysdep_segment_value): Use ISO C style.
42050         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42051         semicolon.  Fix typo and formatting in comment.
42052         (_nl_unload_domain): Use ISO C style.
42053
42054         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42055
42056 2014-07-02  Will Newton  <will.newton@linaro.org>
42057
42058         * malloc/obstack.c: Merge from gnulib master.
42059         [HAVE_CONFIG_H]: Remove conditional code.
42060         [!_LIBC]: Include config.h.
42061         [!ELIDE_CODE]: Don't include inttypes.h, include
42062         stdint.h unconditionally.
42063         (print_and_abort): Mark as _Noreturn.
42064         (_obstack_allocated_p): Mark as __attribute_pure__.
42065         (obstack_free): Rename to __obstack_free.
42066         [!__attribute__]: Remove conditional code.
42067         * malloc/obstack.h: Merge from gnulib master.
42068         [__cplusplus]: Move conditional down.
42069         [!__attribute_pure__]: Define __attribute_pure__ here
42070         if it is not already defined.
42071         (_obstack_memory_used): Mark as __attribute_pure__.
42072         [!__obstack_free]: Define as obstack_free.
42073         [__GNUC__]: Remove check for ancient NeXT gcc.
42074
42075 2014-07-02  Will Newton  <will.newton@linaro.org>
42076             Paul Eggert  <eggert@cs.ucla.edu>
42077
42078         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42079
42080 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42081
42082         * resolv/gethnamaddr.c: Add comment warning that the file is
42083         not maintained.
42084
42085 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42086
42087         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42088         entries.
42089
42090         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42091         entry for aio_cancel and aio_cancel64.
42092         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42093         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42094         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42095         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42096         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42097         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42098         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42099         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42100         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42101         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42102         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42103         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42104         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42105
42106 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42107
42108         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42109         * nptl/pthread_mutex_lock.c: Likewise.
42110         * nptl/pthread_mutex_timedlock.c: Likewise.
42111         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42112
42113 2014-07-01  Richard henderson  <rth@redhat.com>
42114
42115         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42116         (__isnan, __isnanl): Remove.
42117         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42118
42119         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42120
42121 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42122
42123         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42124
42125 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42126
42127         * resolv/nss_dns/dns-host.c (getanswer_r)
42128         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42129
42130 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42131
42132         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42133         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42134         undefine.
42135         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42136         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42137
42138 2014-07-01  Roland McGrath <roland@hack.frob.com>
42139
42140         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42141         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42142
42143         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42144         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42145
42146         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42147         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42148         ... here.
42149         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42150         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42151
42152         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42153         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42154         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42155         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42156
42157         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42158         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42159         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42160         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42161         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42162         Moved ...
42163         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42164         ... here.
42165         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42166         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42167         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42168         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42169         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42170         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42171         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42172         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42173         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42174         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42175         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42176         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42177         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42178         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42179         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42180         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42181         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42182         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42183         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42184         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42185         ... here.
42186         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42187         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42188         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42189         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42190         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42191         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42192         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42193         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42194
42195 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42196
42197         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42198         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42199         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42200         Add sysdep.
42201
42202 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42203
42204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42205
42206 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42207
42208         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42209         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42210
42211         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42212
42213         * sysdeps/arm/libm-test-ulps: Regenerated.
42214
42215 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42216             Roland McGrath <roland@hack.frob.com>
42217
42218         * test-skeleton.c (signal_handler): Kill the whole process group
42219         before killing the child individually.
42220         (main): Report any failure on `setpgid'.
42221
42222 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42223
42224         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42225         from _TLS_H to _ARM_NPTL_TLS_H.
42226         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42227         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42228
42229 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42230
42231         [BZ #16539]
42232         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42233         (__expm1l): Return argument unchanged when small but not
42234         subnormal.
42235
42236         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42237         include macro name.
42238         (_FP_UNPACK_RAW_1_P): Likewise.
42239         (_FP_PACK_RAW_1): Likewise.
42240         (_FP_PACK_RAW_1_P): Likewise.
42241         (_FP_MUL_MEAT_1_wide): Likewise.
42242         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42243         (_FP_MUL_MEAT_1_hard): Likewise.
42244         (_FP_DIV_MEAT_1_imm): Likewise.
42245         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42246         (_FP_DIV_MEAT_1_udiv): Likewise.
42247         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42248         (_FP_UNPACK_RAW_2): Likewise.
42249         (_FP_UNPACK_RAW_2_P): Likewise.
42250         (_FP_PACK_RAW_2): Likewise.
42251         (_FP_PACK_RAW_2_P): Likewise.
42252         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42253         (_FP_MUL_MEAT_2_wide): Likewise.
42254         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42255         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42256         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42257         (_FP_MUL_MEAT_2_gmp): Likewise.
42258         (_FP_DIV_MEAT_2_udiv): Likewise.
42259         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42260         (_FP_FRAC_SRL_4): Likewise.
42261         (_FP_FRAC_SRST_4): Likewise.
42262         (_FP_FRAC_SRS_4): Likewise.
42263         (_FP_UNPACK_RAW_4): Likewise.
42264         (_FP_UNPACK_RAW_4_P): Likewise.
42265         (_FP_PACK_RAW_4): Likewise.
42266         (_FP_PACK_RAW_4_P): Likewise.
42267         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42268         (_FP_MUL_MEAT_4_wide): Likewise.
42269         (_FP_MUL_MEAT_4_gmp): Likewise.
42270         (umul_ppppmnnn): Likewise.
42271         (_FP_DIV_MEAT_4_udiv): Likewise.
42272         (__FP_FRAC_ADD_4): Likewise.
42273         (__FP_FRAC_SUB_3): Likewise.
42274         (__FP_FRAC_SUB_4): Likewise.
42275         (__FP_FRAC_DEC_3): Likewise.
42276         (__FP_FRAC_DEC_4): Likewise.
42277         (__FP_FRAC_ADDI_4): Likewise.
42278         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42279         (_FP_FRAC_SRL_8): Likewise.
42280         (_FP_FRAC_SRS_8): Likewise.
42281
42282         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42283         include macro name.
42284         (FP_UNPACK_RAW_EP): Likewise.
42285         (FP_PACK_RAW_E): Likewise.
42286         (FP_PACK_RAW_EP): Likewise.
42287         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42288         (_FP_ISSIGNAN): Likewise.
42289         (_FP_ADD_INTERNAL): Likewise.
42290         (_FP_FMA): Likewise.
42291         (_FP_CMP): Likewise.
42292         (_FP_SQRT): Likewise.
42293         (_FP_TO_INT): Likewise.
42294         (_FP_FROM_INT): Likewise.
42295         (FP_EXTEND): Likewise.
42296         (_FP_DIV_MEAT_N_loop): Likewise.
42297
42298 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42299
42300         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42301         throughout.
42302
42303 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42304
42305         [BZ #17097]
42306         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
42307         result with correct sign in case of exponents that produce
42308         overflow except for X very close to 1.
42309
42310 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
42311
42312         mktime: merge #if/#ifdef usage from glibc
42313         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
42314         as that works with both Glibc's and Gnulib's style.
42315         See thread starting at Siddhesh Poyarekar's bug report at:
42316         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
42317
42318 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42319
42320         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
42321         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
42322         * sysdeps/tile/tilegx/memmove.c: Remove file.
42323
42324 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42325
42326         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
42327         abi-name definition.
42328         * scripts/soversions.awk: Do not handle or generate ABI lines.
42329         * shlib-versions: Remove ABI entries.
42330         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
42331         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
42332
42333 2014-06-27  Roland McGrath  <roland@hack.frob.com>
42334
42335         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
42336         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
42337         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
42338         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
42339         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
42340         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
42341         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
42342         Moved ...
42343         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
42344         ... here.
42345         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
42346         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
42347         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
42348         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
42349         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
42350         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
42351         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
42352         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
42353         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
42354         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
42355         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
42356         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
42357         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
42358         Moved ...
42359         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
42360         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
42361         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
42362         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
42363         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
42364         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
42365         Moved ...
42366         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
42367         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
42368         Moved ...
42369         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
42370         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
42371         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
42372         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
42373         Moved ...
42374         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
42375         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
42376         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
42377         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
42378         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
42379         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
42380         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
42381         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
42382         Moved ...
42383         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
42384         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
42385         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
42386         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
42387         Moved ...
42388         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
42389         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
42390         Moved ...
42391         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
42392         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
42393         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
42394         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
42395         Moved ...
42396         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
42397         ... here.
42398         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
42399         Identical file removed.
42400         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
42401         Moved ...
42402         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
42403         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
42404         Identical file removed.
42405         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
42406         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
42407         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
42408         Moved ...
42409         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
42410         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
42411         Identical file removed.
42412         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
42413         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
42414         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
42415         Identical file removed.
42416         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
42417         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
42418         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
42419         Identical file removed.
42420         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
42421         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
42422         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
42423         Identical file removed.
42424         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
42425         Moved ...
42426         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
42427         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
42428         Identical file removed.
42429         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
42430         Moved ...
42431         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
42432         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
42433         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
42434         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
42435         Identical file removed.
42436         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
42437         Moved ...
42438         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
42439         ... here.
42440         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
42441         Identical file removed.
42442         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
42443         Moved ...
42444         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
42445         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
42446         Identical file removed.
42447         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
42448         Moved ...
42449         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
42450         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
42451         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
42452         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
42453         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
42454         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
42455         Moved ...
42456         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
42457         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
42458         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
42459
42460         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
42461         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
42462         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
42463         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
42464         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
42465
42466 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
42467
42468         [BZ #17092]
42469         * nscd/nscd.c (monitor_child): Return exit status of child
42470         instead of return value from wait syscall.
42471
42472 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42473
42474         * configure.ac (libc_commonpagesize): Remove variable.
42475         (libc_relro_required): Likewise.
42476         (libc_cv_z_relro): Remove configure test.
42477         * configure: Regenerated.
42478         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
42479         variable.
42480         (libc_relro_required): Likewise.
42481         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
42482         (libc_relro_required): Likewise.
42483         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
42484         (libc_relro_required): Likewise.
42485         * sysdeps/arm/preconfigure: Regenerated.
42486         * sysdeps/ia64/preconfigure: Remove file.
42487         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
42488         variable.
42489         (libc_relro_required): Likewise.
42490
42491         [BZ #16561]
42492         [BZ #16562]
42493         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
42494         (__ieee754_yn): Set FE_TONEAREST mode internally and then
42495         recompute overflowing results in original rounding mode.
42496         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
42497         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
42498         recompute overflowing results in original rounding mode.
42499         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
42500         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42501         recompute overflowing results in original rounding mode.
42502         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
42503         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42504         recompute overflowing results in original rounding mode.
42505         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
42506         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42507         recompute overflowing results in original rounding mode.
42508         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
42509         (libc_feholdsetround_ctx): New macro.
42510         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
42511         * sysdeps/i386/fpu/libm-test-ulps: Update.
42512         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
42513
42514 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42515
42516         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
42517         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
42518         corresponding .cpsetup call.
42519
42520 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42521
42522         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
42523         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
42524         * sysdeps/arm/Makefile [$(subdir) = csu]
42525         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
42526         (static-only-routines): Add aeabi_read_tp here.
42527         (shared-only-routines): Add libc-aeabi_read_tp here.
42528         (CFLAGS-libc-start.c): Add -fexceptions here.
42529         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
42530         (sysdep_routines, static-only-routines, shared-only-routines):
42531         Don't add to these here.
42532         (CFLAGS-libc-start.c): Likewise.
42533
42534         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
42535         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
42536         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
42537         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
42538         * sysdeps/arm/Makefile [$(subdir) = rt]
42539         (librt-sysdep_routines, librt-shared-only-routines):
42540         Append rt-aeabi_unwind_cpp_pr1 here.
42541         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
42542         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
42543         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
42544         (libpthread-sysdep_routines, libpthread-shared-only-routines):
42545         Append nptl-aeabi_unwind_cpp_pr1 here.
42546         (tests): Filter out tst-cleanupx4 here.
42547         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
42548         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
42549         Don't do those here.
42550
42551 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42552
42553         * scripts/list-sources.sh: Do not handle ports specially.
42554
42555 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42556
42557         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
42558         * sysdeps/arm/feupdateenv.c: Likewise.
42559
42560         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
42561
42562 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42563
42564         * manual/texinfo.tex: Update to version 2014-05-05.10 with
42565         trailing whitespace removed.
42566         * scripts/config.guess: Update to version 2014-03-23.
42567         * scripts/config.sub: Update to version 2014-05-01
42568         * scripts/install-sh: Update to version 2013-12-25.23.
42569         * scripts/move-if-change: Update from gnulib.
42570
42571 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42572
42573         * debug/memmove_chk.c: Remove pagecopy.h include.
42574
42575 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42576
42577         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
42578         identical to gnulib mktime.
42579
42580 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
42581
42582         * configure.ac: Do not test for machine being rs6000.  Do not test
42583         for powerpc*-*soft.
42584         * configure: Regenerated.
42585
42586         [BZ #11505]
42587         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
42588         test.
42589         * configure: Regenerated.
42590         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
42591         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
42592         Remove configure test.
42593         * sysdeps/arm/configure: Regenerated.
42594         * sysdeps/nptl/configure.ac: Do not check
42595         libc_cv_asm_cfi_directives.
42596         * sysdeps/nptl/configure: Regenerated.
42597         * sysdeps/x86_64/nptl/configure.ac: Remove file.
42598         * sysdeps/x86_64/nptl/configure: Remove generated file.
42599         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
42600         unconditional.
42601         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
42602
42603 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42604
42605         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
42606         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
42607         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
42608         it is defined.
42609
42610         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
42611         instead of whether it is defined.
42612         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
42613         * sysdeps/hppa/dl-machine.h: Likewise.
42614         * sysdeps/ia64/dl-machine.h: Likewise.
42615         * sysdeps/m68k/dl-machine.h: Likewise.
42616         * sysdeps/microblaze/dl-machine.h: Likewise.
42617         * sysdeps/mips/dl-machine.: Likewise.
42618         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42619         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42620         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42621         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42622         * sysdeps/sh/dl-machine.h: Likewise.
42623         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42624         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42625         * sysdeps/tile/dl-machine.h: Likewise.
42626         * sysdeps/x86_64/dl-machine.h: Likewise.
42627
42628         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
42629         code.
42630         (verify_persistent_db): Likewise.
42631
42632 2014-06-26  Roland McGrath  <roland@hack.frob.com>
42633
42634         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
42635         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
42636         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
42637         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
42638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
42639         Moved ...
42640         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
42641         ... here.
42642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
42643         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
42644         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
42645         Identical file removed.
42646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
42647         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
42648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
42649         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
42650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
42651         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
42652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
42653         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
42654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
42655         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
42656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
42657         Moved ...
42658         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
42659         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
42660         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
42661         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
42662         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
42663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
42664         Moved ...
42665         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
42666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42667         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
42668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
42669         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
42670         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
42671         Identical file removed.
42672         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
42673         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
42674         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
42675         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
42676         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
42677         Moved ...
42678         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
42679         ... here.
42680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
42681         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
42682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
42683         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
42684         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
42685         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
42686         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
42687         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
42688         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
42689         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
42690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
42691         Moved ...
42692         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
42693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
42694         Moved ...
42695         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
42696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
42697         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
42698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
42699         Moved ...
42700         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
42701         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
42702         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
42703
42704         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
42705         folded into ...
42706         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
42707         * sysdeps/unix/sysv/linux/s390/Versions
42708         (libpthread: GLIBC_2.19): New version set.
42709         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
42710         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
42711         (librt: GLIBC_2.3.3): New version set.
42712         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
42713         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
42714         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
42715         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
42716         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
42717         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
42718         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
42719         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
42720         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
42721         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
42722         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
42723         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
42724         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
42725         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
42726         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
42727         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
42728         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
42729         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
42730         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
42731         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
42732         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
42733         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
42734         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
42735         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
42736         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
42737         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
42738         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
42739         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
42740         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
42741         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
42742         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
42743         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
42744         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
42745         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
42746         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
42747         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
42748         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
42749         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
42750         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
42751         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
42752         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
42753         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
42754         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
42755         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
42756         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
42757
42758         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
42759         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
42760         (__libc_vfork): Define the function under this name.
42761         [!NOT_IN_libc] (__vfork): Make this an alias.
42762         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42763         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
42764         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
42765         (__libc_vfork): Define the function under this name.
42766         [!NOT_IN_libc] (__vfork): Make this an alias.
42767         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
42768         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
42769         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
42770         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
42771         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
42772         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
42773
42774         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
42775         code that was previously under [RESET_PID].
42776         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
42777         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
42778         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
42779
42780         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
42781         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
42782         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
42783         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
42784         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
42785         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
42786         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
42787         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
42788         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
42789         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
42790         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
42791         Moved ...
42792         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
42793         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
42794         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
42795         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
42796         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
42797         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
42798         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
42799         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
42800         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
42801         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
42802         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
42803         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
42804         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
42805         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
42806         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
42807         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
42808         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
42809         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
42810         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
42811         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
42812         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
42813         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
42814         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
42815         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
42816         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
42817         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
42818         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
42819         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
42820         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
42821
42822 2014-06-25  Roland McGrath  <roland@hack.frob.com>
42823
42824         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
42825         that was previously under [RESET_PID].
42826         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
42827
42828 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
42829
42830         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
42831         not undefine and redefine.
42832         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
42833         [O_CLOEXEC]: Make code unconditional.
42834         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
42835         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
42836         <kernel-features.h>.
42837         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
42838         conditional variable definition.
42839         (shm_open) [O_CLOEXEC]: Make code unconditional.
42840         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
42841         code.
42842
42843         * configure.ac (USE_REGPARMS): Don't define here.
42844         * configure: Regenerated.
42845         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
42846         * sysdeps/i386/configure: Regenerated.
42847
42848         * nptl/createthread.c: Don't include kernel-features.h.
42849         * nptl/pthread_cancel.c: Likewise.
42850         * nptl/pthread_condattr_setclock.c: Likewise.
42851         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
42852         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
42853         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
42854         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
42855         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
42856         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
42857         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
42858         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
42859         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
42860         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
42861         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
42862         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
42863         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
42864         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
42865         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
42866         * nscd/gai.c: Likewise.
42867         * nss/nss_db/db-open.c: Likewise.
42868         * sysdeps/generic/ldsodefs.h: Likewise.
42869         * sysdeps/sh/nptl/tls.h: Likewise.
42870         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42871         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
42872         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
42873         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
42874         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
42875         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
42876         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
42877         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
42878         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
42879         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
42880         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
42881         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
42882         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
42883         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
42884         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
42885         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
42886         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
42887         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
42888         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
42889         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
42890         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
42891         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
42892         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
42893         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
42894         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
42895         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
42896         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
42897         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
42898         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
42899         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
42900         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
42901         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
42902         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
42903         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
42904         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
42905         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
42906         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
42907         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
42908         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
42909         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
42910         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
42911         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
42912         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
42913         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
42914         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
42915         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
42916         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
42917         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
42918         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
42919         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
42920         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
42921         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
42922         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
42923         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
42924         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
42925         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
42926         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
42927         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
42928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
42929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
42930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
42931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
42932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
42933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
42934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
42935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
42936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
42937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
42938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
42939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
42940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
42941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
42942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
42944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
42945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
42946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
42947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
42948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
42949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
42950         * sysdeps/unix/sysv/linux/pread.c: Likewise.
42951         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
42952         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
42953         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
42954         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
42955         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
42956         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
42957         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
42958         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
42959         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
42960         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
42961         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
42962         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
42963         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
42964         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
42965         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
42966         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42967         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
42968         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
42969         * sysdeps/unix/sysv/linux/system.c: Likewise.
42970         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
42971         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
42972         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
42973         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
42974         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
42975         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
42976         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
42977
42978         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
42979         * configure: Regenerated.
42980         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
42981
42982         * configure.ac (base_machine): Do not set specially for particular
42983         machines here.
42984         * configure: Regenerated.
42985         * sysdeps/powerpc/preconfigure: Move machine and base_machine
42986         settings from configure.ac.
42987         * sysdeps/i386/preconfigure: New file.
42988         * sysdeps/s390/preconfigure: Likewise.
42989         * sysdeps/sh/preconfigure: Likewise.
42990         * sysdeps/sparc/preconfigure: Likewise.
42991
42992 2014-06-25  Roland McGrath  <roland@hack.frob.com>
42993
42994         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
42995         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
42996         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
42997         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
42998         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
42999         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43000         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43001         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43002         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43003         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43004         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43005         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43006         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43007         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43008         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43009         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43010         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43011         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43012         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43013
43014         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43015         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43016         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43017         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43018         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43019         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43020         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43021         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43022         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43023         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43024         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43025         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43026         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43027         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43028         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43029         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43030         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43031         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43032         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43033         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43034         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43035         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43036         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43037         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43038         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43039         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43040         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43041         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43042         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43043         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43044         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43045         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43046         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43047         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43048         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43049         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43050         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43051         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43052
43053         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43054         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43055         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43056         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43058         Moved ...
43059         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43060         ... here.
43061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43062         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43063         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43064         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43066         Moved ...
43067         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43068         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43069         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43070         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43071         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43072         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43073         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43074         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43075         Moved ...
43076         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43078         Moved ...
43079         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43081         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43082         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43083         Moved ...
43084         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43086         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43088         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43089         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43090         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43091         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43092         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43093         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43094         Moved ...
43095         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43096         ... here.
43097         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43098         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43099         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43100         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43101         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43102         Moved ...
43103         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43105         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43106         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43107         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43108         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43109         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43111         Moved ...
43112         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43114         Moved ...
43115         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43116         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43117         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43119         Moved ...
43120         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43121         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43122         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43123         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43124         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43125
43126 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43127
43128         * timezone/checktab.awk: Update from tzcode 2014e.
43129         * timezone/private.h: Likewise.
43130         * timezone/tzfile.h: Likewise.
43131         * timezone/zdump.c: Likewise.
43132         * timezone/zic.c: Likewise.
43133
43134         * sysdeps/unix/sysv/linux/kernel-features.h
43135         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43136         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43137         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43138         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43139         Remove conditional code.
43140
43141 2014-06-25  Will Newton  <will.newton@linaro.org>
43142
43143         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43144         (_dl_arm_cap_flags): Add HWCAP2 values.
43145         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43146         (_DL_HWCAP_COUNT): Increase to 37.
43147         (_DL_HWCAP_LAST): New define.
43148         (_DL_HWCAP2_LAST): New define.
43149         (_dl_procinfo): Add support for printing
43150         AT_HWCAP2 entries.
43151         (_dl_string_hwcap): Use _dl_hwcap_string.
43152
43153 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43154
43155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43156
43157 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43158
43159         * README: Do not mention ports directory.
43160
43161         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43162         Remove macro.
43163         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43164         <kernel-features.h>.
43165         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43166         conditional variable definition.
43167         (__futimes): Update comment.
43168         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43169         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43170
43171         [BZ #16560]
43172         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43173         arguments close to 0.
43174         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43175         Likewise.
43176         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43177         Likewise.
43178         * math/auto-libm-test-in: Add more tests of exp10.
43179         * math/auto-libm-test-out: Regenerated.
43180         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43181
43182         * sysdeps/unix/sysv/linux/kernel-features.h
43183         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43184         * sysdeps/unix/sysv/linux/readv.c: Do not include
43185         <kernel-features.h>.
43186         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43187         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43188         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43189         unconditional.
43190         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43191         conditional code.
43192         * sysdeps/unix/sysv/linux/writev.c: Do not include
43193         <kernel-features.h>.
43194         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43195         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43196         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43197         unconditional.
43198         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43199         conditional code.
43200
43201 2014-06-25  Will Newton  <will.newton@linaro.org>
43202
43203         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43204         comment changes throughout the file.  Remove checks
43205         for HAVE_*_H definitions that are not required.
43206         (__gen_tempname): Call abort if an unknown kind value is
43207         passed.
43208
43209 2014-06-25  Andreas Schwab  <schwab@suse.de>
43210
43211         [BZ #17086]
43212         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43213         scalbln, scalblnf, scalblnl in libc.
43214
43215 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43216
43217         [BZ #17086]
43218         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43219         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43220         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43221
43222 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43223
43224         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43225         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43226         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43227         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43228         Update #include.
43229         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43230         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43231         Update #include.
43232         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43233         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43234         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43235         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43236         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43237         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43238         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43239         * sysdeps/x86/bits/semaphore.h: ... here.
43240         * sysdeps/x86/nptl/elide.h: Moved ...
43241         * sysdeps/x86/elide.h: ... here.
43242         * sysdeps/x86_64/nptl/Implies: File removed.
43243         * sysdeps/i386/nptl/Implies: File removed.
43244
43245 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43246
43247         [BZ #16539]
43248         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43249         return the argument for normal arguments with exponent below -64.
43250         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43251         Likewise.
43252         * math/auto-libm-test-in: Add another test of expm1.
43253         * math/auto-libm-test-out: Regenerated.
43254
43255         [BZ #16287]
43256         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43257         calling __erfcl for arguments at least 16.
43258         * math/auto-libm-test-in: Add more tests of erf.
43259         * math/auto-libm-test-out: Regenerated.
43260
43261         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43262         individual architectures.
43263         * sysdeps/unix/sysv/linux/configure: Regenerated.
43264         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43265         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43266         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43267         (ldd_rewrite_script): Define variable.
43268         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43270         file.
43271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43272         generated file.
43273         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43274         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43275         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43276         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43277         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43278         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43279         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43280         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43281
43282 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43283
43284         [BZ #17084]
43285         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43286         Rename member __data.d to __data.__elision_data.
43287
43288 2014-06-24  Wilco  <wdijkstr@arm.com>
43289
43290         * NEWS: Add 16918 to fixed bug list.
43291
43292 2014-06-24  Wilco  <wdijkstr@arm.com>
43293
43294         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43295
43296 2014-06-24  Wilco  <wdijkstr@arm.com>
43297
43298         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43299         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43300         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43301         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43302         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43303         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43304         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43305         Use _FPU_MASK_RM.
43306
43307 2014-06-24  Wilco  <wdijkstr@arm.com>
43308
43309         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
43310
43311 2014-06-24  Wilco  <wdijkstr@arm.com>
43312
43313         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
43314         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
43315         * sysdeps/arm/fesetround.c (fesetround): Remove space.
43316         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
43317
43318 2014-06-24  Wilco  <wdijkstr@arm.com>
43319
43320         [BZ #16918]
43321         * sysdeps/arm/feupdateenv.c (feupdateenv):
43322         Rewrite to reduce FPSCR accesses and fix return value.
43323
43324 2014-06-24  Wilco  <wdijkstr@arm.com>
43325
43326         * sysdeps/arm/fclrexcpt.c (feclearexcept):
43327         Optimize to avoid unnecessary FPSCR writes.
43328         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
43329         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
43330         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
43331         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
43332
43333 2014-06-24  Wilco  <wdijkstr@arm.com>
43334
43335         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
43336         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
43337         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
43338         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
43339         Call libc_fetestexcept_vfp.
43340         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
43341         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
43342         __SOFTFP__ ifdef so that they can be built for softfp.
43343
43344 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43345
43346         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
43347         argument type signed char.
43348
43349         * Makerules (check-abi): Dump diff of symlist if the test
43350         fails.
43351
43352 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43353
43354         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
43355         using abort.
43356
43357         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
43358         Remove unused variable ST.
43359
43360 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43361
43362         [BZ #16354]
43363         [BZ #17061]
43364         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
43365         small arguments before calling __expm1.
43366         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
43367         small arguments before calling __expm1f.
43368         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
43369         small arguments before calling __expm1l.
43370         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
43371         Likewise.
43372         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
43373         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
43374         spurious underflow for some cosh tests.
43375         * math/auto-libm-test-out: Regenerated.
43376         * sysdeps/i386/fpu/libm-test-ulps: Update.
43377
43378         [BZ #17050]
43379         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
43380         (__ieee754_y1): Set errno if return value overflows.
43381         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
43382         (__ieee754_y1f): Set errno if return value overflows.
43383         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
43384         (__ieee754_y1l): Set errno if return value overflows.
43385         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
43386         (__ieee754_y1l): Set errno if return value overflows.
43387         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
43388         * math/auto-libm-test-out: Regenerated.
43389
43390         * math/gen-auto-libm-tests.c: Document use of
43391         ignore-zero-inf-sign.
43392         (input_flag_type): Add value flag_ignore_zero_inf_sign.
43393         (input_flags): Add ignore-zero-inf-sign.
43394         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
43395         * math/gen-libm-test.pl (generate_testfile): Handle
43396         ignore-zero-inf-sign.
43397         * math/auto-libm-test-in: Mark some cpow tests with
43398         ignore-zero-inf-sign and some with xfail-rounding.
43399         * math/auto-libm-test-out: Regenerated.
43400         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
43401         * sysdeps/i386/fpu/libm-test-ulps: Update.
43402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43403
43404         [BZ #16315]
43405         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
43406         overflowing or underflowing operations take place with sign of
43407         result.
43408         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43409         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
43410         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
43411         (__ieee754_pow): Recompute overflowing and underflowing results in
43412         original rounding mode.
43413         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
43414         (__powl_helper): Allow negative argument X and scale negated value
43415         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
43416         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
43417         overflowing or underflowing operations take place with sign of
43418         result.
43419         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
43420         Include <math.h>.
43421         * math/auto-libm-test-in: Add more tests of pow.
43422         * math/auto-libm-test-out: Regenerated.
43423         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
43424         (pow_tonearest_test_data): Remove.
43425         (pow_test_tonearest): Likewise.
43426         (pow_towardzero_test_data): Likewise.
43427         (pow_test_towardzero): Likewise.
43428         (pow_downward_test_data): Likewise.
43429         (pow_test_downward): Likewise.
43430         (pow_upward_test_data): Likewise.
43431         (pow_test_upward): Likewise.
43432         (main): Don't call removed functions.
43433         * sysdeps/i386/fpu/libm-test-ulps: Update.
43434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43435
43436 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43437
43438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
43439         Moved ...
43440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
43441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
43442         Moved ...
43443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
43444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
43445         Moved ...
43446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
43447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
43448         Moved ...
43449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
43450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
43451         File removed.
43452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
43453         File removed.
43454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
43455         File removed.
43456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
43457         File removed.
43458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
43459         File removed.
43460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
43461         File removed.
43462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
43463         File removed.
43464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
43465         File removed.
43466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
43467         File removed.
43468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
43469         File removed.
43470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
43471         File removed.
43472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
43473         File removed.
43474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
43475         Moved ...
43476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
43477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
43478         Moved ...
43479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
43480         ... here.
43481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
43482         Moved ...
43483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
43484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
43485         Moved ...
43486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
43487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
43488         Moved ...
43489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
43490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
43491         Moved ...
43492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
43493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
43494         Moved ...
43495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
43496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
43497         Moved ...
43498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
43499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
43500         Moved ...
43501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
43502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
43503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
43504         ... here.
43505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
43506         Moved ...
43507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
43508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
43509         Moved ...
43510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
43511         ... here.
43512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
43513         Moved ...
43514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
43515         ... here.
43516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
43517         Moved ...
43518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
43519         ... here.
43520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
43521         Moved ...
43522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
43523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
43524         Moved ...
43525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
43526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
43527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
43528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
43529         Moved ...
43530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
43531         ... here.
43532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
43533         Moved ...
43534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
43535         ... here.
43536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
43537         Moved ...
43538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
43539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
43540         Moved ...
43541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
43542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
43543         Moved ...
43544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
43545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
43546         Moved ...
43547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
43548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
43549         Moved ...
43550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
43551         ... here.
43552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
43553         Moved ...
43554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
43555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
43556         Moved ...
43557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
43558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
43559         Moved ...
43560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
43561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
43562         Moved ...
43563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
43564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
43565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
43566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
43567         Moved ...
43568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
43569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
43570         Moved ...
43571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
43572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
43573         Moved ...
43574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
43575         ... here.
43576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
43577         Moved ...
43578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
43579         ... here.
43580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
43581         Moved ...
43582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
43583         ... here.
43584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
43585         Moved ...
43586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
43587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
43588         Moved ...
43589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
43590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
43591         Moved ...
43592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
43593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
43594         Moved ...
43595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
43596         ... here.
43597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
43598         Moved ...
43599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
43600         ... here.
43601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
43602         Moved ...
43603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
43604         ... here.
43605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
43606         Moved ...
43607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
43608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
43609         Moved ...
43610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
43611
43612 2014-06-23  Will Newton  <will.newton@linaro.org>
43613             Wilco  <wdijkstr@arm.com>
43614
43615         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
43616         implementation.  Include get-rounding-mode.h.
43617         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
43618         [!libc_feholdsetround_noex_ctx]: Define
43619         libc_feholdsetround_noex_ctx.
43620         [!libc_feholdsetround_noexf_ctx]: Define
43621         libc_feholdsetround_noexf_ctx.
43622         [!libc_feholdsetround_noexl_ctx]: Define
43623         libc_feholdsetround_noexl_ctx.
43624         (libc_feholdsetround_ctx): New function.
43625         (libc_feresetround_ctx): New function.
43626         (libc_feholdsetround_noex_ctx): New function.
43627         (libc_feresetround_noex_ctx): New function.
43628
43629 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43630
43631         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
43632         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
43633         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
43634         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
43635         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
43636         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
43637
43638         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
43639         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
43640         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
43641         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
43642         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
43643         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
43644         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
43645         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
43646         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
43647         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
43648         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
43649         Moved ...
43650         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
43651         ... here.
43652         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
43653         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43654         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
43655         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
43656         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
43657         Moved ...
43658         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
43659         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
43660         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
43661         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
43662         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
43663         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
43664         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
43665         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
43666         Moved ...
43667         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
43668         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
43669         Moved ...
43670         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
43671         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
43672         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
43673         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
43674         Moved ...
43675         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
43676         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
43677         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
43678         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
43679         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
43680         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
43681         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
43682         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
43683         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
43684         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
43685         Moved ...
43686         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
43687         ... here.
43688         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
43689         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
43690         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
43691         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
43692         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
43693         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
43694         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
43695         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
43696         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
43697         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
43698         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
43699         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
43700         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
43701         Moved ...
43702         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
43703         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
43704         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
43705         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
43706         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
43707         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
43708         Moved ...
43709         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
43710         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
43711         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
43712         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
43713         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
43714
43715         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
43716         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
43717         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
43718         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
43719         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
43720         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
43721         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
43722         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
43723         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
43724         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
43725         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
43726         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
43727         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
43728         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
43729         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
43730         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
43731         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
43732         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
43733         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
43734         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
43735         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
43736         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
43737         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
43738         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
43739         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
43740         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
43741         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
43742         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
43743
43744 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43745
43746         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
43747         (FALLOC_FL_COLLAPSE_RANGE): New macro.
43748         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
43749         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
43750         (IPV6_PMTUDISC_INTERFACE): Likewise.
43751         (IPV6_PMTUDISC_OMIT): Likewise.
43752
43753 2014-06-23  Andreas Schwab  <schwab@suse.de>
43754
43755         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
43756         Remove unused errout label.
43757
43758 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43759
43760         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
43761         macro: hardware supports Vector Crypto instructions.
43762
43763 2014-06-23  Will Newton  <will.newton@linaro.org>
43764
43765         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
43766         rather than __builtin_expect.
43767
43768         * elf/dl-lookup.c (undefined_msg): Remove variable.
43769         (_dl_lookup_symbol_x): Replace undefined_msg with string
43770         literal.
43771
43772         * elf/dl-lookup.c (do_lookup_unique): New function.
43773         (do_lookup_x): Move STB_GNU_UNIQUE handling code
43774         to a separate function.
43775
43776 2014-06-23  Andreas Schwab  <schwab@suse.de>
43777
43778         [BZ #17079]
43779         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
43780         before reading the next line.
43781
43782 2014-06-23  Will Newton  <will.newton@linaro.org>
43783
43784         * test-skeleton.c (signal_handler): Use printf and %m
43785         rather than perror.  Use printf rather than fprintf to
43786         stderr.  Use puts rather than fputs to stderr.
43787         (main): Likewise.
43788
43789 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
43790
43791         * nscd/nscd.c (thread_info_t): Remove typedef.
43792         (thread_info): Remove variable.
43793
43794 2014-06-21  Allan McRae  <allan@archlinux.org>
43795
43796         * NEWS: Mention CVE-2014-4043.
43797
43798 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43799
43800         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
43801         * nptl/smp.h: ... here.
43802
43803         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
43804
43805         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
43806         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
43807         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
43808         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
43809
43810         * nptl/allocatestack.c: Include <stack-aliasing.h>.
43811         * nptl/stack-aliasing.h: New file.
43812         * sysdeps/i386/i686/stack-aliasing.h: New file.
43813         * sysdeps/i386/i686/nptl/Makefile: File removed.
43814         * sysdeps/x86_64/stack-aliasing.h: New file.
43815         * sysdeps/x86_64/nptl/Makefile
43816         (CFLAGS-pthread_create.c): Variable removed.
43817
43818         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
43819         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
43820         old file.
43821         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
43822         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
43823         old file.
43824
43825 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
43826
43827         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43828         (__ASSUME_SIGFRAME_V2): Remove macro.
43829         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
43830         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
43831         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
43832         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
43833         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
43834         Declare as function.  Remove conditional macro definitions.
43835         (__default_rt_sa_restorer): Likewise.
43836         (__default_sa_restorer_v1): Remove declaration.
43837         (__default_sa_restorer_v2): Likewise.
43838         (__default_rt_sa_restorer_v1): Likewise.
43839         (__default_rt_sa_restorer_v2): Likewise.
43840         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
43841         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
43842         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
43843
43844 2014-06-20  Roland McGrath  <roland@hack.frob.com>
43845
43846         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
43847         (libpthread-routines): Add sysdep.
43848         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
43849         * sysdeps/unix/sysv/linux/sparc/Versions
43850         (libpthread: GLIBC_2.3.3): New version set.
43851         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
43852         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
43853         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
43854         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
43855         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
43856         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
43857         Moved ...
43858         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
43859         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
43860         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
43861         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
43862         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
43863         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
43864         * sysdeps/sparc/nptl/sem_init.c: ... here.
43865         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
43866         * sysdeps/sparc/nptl/sem_post.c: ... here.
43867         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
43868         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
43869         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
43870         * sysdeps/sparc/nptl/sem_wait.c: ... here.
43871         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
43872         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
43873         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
43874         (libpthread-routines): Add cpu_relax.
43875         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
43876         File removed.
43877         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
43878         (librt: GLIBC_2.3.3): New version set.
43879         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
43880         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
43881         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
43882         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
43883         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
43884         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
43885         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
43886         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
43887         Moved ...
43888         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
43889         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
43890         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
43891         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
43892         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
43893         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
43894         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
43895         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
43896         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
43897         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
43898         Moved ...
43899         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
43900         Update #include.
43901         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
43902         Moved ...
43903         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
43904         Update #include.
43905         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
43906         Moved ...
43907         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
43908         Update #include.
43909         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
43910         Moved ...
43911         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
43912         Update #include.
43913         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
43914         Moved ...
43915         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
43916         Update #include.
43917         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
43918         Moved ...
43919         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
43920         Update #include.
43921         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
43922         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
43923         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
43924         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
43925         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
43926         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
43927         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
43928         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
43929         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
43930         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
43931         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
43932         Moved ...
43933         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
43934         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
43935         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
43936         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
43937         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
43938
43939 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
43940
43941         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
43942         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
43943         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
43944         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
43945         * nscd/nscd.c: Likewise.
43946         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
43947         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
43948         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
43949         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
43950
43951         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
43952         <kernel-features.h>.
43953         (init_mq_netlink): Remove conditional have_sock_cloexec
43954         definitions.  Remove code conditional on have_sock_cloexec < 0.
43955         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
43956         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
43957         * sysdeps/unix/sysv/linux/opensock.c: Do not include
43958         <kernel-features.h>.
43959         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
43960         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
43961
43962 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
43963
43964         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
43965         Add tests for memset_chk and memset.
43966
43967         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
43968         with AVX2_Usable.
43969
43970 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
43971
43972         [BZ #16046]
43973         * elf/tst-dl-iter-static.c: New file.
43974         * elf/Makefile (tests-static): Add tst-dl-iter-static.
43975
43976         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
43977         error.
43978
43979 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
43980
43981         * sysdeps/unix/sysv/linux/kernel-features.h
43982         (__ASSUME_F_GETOWN_EX): Remove macro.
43983         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
43984         <kernel-features.h>.
43985         (miss_F_GETOWN_EX): Remove variable or macro.
43986         (do_fcntl): Do not check miss_F_GETOWN_EX.
43987         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
43988
43989         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
43990         Remove macro.
43991         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
43992         [!__ASSUME_AT_RANDOM]: Remove conditional code.
43993         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
43994
43995         * sysdeps/unix/sysv/linux/kernel-features.h
43996         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
43997         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
43998         [ADJ_OFFSET_SS_READ]: Make code unconditional.
43999         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44000
44001 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44002
44003         [BZ #17075]
44004         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44005         Fix calculation of the symbol's value.
44006         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44007         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44008         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44009         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44010         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44011         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44012         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44013         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44014         (modules-names): Add `tst-armtlsdescmod',
44015         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44016         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44017         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44018         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44019         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44020         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44021         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44022         ($(objpfx)tst-armtlsdescloc): New dependency.
44023         ($(objpfx)tst-armtlsdescextnow): Likewise.
44024         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44025         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44026         TLS scheme support.
44027         * sysdeps/arm/configure: Regenerate.
44028
44029 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44030
44031         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44032         (__atfct_seterrno_2): Likewise.
44033         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44034         <kernel-features.h>.
44035         (__ASSUME_ATFCTS): Do not undefine and redefine.
44036         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44037         (__have_atfcts): Remove conditional definition.
44038         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44039         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44040         unreachable if [__ASSUME_ATFCTS].
44041         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44042         not undefine and redefine.
44043         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44044         <kernel-features.h>.
44045         (faccessat) [__NR_faccessat]: Make code unconditional.
44046         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44047         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44048         <kernel-features.h>.
44049         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44050         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44051         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44052         <kernel-features.h>.
44053         (fchownat) [__NR_fchownat]: Make code unconditional.
44054         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44055         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44056         <kernel-features.h>.
44057         (futimesat) [__NR_futimesat]: Make code unconditional.
44058         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44059         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44060         <kernel-features.h>.
44061         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44062         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44063         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44064         <kernel-features.h>.
44065         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44066         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44067         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44068         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44069         <kernel-features.h>.
44070         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44071         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44072         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44073         <kernel-features.h>.
44074         (linkat) [__NR_linkat]: Make code unconditional.
44075         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44076         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44077         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44078         <kernel-features.h>.
44079         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44080         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44081         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44082         <kernel-features.h>.
44083         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44084         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44085         * sysdeps/unix/sysv/linux/openat.c: Do not include
44086         <kernel-features.h>.
44087         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44088         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44089         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44090         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44091         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44092         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44093         <kernel-features.h>.
44094         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44095         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44096         result of INLINE_SYSCALL directly, not via int variable.
44097         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44098         <kernel-features.h>.
44099         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44100         (renameat) [__NR_renameat]: Make code unconditional.
44101         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44102         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44103         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44104         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44105         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44106         (__ASSUME_ATFCTS): Do not undefine and redefine.
44107         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44108         <kernel-features.h>.
44109         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44110         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44111         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44112         <kernel-features.h>.
44113         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44114         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44115         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44116         (__ASSUME_ATFCTS): Do not undefine and redefine.
44117         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44118         <kernel-features.h>.
44119         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44120         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44121         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44122         <kernel-features.h>.
44123         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44124         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44125
44126 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44127
44128         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44129
44130 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44131
44132         [BZ #17069]
44133         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44134         constructed tree before returning error.
44135         * posix/bug-regexp36.c: Expand test case.
44136
44137 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44138
44139         [BZ #6803]
44140         * math/libm-test.inc (scalbln_test_date):
44141         Add errno expectations.
44142         * math/w_scalblnf.c: New File.
44143         Add wrapper which checks for setting errno to ERANGE.
44144         Add weak_alias for corresponding scalbln function.
44145         * math/w_scalbln.c: Likewise.
44146         * math/w_scalblnl.c: Likewise.
44147         * math/Makefile (libm-calls): Add w_scalbln.
44148         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44149         Remove weak_alias for corresponding scalbln function.
44150         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44151         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44152         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44153         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44154         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44155         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44156         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44157         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44158         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44159         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44160         Remove long_double_symbol for scalblnl function in libm, libc.
44161         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44162         Add wrapper which checks for setting errno to ERANGE.
44163         Add long_double_symbol for scalblnl function in libm, libc.
44164         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44165         Remove long_double_symbol for scalblnl in libm.
44166         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44167         Add wrapper which checks for setting errno to ERANGE.
44168         Add long_double_symbol for scalblnl function in libm.
44169         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44170         Do not use wrapper because of own implementation.
44171
44172 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44173
44174         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44175         3 bytes for __pad1 for x32.
44176         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44177
44178 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44179             H.J. Lu  <hongjiu.lu@intel.com>
44180
44181         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44182         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44183         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44184         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44185         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44186
44187 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44188
44189         [BZ #17069]
44190         * posix/regcomp.c (parse_expression): Deallocate partially
44191         constructed tree before returning error.
44192         * posix/Makefile.c (tests): Add bug-regex36.
44193         (generated): Add bug-regex36.mtrace.
44194         (tests-special): Add $(objpfx)bug-regex36-mem.out
44195         (bug-regex36-ENV): New variable.
44196         ($(objpfx)bug-regex36-mem.out): New rule.
44197         * posix/bug-regex36.c: New file.
44198
44199 2014-06-19  Will Newton  <will.newton@linaro.org>
44200
44201         * malloc/malloc.c (systrim): If extra is zero then return
44202         early.
44203
44204 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44205
44206         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44207
44208 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44209
44210         * sysdeps/aarch64/strchr.S: New file.
44211
44212 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44213
44214         [BZ #17022]
44215         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44216         from arguments -2 or below.
44217         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44218         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44219
44220 2014-06-18  Andreas Schwab  <schwab@suse.de>
44221
44222         [BZ #17062]
44223         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44224         of a bracket expr not to run off the end of the string.
44225         * posix/Makefile (tests): Add tst-fnmatch3.
44226         * posix/tst-fnmatch3.c: New file.
44227
44228 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44229
44230         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44231         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44232         [$(cross-compiling) = no]: Likewise.
44233         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44234         [$(cross-compiling) = no]: Likewise.
44235
44236 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44237
44238         [BZ #17031]
44239         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44240         double, adjusted for any remainder from the high double.
44241         * math/libm-test.inc (nearbyint): Add tests.
44242         (rint): Likewise.
44243
44244 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44245
44246         * nptl/sysdeps/powerpc/Makefile: Moved ...
44247         * sysdeps/powerpc/nptl/Makefile: ... here.
44248         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44249         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44250         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44251         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44252         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44253         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44254         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44255         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44256         * nptl/sysdeps/powerpc/tls.h: Moved ...
44257         * sysdeps/powerpc/nptl/tls.h: ... here.
44258
44259 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44260
44261         [BZ #16681]
44262         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44263         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44264         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44265         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44266         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44267         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44268         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44269         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44270         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44271
44272 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44273
44274         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44275
44276 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44277
44278         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44279         defined operator.
44280
44281         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44282         $TIMEOUTFACTOR.
44283
44284 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44285
44286         [BZ #17058]
44287         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44288         non-executed part of the test.
44289
44290 2014-06-16  Andreas Schwab  <schwab@suse.de>
44291
44292         * string/bits/string2.h (strdup, strndup): Update feature guard.
44293
44294 2014-06-14  David S. Miller  <davem@davemloft.net>
44295
44296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44297
44298 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44299
44300         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44301         that was previously under [RESET_PID].
44302         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44303
44304         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44305         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44306         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
44307         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44308         (__libc_vfork): New strong alias.
44309         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
44310
44311 2014-06-14 Andi Kleen  <ak@linux.intel.com>
44312
44313         * sysdeps/generic/elide.h: New file.
44314
44315 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
44316
44317         * Makefile (installed-headers): Adjust path of pthread.h header.
44318
44319 2014-06-13  Roland McGrath  <roland@hack.frob.com>
44320
44321         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
44322         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
44323         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
44324         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
44325
44326         * nptl/sysdeps/s390/Makefile: Moved ...
44327         * sysdeps/s390/nptl/Makefile: ... here.
44328         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
44329         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
44330         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
44331         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
44332         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
44333         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
44334         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
44335         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
44336         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
44337         * sysdeps/s390/nptl/pthreaddef.h: ... here.
44338         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
44339         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
44340         * nptl/sysdeps/s390/tls.h: Moved ...
44341         * sysdeps/s390/nptl/tls.h: ... here.
44342
44343         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
44344         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
44345
44346 2014-06-13  David S. Miller  <davem@davemloft.net>
44347
44348         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
44349         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
44350         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
44351         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
44352         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
44353         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
44354         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
44355         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
44356         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
44357         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
44358         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
44359         Remove RESET_PID cpp guards.
44360         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
44361         Remove RESET_PID cpp guards.
44362         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
44363
44364 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
44365
44366         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
44367         __sp to uintptr_t.
44368
44369 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44370
44371         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
44372         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
44373         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
44374         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
44375         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
44376         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
44377         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
44378         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
44379         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
44380         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
44381         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
44382         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
44383         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
44384         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
44385         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
44386         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
44387         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
44388         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
44389         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
44390         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
44391
44392         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
44393         (pthread_rwlock_rdlock): Add elision.
44394         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
44395         (pthread_rwlock_wrlock): Add elision.
44396         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
44397         (pthread_rwlock_trywrlock): Add elision.
44398         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
44399         (pthread_rwlock_tryrdlock): Add elision.
44400         * nptl/pthread_rwlock_unlock.c: Include elide.h.
44401         (pthread_rwlock_tryrdlock): Add elision unlock.
44402         * nptl/sysdeps/pthread/pthread.h:
44403         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
44404         (PTHREAD_RWLOCK_INITIALIZER,
44405         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
44406         Handle new elision field.
44407         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
44408         * sysdeps/arm/nptl/bits/pthreadtypes.h
44409         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44410         * sysdeps/sh/nptl/bits/pthreadtypes.h
44411         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44412         * sysdeps/tile/nptl/bits/pthreadtypes.h
44413         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44414         * sysdeps/a/nptl/bits/pthreadtypes.h
44415         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44416         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
44417         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44418         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
44419         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44420         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
44421         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44422         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
44423         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44424         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
44425         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44426         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
44427         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44428         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
44429         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44430         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
44431         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44432         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
44433         (elision_init): Set try_xbegin to zero when no RTM.
44434         * sysdeps/x86/nptl/bits/pthreadtypes.h
44435         (pthread_rwlock_t): Change __pad1 to __rwelision.
44436         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44437
44438 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44439
44440         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
44441         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
44442         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
44443         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
44444
44445 2014-06-13  Meador Inge  <meadori@codesourcery.com>
44446
44447         [BZ #16996]
44448         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
44449         that the cached result has been set before returning it.
44450
44451 2014-06-12  Roland McGrath  <roland@hack.frob.com>
44452
44453         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
44454         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
44455         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
44456         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
44457         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
44458         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
44459
44460         * nptl/sysdeps/sparc/Makefile: Moved ...
44461         * sysdeps/sparc/nptl/Makefile: ... here.
44462         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
44463         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
44464         * nptl/sysdeps/sparc/tls.h: Moved ...
44465         * sysdeps/sparc/nptl/tls.h: ... here.
44466         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
44467         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
44468         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
44469         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
44470         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
44471         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
44472         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
44473         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
44474         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
44475         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
44476         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
44477         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
44478         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
44479         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
44480         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
44481         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
44482         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
44483         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
44484         Update #include.
44485         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
44486         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
44487         Update #include.
44488         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
44489         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
44490         Update #include.
44491         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
44492         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
44493         Update #include.
44494
44495         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44496
44497         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
44498         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
44499
44500         * sysdeps/pthread/posix-timer.h: Include <list.h>.
44501         (struct list_links): Type removed.
44502         (struct thread_node, struct timer_node): Replace struct list_links
44503         with struct list_head.
44504         (list_unlink_ip): Likewise.
44505         * sysdeps/pthread/timer_routines.c
44506         (timer_free_list, thread_free_list, thread_active_list): Likewise.
44507         (list_append, list_insbefore): Likewise.
44508         (list_init): Function removed.
44509         (thread_init, init_module): Use INIT_LIST_HEAD instead.
44510         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
44511         * sysdeps/pthread/Makefile: ... here, new file.
44512
44513         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
44514         * sysdeps/nptl/Implies: ... here.
44515         * sysdeps/unix/sysv/linux/Implies: Add nptl.
44516         * nptl/sysdeps/pthread/list.h: Moved ...
44517         * include/list.h: ... here.
44518         * nptl/sysdeps/pthread/createthread.c: Moved ...
44519         * nptl/createthread.c: ... here.
44520         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
44521         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
44522         * nptl/pt-longjmp.c: ... here.
44523         * nptl/sysdeps/pthread/Makefile: Moved ...
44524         * sysdeps/nptl/Makefile: ... here.
44525         * nptl/sysdeps/pthread/Subdirs: Moved ...
44526         * sysdeps/nptl/Subdirs: ... here.
44527         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
44528         * sysdeps/nptl/aio_misc.h: ... here.
44529         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
44530         * sysdeps/nptl/bits/libc-lock.h: ... here.
44531         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
44532         * sysdeps/nptl/bits/libc-lockP.h: ... here.
44533         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
44534         * sysdeps/nptl/bits/stdio-lock.h: ... here.
44535         * nptl/sysdeps/pthread/configure: Moved ...
44536         * sysdeps/nptl/configure: ... here.
44537         * nptl/sysdeps/pthread/configure.ac: Moved ...
44538         * sysdeps/nptl/configure.ac: ... here.
44539         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
44540         * sysdeps/nptl/gai_misc.h: ... here.
44541         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
44542         * sysdeps/nptl/librt-cancellation.c: ... here.
44543         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
44544         * sysdeps/nptl/malloc-machine.h: ... here.
44545         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
44546         * sysdeps/nptl/pthread-functions.h: ... here.
44547         * nptl/sysdeps/pthread/pthread.h: Moved ...
44548         * sysdeps/nptl/pthread.h: ... here.
44549         * nptl/sysdeps/pthread/setxid.h: Moved ...
44550         * sysdeps/nptl/setxid.h: ... here.
44551         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
44552         * sysdeps/nptl/sigfillset.c: ... here.
44553         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
44554         * sysdeps/nptl/tcb-offsets.h: ... here.
44555         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
44556         * sysdeps/nptl/tst-mqueue8x.c: ... here.
44557         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
44558         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
44559         * nptl/sysdeps/pthread/allocalim.h: Moved ...
44560         * sysdeps/pthread/allocalim.h: ... here.
44561         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
44562         * sysdeps/pthread/bits/sigthread.h: ... here.
44563         * nptl/sysdeps/pthread/flockfile.c: Moved ...
44564         * sysdeps/pthread/flockfile.c: ... here.
44565         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
44566         * sysdeps/pthread/ftrylockfile.c: ... here.
44567         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
44568         * sysdeps/pthread/funlockfile.c: ... here.
44569         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
44570         * sysdeps/pthread/posix-timer.h: ... here.
44571         * nptl/sysdeps/pthread/timer_create.c: Moved ...
44572         * sysdeps/pthread/timer_create.c: ... here.
44573         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
44574         * sysdeps/pthread/timer_delete.c: ... here.
44575         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
44576         * sysdeps/pthread/timer_getoverr.c: ... here.
44577         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
44578         * sysdeps/pthread/timer_gettime.c: ... here.
44579         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
44580         * sysdeps/pthread/timer_routines.c: ... here.
44581         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
44582         * sysdeps/pthread/timer_settime.c: ... here.
44583         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
44584         * sysdeps/pthread/tst-timer.c: ... here.
44585         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
44586         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
44587
44588         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
44589         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
44590
44591         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
44592         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
44593         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
44594         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
44595         Update #include target.
44596         * nptl/sysdeps/i386/i686/Makefile: Moved ...
44597         * sysdeps/i386/i686/nptl/Makefile: ... here.
44598         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
44599         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
44600         Update #include target.
44601         * nptl/sysdeps/i386/i686/tls.h: Moved ...
44602         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
44603         * nptl/sysdeps/i386/Makefile: Moved ...
44604         * sysdeps/i386/nptl/Makefile: ... here.
44605         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
44606         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
44607         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
44608         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
44609         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
44610         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
44611         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
44612         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
44613         * sysdeps/i386/nptl/pthreaddef.h: ... here.
44614         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
44615         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
44616         * nptl/sysdeps/i386/tls.h: Moved ...
44617         * sysdeps/i386/nptl/tls.h: ... here.
44618
44619         * sysdeps/sh/Makefile [$(subdir) = csu]
44620         (gen-as-const-headers): Add tcb-offsets.sym.
44621         * nptl/sysdeps/sh/Makefile: File removed.
44622         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
44623         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
44624         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
44625         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
44626         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
44627         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
44628         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
44629         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
44630         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
44631         * sysdeps/sh/nptl/pthreaddef.h: ... here.
44632         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
44633         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
44634         * nptl/sysdeps/sh/tls.h: Moved ...
44635         * sysdeps/sh/nptl/tls.h: ... here.
44636         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
44637         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
44638         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
44639         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
44640         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
44641         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
44642         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
44643         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
44644         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
44645         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
44646         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
44647         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
44648         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
44649         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
44650         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
44651         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
44652         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
44653         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
44654         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
44655         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
44656         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
44657         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
44658         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
44659         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
44660         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
44661         Moved ...
44662         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
44663         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
44664         Moved ...
44665         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
44666         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
44667         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
44668         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
44669         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
44670         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
44671         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
44672         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
44673         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
44674         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
44675         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
44676         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
44677         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
44678         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
44679         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
44680         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
44681         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
44682         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
44683         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
44684
44685 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
44686
44687         * posix/spawn_faction_addopen.c: Include string.h.
44688
44689 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44690
44691         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
44692         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
44693         * nptl/sysdeps/x86_64/Makefile: Moved ...
44694         * sysdeps/x86_64/nptl/Makefile: ... here.
44695         * nptl/sysdeps/x86_64/configure: Moved ...
44696         * sysdeps/x86_64/nptl/configure: ... here.
44697         * nptl/sysdeps/x86_64/configure.ac: Moved ...
44698         * sysdeps/x86_64/nptl/configure.ac: ... here.
44699         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
44700         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
44701         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
44702         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
44703         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
44704         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
44705         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
44706         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
44707         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
44708         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
44709         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
44710         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
44711         * nptl/sysdeps/x86_64/tls.h: Moved ...
44712         * sysdeps/x86_64/nptl/tls.h: ... here.
44713         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
44714         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
44715         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
44716         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
44717
44718         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
44719
44720 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44721
44722         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44723
44724 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
44725
44726         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
44727         type.
44728         [POSIX] (off_t): Likewise.
44729         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
44730         [POSIX] (S_ISBLK): Require macro.
44731         [POSIX] (S_ISCHR): Likewise.
44732         [POSIX] (S_ISDIR): Likewise.
44733         [POSIX] (S_ISFIFO): Likewise.
44734         [POSIX] (S_ISREG): Likewise.
44735         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
44736         optional-macro.
44737         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
44738         type.
44739         [POSIX] (time_t): Likewise.
44740         [POSIX] (timer_t): Likewise.
44741
44742 2014-06-11  Florian Weimer  <fweimer@redhat.com>
44743
44744         [BZ #17048]
44745         * posix/spawn_int.h (struct __spawn_action): Make the path string
44746         non-const to support deallocation.
44747         * posix/spawn_faction_addopen.c
44748         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
44749         * posix/spawn_faction_destroy.c
44750         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
44751         path in all spawn_do_open actions.
44752         * posix/tst-spawn.c (do_test): Exercise the copy operation in
44753         posix_spawn_file_actions_addopen.
44754
44755 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
44756
44757         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
44758         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
44759         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
44760         conditional code always true.
44761         (__libc_vfork): New alias.
44762
44763 2014-06-11  Roland McGrath  <roland@hack.frob.com>
44764
44765         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44766         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
44767
44768         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
44769
44770         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44771         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
44772
44773         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44774         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
44775
44776         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44777         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
44778
44779 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
44780
44781         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
44782         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
44783         multiarch strcmp for PPC64.
44784         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
44785         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
44786         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
44787         multiarch optimizations.
44788         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
44789         (__libc_ifunc_impl_list): Likewise.
44790
44791 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
44792
44793         * benchtests/scripts/validate_benchout.py: New script.
44794         * benchtests/Makefile (bench-func): Call it.
44795         * benchtests/scripts/benchout.schema.json: New file.
44796
44797 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
44798
44799         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
44800         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
44801         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
44802         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
44803         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
44804         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
44805         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
44806         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
44807         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
44808         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
44809         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
44810         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
44811         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
44812         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
44813         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
44814         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
44815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
44816         Moved ...
44817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
44818         ... here.
44819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
44820         Moved ...
44821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
44822         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
44823         Moved ...
44824         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
44825         ... here.
44826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
44827         Moved ...
44828         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
44829         ... here.
44830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
44831         Moved ...
44832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
44833         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
44834         Moved ...
44835         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
44836         ... here.
44837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
44838         Moved ...
44839         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
44840         ... here.
44841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
44842         Moved ...
44843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
44844         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
44845         Moved ...
44846         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
44847         ... here.
44848         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
44849         Moved ...
44850         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
44851         ... here.
44852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
44853         Moved ...
44854         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
44855         ... here.
44856         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
44857         Moved ...
44858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
44859         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
44860         Moved ...
44861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
44862         ... here.
44863         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
44864         Moved ...
44865         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
44866         ... here.
44867         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
44868         Moved ...
44869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
44870         ... here.
44871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
44872         Moved ...
44873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
44874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
44875         Moved ...
44876         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
44877         ... here.
44878         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
44879         Moved ...
44880         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
44881         ... here.
44882         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
44883         Moved ...
44884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
44885         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
44886         Moved ...
44887         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
44888         ... here.
44889         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
44890         Moved ...
44891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
44892         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
44893         Moved ...
44894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
44895         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
44896         Moved ...
44897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
44898         ... here.
44899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
44900         Moved ...
44901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
44902         ... here.
44903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
44904         Moved ...
44905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
44906         ... here.
44907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
44908         Moved ...
44909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
44910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
44911         Moved ...
44912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
44913         ... here.
44914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
44915         Moved ...
44916         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
44917         ... here.
44918         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
44919         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
44920         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
44921         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
44922         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
44923         Moved ...
44924         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
44925         ... here.
44926         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
44927         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
44928         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
44929         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
44930         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
44931         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
44932         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
44933         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
44934         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
44935         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
44936         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
44937         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
44938         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
44939         Moved ...
44940         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
44941         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
44942         Moved ...
44943         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
44944         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
44945         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
44946         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
44947         Moved ...
44948         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
44949         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
44950         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
44951         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
44952         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
44953         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
44954         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
44955
44956 2014-06-10  Wilco  <wdijkstr@arm.com>
44957
44958         * math/test-fenv-return.c: New file.
44959         * math/Makefile: Add new test test-fenv-return.
44960
44961 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
44962
44963         [BZ #17042]
44964         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
44965         when x - 1 is zero.
44966         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
44967         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
44968         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
44969         0.0L for an argument of 1.0L.
44970         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
44971         Likewise.
44972         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
44973         value when x - 1 is zero.
44974         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
44975         * sysdeps/i386/fpu/libm-test-ulps: Update.
44976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44977
44978 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
44979
44980         [BZ #15119]
44981         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
44982
44983 2014-06-09  Roland McGrath  <roland@hack.frob.com>
44984
44985         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
44986         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
44987
44988 2014-06-09  Roland McGrath  <roland@hack.frob.com>
44989
44990         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44991         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
44992
44993         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44994         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
44995
44996         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
44997         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
44998
44999         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45000         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45001
45002         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45003         if not already defined.
45004         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45005         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45006         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45007         (TLS_INIT_TP): Use it.
45008         (TLS_DEFINE_INIT_TP): New macro.
45009         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45010
45011 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45012
45013         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45014         constant.
45015         [POSIX] (IXANY): Likewise.
45016         [POSIX] (OLCUC): Likewise.
45017         [POSIX || POSIX2008] (CBAUD): Do not allow.
45018         [POSIX || POSIX2008] (DEFECHO): Likewise.
45019         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45020         [POSIX || POSIX2008] (ECHOKE): Likewise.
45021         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45022         [POSIX || POSIX2008] (EXTA): Likewise.
45023         [POSIX || POSIX2008] (EXTB): Likewise.
45024         [POSIX || POSIX2008] (FLUSHO): Likewise.
45025         [POSIX || POSIX2008] (LOBLK): Likewise.
45026         [POSIX || POSIX2008] (PENDIN): Likewise.
45027         [POSIX || POSIX2008] (SWTCH): Likewise.
45028         [POSIX || POSIX2008] (VDISCARD): Likewise.
45029         [POSIX || POSIX2008] (VDSUSP): Likewise.
45030         [POSIX || POSIX2008] (VLNEXT): Likewise.
45031         [POSIX || POSIX2008] (VREPRINT): Likewise.
45032         [POSIX || POSIX2008] (VSTATUS): Likewise.
45033         [POSIX || POSIX2008] (VWERASE): Likewise.
45034         (B*): Change to B[0123456789]*.
45035         * conform/data/time.h-data [POSIX || UNIX98]
45036         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45037         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45038         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45039         [POSIX] (tm_*): Do not allow.
45040
45041 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45042
45043         * Makefile (install): Don't set LANGUAGE.
45044         * Makefile.in (install): Likewise.
45045         * assert/Makefile (test-assert-ENV): Remove variable.
45046         (test-assert-perr-ENV): Likewise.
45047         * elf/Makefile (neededtest4-ENV): Likewise.
45048         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45049         [$(cross-compiling) = no]: Don't set LANGUAGE.
45050         * io/ftwtest-sh (LANG): Remove variable.
45051         * libio/Makefile (tst-widetext-ENV): Likewise.
45052         * manual/install.texi (Running make install): Don't refer to
45053         environment settings for make install.
45054         * INSTALL: Regenerated.
45055         * nptl/tst-tls6.sh: Don't set LANG.
45056         * posix/globtest.sh (LANG): Remove variable.
45057         * string/Makefile (tester-ENV): Likewise.
45058         (inl-tester-ENV): Likewise.
45059         (noinl-tester-ENV): Likewise.
45060         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45061         [$(cross-compiling) = no]: Don't set LANGUAGE.
45062         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45063         without explicit environment settings.
45064
45065 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45066
45067         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45068         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45069         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45070         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45071
45072 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45073
45074         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45075         other files in the crypt directory.
45076         * crypt/crypt.c: Remove duplicate includes.
45077         * crypt/crypt-entry.c: Likewise.
45078         * crypt/crypt_util.c: Likewise.
45079
45080 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45081
45082         * Makeconfig (run-program-env): New variable.
45083         (run-program-prefix-before-env): Likewise.
45084         (run-program-prefix-after-env): Likewise.
45085         (run-program-prefix): Define in terms of new variables.
45086         (built-program-cmd-before-env): New variable.
45087         (built-program-cmd-after-env): Likewise.
45088         (built-program-cmd): Define in terms of new variables.
45089         (test-program-prefix-before-env): New variable.
45090         (test-program-prefix-after-env): Likewise.
45091         (test-program-prefix): Define in terms of new variables.
45092         (test-program-cmd-before-env): New variable.
45093         (test-program-cmd-after-env): Likewise.
45094         (test-program-cmd): Define in terms of new variables.
45095         * Rules (make-test-out): Use $(run-program-env).
45096         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45097         (help): Do not mention environment variables.  Mention
45098         --timeoutfactor option.
45099         (timeoutfactor): New variable.
45100         (blacklist_exports): Remove function.
45101         (exports): Remove variable.
45102         (command): Do not include ${exports}.
45103         * manual/install.texi (Configuring and compiling): Do not mention
45104         test wrappers preserving environment variables.  Mention that last
45105         assignment to a variable must take precedence.
45106         * INSTALL: Regenerated.
45107         * benchtests/Makefile (run-bench): Use $(run-program-env).
45108         * catgets/Makefile ($(objpfx)test1.cat): Use
45109         $(built-program-cmd-before-env), $(run-program-env) and
45110         $(built-program-cmd-after-env).
45111         ($(objpfx)test2.cat): Do not specify environment variables
45112         explicitly.
45113         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45114         $(run-program-env) and $(built-program-cmd-after-env).
45115         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45116         $(run-program-env) and $(test-program-cmd-after-env).
45117         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45118         explicitly.
45119         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45120         run_program_env and test_program_cmd_after_env arguments.
45121         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45122         * elf/tst-pathopt.sh: Use run_program_env argument.
45123         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45124         $(test-wrapper-env) and $(run-program-env).
45125         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45126         run_program_env arguments.
45127         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45128         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45129         $(test-program-prefix-before-env), $(run-program-env) and
45130         $(test-program-prefix-after-env).
45131         ($(objpfx)tst-gettext2.out): Likewise.
45132         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45133         run_program_env and test_program_prefix_after_env arguments.
45134         * intl/tst-gettext2.sh: Likewise.
45135         * intl/tst-gettext4.sh: Do not set environment variables
45136         explicitly.
45137         * intl/tst-gettext6.sh: Likewise.
45138         * intl/tst-translit.sh: Likewise.
45139         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45140         $(test-program-prefix-before-env), $(run-program-env) and
45141         $(test-program-prefix-after-env).
45142         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45143         run_program_env and test_program_prefix_after_env arguments.
45144         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45145         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45146         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45147         explicitly with each use of ${test_wrapper_env}.
45148         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45149         $(test-program-prefix-before-env), $(run-program-env) and
45150         $(test-program-prefix-after-env).
45151         * posix/tst-getconf.sh: Do not set environment variables
45152         explicitly.
45153         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45154         run_program_env and test_program_prefix_after_env arguments.
45155         * stdio-common/tst-printf.sh: Do not set environment variables
45156         explicitly.
45157         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45158         $(test-program-prefix-before-env), $(run-program-env) and
45159         $(test-program-prefix-after-env).
45160         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45161         run_program_env and test_program_prefix_after_env arguments.
45162         Split $test calls into $test_pre and $test.
45163         * timezone/Makefile (build-testdata): Use
45164         $(built-program-cmd-before-env), $(run-program-env) and
45165         $(built-program-cmd-after-env).
45166
45167 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45168
45169         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45170         strlen for non SHARED builds.
45171
45172 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45173
45174         * nptl/allocatestack.c (check_list): Inlined function...
45175         (__reclaim_stacks): ... here.
45176
45177 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45178
45179         [BZ #15698]
45180         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45181         memory overrun.
45182
45183 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45184
45185         * Rules (make-test-out): Include
45186         LOCPATH=$(common-objpfx)localedata in default environment.
45187         * debug/Makefile (tst-chk1-ENV): Remove variable.
45188         (tst-chk2-ENV): Likewise.
45189         (tst-chk3-ENV): Likewise.
45190         (tst-chk4-ENV): Likewise.
45191         (tst-chk5-ENV): Likewise.
45192         (tst-chk6-ENV): Likewise.
45193         (tst-lfschk1-ENV): Likewise.
45194         (tst-lfschk2-ENV): Likewise.
45195         (tst-lfschk3-ENV): Likewise.
45196         (tst-lfschk4-ENV): Likewise.
45197         (tst-lfschk5-ENV): Likewise.
45198         (tst-lfschk6-ENV): Likewise.
45199         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45200         (tst-iconv7-ENV): Likewise.
45201         * intl/Makefile (LOCPATH-ENV): Likewise.
45202         (tst-codeset-ENV): Likewise.
45203         (tst-gettext3-ENV): Likewise.
45204         (tst-gettext5-ENV): Likewise.
45205         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45206         (tst-fopenloc-ENV): Likewise.
45207         (tst-fgetws-ENV): Remove variable.
45208         (tst-ungetwc1-ENV): Likewise.
45209         (tst-ungetwc2-ENV): Likewise.
45210         (bug-ungetwc2-ENV): Likewise.
45211         (tst-swscanf-ENV): Likewise.
45212         (bug-ftell-ENV): Likewise.
45213         (tst-fgetwc-ENV): Likewise.
45214         (tst-fseek-ENV): Likewise.
45215         (tst-ftell-partial-wide-ENV): Likewise.
45216         (tst-ftell-active-handler-ENV): Likewise.
45217         (tst-ftell-append-ENV): Likewise.
45218         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45219         (tst-regexloc-ENV): Likewise.
45220         (bug-regex1-ENV): Likewise.
45221         (tst-regex-ENV): Likewise.
45222         (tst-regex2-ENV): Likewise.
45223         (bug-regex5-ENV): Likewise.
45224         (bug-regex6-ENV): Likewise.
45225         (bug-regex17-ENV): Likewise.
45226         (bug-regex18-ENV): Likewise.
45227         (bug-regex19-ENV): Likewise.
45228         (bug-regex20-ENV): Likewise.
45229         (bug-regex22-ENV): Likewise.
45230         (bug-regex23-ENV): Likewise.
45231         (bug-regex25-ENV): Likewise.
45232         (bug-regex26-ENV): Likewise.
45233         (bug-regex30-ENV): Likewise.
45234         (bug-regex32-ENV): Likewise.
45235         (bug-regex33-ENV): Likewise.
45236         (bug-regex34-ENV): Likewise.
45237         (bug-regex35-ENV): Likewise.
45238         (tst-rxspencer-ENV): Likewise.
45239         (tst-rxspencer-no-utf8-ENV): Likewise.
45240         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45241         (tst-sscanf-ENV): Likewise.
45242         (tst-swprintf-ENV): Likewise.
45243         (tst-swscanf-ENV): Likewise.
45244         (test-vfprintf-ENV): Likewise.
45245         (scanf13-ENV): Likewise.
45246         (bug14-ENV): Likewise.
45247         (tst-grouping-ENV): Likewise.
45248         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45249         (tst-strtod3-ENV): Likewise.
45250         (tst-strtod4-ENV): Likewise.
45251         (tst-strtod5-ENV): Likewise.
45252         (testmb2-ENV): Likewise./
45253         * string/Makefile (tst-strxfrm-ENV): Likewise.
45254         (tst-strxfrm2-ENV): Likewise.
45255         (bug-strcoll1-ENV): Likewise.
45256         (test-strcasecmp-ENV): Likewise.
45257         (test-strncasecmp-ENV): Likewise.
45258         * time/Makefile (tst-strptime-ENV): Likewise.
45259         (tst-ftime_l-ENV): Likewise.
45260         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45261         (tst-mbrtowc-ENV): Likewise.
45262         (tst-wcrtomb-ENV): Likewise.
45263         (tst-mbrtowc2-ENV): Likewise.
45264         (tst-c16c32-1-ENV): Likewise.
45265         (tst-mbsnrtowcs-ENV): Likewise.
45266
45267 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45268
45269         * manual/resource.texi (How to get information about the memory
45270         subsystem?): Fix typo.
45271         Reported by Peon de la Parra Ivan <peon@keba.com>
45272
45273 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45274
45275         [BZ #16882]
45276         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45277         (pthread_spin_lock): Branch out of spin loop to proper location.
45278         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45279         (pthread_spin_lock): Likewise.
45280
45281         * nptl/tst-spin4.c: New test.
45282         * nptl/Makefile (tests): Add tst-spin4.
45283
45284 2014-06-03  Andreas Schwab  <schwab@suse.de>
45285
45286         [BZ #15946]
45287         * resolv/res_send.c (send_dg): Reload file descriptor after
45288         calling reopen.
45289
45290 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45291
45292         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45293
45294 2014-06-03  Richard Henderson  <rth@redhat.com>
45295
45296         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45297         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45298         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45299         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45300         in the SAVE_PID block.
45301         (__libc_vfork): New alias.
45302         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45303
45304         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45305         child in registers, not on the stack.  Remove RESET_PID conditionals.
45306         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
45307
45308 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45309
45310         * sysdeps/aarch64/libm-test-ulps: Regenerate.
45311
45312 2014-06-03  Wilco  <wdijkstr@arm.com>
45313
45314         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
45315         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
45316         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45317         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
45318         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
45319         Likewise.
45320
45321 2014-06-03  Wilco  <wdijkstr@arm.com>
45322
45323         * sysdeps/aarch64/fpu/math_private.h
45324         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
45325         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
45326         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
45327         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45328         Fix declarations.
45329
45330 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45331
45332         * crypt/crypt-private.h: Include ufc-crypt.h.
45333         (__b64_from_24bit): Declare extern.
45334         * crypt/crypt_util.c(__b64_from_24bit): New function.
45335         (b64t): New static const variable.
45336         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
45337         (b64t): Remove variable.
45338         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
45339         * crypt/sha256-crypt.c: Include crypt-private.h.
45340         (b64t): Remove variable.
45341         (__sha256_crypt_r): Remove b64_from_24bit and replace
45342         with __b64_from_24bit.
45343         * crypt/sha512-crypt.c: Likewise.
45344
45345 2014-06-02  Roland McGrath  <roland@hack.frob.com>
45346
45347         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
45348         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
45349         Label the code __libc_vfork rather than __vfork.
45350         [!NOT_IN_libc] (vfork): Define as weak alias.
45351         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
45352         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
45353         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
45354
45355 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45356
45357         * malloc/malloc.c (malloc_info): Fix format specifier for
45358         n_mmaps.
45359
45360 2014-06-02  Wilco  <wdijkstr@arm.com>
45361
45362         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
45363         FPCR write.
45364
45365 2014-06-02  Wilco  <wdijkstr@arm.com>
45366
45367         [BZ #17009]
45368         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
45369         Rewrite to reduce FPCR/FPSR accesses.
45370
45371 2014-06-01  David S. Miller  <davem@davemloft.net>
45372
45373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45374
45375 2014-05-31  David S. Miller  <davem@davemloft.net>
45376
45377         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
45378         to occur in round to nearest mode when |x| >= 2.0
45379
45380 2014-05-30  Richard Henderson  <rth@twiddle.net>
45381
45382         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
45383         (PSEUDO_RET_NOERRNO): Remove.
45384         (ret): Don't redefine.
45385         (ret_NOERRNO): Define in terms of ret.
45386         (ret_ERRVAL): Likewise.
45387
45388         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
45389         use of PSEUDO_RET; perform the error check directly.
45390
45391 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
45392
45393         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
45394         with __int128_t.
45395
45396 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45397
45398         * malloc/malloc (malloc_info): Fix formatting.
45399
45400 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45401             Roland McGrath  <roland@hack.frob.com>
45402
45403         * malloc/malloc (malloc_info): Also print mmapped statistics.
45404
45405 2014-05-30  Roland McGrath  <roland@hack.frob.com>
45406
45407         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
45408         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
45409
45410 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
45411
45412         * malloc/malloc.c (malloc_info): Inline mi_arena.
45413
45414 2014-05-29  Richard Henderson  <rth@twiddle.net>
45415
45416         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
45417         Remove comma before expanding ASM_ARGS_##nr.
45418         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
45419         Make _x0 a strict output; make _x8 a strict input; adjust expansion
45420         of ASM_ARGS_##nr.
45421         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
45422         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
45423         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
45424         (ASM_ARGS_1): Add leading comma.
45425
45426         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
45427         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
45428         to __errno_location.
45429         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
45430         Remove the expected plt for __errno_location.
45431
45432         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45433         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
45434         call to __read_tp.
45435
45436         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45437         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
45438         it and break it down.
45439         (DOCARGS_0, DOCARGS_1): Do nothing.
45440         (DOCARGS_2): Update to store into the new stack frame.
45441         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
45442         (UNDOCARGS_1): Update to restore from the new stack frame.
45443         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
45444         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
45445
45446         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45447         (SINGLE_THREAD_P): New parameter for result regno.
45448         (PSEUDO): Update to match; use cbz instead of beq.
45449
45450         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45451         Use ENTRY to define the _nocancel entry point.  Share the syscall
45452         and syscall error check paths with the cancel path.
45453         (PSEUDO_END): New.
45454
45455         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
45456         whitespace; tabs before and after asm mnemonics.
45457
45458 2014-05-29  Eric Wong  <normalperson@yhbt.net>
45459
45460         [BZ #15132]
45461         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45462         Call fstat64 or stat64 internally, depending on arguments passed.
45463         Replace stat buffer argument with file descriptor argument.
45464         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
45465         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
45466         Pass fd to __internal_statvfs instead of calling fstat64.
45467         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
45468         Pass fd to __internal_statvfs64 instead of calling fstat64.
45469         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
45470         Pass -1 to __internal_statvfs instead of calling stat64.
45471         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
45472         Pass -1 to __internal_statvfs64 instead of calling stat64.
45473
45474 2014-05-28  Roland McGrath  <roland@hack.frob.com>
45475
45476         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
45477         that was previously under [RESET_PID].
45478         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
45479
45480         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
45481         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
45482
45483 2014-05-27  Roland McGrath  <roland@hack.frob.com>
45484
45485         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
45486
45487         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
45488         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
45489
45490 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
45491
45492         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
45493
45494 2014-05-27  Andreas Schwab  <schwab@suse.de>
45495
45496         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
45497         TLS_INIT_TP macro.
45498         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
45499         * elf/rtld.c (init_tls, dl_main): Likewise.
45500         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
45501         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
45502         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
45503         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
45504         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
45505         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
45506         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
45507         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
45508         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
45509         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
45510         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
45511         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
45512         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
45513         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
45514         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
45515         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
45516         * sysdeps/generic/tls.h: Update description.
45517
45518 2014-05-27  Will Newton  <will.newton@linaro.org>
45519
45520         [BZ #16990]
45521         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
45522         and restore r2 rather than just restoring.
45523
45524 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45525
45526         [BZ #16724]
45527         * libio/tst-ftell-append.c: New test case.
45528         * libio/Makefile (tests): Add test case.
45529         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
45530         append mode.
45531         * libio/wfileops.c (do_ftell_wide): Likewise.
45532
45533 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45534
45535         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45536
45537         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
45538         ...
45539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
45540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45541         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
45542         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
45543         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
45544         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
45545         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
45546         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
45547         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
45548         Moved ...
45549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
45550         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
45551         Moved ...
45552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
45553         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
45554         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
45555         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
45556         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
45557         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
45558         ...
45559         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
45560         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
45561         Moved ...
45562         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
45563         here.
45564         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
45565         ...
45566         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
45567         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
45568         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
45569
45570         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
45571         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
45572         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
45573         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
45574
45575         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
45576         merge into ...
45577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
45578         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
45579         ...
45580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
45581         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
45582         ...
45583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
45584         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
45585         Moved ...
45586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
45587         here.
45588         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
45589         Moved ...
45590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
45591         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
45592         Moved ...
45593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
45594
45595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
45596         conditional [RESET_PID].
45597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
45598         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
45599         removed.
45600         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
45601         removed.
45602
45603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
45604         <tcb-offsets.h>.
45605         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
45606         (__libc_vfork): New strong alias.
45607         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
45608         removed.
45609         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
45610         Removed.
45611
45612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
45613         <tcb-offsets.h>.
45614         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
45615         (__libc_vfork): New strong alias.
45616         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
45617         removed.
45618         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
45619         removed.
45620
45621 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
45622
45623         * malloc/malloc.c (mi_arena): New function.
45624         (malloc_info): Remove nested function mi_arena. Call non-nosted
45625         function mi_arena.
45626
45627 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45628
45629         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
45630         by insrwi.
45631         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
45632         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
45633         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
45634         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
45635         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
45636         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
45637         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
45638
45639 2014-05-26  Andreas Schwab  <schwab@suse.de>
45640
45641         [BZ #16984]
45642         * locale/programs/repertoire.c (repertoire_read): Add slash
45643         between I18NPATH element and file name.
45644         * locale/programs/locfile.c (locfile_read): Likewise.
45645
45646 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45647
45648         * nptl/pthread_mutexattr_settype.c
45649         (__pthread_mutexattr_settype):
45650         Disable lock elision for PTHREAD_MUTEX_NORMAL.
45651
45652 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
45653
45654         * nptl/tst-mutex5 (do_test):
45655         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
45656
45657 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45658
45659         * benchtests/README: Document 'init' directive.
45660         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
45661         BENCH_INIT.
45662         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
45663         (parse_file): Recognize 'init' directive.
45664
45665 2014-05-26  Kyle McMartin  <kyle@redhat.com>
45666
45667         [BZ #16796]
45668         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
45669         alignment of struct pthread.
45670
45671 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45672
45673         [BZ #16878]
45674         * nscd/netgroupcache.c (addgetnetgrentX): Look for
45675         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45676         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
45677         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
45678
45679 2014-05-25  Richard Henderson  <rth@twiddle.net>
45680
45681         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45682         (SINGLE_THREAD_P_PIC): Remove.
45683         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
45684         (SINGLE_THREAD_P_PIC): Remove.
45685
45686         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
45687         branch to syscall error ...
45688         (PSEUDO): ... here.
45689         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
45690         from __local_syscall_error to .Lsyscall_error.
45691         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
45692         (SYSCALL_ERROR): Update label name.
45693
45694         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45695         Do not use DOARGS/UNDOARGS.
45696         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
45697         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
45698         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
45699         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
45700         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
45701
45702         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
45703         block comment.
45704
45705         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
45706         define if !NOT_IN_libc.
45707         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
45708         define with non-default symbol versions.
45709
45710 2014-05-23  Richard Henderson  <rth@twiddle.net>
45711
45712         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
45713         (vfork, __vfork): Define via compat_symbol.
45714
45715         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
45716         [!HAVE_IFUNC] (vfork_compat): Remove.
45717         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
45718
45719 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45720
45721         [BZ #16978]
45722         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
45723         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
45724         variable.
45725
45726 2014-05-23  Richard Henderson  <rth@twiddle.net>
45727
45728         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
45729         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
45730         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
45731         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
45732
45733         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
45734         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
45735         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
45736         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
45737         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
45738         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
45739         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
45740         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
45741         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
45742         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
45743         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
45744         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
45745         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
45746         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
45747         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
45748         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
45749         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
45750         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
45751         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
45752         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
45753         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
45754         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
45755         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
45756         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
45757         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
45758         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
45759         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
45760         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
45761         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
45762         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
45763         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
45764         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
45765         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
45766         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
45767         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
45768         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
45769         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
45770         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
45771         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
45772         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
45773         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
45774         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
45775         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
45776         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
45777         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
45778         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
45779         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
45780         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
45781         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
45782         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
45783         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
45784         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
45785         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
45786         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
45787         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
45788         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
45789
45790         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
45791         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
45792         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
45793         before exiting on error.
45794         (__libc_vfork): New strong alias.
45795         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
45796         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
45797
45798         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
45799         that was previously under [RESET_PID].
45800         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
45801
45802         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
45803
45804 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
45805
45806         [BZ #16977]
45807         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
45808         value when x - 1 is zero.
45809         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
45810         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
45811         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
45812         0.0L for an argument of 1.0L.
45813         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
45814         Likewise.
45815         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
45816         value when x - 1 is zero.
45817         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
45818         * sysdeps/i386/fpu/libm-test-ulps: Update.
45819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45820
45821 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
45822
45823         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
45824         alphasort and versionsort.
45825
45826 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45827
45828         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
45829         macro.
45830         [copysignf]: Likewise.
45831
45832 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
45833
45834         * crypt/md5-crypt.c: Fix formatting.
45835
45836 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45837
45838         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
45839         (b64_from_24bit): New function.
45840
45841 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45842
45843         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
45844         libc_hidden_builtin_def to ifunc.
45845         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
45846         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
45847
45848 2014-05-21  Roland McGrath  <roland@hack.frob.com>
45849
45850         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
45851         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
45852
45853 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
45854
45855         * nscd/Depend (linuxthreads): Remove.
45856         (nptl): Add.
45857         * resolv/Depend (linuxthreads): Remove.
45858         * rt/Depend (linuxthreads): Remove.
45859
45860         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
45861         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
45862         $(common-objpfx)elf/.
45863         (link-libc-before-gnulib): Likewise.
45864         (elfobjdir): Remove variable.
45865         * Makefile (install): Use $(elf-objpfx) instead of
45866         $(common-objpfx)elf/.
45867         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
45868         $(elfobjdir)/.
45869         (link-libc-deps): Likewise.
45870         ($(common-objpfx)libc.so): Likewise.
45871         ($(common-objpfx)linkobj/libc.so): Likewise.
45872         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
45873         instead of $(common-objpfx)elf/.
45874         (symbolic-link-list): Likewise.
45875         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45876         [$(cross-compiling) = no]: Likewise.
45877         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
45878         $(elfobjdir)/.
45879         (static-gnulib-arch): Likewise.
45880         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45881         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
45882         $(common-objpfx)elf/.
45883
45884 2014-05-21  Richard Henderson  <rth@redhat.com>
45885
45886         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45887         (SINGLE_THREAD_P): Use the correct width load.  Fold
45888         into the ldr offset.
45889
45890         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
45891         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
45892
45893 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
45894
45895         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
45896         (libgcc_s_resume): Use __attribute_used__.
45897         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
45898         Likewise.
45899
45900 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45901
45902         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
45903         optimization when used with float constants.
45904
45905         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45906
45907 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
45908
45909         [BZ #16915]
45910         * locale/nl_langinfo_l.c: Make direct reference to every
45911         _nl_current_CATEGORY symbol.
45912         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
45913         (tests-static): Add tst-langinfo-static.
45914         (tests-special): Add tst-langinfo-static.out.
45915         ($(objpfx)tst-langinfo.out): Redirect output.
45916         ($(objpfx)tst-langinfo-static.out): New.
45917         * localedata/tst-langinfo.sh: Send output to stdout.
45918         * localedata/tst-langinfo-static.c: New file.
45919
45920         [BZ #16965]
45921         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
45922         when the shift amount is modulo the limb size.
45923
45924 2014-05-20  Richard Henderson  <rth@redhat.com>
45925
45926         [BZ #16967]
45927         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
45928         Change type of sa_flags from unsigned int to int.
45929
45930         [BZ #16966]
45931         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
45932
45933         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
45934
45935 2014-05-20  Will Newton  <will.newton@linaro.org>
45936
45937         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45938         Test the return value of the system call in the nocancel case.
45939
45940 2014-05-20  Will Newton  <will.newton@linaro.org>
45941             Yvan Roux  <yvan.roux@linaro.org>
45942
45943         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
45944         #include of asm/ptrace.h.
45945         (PTRACE_GET_THREAD_AREA): Remove #undef.
45946         (PTRACE_GETHBPREGS): Likewise.
45947         (PTRACE_SETHBPREGS): Likewise.
45948         (struct user_regs_struct): New structure.
45949         (struct user_fpsimd_struct): New structure.
45950         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
45951         #include of asm/ptrace.h and second #include of sys/user.h.
45952         (PTRACE_GET_THREAD_AREA): Remove #undef.
45953         (PTRACE_GETHBPREGS): Likewise.
45954         (PTRACE_SETHBPREGS): Likewise.
45955         (ELF_NGREG): Use new struct user_regs_struct.
45956         (elf_fpregset_t): Use new struct user_fpsimd_struct.
45957
45958 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45959
45960         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
45961         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
45962
45963 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
45964
45965         [BZ #16958]
45966         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
45967         membar to avoid block loads/stores to overlap previous stores.
45968
45969 2014-05-17  Richard Henderson  <rth@redhat.com>
45970
45971         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
45972         Create the __##syscall_name##_nocancel entry point.
45973         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
45974         Remove; let the sysdep-cancel.h code create it.
45975
45976 2014-05-17  David S. Miller  <davem@davemloft.net>
45977
45978         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
45979         Protect with __USE_GNU.
45980         (TIOCSET_TEMPT): Likewise.
45981         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
45982         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
45983         these are already provided in bits/ioctl-types.h
45984
45985 2014-05-16  Roland McGrath  <roland@hack.frob.com>
45986
45987         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
45988         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
45989
45990         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
45991         Use wait4 regardless of [__NR_waitpid].
45992
45993 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
45994
45995         PR libgcc/60166
45996         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
45997         (_FP_NANSIGN_Q): Set the quiet bit.
45998
45999 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46000
46001         * benchtests/Makefile
46002         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46003         not $(common-objpfx)math/libm.so.
46004         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46005         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46006         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46007         $(common-objpfx)dlfcn/libdl.so.
46008         ($(objpfx)tst-audit8): Depend on $(libm), not
46009         $(common-objpfx)math/libm.so.
46010         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46011         not $(common-objpfx)dlfcn/libdl.so.
46012         * math/Makefile
46013         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46014         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46015         [$(build-shared) = yes].
46016         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46017         $(common-objpfx)nptl/libpthread.so.
46018         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46019         $(common-objpfx)math/libm.so$(libm.so-version) or
46020         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46021         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46022         $(common-objpfx)dlfcn/libdl.so.
46023         * setjmp/Makefile (link-libm): Remove variable.
46024         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46025         * stdio-common/Makefile (link-libm): Remove variable.
46026         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46027         * stdlib/Makefile (link-libm): Remove variable.
46028         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46029         ($(objpfx)tst-strtod-round): Likewise.
46030         ($(objpfx)tst-tininess): Likewise.
46031         ($(objpfx)tst-strtod-underflow): Likewise.
46032         ($(objpfx)tst-strtod6): Likewise.
46033         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46034         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46035         $(common-objpfx)dlfcn/libdl.so.
46036
46037 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46038
46039         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46040         BSD terminal modes definitions.
46041
46042 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46043
46044         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46045         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46046
46047         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46048         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46049         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46050         Don't do #include_next.
46051         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46052         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46053         Don't do #include_next.
46054         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46055         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46056         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46057         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46058
46059 2014-05-16  Allan McRae  <allan@archlinux.org>
46060
46061         * po/sv.po: Update Swedish translation from translation project.
46062
46063         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46064         in sed expression.
46065
46066 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46067
46068         [BZ #16917]
46069         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46070         errno if the TIOCGPTN ioctl fails with an error different than
46071         EINVAL.
46072         * login/tst-ptsname.c: New file.
46073         * login/Makefile (tests): Add tst-ptsname.
46074
46075         [BZ #16943]
46076         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46077         and prlimit64.
46078
46079 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46080
46081         [BZ #16849]
46082         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46083         herrno to return EAI_AGAIN.
46084
46085 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46086
46087         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46088         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46089         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46090         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46091         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46092         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46093         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46094         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46095         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46096         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46097         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46098         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46099         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46100         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46101         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46102         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46103         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46104         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46105         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46106         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46107         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46108         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46109         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46110         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46111         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46112         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46113         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46114         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46115         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46116         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46117         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46118         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46119         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46120         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46122         Moved ...
46123         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46125         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46126         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46127         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46128         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46129         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46130         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46131         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46133         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46134         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46135         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46137         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46139         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46141         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46143         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46145         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46147         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46149         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46151         Moved ...
46152         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46153         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46154         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46155         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46156         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46157         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46158         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46159         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46160         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46161         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46162         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46163         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46164         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46165         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46166         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46168         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46170         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46171         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46172         Moved ...
46173         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46175         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46176
46177         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46178         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46179         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46180         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46181         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46182         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46183         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46184         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46185         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46186         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46187         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46188         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46189         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46190         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46191         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46192         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46193         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46194         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46195         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46196         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46197         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46198         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46199         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46200         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46201         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46202         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46203         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46204         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46205         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46206         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46207         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46208
46209         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46210         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46211
46212         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46213         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46214         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46215         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46216         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46217         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46218         Moved ...
46219         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46220         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46221         Moved ...
46222         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46223         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46224         Moved ...
46225         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46226         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46227         Moved ...
46228         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46229         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46230         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46231         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46232         Moved ...
46233         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46234         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46235         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46236         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46237         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46238         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46239         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46240         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46241         Moved ...
46242         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46243         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46244         Moved ...
46245         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46246         ... here.
46247         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46248         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46249         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46250         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46251         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46252         Moved ...
46253         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46254         ... here.
46255         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46256         Moved ...
46257         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46258         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46259         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46260         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46261         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46262         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46263         Moved ...
46264         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46265         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46266         Moved ...
46267         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46268         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46269         Moved ...
46270         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46271         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46272         Moved ...
46273         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46274         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46275         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46276         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46277         Moved ...
46278         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46279         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46280         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46281         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46282         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46283         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46284         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46285         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46286         Moved ...
46287         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46288         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46289         Moved ...
46290         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46291         ... here.
46292         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46293         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46294         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46295         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46296         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46297         Moved ...
46298         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46299         ... here.
46300         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46301         Moved ...
46302         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46303         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46304         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46305         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46306         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
46307         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
46308         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
46309         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
46310         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
46311         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
46312         Moved ...
46313         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
46314         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
46315         Moved ...
46316         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
46317         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
46318         Moved ...
46319         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
46320         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
46321         Moved ...
46322         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
46323         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
46324         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
46325         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
46326         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
46327         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
46328         Moved ...
46329         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
46330         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
46331         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
46332         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
46333         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
46334         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
46335         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
46336         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
46337         Moved ...
46338         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
46339         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46340         Moved ...
46341         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46342         ... here.
46343         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
46344         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
46345         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
46346         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
46347         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46348         Moved ...
46349         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46350         ... here.
46351         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
46352         Moved ...
46353         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
46354         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
46355         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
46356         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
46357         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
46358         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
46359         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
46360         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
46361         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
46362         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
46363         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
46364
46365         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
46366         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
46367
46368         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
46369         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
46370
46371         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
46372         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
46373         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
46374         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
46375         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
46376         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
46377         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
46378         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
46379         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
46380         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
46381         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
46382         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
46383         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
46384         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
46385         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
46386         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
46387         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
46388         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
46389         Moved ...
46390         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
46391         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
46392         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
46393         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
46394         Moved ...
46395         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
46396         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
46397         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
46398         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
46399         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
46400         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
46401         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
46402         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
46403         Moved ...
46404         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
46405         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
46406         Moved ...
46407         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
46408         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
46409         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
46410         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
46411         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
46412         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
46413         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
46414         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
46415         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
46416         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
46417         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
46418         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
46419         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
46420         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
46421         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
46422         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
46423         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
46424
46425         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
46426         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
46427         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
46428         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
46429         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
46430
46431         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
46432         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
46433         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
46434         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
46435         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
46436         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
46437         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
46438         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
46439         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
46440         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
46441
46442         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
46443         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
46444
46445         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
46446         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
46447         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
46448         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
46449         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
46450         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
46451         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
46452         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
46453         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
46454         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
46455         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
46456         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
46457         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
46458         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
46459         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
46460         Update #include.
46461         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
46462         Likewise.
46463         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46464         Likewise.
46465         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46466         Likewise.
46467         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46468         Likewise.
46469         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
46470         Likewise.
46471         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
46472         Likewise.
46473         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
46474         Likewise.
46475         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
46476         Likewise.
46477         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
46478         Likewise.
46479         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
46480         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
46481         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
46482         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
46483         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
46484         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
46485         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
46486         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
46487         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
46488         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
46489         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
46490         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
46491         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
46492         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
46493         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
46494
46495         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
46496         that was previously under [RESET_PID].
46497         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
46498         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
46499         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
46500
46501         * sysdeps/i386/nptl/Implies: New file.
46502         * sysdeps/x86_64/nptl/Implies: New file.
46503         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
46504         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
46505         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
46506         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
46507
46508         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
46509         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46510         (__libc_vfork): New strong alias.
46511         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
46512         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
46513
46514         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
46515         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46516         (__libc_vfork): New strong alias.
46517         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
46518         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
46519
46520         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
46521         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46522         (__libc_vfork): New strong alias.
46523         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
46524         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
46525         * nptl/pt-vfork.c: New file.
46526         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
46527         (libpthread: GLIBC_2.20): New version set (empty).
46528
46529 2014-05-14  Will Newton  <will.newton@linaro.org>
46530
46531         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
46532         rather than #if.
46533
46534 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46535
46536         [BZ #16564]
46537         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
46538         arguments with exponent 65 or above.
46539         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
46540         arguments 0x1p113L or above.
46541         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
46542         to arguments 0x1p107L or above.
46543         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
46544         positive arguments with exponent 65 or above.
46545         * math/auto-libm-test-in: Add more tests of log1p.
46546         * math/auto-libm-test-out: Regenerated.
46547
46548         [BZ #16928]
46549         * math/s_cacos.c (__cacos): Ensure zero real part of result from
46550         non-finite arguments is +0.
46551         * math/s_cacosf.c (__cacosf): Likewise.
46552         * math/s_cacosl.c (__cacosl): Likewise.
46553         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
46554         * sysdeps/i386/fpu/libm-test-ulps: Update.
46555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46556
46557         [BZ #16927]
46558         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
46559         value.
46560         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
46561         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
46562         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
46563         for explicit high bit of mantissa when testing for argument equal
46564         to 1.
46565         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
46566         * sysdeps/i386/fpu/libm-test-ulps: Update.
46567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46568
46569         [BZ #16516]
46570         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
46571         (__erf): Scale by 16 instead of 8 in potentially underflowing
46572         case.  Ensure exception if result actually underflows.
46573         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
46574         (__erff): Scale by 16 instead of 8 in potentially underflowing
46575         case.  Ensure exception if result actually underflows.
46576         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
46577         (efx8): Remove variable.
46578         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46579         case.  Ensure exception if result actually underflows.
46580         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
46581         (efx8): Remove variable.
46582         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46583         case.  Ensure exception if result actually underflows.
46584         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
46585         (efx8): Remove variable.
46586         (__erfl): Scale by 16 instead of 8 in potentially underflowing
46587         case.  Ensure exception if result actually underflows.
46588         * math/auto-libm-test-in: Add more tests of erf.
46589         * math/auto-libm-test-out: Regenerated.
46590
46591 2014-05-14  Andreas Schwab  <schwab@suse.de>
46592
46593         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
46594         Remove code conditionalized on USE___THREAD.
46595
46596         * config.h.in (HAVE_PT_CHOWN): Define as 0.
46597         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
46598         not definedness.
46599
46600 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
46601
46602         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
46603         Define unconditionally.
46604         (__ASSUME_O_CLOEXEC): Likewise.
46605         (__ASSUME_SOCK_CLOEXEC): Likewise.
46606         (__ASSUME_IN_NONBLOCK): Likewise.
46607         (__ASSUME_PIPE2): Likewise.
46608         (__ASSUME_EVENTFD2): Likewise.
46609         (__ASSUME_SIGNALFD4): Likewise.
46610         (__ASSUME_DUP3): Likewise.
46611         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
46612         (__ASSUME_DUP3): Do not define.
46613         (__ASSUME_EVENTFD2): Likewise.
46614         (__ASSUME_IN_NONBLOCK): Likewise.
46615         (__ASSUME_O_CLOEXEC): Likewise.
46616         (__ASSUME_PIPE2): Likewise.
46617         (__ASSUME_SIGNALFD4): Likewise.
46618         (__ASSUME_SOCK_CLOEXEC): Likewise.
46619         (__ASSUME_UTIMES): Undefine.
46620         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46621         (__ASSUME_UTIMES): Do not define.
46622         (__ASSUME_O_CLOEXEC): Likewise.
46623         (__ASSUME_SOCK_CLOEXEC): Likewise.
46624         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
46625         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
46626         0x020621].
46627         (__ASSUME_PIPE2): Likewise.
46628         (__ASSUME_EVENTFD2): Likewise.
46629         (__ASSUME_SIGNALFD4): Likewise.
46630         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
46631         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
46632         Do not define.
46633         (__ASSUME_EVENTFD2): Likewise.
46634         (__ASSUME_SIGNALFD4): Likewise.
46635         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
46636         (__ASSUME_32BITUIDS): Likewise.
46637         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
46638         (__ASSUME_IPC64): Likewise.
46639         (__ASSUME_ST_INO_64_BIT): Likewise.
46640         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
46641         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
46642         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46643         (__ASSUME_UTIMES): Do not define.
46644         (__ASSUME_PSELECT): Likewise.
46645         (__ASSUME_PPOLL): Likewise.
46646         (__ASSUME_O_CLOEXEC): Likewise.
46647         (__ASSUME_SOCK_CLOEXEC): Likewise.
46648         (__ASSUME_IN_NONBLOCK): Likewise.
46649         (__ASSUME_PIPE2): Likewise.
46650         (__ASSUME_EVENTFD2): Likewise.
46651         (__ASSUME_SIGNALFD4): Likewise.
46652         (__ASSUME_DUP3): Likewise.
46653         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46654         (__ASSUME_UTIMES): Likewise.
46655         (__ASSUME_O_CLOEXEC): Likewise.
46656         (__ASSUME_SOCK_CLOEXEC): Likewise.
46657         (__ASSUME_IN_NONBLOCK): Likewise.
46658         (__ASSUME_PIPE2): Likewise.
46659         (__ASSUME_EVENTFD2): Likewise.
46660         (__ASSUME_SIGNALFD4): Likewise.
46661         (__ASSUME_DUP3): Likewise.
46662         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
46663         (__ASSUME_UTIMES): Likewise.
46664         (__ASSUME_O_CLOEXEC): Likewise.
46665         (__ASSUME_SOCK_CLOEXEC): Likewise.
46666         (__ASSUME_IN_NONBLOCK): Likewise.
46667         (__ASSUME_PIPE2): Likewise.
46668         (__ASSUME_EVENTFD2): Likewise.
46669         (__ASSUME_SIGNALFD4): Likewise.
46670         (__ASSUME_DUP3): Likewise.
46671         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
46672         Likewise.
46673         (__ASSUME_UTIMES): Likewise.
46674         (__ASSUME_EVENTFD2): Likewise.
46675         (__ASSUME_SIGNALFD4): Likewise.
46676         * sysdeps/unix/sysv/linux/tile/kernel-features.h
46677         (__ASSUME_O_CLOEXEC): Likewise.
46678         (__ASSUME_SOCK_CLOEXEC): Likewise.
46679         (__ASSUME_IN_NONBLOCK): Likewise.
46680         (__ASSUME_PIPE2): Likewise.
46681         (__ASSUME_EVENTFD2): Likewise.
46682         (__ASSUME_SIGNALFD4): Likewise.
46683         (__ASSUME_DUP3): Likewise.
46684         (__ASSUME_UTIMES): Undefine.
46685
46686         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
46687         feclearexcept.  Remove symbol versioning code.
46688         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
46689         symbol versioning code.
46690         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
46691         symbol versioning code.
46692         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
46693         feupdateenv.  Remove symbol versioning code.
46694         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
46695         fegetexceptflag.  Remove symbol versioning code.
46696         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
46697         fesetexceptflag.  Remove symbol versioning code.
46698         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
46699         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
46700         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
46701         (__posix_fadvise64_l32): Remove prototype.
46702         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
46703         code.
46704
46705 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46706
46707         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
46708         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
46709         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
46710         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
46711
46712 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
46713
46714         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
46715         current working directory
46716
46717 2014-05-13  Roland McGrath  <roland@hack.frob.com>
46718
46719         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
46720         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
46721         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
46722         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
46723         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
46724         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
46725         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
46726         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
46727         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
46728         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
46729         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
46730         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
46731         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
46732         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
46733         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
46734         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
46735         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
46736         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
46737         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
46738         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
46739         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
46740         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
46741         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
46742         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
46743         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
46744         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
46745         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
46746         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
46747         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
46748         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
46749         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
46750         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
46751         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
46752         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
46753         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
46754         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
46755         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
46756         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
46757         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
46758         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
46759         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
46760         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
46761
46762         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
46763         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
46764
46765         * sysdeps/unix/sysv/linux/arm/Makefile
46766         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
46767         Add rt-aeabi_unwind_cpp_pr1.
46768         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
46769         Add nptl-aeabi_unwind_cpp_pr1.
46770         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
46771         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
46772         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
46773         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
46774         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
46775         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
46776
46777         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
46778         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
46779         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
46780         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
46781
46782         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
46783         Deconditionalize the code that was previously under [RESET_PID].
46784         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
46785
46786         * sysdeps/generic/exit-thread.h: New file.
46787         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
46788         * include/unistd.h (__exit_thread): Remove declaration.
46789         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
46790         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
46791         * csu/libc-start.c: Include <exit-thread.h>.
46792         (LIBC_START_MAIN): Pass no argument to __exit_thread.
46793         * nptl/pthread_create.c: Include <exit-thread.h>.
46794         (start_thread): Call __exit_thread in place of __exit_thread_inline.
46795         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
46796         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
46797         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
46798         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
46799         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
46800         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
46801         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
46802         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
46803         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
46804         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
46805         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
46806         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
46807         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
46808         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
46809         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
46810         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
46811
46812 2014-05-13  Andreas Schwab  <schwab@suse.de>
46813
46814         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
46815
46816 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
46817
46818         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
46819         (__ASSUME_UTIMES): Do not condition on kernel version.
46820         (__ASSUME_PSELECT): Define unconditionally.
46821         (__ASSUME_PPOLL): Likewise.
46822         (__ASSUME_ATFCTS): Likewise.
46823         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
46824         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
46825         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
46826         (__ASSUME_UTIMENSAT): Define unconditionally.
46827         (__ASSUME_PRIVATE_FUTEX): Likewise.
46828         (__ASSUME_FALLOCATE): Likewise.
46829         (__ASSUME_O_CLOEXEC): Likewise.
46830         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
46831         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
46832         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
46833         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
46834         (__ASSUME_IN_NONBLOCK): Likewise.
46835         (__ASSUME_PIPE2): Likewise.
46836         (__ASSUME_EVENTFD2): Likewise.
46837         (__ASSUME_SIGNALFD4): Likewise.
46838         (__ASSUME_DUP3): Likewise.
46839         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
46840         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
46841         (__ASSUME_AT_RANDOM): Likewise.
46842         (__ASSUME_PREADV): Likewise.
46843         (__ASSUME_PWRITEV): Likewise.
46844         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
46845         (__ASSUME_F_GETOWN_EX): Define unconditionally.
46846         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
46847         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
46848         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
46849         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
46850         (__ASSUME_O_CLOEXEC): Define unconditionally.
46851         (__ASSUME_PSELECT): Do not undefine conditionally.
46852         (__ASSUME_PPOLL): Likewise.
46853         (__ASSUME_ATFCTS): Likewise.
46854         (__ASSUME_SET_ROBUST_LIST): Likewise.
46855         (__ASSUME_UTIMENSAT): Likewise.
46856         (__ASSUME_FDATASYNC): Define unconditionally.
46857         * sysdeps/unix/sysv/linux/arm/kernel-features.h
46858         (__ASSUME_SIGFRAME_V2): Likewise.
46859         )__ASSUME_EVENTFD2): Likewise.
46860         (__ASSUME_SIGNALFD4): Likewise.
46861         (__ASSUME_PSELECT): Do not undefine conditionally.
46862         (__ASSUME_PPOLL): Likewise.
46863         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
46864         (__ASSUME_PSELECT): Define unconditionally.
46865         (__ASSUME_PPOLL): Likewise.
46866         (__ASSUME_O_CLOEXEC): Likewise.
46867         (__ASSUME_SOCK_CLOEXEC): Likewise.
46868         (__ASSUME_IN_NONBLOCK): Likewise.
46869         (__ASSUME_PIPE2): Likewise.
46870         (__ASSUME_EVENTFD2): Likewise.
46871         (__ASSUME_SIGNALFD4): Likewise.
46872         (__ASSUME_DUP3): Likewise.
46873         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
46874         (__ASSUME_O_CLOEXEC): Likewise.
46875         (__ASSUME_SOCK_CLOEXEC): Likewise.
46876         (__ASSUME_IN_NONBLOCK): Likewise.
46877         (__ASSUME_PIPE2): Likewise.
46878         (__ASSUME_EVENTFD2): Likewise.
46879         (__ASSUME_SIGNALFD4): Likewise.
46880         (__ASSUME_DUP3): Likewise.
46881         * sysdeps/unix/sysv/linux/mips/kernel-features.h
46882         (__ASSUME_EVENTFD2): Likewise.
46883         (__ASSUME_SIGNALFD4): Likewise.
46884         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
46885
46886 2014-05-12  Andreas Schwab  <schwab@suse.de>
46887
46888         [BZ #16932]
46889         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
46890         (_nss_nis_gethostbyname4_r): Return error if item length is larger
46891         than maximum RPC packet size.
46892         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
46893         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
46894         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
46895         (_nss_nis_getservbyport_r): Likewise.
46896
46897 2014-05-12  Will Newton  <will.newton@linaro.org>
46898
46899         * malloc/Makefile (tests): Add tst-mallopt.
46900         * malloc/tst-mallopt.c: New file.
46901
46902 2014-05-09  Roland McGrath  <roland@hack.frob.com>
46903
46904         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
46905         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
46906
46907 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46908
46909         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
46910         (tst-tlsmod6.so): Likewise.
46911
46912 2014-05-09  Roland McGrath  <roland@hack.frob.com>
46913
46914         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
46915
46916 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
46917
46918         [BZ #16064]
46919         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
46920         and <dl-procinfo.h>.
46921         (__fegetenv): Save SSE state in envp->__eip if supported.
46922         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
46923         envp->__eip if supported.
46924         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
46925         and <dl-procinfo.h>.
46926         (__fesetenv): Always set __eip, __cs_selector, __opcode,
46927         __data_offset and __data_selector in environment to 0.  Set SSE
46928         state if supported.
46929         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
46930         test-fenv-sse.
46931         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
46932         -mfpmath=sse.
46933         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
46934
46935 2014-05-09  Will Newton  <will.newton@linaro.org>
46936
46937         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
46938         and libc_relro_required for ARM.
46939         * sysdeps/arm/preconfigure: Regenerate.
46940
46941 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
46942             Stefan Liebler  <stli@linux.vnet.ibm.com>
46943
46944         * config.make.in (enable-lock-elision): New Makefile variable.
46945         * configure.ac: Likewise.
46946         * configure: Regenerate.
46947         * sysdeps/s390/configure.ac:
46948         Add check for gcc transactions support.
46949         * sysdeps/s390/configure: Regenerate.
46950         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
46951         Build elision files if enabled.
46952         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
46953         Add lock elision support for s390.
46954         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
46955         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
46956         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
46957         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
46958         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
46959         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
46960         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
46961         Likewise.
46962         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
46963         Likewise.
46964         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
46965         Likewise.
46966         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
46967         Likewise.
46968         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
46969         (__lll_timedlock_elision, __lll_lock_elision)
46970         (__lll_unlock_elision, __lll_trylock_elision)
46971         (lll_timedlock_elision, lll_lock_elision)
46972         (lll_unlock_elision, lll_trylock_elision): Add.
46973         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
46974         (pthread_mutex_t): Add lock elision support for s390.
46975
46976 2014-05-14  Wilco  <wdijkstr@arm.com>
46977
46978         * sysdeps/arm/fclrexcpt.c: Cleanup.
46979         * sysdeps/arm/fedisblxcpt.c: Cleanup.
46980         * sysdeps/arm/feenablxcpt.c: Cleanup.
46981         * sysdeps/arm/fegetenv.c: Cleanup.
46982         * sysdeps/arm/fegetexcept.c: Cleanup.
46983         * sysdeps/arm/fegetround.c: Cleanup.
46984         * sysdeps/arm/feholdexcpt.c: Cleanup.
46985         * sysdeps/arm/fesetenv.c: Cleanup.
46986         * sysdeps/arm/fesetround.c: Cleanup.
46987         * sysdeps/arm/feupdateenv.c: Cleanup.
46988         * sysdeps/arm/fgetexcptflg.c: Cleanup.
46989         * sysdeps/arm/fraiseexcpt.c: Cleanup.
46990         * sysdeps/arm/fsetexcptflg.c: Cleanup.
46991         * sysdeps/arm/ftestexcept.c: Cleanup.
46992         * sysdeps/arm/get-rounding-mode.h: Cleanup.
46993         * sysdeps/arm/setfpucw.c: Cleanup.
46994
46995 2014-05-09  Will Newton  <will.newton@linaro.org>
46996
46997         * sysdeps/arm/armv7/strcmp.S: New file.
46998         * NEWS: Mention addition of ARMv7 optimized strcmp.
46999
47000 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47001
47002         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47003         look for %.ac rather than %.in.
47004
47005         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47006         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47007         * sysdeps/mach/hurd/configure: Regenerated.
47008         * sysdeps/unix/sysv/linux/configure: Regenerated.
47009
47010         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47011
47012 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47013
47014         [BZ #16922]
47015         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47016         (LONG_SUB): Ditto.
47017         (PTR_SUB): Ditto.
47018
47019 2014-05-07  Andreas Schwab  <schwab@suse.de>
47020
47021         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47022         when skipping over non-matching result from nscd.
47023
47024 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47025
47026         [BZ #16876]
47027         * nptl/sockperf.c (client): Check socket return value.
47028
47029         [BZ #16877]
47030         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47031         nscd security class.
47032
47033 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47034
47035         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47036         * sysdeps/arm/unwind.h: ... here.
47037
47038 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47039
47040         [BZ #16916]
47041         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47042         Define.
47043
47044 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47045
47046         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47047         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47048         multiarch strncpy for PPC64.
47049         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47050         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47051         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47052         multiarch optimizations.
47053         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47054         (__libc_ifunc_impl_list): Likewise.
47055         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47056         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47057         multiarch stpncpy for PPC64.
47058         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47059         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47060
47061 2014-05-06  Andreas Schwab  <schwab@suse.de>
47062
47063         [BZ #16912]
47064         * gmon/mcount.c (_MCOUNT_DECL): Use
47065         atomic_compare_and_exchange_bool_acq instead of
47066         catomic_compare_and_exchange_bool_acq.
47067
47068 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47069
47070         * elf/Makefile (others, install-bin): Remove pldd.
47071         (pldd-modules): Variable removed.
47072         ($(objpfx)pldd): Target removed.
47073         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47074         (others, install-bin): Append pldd here.
47075         ($(objpfx)pldd): New target.
47076
47077         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47078         to 0, so the first #if test emitted later doesn't see it undefined.
47079         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47080         * sysdeps/gnu/errlist.c: Regenerated.
47081
47082 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47083
47084         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47085         [libc_hidden_builtin_def]: Define to empty value.
47086         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47087         [libc_hidden_builtin_def]: Likewise.
47088         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47089         [libc_hidden_builtin_def]: Likewise.
47090         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47091         [libc_hidden_builtin_def]: Likewise.
47092         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47093         __redirect_memcpy and define ifunc as default hidden symbol.
47094         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47095         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47096
47097 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47098
47099         * locale/iso-4217.def: Reintroduce XDR currency.
47100
47101 2014-05-04  Allan McRae  <allan@archlinux.org>
47102
47103         * po/eo.po: Update Esperanto translation from translation project.
47104
47105 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47106
47107         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47108         and FEATURE_INDEX_MAX to 1.
47109         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47110
47111 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47112
47113         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47114         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47115         * iconvdata/big5.c (ONE_DIRECTION): Define.
47116         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47117         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47118         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47119         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47120         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47121         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47122         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47123         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47124         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47125         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47126         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47127         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47128         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47129         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47130         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47131         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47132         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47133         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47134         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47135         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47136         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47137         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47138         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47139         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47140         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47141         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47142         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47143         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47144         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47145         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47146         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47147         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47148         * iconvdata/johab.c (ONE_DIRECTION): Define.
47149         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47150         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47151         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47152         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47153         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47154         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47155         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47156         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47157         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47158         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47159
47160 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47161
47162         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47163         (_IO_JUMPS_OFFSET): Define to 0.
47164
47165         * nptl/sysdeps/pthread/bits/libc-lock.h
47166         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47167         (__libc_lock_define_initialized_recursive): Always define using
47168         initializer.  Modern compilers treat uninitialized (implicit zero) and
47169         explicit zero initializers the same (i.e. put the datum in bss).
47170
47171 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47172
47173         * nscd/nscd-client.h: Include <string.h>.
47174
47175 2014-05-01  David S. Miller  <davem@davemloft.net>
47176
47177         [BZ #16885]
47178         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47179         multiple zero bytes exist at the end of a string.
47180         Reported by Aurelien Jarno <aurelien@aurel32.net>
47181
47182         * string/test-strcmp.c (check): Add explicit test for situations where
47183         there are multiple zero bytes after the first.
47184
47185 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47186
47187         [BZ #16890]
47188         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47189         when compiling wprintf.
47190         * stdio-common/tstdiomisc.c (t3): New function.
47191         (main): Call it.
47192
47193 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47194
47195         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47196         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47197         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47198         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47199
47200 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47201
47202         * stdlib/longlong.h: Updated from GCC.
47203
47204 2014-05-01  Will Newton  <will.newton@linaro.org>
47205             Bernard Ogden  <bernie.ogden@linaro.org>
47206
47207         * NEWS: Update fixed bug list.
47208
47209         [BZ #15119]
47210         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47211
47212 2014-04-30  David S. Miller  <davem@davemloft.net>
47213
47214         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47215         (libc_feholdexcept_setround_sparc_ctx): New function.
47216         (libc_fesetenv_sparc_ctx): Likewise.
47217         (libc_feupdateenv_sparc_ctx): Likewise.
47218         (libc_feholdsetround_sparc_ctx): Likewise.
47219         (libc_feholdexcept_setround_ctx): Define.
47220         (libc_feholdexcept_setroundf_ctx): Likewise.
47221         (libc_feholdexcept_setroundl_ctx): Likewise.
47222         (libc_fesetenv_ctx): Likewise.
47223         (libc_fesetenvf_ctx): Likewise.
47224         (libc_fesetenvl_ctx): Likewise.
47225         (libc_feupdateenv_ctx): Likewise.
47226         (libc_feupdateenvf_ctx): Likewise.
47227         (libc_feupdateenvl_ctx): Likewise.
47228         (libc_feresetround_ctx): Likewise.
47229         (libc_feresetroundf_ctx): Likewise.
47230         (libc_feresetroundl_ctx): Likewise.
47231         (libc_feholdsetround_ctx): Likewise.
47232         (libc_feholdsetroundf_ctx): Likewise.
47233         (libc_feholdsetroundl_ctx): Likewise.
47234
47235         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47236         with __USE_GNU instead of XOPEN cpp guards.
47237
47238         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47239         0.
47240
47241         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47242         with XOPEN cpp guards.
47243
47244 2014-04-30  Julian Brown  <julian@codesourcery.com>
47245
47246         [BZ #16888]
47247         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47248         handling.
47249
47250 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47251
47252         [BZ #9894]
47253         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47254         Change to 2.6.32.
47255         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47256         * sysdeps/unix/sysv/linux/configure: Regenerated.
47257         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47258         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47259         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47260         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47261         * README: Update reference to required Linux kernel version.
47262         * manual/install.texi (Linux): Update reference to required Linux
47263         kernel headers version.
47264         * INSTALL: Regenerated.
47265
47266         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47267         header inclusion.
47268         [POSIX] (limits.h): Likewise.
47269         [POSIX] (math.h): Likewise.
47270         [POSIX] (sys/wait.h): Likewise.
47271         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47272         function.
47273         [POSIX] (stddef.h): Do not allow header inclusion.
47274
47275 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47276
47277         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47278
47279 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47280
47281         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47282         Return immediately after lll_futex_wake.
47283
47284 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47285
47286         [BZ #16791]
47287         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47288         structure.
47289         (datahead_init_pos): Call datahead_init_common early.
47290         (datahead_init_neg): Likewise.
47291
47292         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47293         datahead_init_neg): New functions.
47294         * nscd/aicache.c (addhstaiX): Use them.
47295         * nscd/grpcache.c (cache_addgr): Likewise.
47296         * nscd/hstcache.c (cache_addhst): Likewise.
47297         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47298         * nscd/netgroupcache.c (do_notfound): Likewise.
47299         (addgetnetgrentX): Likewise.
47300         (addinnetgrX): Likewise.
47301         * nscd/pwdcache.c (cache_addpw): Likewise.
47302         * nscd/servicescache.c (cache_addserv): Likewise.
47303
47304 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47305             Atsushi Onoe  <atsushi@onoe.org>
47306
47307         [BZ #14308]
47308         [BZ #12994]
47309         [BZ #13651]
47310         * resolv/res_query.c (__libc_res_nsearch): Return if at least
47311         one response is valid.
47312         * resolv/res_send.c (send_dg): Check for validity of other
47313         response if the current response is a referral.
47314
47315 2014-04-29  Steve Ellcey  <sellcey@mips.com>
47316
47317         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
47318
47319 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
47320
47321         [BZ #16823]
47322         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
47323         Always divide by positive zero when computing -Inf result.
47324         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
47325         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
47326
47327 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47328
47329         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
47330         FPSCR if value do not change.
47331         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
47332         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
47333         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
47334         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47335         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
47336         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
47337         function.
47338
47339 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
47340
47341         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
47342         * sysdeps/unix/sysv/linux/hppa: Move directory from
47343         ports/systeps/unix/sysv/linux/hppa.
47344         * README: Update listing for hppa-*-linux-gnu.
47345
47346 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
47347
47348         [BZ #16754]
47349         * manual/stdio.texi (Hook functions): Fix types of stream hook
47350         functions.
47351         [BZ #16854]
47352         * socket/sys/socket.h: Fix typo in comment.
47353
47354 2014-04-28  Wilco  <wdijkstr@arm.com>
47355
47356         * sysdeps/arm/fenv_private.h: New file.
47357         * sysdeps/arm/math_private.h: New file.
47358         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
47359
47360 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
47361
47362         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
47363         with __int128_t.
47364         (La_x86_64_retval): Likewise.
47365
47366 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
47367
47368         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
47369         fpsr if value didn't change.
47370         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
47371         to fpcr if value didn't change.
47372         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
47373         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
47374         fpsr or fpcr if value didn't change.
47375         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
47376         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
47377         fpcr if value didn't change.
47378         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
47379         to fpsr if value didn't change.
47380
47381 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47382
47383         * nptl/tst-sem3.c: Use test-skeleton.c
47384         (main): Rename to do_test.  Use return instead of
47385         exit.
47386         * nptl/tst-sem4.c: Use test-skeleton.c
47387         (main): Rename to do_test.
47388
47389 2014-04-22  David S. Miller  <davem@davemloft.net>
47390
47391         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
47392         (struct sigaction): New struct member __glibc_reserved0, change
47393         type of sa_flags to int.
47394
47395 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
47396
47397         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
47398         (COUNT_LEADING_ZEROS_0): Define for AArch64.
47399
47400 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47401
47402         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
47403         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
47404
47405 2014-04-22  Will Newton  <will.newton@linaro.org>
47406             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
47407
47408         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
47409         (__longjmp): Add longjmp and longjmp_target SystemTap
47410         probes.
47411         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
47412         (__sigsetjmp): Add setjmp SystemTap probe.
47413
47414 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
47415
47416         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
47417         match manual order.
47418
47419 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47420
47421         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
47422
47423         * sysdeps/powerpc/fpu/fenv_private.h
47424         (libc_feholdexcept_setroundl_ctx): Define to
47425         libc_feholdexcept_setround_ppc_ctx.
47426         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
47427         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
47428         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
47429         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
47430
47431 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47432
47433         * sysdeps/aarch64/math-tests.h: New file.
47434
47435 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
47436
47437         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
47438         New.
47439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47440         Check and set bit_AVX2_Usable.
47441         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
47442         macro.
47443         (bit_AVX2): Likewise.
47444         (index_AVX2_Usable): Likewise.
47445         (CPUID_AVX2): Likewise.
47446         (HAS_AVX2): Likewise.
47447
47448 2014-04-17  Will Newton  <will.newton@linaro.org>
47449
47450         * manual/setjmp.texi (System V contexts): Add note that
47451         calling setcontext on a context created by a call to a
47452         signal handler is undefined.  Update text to note that
47453         setcontext from a signal handler is possible but not
47454         recommended.
47455
47456         [BZ #16629]
47457         * stdlib/tst-setcontext.c: Include signal.h.
47458         (main): Check that the signal stack before and
47459         after swapcontext is the same.
47460
47461         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
47462         Re-implement to restore registers in user code and avoid
47463         rt_sigreturn system call.
47464
47465 2014-04-17  Wilco  <wdijkstr@arm.com>
47466
47467         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
47468         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
47469         * math/test-fenv.c: Skip exception trap tests on targets which only
47470         support non-stop mode.
47471
47472 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47473             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47474
47475         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
47476         (libc_feholdsetround_aarch64_ctx)
47477         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
47478         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
47479         (libc_feresetround_ctx, libc_feresetroundf_ctx)
47480         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
47481         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
47482         (libc_feresetround_noexl_ctx): Define.
47483
47484 2014-04-16  Richard Henderson  <rth@redhat.com>
47485
47486         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
47487
47488         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
47489         unwind tables.
47490
47491         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
47492         const from the non-libc, non-ldso copy.
47493
47494         * sysdeps/alpha/libm-test-ulps: Regenerate.
47495
47496 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
47497             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47498
47499         * sysdeps/aarch64/fpu/math_private.h: New file.
47500
47501 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
47502
47503         * sysdeps/aarch64/libm-test-ulps: Regenerate.
47504
47505 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
47506
47507         [BZ #16275]
47508         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
47509         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
47510         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
47511         Intel MPX bound registers before _dl_profile_fixup.
47512         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
47513         registers after _dl_profile_fixup.  Save and restore bound
47514         registers bnd0/bnd1 when calling _dl_call_pltexit.
47515         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
47516         (LR_BND_OFFSET): Likewise.
47517         (LRV_BND0_OFFSET): Likewise.
47518         (LRV_BND1_OFFSET): Likewise.
47519
47520 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47521
47522         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
47523         to...
47524         * sysdeps/mach/hurd/i386/tls.h: ... here.
47525         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
47526         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
47527         fields.
47528
47529 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47530
47531         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
47532
47533 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47534
47535         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
47536
47537 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
47538
47539         [BZ #14770]
47540         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
47541         * sysdeps/s390/configure: Regenerate.
47542
47543         [BZ #16824]
47544         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
47545         Set round-to-nearest internally to reduce error accumulation.
47546
47547 2014-04-16  Alan Modra  <amodra@gmail.com>
47548
47549         [BZ #16740]
47550         [BZ #16619]
47551         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
47552         * math/libm-test.inc (frexp_test_data): Add tests.
47553         * NEWS: Update fixed bug list.
47554
47555 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
47556
47557         * benchtests/Makefile: Depend on libraries in build directory.
47558         (bench-math): Separate out math tests.
47559         (bench-pthread): Separate out pthread tests.
47560         (bench): Include math and pthread tests.
47561
47562 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
47563
47564         [BZ #16831]
47565         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
47566         _dl_debug_initialize.
47567
47568         * configure.ac: Remove SELinux header check.
47569         * configure: Regenerate.
47570         * nscd/selinux.c (perms): Array of const char* to permission names.
47571         (nscd_request_avc_has_perm): Call security_deny_unknown to find
47572         default policy. Call string_to_security_class and string_to_av_perm to
47573         translate strings. Enforce default policy and call avs_has_perm with
47574         results of translated strings.
47575
47576 2014-04-13  David S. Miller  <davem@davemloft.net>
47577
47578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47579
47580 2014-04-12  Allan McRae  <allan@archlinux.org>
47581
47582         [BZ #16838]
47583         * manual/string.texi (Collation Functions): Fix qsort argument
47584         order in example.
47585         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
47586
47587 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
47588
47589         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
47590         Make the test a no-op if there are no exceptions defined.
47591
47592 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
47593
47594         * elf/Makefile (tests): make tst-dlopen-aout conditional on
47595         enable-hardcoded-path-in-tests
47596
47597 2014-04-11  Will Newton  <will.newton@linaro.org>
47598
47599         * benchtests/Makefile (extra-objs): Add json-lib.o.
47600         (bench-func): Tidy up JSON output.
47601         * benchtests/bench-skeleton.c: Include json-lib.h.
47602         (main): Use JSON library functions to do output of
47603         benchmark results.
47604         * benchtests/bench-timing-type.c (main): Output the
47605         timing type simply, leaving formatting to the user.
47606         * benchtests/json-lib.c: New file.
47607         * benchtests/json-lib.h: Likewise.
47608
47609 2014-04-11  Torvald Riegel  <triegel@redhat.com>
47610
47611         [BZ #15215]
47612         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
47613         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
47614         memory barriers.  Add comments.
47615         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
47616         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
47617         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
47618         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
47619         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
47620         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
47621
47622 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
47623
47624         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
47625         * sysdeps/s390/s390-64/configure.ac: ... this ...
47626         * sysdeps/s390/configure.ac: ... to here.
47627         * sysdeps/s390/s390-32/configure: Delete file.
47628         * sysdeps/s390/s390-64/configure: Delete file.
47629         * sysdeps/s390/configure: Regenerate.
47630
47631 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
47632
47633         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
47634
47635 2014-04-11  Will Newton  <will.newton@linaro.org>
47636
47637         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
47638         to zero if it is not defined elsewhere.  (mtrim): Test
47639         the value of MALLOC_DEBUG with #if rather than #ifdef.
47640
47641 2014-04-10 Torvald Riegel  <triegel@redhat.com>
47642
47643         * benchtests/pthread_once-inputs: New file.
47644         * benchtests/pthread_once-source.c: New file.
47645         * benchtests/README: Update documentation.
47646
47647 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
47648             H.J. Lu  <hongjiu.lu@intel.com>
47649
47650         [BZ #16275]
47651         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
47652         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
47653         * sysdeps/x86_64/configure: Regenerated.
47654         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
47655         macro.
47656         (REGISTER_SAVE_RAX): Likewise.
47657         (REGISTER_SAVE_RCX): Likewise.
47658         (REGISTER_SAVE_RDX): Likewise.
47659         (REGISTER_SAVE_RSI): Likewise.
47660         (REGISTER_SAVE_RDI): Likewise.
47661         (REGISTER_SAVE_R8): Likewise.
47662         (REGISTER_SAVE_R9): Likewise.
47663         (REGISTER_SAVE_BND0): Likewise.
47664         (REGISTER_SAVE_BND1): Likewise.
47665         (REGISTER_SAVE_BND2): Likewise.
47666         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
47667         bound registers when calling _dl_fixup.
47668
47669 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47670
47671         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
47672         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
47673         of its definition.
47674         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
47675         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
47676         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
47677         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
47678         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
47679         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
47680         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
47681
47682 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
47683
47684         [BZ #15514]
47685         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
47686         pathconf(_PC_NAME_MAX).
47687
47688 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47689
47690         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
47691         Remove macro usage.
47692         (__PTHREAD_SPINS): Move definition to ...
47693         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
47694         (__PTHREAD_SPINS): ... here.
47695         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47696         (__PTHREAD_SPIN): Likewise.
47697         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
47698         (__PTHREAD_SPIN): Likewise.
47699         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
47700         (__PTHREAD_SPIN): Likewise.
47701         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
47702         (__PTHREAD_SPIN): Likewise.
47703         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
47704         (__PTHREAD_SPIN): Likewise.
47705         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
47706         (__PTHREAD_SPIN): Likewise.
47707         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
47708         (__PTHREAD_SPIN): Likewise.
47709         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
47710         (__PTHREAD_SPIN): Likewise.
47711         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
47712         (__PTHREAD_SPIN): Likewise.
47713         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
47714         (__PTHREAD_SPIN): Likewise.
47715         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
47716         (__PTHREAD_SPIN): Likewise.
47717         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
47718         (__PTHREAD_SPIN): Likewise.
47719
47720         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
47721         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
47722         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
47723         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
47724         imply folder.
47725         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
47726         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
47727         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
47728         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
47729         correct imply path.
47730         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
47731         strlen symbol for non multi-arch builds.
47732         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
47733         missing hidden_def and weak_alias.
47734
47735 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
47736
47737         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
47738
47739 2014-04-07  Will Newton  <will.newton@linaro.org>
47740
47741         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
47742         and contents.  [!_LIBC] Remove #ifndef and contents.
47743         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
47744         * string/memccpy.c (__memccpy): Use ANSI prototype.
47745         * string/memfrob.c (memfrob): Likewise.
47746         * string/strcoll.c (STRCOLL): Likewise.
47747         * string/strlen.c (strlen): Likewise.
47748         * string/strtok.c (STRTOK): Likewise.
47749         * string/strcat.c: Remove unused #include of memcopy.h.
47750         (strcat): Use ANSI prototype.
47751         * string/strchr.c: Remove unused #include of memcopy.h.
47752         (strchr): Use ANSI prototype.
47753         * string/strcmp.c: Remove unused #include of memcopy.h.
47754         (strcmp): Use ANSI prototype.
47755         * string/strcpy.c: Remove unused #include of memcopy.h.
47756         (strcpy): Use ANSI prototype.
47757
47758 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47759
47760         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
47761         * config.make.in (config-extra-cppflags): Set it from
47762         libc_extra_cppflags.
47763         * configure.ac (libc_extra_cflags): Make it accumulate over
47764         configure fragments.
47765         (libc_extra_cppflags): New flag.
47766         * configure. Regenerate.
47767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
47768         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
47769         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
47770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
47771
47772         [BZ #16815]
47773         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
47774         result for FE_DOWNWARD rounding mode.
47775         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
47776         Likewise.
47777         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47778
47779 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
47780
47781         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
47782         in function argument name.
47783
47784 2014-04-03  David Svoboda  <svoboda@cert.org>
47785
47786         [BZ #5666]
47787         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
47788         explicitly.
47789
47790 2014-04-03  Roland McGrath  <roland@hack.frob.com>
47791
47792         * elf/dl-unmap-segments.h: New file.
47793         * sysdeps/generic/ldsodefs.h
47794         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
47795         * elf/dl-close.c: Include <dl-unmap-segments.h>.
47796         * elf/dl-fptr.c: Likewise.
47797         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
47798         * sysdeps/aarch64/tlsdesc.c: Likewise.
47799         * sysdeps/arm/tlsdesc.c: Likewise.
47800         * sysdeps/i386/tlsdesc.c: Likewise.
47801         * sysdeps/tile/dl-runtime.c: Likewise.
47802         * sysdeps/x86_64/tlsdesc.c: Likewise.
47803         * elf/dl-load.h: New file.
47804         * elf/dl-load.c: Include it.
47805         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
47806         Macros moved to dl-load.h.
47807         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
47808         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
47809         Use _dl_unmap_segments in place of __munmap.
47810         Break out segment-mapping loop into ...
47811         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
47812
47813 2014-04-03  Will Newton  <will.newton@linaro.org>
47814
47815         * elf/dl-lookup.c (do_lookup_x): Remove comment
47816         referring to nested function and move variable
47817         declarations down to before first use.
47818
47819 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
47820
47821         [BZ #16799]
47822         [BZ #16800]
47823         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
47824         with 0 numerator.
47825         * math/s_catanf.c (__catanf): Likewise.
47826         * math/s_catanh.c (__catanh): Likewise.
47827         * math/s_catanhf.c (__catanhf): Likewise.
47828         * math/s_catanhl.c (__catanhl): Likewise.
47829         * math/s_catanl.c (__catanl): Likewise.
47830         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
47831         by positive zero when computing -Inf result.
47832         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
47833         (catanh_test): Likewise.
47834         * sysdeps/i386/fpu/libm-test-ulps: Update.
47835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47836
47837         [BZ #16789]
47838         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
47839         instead of using underflowing value in computing result.
47840         * math/s_clog10.c (__clog10): Likewise.
47841         * math/s_clog10f.c (__clog10f): Likewise.
47842         * math/s_clog10l.c (__clog10l): Likewise.
47843         * math/s_clogf.c (__clogf): Likewise.
47844         * math/s_clogl.c (__clogl): Likewise.
47845         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
47846         (clog10_test): Likewise.
47847         * sysdeps/i386/fpu/libm-test-ulps: Update.
47848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47849
47850 2014-04-02  Alan Modra  <amodra@gmail.com>
47851
47852         [BZ #16739]
47853         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
47854         output when value is near a power of two.  Use int64_t for lx and
47855         remove casts.  Use decimal rather than hex exponent constants.
47856         Don't use long double multiplication when double will suffice.
47857         * math/libm-test.inc (nextafter_test_data): Add tests.
47858         * NEWS: Add 16739 and 16786 to bug list.
47859
47860         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
47861
47862         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
47863
47864 2014-04-01  Will Newton  <will.newton@linaro.org>
47865
47866         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
47867         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
47868
47869 2014-04-01  Florian Weimer  <fweimer@redhat.com>
47870
47871         [BZ #13347]
47872         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
47873         * nptl/tst-setuid2.c: New file.
47874         * nptl/Makefile (xtests): Add tst-setuid2.
47875
47876 2014-04-01  Alan Modra  <amodra@gmail.com>
47877
47878         [BZ #16786]
47879         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
47880
47881 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
47882
47883         [BZ #6803]
47884         [BZ #6804]
47885         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
47886         set errno as appropriate.
47887         * math/w_scalbf.c (__scalbf): Likewise.
47888         * math/w_scalbl.c (__scalbl): Likewise.
47889         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
47890         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
47891         * math/libm-test.inc (scalb_test_data): Add errno expectations.
47892         Add more NaN tests.
47893
47894         [BZ #16349]
47895         * math/w_atan2.c: Include <errno.h>.
47896         (__atan2): Set errno for result underflowing to zero.
47897         * math/w_atan2f.c: Include <errno.h>.
47898         (__atan2f): Set errno for result underflowing to zero.
47899         * math/w_atan2l.c: Include <errno.h>.
47900         (__atan2l): Set errno for result underflowing to zero.
47901         * math/auto-libm-test-in: Don't allow missing errno for some atan2
47902         tests.
47903         * math/auto-libm-test-out: Regenerated.
47904
47905 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47906
47907         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
47908         Encode instruction correctly in little endian.
47909         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
47910         Likewise.
47911         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
47912         Likewise.
47913         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
47914         Likewise.
47915         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
47916         Likewise.
47917
47918 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
47919
47920         [BZ #9894]
47921         * sysdeps/unix/sysv/linux/kernel-features.h
47922         [__sparc__ && !__arch64__ && !__sparc_v9__]
47923         (__ASSUME_SET_ROBUST_LIST): Do not define.
47924         [__sparc__ && !__arch64__ && !__sparc_v9__]
47925         (__ASSUME_FUTEX_LOCK_PI): Likewise.
47926         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
47927         Likewise.
47928         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47929         (__ASSUME_FUTEX_LOCK_PI): Undefine.
47930         (__ASSUME_REQUEUE_PI): Likewise.
47931         (__ASSUME_SET_ROBUST_LIST): Likewise.
47932         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47933         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
47934         Undefine.
47935         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47936         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
47937         Likewise.
47938         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
47939         Likewise.
47940         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
47941         Likewise.
47942         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47943         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
47944         Undefine.
47945         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
47946         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
47947         Likewise.
47948
47949         [BZ #16648]
47950         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47951         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
47952         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
47953
47954 2014-03-31  Will Newton  <will.newton@linaro.org>
47955
47956         * benchtests/Makefile (bench): Add ffs and ffsll to list
47957         of tests.
47958         * benchtests/ffs-inputs: New file.
47959         * benchtests/ffsll-inputs: Likewise.
47960
47961 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
47962
47963         [BZ #16770]
47964         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
47965         too large before casting to int.
47966         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
47967         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
47968         * math/libm-test.inc (scalb_test_data): Add more tests.
47969
47970 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47971
47972         * benchtests/Makefile (DETAILED_OPT): New make option.
47973         (bench-func): Run benchmark program with -d if DETAILED_OPT is
47974         set.
47975         * benchtests/bench-skeleton.c: Include stdbool.h.
47976         (main): Store and print timings per input.
47977         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
47978         member to each argument value.
47979         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
47980         (_print_arg_data): Initialize per-input timing to 0.
47981
47982         * benchtests/Makefile (timing-type): New binary.
47983         (bench-clean): Also remove bench-timing-type.
47984         (bench): New target for timing-type.
47985         (bench-func): Print output in JSON format.
47986         * benchtests/bench-skeleton.c (main): Print output in JSON
47987         format.
47988         * benchtests/bench-timing-type.c: New file.
47989         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
47990         (TIMING_PRINT_STATS): Remove.
47991         * benchtests/scripts/bench.py (_print_arg_data): Store variant
47992         name separately.
47993
47994         * benchtests/bench-modf.c: Remove.
47995         * benchtests/modf-inputs: New inputs file.
47996
47997 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
47998
47999         [BZ #16362]
48000         * math/s_clog10.c (M_PI_LOG10E): New macro.
48001         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48002         imaginary parts are 0.
48003         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48004         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48005         imaginary parts are 0.
48006         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48007         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48008         imaginary parts are 0.
48009         * math/libm-test.inc (clog10_test_data): Update expected results
48010         for when real and imaginary parts are 0.
48011
48012 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48013
48014         * elf/dl-load.c: Finish conversion of __builtin_expect into
48015         __glibc_{un}likely.
48016
48017 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48018
48019         [BZ #16348]
48020         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48021         1+x for argument with exponent below -67.
48022         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48023         Likewise.
48024         * math/auto-libm-test-in: Add more tests of exp.
48025         * math/auto-libm-test-out: Regenerated.
48026
48027 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48028
48029         [BZ #16759]
48030         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48031         (nscd_getnetgrent): Use it.
48032
48033         [BZ #16760]
48034         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48035         of stpcpy.
48036
48037 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48038
48039         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48040         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48041         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48042         (lll_robust_unlock): Remove out of line section. Use cfi
48043         intrinsics.
48044         (LLL_STUB_UNWIND_INFO*): Remove.
48045         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48046         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48047         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48048         (lll_robust_unlock): Remove out of line section. Use cfi
48049         intrinsics.
48050         (LLL_STUB_UNWIND_INFO*): Remove.
48051
48052 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48053
48054         [BZ #16758]
48055         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48056         blank values.
48057
48058 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48059
48060         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48061
48062 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48063
48064         [BZ #16198]
48065         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48066         fnstenv.
48067         * math/test-fenv-preserve.c: New file.
48068         * math/Makefile (tests): Add test-fenv-preserve.
48069
48070 2014-03-26  Will Newton <will.newton@linaro.org>
48071
48072         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48073
48074 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48075
48076         * scripts/versionlist.awk: Partition the version sets and emit all
48077         GLIBC_* (sorted) before all others (sorted).
48078
48079 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48080
48081         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48082         GLIBC_2.2.5 version.
48083
48084 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48085
48086         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48087         calls.
48088
48089         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48090         previous change.
48091
48092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48093
48094 2014-03-25  Andreas Schwab  <schwab@suse.de>
48095
48096         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48097         label to be used after in6ailist is initialized.
48098
48099 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48100
48101         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48102         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48103
48104 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48105
48106         [BZ #16357]
48107         [BZ #16599]
48108         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48109         min_plus_half.
48110         (fp_formats): Update initializers.
48111         (init_fp_formats): Initialize new field.
48112         (output_for_one_input_case): Allow underflow for results up to
48113         min_plus_half.
48114         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48115         * math/auto-libm-test-in: Don't mark some underflows from asin and
48116         atanh as spurious.
48117         * math/auto-libm-test-out: Regenerated.
48118         * sysdeps/i386/fpu/libm-test-ulps: Update.
48119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48120
48121 2014-03-25  Andreas Schwab  <schwab@suse.de>
48122
48123         * libio/Makefile (tst-ftell-partial-wide-ENV)
48124         (tst-ftell-active-handler-ENV): Define.
48125
48126 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48127
48128         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48129
48130 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48131
48132         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48133
48134 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48135
48136         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48137         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48138         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48139
48140 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48141
48142         [BZ #16634]
48143         * elf/dl-load.c (open_verify): Add mode parameter.
48144         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48145         (open_path): Change from boolean 'secure' to complete flag 'mode'
48146         (_dl_map_object): Adjust.
48147         * elf/Makefile (tests): Add tst-dlopen-aout.
48148         * elf/tst-dlopen-aout.c: New test.
48149
48150 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48151
48152         [BZ #16714]
48153         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48154         (struct stat): Rename member pad0 to __glibc_reserved0.
48155
48156         [BZ #16712]
48157         * sysdeps/s390/s390-32/bits/wordsize.h
48158         (__WORDSIZE32_SIZE_ULONG): New define.
48159         * sysdeps/s390/s390-64/bits/wordsize.h
48160         (__WORDSIZE32_SIZE_ULONG): Likewise.
48161         * sysdeps/generic/stdint.h (SIZE_MAX):
48162         Define as UL if __WORDSIZE32_SIZE_ULONG.
48163
48164         [BZ #16713]
48165         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48166         (__glibc_reserved0): New variable.
48167         (sa_flags): Change type to int.
48168
48169         * posix/Makefile (before-compile): Use += before-compile instead
48170         of a :=.
48171
48172         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48173         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48174
48175 2014-03-20  Andreas Schwab  <schwab@suse.de>
48176
48177         [BZ #16743]
48178         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48179         non-matching result from nscd.
48180
48181 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48182
48183         * scripts/bench.py: Moved to ...
48184         * benchtests/scripts/bench.py: ... here.
48185         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48186
48187 2014-03-24  Andreas Schwab  <schwab@suse.de>
48188
48189         [BZ #16002]
48190         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48191         alloca_account and account alloca use for struct in6ailist.
48192
48193 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48194
48195         [BZ #16284]
48196         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48197         rounding mode to recompute results that overflow to infinity or
48198         underflow to zero.
48199         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48200         bug 16284.
48201         * math/auto-libm-test-out: Regenerated.
48202         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48203         (ccosh_test): Likewise.
48204         (csin_test_data): Use plus_oflow.
48205         (csin_test): Use ALL_RM_TEST.
48206         (csinh_test_data): Use plus_oflow.
48207         (csinh_test): Use ALL_RM_TEST.
48208         * sysdeps/i386/fpu/libm-test-ulps: Update.
48209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48210
48211 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48212
48213         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48214         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48215         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48216
48217         [BZ #16731]
48218         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48219         when x - 1 is zero.
48220         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48221         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48222         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48223         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48224         argument is 1.
48225         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48226         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48227         zero.
48228         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48229         * sysdeps/i386/fpu/libm-test-ulps: Update.
48230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48231
48232 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48233
48234         * scripts/bench.pl: Remove file.
48235         * scripts/bench.py: New benchmark script.
48236         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48237         * benchtests/README: Mention python dependency.
48238         * scripts/pylintrc: New file.
48239         * scripts/pylint: New file.
48240
48241         * bits/mathdef.h: Use #ifdef instead of #if.
48242         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48243         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48244         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48245         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48246         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48247         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48248
48249 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48250             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48251
48252         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48253         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48254         and strpbrk-ppc64 objects.
48255         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48256         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48257         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48258         multiarch strpbrk for POWER7.
48259         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48260         multiarch strpbrk for PPC64.
48261         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48262         ifunc selector.
48263         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48264         strpbrk for POWER7.
48265
48266 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48267
48268         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48269         (atan_test): Likewise.
48270         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48271         (atanh_test): Use ALL_RM_TEST.
48272         (atan2_test_data): Likewise.
48273         (cabs_test): Likewise.
48274         (cacosh_test): Likewise.
48275         (carg_test): Likewise.
48276         (casin_test): Likewise.
48277         (casinh_test): Likewise.
48278         (cbrt_test): Likewise.
48279         (csqrt_test): Likewise.
48280         (erf_test): Likewise.
48281         (erfc_test): Likewise.
48282         (pow10_test): Likewise.
48283         (exp2_test): Likewise.
48284         (hypot_test): Likewise.
48285         (j0_test): Likewise.
48286         (j1_test): Likewise.
48287         (lgamma_test): Likewise.
48288         (gamma_test): Likewise.
48289         (sincos_test): Likewise.
48290         (tanh_test): Likewise.
48291         (y0_test): Likewise.
48292         (y1_test): Likewise.
48293         * sysdeps/i386/fpu/libm-test-ulps: Update.
48294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48295
48296 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48297
48298         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48299         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48300         and strcspn-ppc64 objects.
48301         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48302         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48303         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48304         multiarch strcspn for POWER7.
48305         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48306         multiarch strcspn for PPC64.
48307         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
48308         ifunc selector.
48309         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
48310         strcspn for POWER7.
48311
48312 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48313
48314         * math/gen-libm-test.pl (generate_testfile): Expect only function
48315         name as argument to AUTO_TESTS_* and pass results for all rounding
48316         modes to parse_args.
48317         (parse_auto_input): Separate inputs of automatic tests from
48318         outputs before storing in %auto_tests.
48319         * math/libm-test.inc (acos_test_data): Update call to
48320         AUTO_TESTS_f_f.
48321         (acos_test): Use ALL_RM_TEST.
48322         (acos_tonearest_test_data): Remove.
48323         (acos_test_tonearest): Likewise.
48324         (acos_towardzero_test_data): Likewise.
48325         (acos_test_towardzero): Likewise.
48326         (acos_downward_test_data): Likewise.
48327         (acos_test_downward): Likewise.
48328         (acos_upward_test_data): Likewise.
48329         (acos_test_upward): Likewise.
48330         (acosh_test_data): Update call to AUTO_TESTS_f_f.
48331         (asin_test_data): Likewise.
48332         (asin_test): Use ALL_RM_TEST.
48333         (asin_tonearest_test_data): Remove.
48334         (asin_test_tonearest): Likewise.
48335         (asin_towardzero_test_data): Likewise.
48336         (asin_test_towardzero): Likewise.
48337         (asin_downward_test_data): Likewise.
48338         (asin_test_downward): Likewise.
48339         (asin_upward_test_data): Likewise.
48340         (asin_test_upward): Likewise.
48341         (asinh_test_data): Update call to AUTO_TESTS_f_f.
48342         (atan_test_data): Likewise.
48343         (atanh_test_data): Likewise.
48344         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
48345         (cabs_test_data): Update call to AUTO_TESTS_c_f.
48346         (carg_test_data): Likewise.
48347         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
48348         (ccos_test_data): Update call to AUTO_TESTS_c_c.
48349         (ccosh_test_data): Likewise.
48350         (cexp_test_data): Likewise.
48351         (clog_test_data): Likewise.
48352         (clog10_test_data): Likewise.
48353         (cos_test_data): Update call to AUTO_TESTS_f_f.
48354         (cos_test): Use ALL_RM_TEST.
48355         (cos_tonearest_test_data): Remove.
48356         (cos_test_tonearest): Likewise.
48357         (cos_towardzero_test_data): Likewise.
48358         (cos_test_towardzero): Likewise.
48359         (cos_downward_test_data): Likewise.
48360         (cos_test_downward): Likewise.
48361         (cos_upward_test_data): Likewise.
48362         (cos_test_upward): Likewise.
48363         (cosh_test_data): Update call to AUTO_TESTS_f_f.
48364         (cosh_test): Use ALL_RM_TEST.
48365         (cosh_tonearest_test_data): Remove.
48366         (cosh_test_tonearest): Likewise.
48367         (cosh_towardzero_test_data): Likewise.
48368         (cosh_test_towardzero): Likewise.
48369         (cosh_downward_test_data): Likewise.
48370         (cosh_test_downward): Likewise.
48371         (cosh_upward_test_data): Likewise.
48372         (cosh_test_upward): Likewise.
48373         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
48374         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
48375         (ctan_test_data): Likewise.
48376         (ctan_test): Use ALL_RM_TEST.
48377         (ctan_tonearest_test_data): Remove.
48378         (ctan_test_tonearest): Likewise.
48379         (ctan_towardzero_test_data): Likewise.
48380         (ctan_test_towardzero): Likewise.
48381         (ctan_downward_test_data): Likewise.
48382         (ctan_test_downward): Likewise.
48383         (ctan_upward_test_data): Likewise.
48384         (ctan_test_upward): Likewise.
48385         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
48386         (ctanh_test): Use ALL_RM_TEST.
48387         (ctanh_tonearest_test_data): Remove.
48388         (ctanh_test_tonearest): Likewise.
48389         (ctanh_towardzero_test_data): Likewise.
48390         (ctanh_test_towardzero): Likewise.
48391         (ctanh_downward_test_data): Likewise.
48392         (ctanh_test_downward): Likewise.
48393         (ctanh_upward_test_data): Likewise.
48394         (ctanh_test_upward): Likewise.
48395         (erf_test_data): Update call to AUTO_TESTS_f_f.
48396         (erfc_test_data): Likewise.
48397         (exp_test_data): Likewise.
48398         (exp_test): Use ALL_RM_TEST.
48399         (exp_tonearest_test_data): Remove.
48400         (exp_test_tonearest): Likewise.
48401         (exp_towardzero_test_data): Likewise.
48402         (exp_test_towardzero): Likewise.
48403         (exp_downward_test_data): Likewise.
48404         (exp_test_downward): Likewise.
48405         (exp_upward_test_data): Likewise.
48406         (exp_test_upward): Likewise.
48407         (exp10_test_data): Update call to AUTO_TESTS_f_f.
48408         (exp10_test): Use ALL_RM_TEST.
48409         (exp10_tonearest_test_data): Remove.
48410         (exp10_test_tonearest): Likewise.
48411         (exp10_towardzero_test_data): Likewise.
48412         (exp10_test_towardzero): Likewise.
48413         (exp10_downward_test_data): Likewise.
48414         (exp10_test_downward): Likewise.
48415         (exp10_upward_test_data): Likewise.
48416         (exp10_test_upward): Likewise.
48417         (exp2_test_data): Update call to AUTO_TESTS_f_f.
48418         (expm1_test_data): Likewise.
48419         (expm1_test): Use ALL_RM_TEST.
48420         (expm1_tonearest_test_data): Remove.
48421         (expm1_test_tonearest): Likewise.
48422         (expm1_towardzero_test_data): Likewise.
48423         (expm1_test_towardzero): Likewise.
48424         (expm1_downward_test_data): Likewise.
48425         (expm1_test_downward): Likewise.
48426         (expm1_upward_test_data): Likewise.
48427         (expm1_test_upward): Likewise.
48428         (fma_test_data): Update call to AUTO_TESTS_fff_f.
48429         (fma_test): Use ALL_RM_TEST.
48430         (fma_towardzero_test_data): Remove.
48431         (fma_test_towardzero): Likewise.
48432         (fma_downward_test_data): Likewise.
48433         (fma_test_downward): Likewise.
48434         (fma_upward_test_data): Likewise.
48435         (fma_test_upward): Likewise.
48436         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
48437         (j0_test_data): Update call to AUTO_TESTS_f_f.
48438         (j1_test_data): Likewise.
48439         (jn_test_data): Update call to AUTO_TESTS_if_f.
48440         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
48441         (log_test_data): Update call to AUTO_TESTS_f_f.
48442         (log10_test_data): Likewise.
48443         (log1p_test_data): Likewise.
48444         (log2_test_data): Likewise.
48445         (pow_test_data): Update call to AUTO_TESTS_ff_f.
48446         (pow_tonearest_test_data): Likewise.
48447         (sin_test_data): Update call to AUTO_TESTS_f_f.
48448         (sin_test): Use ALL_RM_TEST.
48449         (sin_tonearest_test_data): Remove.
48450         (sin_test_tonearest): Likewise.
48451         (sin_towardzero_test_data): Likewise.
48452         (sin_test_towardzero): Likewise.
48453         (sin_downward_test_data): Likewise.
48454         (sin_test_downward): Likewise.
48455         (sin_upward_test_data): Likewise.
48456         (sin_test_upward): Likewise.
48457         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
48458         (sinh_test_data): Update call to AUTO_TESTS_f_f.
48459         (sinh_test): Use ALL_RM_TEST.
48460         (sinh_tonearest_test_data): Remove.
48461         (sinh_test_tonearest): Likewise.
48462         (sinh_towardzero_test_data): Likewise.
48463         (sinh_test_towardzero): Likewise.
48464         (sinh_downward_test_data): Likewise.
48465         (sinh_test_downward): Likewise.
48466         (sinh_upward_test_data): Likewise.
48467         (sinh_test_upward): Likewise.
48468         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
48469         (sqrt_test): Use ALL_RM_TEST.
48470         (sqrt_tonearest_test_data): Remove.
48471         (sqrt_test_tonearest): Likewise.
48472         (sqrt_towardzero_test_data): Likewise.
48473         (sqrt_test_towardzero): Likewise.
48474         (sqrt_downward_test_data): Likewise.
48475         (sqrt_test_downward): Likewise.
48476         (sqrt_upward_test_data): Likewise.
48477         (sqrt_test_upward): Likewise.
48478         (tan_test_data): Update call to AUTO_TESTS_f_f.
48479         (tan_test): Use ALL_RM_TEST.
48480         (tan_tonearest_test_data): Remove.
48481         (tan_test_tonearest): Likewise.
48482         (tan_towardzero_test_data): Likewise.
48483         (tan_test_towardzero): Likewise.
48484         (tan_downward_test_data): Likewise.
48485         (tan_test_downward): Likewise.
48486         (tan_upward_test_data): Likewise.
48487         (tan_test_upward): Likewise.
48488         (tanh_test_data): Update call to AUTO_TESTS_f_f.
48489         (tgamma_test_data): Likewise.
48490         (y0_test_data): Likewise.
48491         (y1_test_data): Likewise.
48492         (yn_test_data): Update call to AUTO_TESTS_if_f.
48493         (main): Do not call removed functions.
48494
48495 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48496
48497         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
48498         (ldexp_test_data): Remove.
48499         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
48500         scalbn_test_data.
48501         (scalb_test): Use ALL_RM_TEST.
48502
48503 2014-03-19  Andreas Schwab  <schwab@suse.de>
48504
48505         * nscd/nscd.service: Also invalidate netgroup cache on reload.
48506
48507 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48508
48509         [BZ #16649]
48510         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
48511         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
48512         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
48513         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48514         (__ASSUME_PREADV): Undefine.
48515         (__ASSUME_PWRITEV): Likewise.
48516
48517 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48518
48519         * bits/mman-linux.h: Add comment about non-Linux use.
48520         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
48521         bits/mman-linux.h resting place.
48522
48523         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
48524         * bits/mman-linux.h: ... here.
48525
48526 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48527
48528         * conform/conformtest.pl: Add standard definition when calling C
48529         preprocessor on data files.
48530         (checknamespace): Remove unused variable.
48531
48532 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48533
48534         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
48535         minus_oflow, plus_uflow and minus_uflow in expected results.
48536         * math/libm-test.inc (scalbn_test_data): Add more tests of
48537         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
48538         minus_uflow.
48539         (scalbn_test): Use ALL_RM_TEST.
48540         (scalbln_test_data): Add more tests of negative arguments.  Use
48541         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
48542         (scalbln_test): Use ALL_RM_TEST.
48543
48544 2014-03-18  Roland McGrath  <roland@hack.frob.com>
48545
48546         * scripts/abilist.awk: Ignore symbols marked with .hidden.
48547
48548 2014-03-18  Will Newton  <will.newton@linaro.org>
48549
48550         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
48551         inaccurate comment.
48552
48553 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
48554
48555         * Makerules [!subdir] (check-abi): Exit with error status if a
48556         test failed.
48557
48558 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48559
48560         * math/libm-test.inc (nearbyint_test_data): Include all tests used
48561         for rint.  Include results for all rounding modes.
48562         (nearbyint_test): Use ALL_RM_TEST.
48563         (rint_test_data): Include all tests used for nearbyint.
48564
48565 2014-03-17  Will Newton  <will.newton@linaro.org>
48566
48567         * nptl/sysdeps/pthread/pthread.h: Revert previous
48568         change.
48569
48570         * sysdeps/generic/ldsodefs.h: Revert previous
48571         change.
48572
48573         * libio/genops.c: Revert previous change.
48574         * libio/libioP.h: Likewise.
48575         * stdio-common/vfprintf.c: Likewise.
48576
48577         * sysdeps/generic/math_private.h: Revert previous
48578         change.
48579
48580         * sysdeps/generic/math_private.h: Check whether
48581         HAVE_RM_CTX is defined with #ifdef rather
48582         than #if.
48583
48584         * argp/argp-fmtstream.h: Check whether
48585         __STRICT_ANSI__ is defined with #ifdef rather
48586         than #if.
48587         * argp/argp.h: Likewise.
48588
48589         * libio/genops.c: Check whether
48590         _IO_JUMPS_OFFSET is defined with #ifdef rather
48591         than #if.
48592         * libio/libioP.h: Likewise.
48593         * stdio-common/vfprintf.c: Likewise.
48594
48595         * sysdeps/generic/ldsodefs.h: Check whether
48596         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
48597         than #if.
48598
48599         * nptl/sysdeps/pthread/pthread.h: Check
48600         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
48601         its value.
48602
48603 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48604
48605         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
48606         setting O_APPEND.
48607         * libio/tst-ftell-active-handler.c (do_append_test): Add a
48608         test case.
48609
48610         [BZ #16680]
48611         * libio/fileops.c (_IO_file_open): Seek to end of file but
48612         don't cache the offset.
48613         (get_file_offset): Remove function.
48614         (do_ftell): Use cached offset when available.
48615         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
48616         don't cache the offset.
48617         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
48618         case.
48619         (do_one_test): Call it.
48620         (do_ftell_test): Fix up expected old offset for a+ mode.
48621         * libio/wfileops.c (do_ftell_wide): Used cached offset when
48622         available.
48623
48624         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
48625         up test status with function return status.
48626         (do_write_test): Likewise.
48627         (do_append_test): Likewise.
48628
48629         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
48630         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
48631         Remove.
48632
48633 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
48634
48635         * math/gen-libm-test.pl (parse_args): Handle results specified for
48636         each rounding mode separately.
48637         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
48638         tests and results from lrint_tonearest_test_data,
48639         lrint_towardzero_test_data, lrint_downward_test_data and
48640         lrint_upward_test_data.
48641         (lrint_test): Use ALL_RM_TEST.
48642         (lrint_tonearest_test_data): Remove.
48643         (lrint_test_tonearest): Likewise.
48644         (lrint_towardzero_test_data): Likewise.
48645         (lrint_test_towardzero): Likewise.
48646         (lrint_downward_test_data): Likewise.
48647         (lrint_test_downward): Likewise.
48648         (lrint_upward_test_data): Likewise.
48649         (lrint_test_upward): Likewise.
48650         (llrint_test_data): Merge in per-rounding-mode tests and results
48651         from llrint_tonearest_test_data, llrint_towardzero_test_data,
48652         llrint_downward_test_data and llrint_upward_test_data.
48653         (llrint_test): Use ALL_RM_TEST.
48654         (llrint_tonearest_test_data): Remove.
48655         (llrint_test_tonearest): Likewise.
48656         (llrint_towardzero_test_data): Likewise.
48657         (llrint_test_towardzero): Likewise.
48658         (llrint_downward_test_data): Likewise.
48659         (llrint_test_downward): Likewise.
48660         (llrint_upward_test_data): Likewise.
48661         (llrint_test_upward): Likewise.
48662         (rint_test_data): Merge in per-rounding-mode tests and results
48663         from rint_tonearest_test_data, rint_towardzero_test_data,
48664         rint_downward_test_data and rint_upward_test_data.  Add
48665         per-rounding-mode results for tests not in those arrays.
48666         (rint_test): Use ALL_RM_TEST.
48667         (rint_tonearest_test_data): Remove.
48668         (rint_test_tonearest): Likewise.
48669         (rint_towardzero_test_data): Likewise.
48670         (rint_test_towardzero): Likewise.
48671         (rint_downward_test_data): Likewise.
48672         (rint_test_downward): Likewise.
48673         (rint_upward_test_data): Likewise.
48674         (rint_test_upward): Likewise.
48675         (main): Don't call removed functions.
48676
48677 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48678
48679         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
48680         "Compiled on ..." crapola.  It is anti-useful.
48681
48682 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
48683
48684         * scripts/evaluate-test.sh: Handle fourth argument to determine
48685         whether test run should stop on failure.
48686         * Makeconfig (stop-on-test-failure): New variable.
48687         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
48688         $(stop-on-test-failure).
48689         * Makefile (tests): Give a summary of results from testing and
48690         exit with failure status if they include an ERROR or FAIL.
48691         (xtests): Likewise.
48692         * manual/install.texi (Configuring and compiling): Mention
48693         stop-on-test-failure=y.
48694         * INSTALL: Regenerated.
48695
48696 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48697
48698         * scripts/versionlist.awk: New file.
48699         * Makerules [$(build-shared) = yes]
48700         (postclean-generated): Add Versions.def, not Versions.def.v and
48701         Versions.def.v.i.
48702         ($(common-objpfx)Versions.def.v.i): Target removed.
48703         ($(common-objpfx)Versions.def): New target.
48704         ($(common-objpfx)Versions.all): Depend on that rather that
48705         $(common-objpfx)Versions.def.v.
48706         * Versions.def: File removed.
48707
48708         * Makeconfig (+gccwarn): Add -Wundef.
48709         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
48710         a dl-sysdep.h breaking its contract.
48711         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
48712         * include/stackinfo.h: New file.
48713         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
48714         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
48715         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
48716         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
48717         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
48718         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
48719         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48720         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48721         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48722         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48723         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48724         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
48725         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48726         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48727         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
48728
48729 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48730
48731         [BZ #16707]
48732         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
48733         implementation.
48734         * math/libm-test.inc (round_test_data): Add more tests.
48735
48736         [BZ #16706]
48737         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
48738         implementation.
48739         * math/libm-test.inc (nearbyint_test_data): Add more tests.
48740
48741         [BZ #16701]
48742         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
48743         implementation.
48744         * math/libm-test.inc (ceil_test_data): Add more tests.
48745
48746         * math/libm-test.inc (trunc_test_data): Add more tests related to
48747         BZ#16414.
48748
48749 2014-03-14  Roland McGrath  <roland@hack.frob.com>
48750
48751         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
48752         with #if rather than #ifdef.
48753         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
48754
48755 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
48756
48757         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
48758         first.  Disable AVX-512 GCC support if assembler doesn't support
48759         it.
48760         * sysdeps/x86_64/configure: Regenerated.
48761
48762 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
48763
48764         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
48765         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
48766         (__old_pthread_attr_setstack): Likewise.
48767         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
48768         [!_STACK_GROWS_DOWN]: Likewise.
48769
48770 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
48771
48772         * config.make.in (have-bash2): Delete.
48773         * configure.ac (libc_cv_have_bash2): Delete.
48774         * configure: Regenerate.
48775         * elf/Makefile (common-ldd-rewrite): Rename to ...
48776         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
48777         (sh-ldd-rewrite): Delete.
48778         (bash-ldd-rewrite): Delete.
48779         (have-bash2): Delete checks.
48780         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
48781         ldd-rewrite.
48782
48783         * config.make.in (have-ksh): Delete.
48784         (KSH): Delete.
48785         * configure.ac (libc_cv_have_ksh): Delete.
48786         * configure: Regenerate.
48787
48788         * elf/Makefile: Delete $(have-ksh) check.
48789         ($(objpfx)sotruss): Change KSH to BASH.
48790         * elf/sotruss.ksh: Rename to ...
48791         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
48792         function style to match POSIX.  Drop ksh vim mode setting.
48793
48794         * manual/time.texi (Specifying the Time Zone with TZ): Change
48795         Tuesday to Thursday.
48796
48797         * debug/tst-longjmp_chk2.c: Update header comment.
48798         (stackoverflow_handler): Add comment.  Call assert on pass value.
48799
48800 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
48801
48802         [BZ #16194]
48803         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
48804         (HAVE_AVX512_ASM_SUPPORT): Likewise.
48805         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
48806         (La_x86_64_vector): Add zmm.
48807         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
48808         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
48809         ($(objpfx)tst-audit10): New target.
48810         ($(objpfx)tst-audit10.out): Likewise.
48811         (tst-audit10-ENV): New.
48812         (AVX512-CFLAGS): Likewise.
48813         (CFLAGS-tst-audit10.c): Likewise.
48814         (CFLAGS-tst-auditmod10a.c): Likewise.
48815         (CFLAGS-tst-auditmod10b.c): Likewise.
48816         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
48817         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
48818         * sysdeps/x86_64/configure: Regenerated.
48819         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
48820         AVX-512 zmm register support.
48821         (_dl_x86_64_save_sse): Likewise.
48822         (_dl_x86_64_restore_sse): Likewise.
48823         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
48824         size vector registers.
48825         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
48826         (ZMM_SIZE): Likewise.
48827         * sysdeps/x86_64/tst-audit10.c: New file.
48828         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
48829         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
48830
48831 2014-03-13  Roland McGrath  <roland@hack.frob.com>
48832
48833         * configure.ac (HAVE_EHDR_START): New check.
48834         * configure: Regenerated.
48835         * config.h.in (HAVE_EHDR_START): New #undef.
48836         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
48837         assuming the lowest-addressed segment maps the start of the file.
48838
48839 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
48840
48841         * INSTALL: Regenerated.
48842
48843 2014-03-13  Will Newton  <will.newton@linaro.org>
48844
48845         * manual/setjmp.texi (System V contexts): Improve
48846         clarity and grammar of documentation.
48847
48848 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
48849
48850         [BZ #16381]
48851         * elf/Makefile (tests): Add tst-pie2.
48852         (tests-pie): Add tst-pie2.
48853         * elf/tst-pie2.c: New file.
48854         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
48855         for ET_EXEC.
48856         * elf/rtld.c (map_doit): Load executable as lt_executable.
48857         (dl_main): Likewise.
48858
48859 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
48860
48861         [BZ #16642]
48862         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48863         (__ASSUME_PSELECT): Undefine.
48864
48865 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48866
48867         [BZ #16689]
48868         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
48869         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
48870         static build.
48871         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
48872         selector for static builds.
48873
48874 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48875
48876         [BZ #16695]
48877         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
48878         key in the buffer.
48879
48880 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48881
48882         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
48883         IFUNC selector for static builds.
48884
48885 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
48886
48887         * sysdeps/mips/math_private.h [__mips_hard_float]
48888         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
48889         libc_feresetround_mips_ctx.
48890         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
48891         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
48892         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
48893
48894         [BZ #16677]
48895         * math/s_nextafter.c (__nextafter): Do not return value from
48896         overflowing computation.
48897         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
48898         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
48899         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
48900         Likewise.
48901         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
48902         Likewise.
48903         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
48904         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
48905
48906 2014-03-11  Roland McGrath  <roland@hack.frob.com>
48907
48908         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
48909         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
48910         Move sfi_sp use from the load-multiple (that no longer sets sp) to
48911         the new mov targetting sp.
48912
48913 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48914
48915         [BZ #16683]
48916         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
48917         Define it for static builds as well.
48918         (NO_BZERO_IMPL): Likewise.
48919
48920 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48921
48922         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
48923         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
48924         multiarch strspn for PPC64.
48925         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
48926         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
48927         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
48928         (__libc_ifunc_impl_list): Likewise.
48929         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
48930         multiarch optimizations
48931         * string/strspn.c (strspn): Using macro to redefine symbol name.
48932
48933 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48934             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48935
48936         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
48937         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
48938         multiarch strncat for PPC64.
48939         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
48940         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
48941         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
48942         (__libc_ifunc_impl_list): Likewise.
48943         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
48944         multiarch optimizations
48945
48946 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48947
48948         [BZ #16639]
48949         * nscd/nscd.service: Make service type forking.
48950
48951 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48952
48953         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
48954         sign in non default rounding modes.
48955         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
48956
48957 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
48958
48959         * math/libm-test.inc (ALL_RM_TEST): New macro.
48960         (ceil_test): Use ALL_RM_TEST.
48961         (cimag_test): Likewise.
48962         (conj_test): Likewise.
48963         (copysign_test): Likewise.
48964         (cproj_test): Likewise.
48965         (creal_test): Likewise.
48966         (fabs_test): Likewise.
48967         (floor_test): Likewise.
48968         (fmax_test): Likewise.
48969         (fmin_test): Likewise.
48970         (fmod_test): Likewise.
48971         (fpclassify_test): Likewise.
48972         (frexp_test): Likewise.
48973         (ilogb_test): Likewise.
48974         (isfinite_test): Likewise.
48975         (finite_test): Likewise.
48976         (isgreater_test): Likewise.
48977         (isgreaterequal_test): Likewise.
48978         (isinf_test): Likewise.
48979         (isless_test): Likewise.
48980         (islessequal_test): Likewise.
48981         (islessgreater_test): Likewise.
48982         (isnan_test): Likewise.
48983         (isnormal_test): Likewise.
48984         (issignaling_test): Likewise.
48985         (isunordered_test): Likewise.
48986         (logb_test): Likewise.
48987         (logb_downward_test_data): Remove.
48988         (logb_test_downward): Likewise.
48989         (lround_test): Use ALL_RM_TEST.
48990         (llround_test): Likewise.
48991         (modf_test): Likewise.
48992         (nexttoward_test): Likewise.
48993         (remainder_test): Likewise.
48994         (drem_test): Likewise.
48995         (remainder_tonearest_test_data): Likewise.
48996         (remainder_test_tonearest): Likewise.
48997         (drem_test_tonearest): Likewise.
48998         (remainder_towardzero_test_data): Likewise.
48999         (remainder_test_towardzero): Likewise.
49000         (drem_test_towardzero): Likewise.
49001         (remainder_downward_test_data): Likewise.
49002         (remainder_test_downward): Likewise.
49003         (drem_test_downward): Likewise.
49004         (remainder_upward_test_data): Likewise.
49005         (remainder_test_upward): Likewise.
49006         (drem_test_upward): Likewise.
49007         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49008         (round_test): Use ALL_RM_TEST.
49009         (signbit_test): Likewise.
49010         (trunc_test): Likewise.
49011         (significand_test): Likewise.
49012         (main): Don't call removed functions.
49013
49014 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49015
49016         [BZ #16674]
49017         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49018         || __USE_XOPEN2K8].
49019         (ILL_ILLOPN): Likewise.
49020         (ILL_ILLADR): Likewise.
49021         (ILL_ILLTRP): Likewise.
49022         (ILL_PRVOPC): Likewise.
49023         (ILL_PRVREG): Likewise.
49024         (ILL_COPROC): Likewise.
49025         (ILL_BADSTK): Likewise.
49026         (FPE_INTDIV): Likewise.
49027         (FPE_INTOVF): Likewise.
49028         (FPE_FLTDIV): Likewise.
49029         (FPE_FLTOVF): Likewise.
49030         (FPE_FLTUND): Likewise.
49031         (FPE_FLTRES): Likewise.
49032         (FPE_FLTINV): Likewise.
49033         (FPE_FLTSUB): Likewise.
49034         (SEGV_MAPERR): Likewise.
49035         (SEGV_ACCERR): Likewise.
49036         (BUS_ADRALN): Likewise.
49037         (BUS_ADRERR): Likewise.
49038         (BUS_OBJERR): Likewise.
49039         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49040         (TRAP_TRACE): Likewise.
49041         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49042         __USE_XOPEN2K8].
49043         (CLD_KILLED): Likewise.
49044         (CLD_DUMPED): Likewise.
49045         (CLD_TRAPPED): Likewise.
49046         (CLD_STOPPED): Likewise.
49047         (CLD_CONTINUED): Likewise.
49048         (POLL_IN): Likewise.
49049         (POLL_OUT): Likewise.
49050         (POLL_MSG): Likewise.
49051         (POLL_ERR): Likewise.
49052         (POLL_PRI): Likewise.
49053         (POLL_HUP): Likewise.
49054         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49055         Likewise.
49056         (ILL_ILLOPN): Likewise.
49057         (ILL_ILLADR): Likewise.
49058         (ILL_ILLTRP): Likewise.
49059         (ILL_PRVOPC): Likewise.
49060         (ILL_PRVREG): Likewise.
49061         (ILL_COPROC): Likewise.
49062         (ILL_BADSTK): Likewise.
49063         (FPE_INTDIV): Likewise.
49064         (FPE_INTOVF): Likewise.
49065         (FPE_FLTDIV): Likewise.
49066         (FPE_FLTOVF): Likewise.
49067         (FPE_FLTUND): Likewise.
49068         (FPE_FLTRES): Likewise.
49069         (FPE_FLTINV): Likewise.
49070         (FPE_FLTSUB): Likewise.
49071         (SEGV_MAPERR): Likewise.
49072         (SEGV_ACCERR): Likewise.
49073         (BUS_ADRALN): Likewise.
49074         (BUS_ADRERR): Likewise.
49075         (BUS_OBJERR): Likewise.
49076         (BUS_MCEERR_AR): Likewise.
49077         (BUS_MCEERR_AO): Likewise.
49078         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49079         (TRAP_TRACE): Likewise.
49080         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49081         __USE_XOPEN2K8].
49082         (CLD_KILLED): Likewise.
49083         (CLD_DUMPED): Likewise.
49084         (CLD_TRAPPED): Likewise.
49085         (CLD_STOPPED): Likewise.
49086         (CLD_CONTINUED): Likewise.
49087         (POLL_IN): Likewise.
49088         (POLL_OUT): Likewise.
49089         (POLL_MSG): Likewise.
49090         (POLL_ERR): Likewise.
49091         (POLL_PRI): Likewise.
49092         (POLL_HUP): Likewise.
49093         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49094         (ILL_ILLOPN): Likewise.
49095         (ILL_ILLADR): Likewise.
49096         (ILL_ILLTRP): Likewise.
49097         (ILL_PRVOPC): Likewise.
49098         (ILL_PRVREG): Likewise.
49099         (ILL_COPROC): Likewise.
49100         (ILL_BADSTK): Likewise.
49101         (FPE_INTDIV): Likewise.
49102         (FPE_INTOVF): Likewise.
49103         (FPE_FLTDIV): Likewise.
49104         (FPE_FLTOVF): Likewise.
49105         (FPE_FLTUND): Likewise.
49106         (FPE_FLTRES): Likewise.
49107         (FPE_FLTINV): Likewise.
49108         (FPE_FLTSUB): Likewise.
49109         (SEGV_MAPERR): Likewise.
49110         (SEGV_ACCERR): Likewise.
49111         (BUS_ADRALN): Likewise.
49112         (BUS_ADRERR): Likewise.
49113         (BUS_OBJERR): Likewise.
49114         (BUS_MCEERR_AR): Likewise.
49115         (BUS_MCEERR_AO): Likewise.
49116         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49117         (TRAP_TRACE): Likewise.
49118         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49119         __USE_XOPEN2K8].
49120         (CLD_KILLED): Likewise.
49121         (CLD_DUMPED): Likewise.
49122         (CLD_TRAPPED): Likewise.
49123         (CLD_STOPPED): Likewise.
49124         (CLD_CONTINUED): Likewise.
49125         (POLL_IN): Likewise.
49126         (POLL_OUT): Likewise.
49127         (POLL_MSG): Likewise.
49128         (POLL_ERR): Likewise.
49129         (POLL_PRI): Likewise.
49130         (POLL_HUP): Likewise.
49131         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49132         Likewise.
49133         (ILL_ILLOPN): Likewise.
49134         (ILL_ILLADR): Likewise.
49135         (ILL_ILLTRP): Likewise.
49136         (ILL_PRVOPC): Likewise.
49137         (ILL_PRVREG): Likewise.
49138         (ILL_COPROC): Likewise.
49139         (ILL_BADSTK): Likewise.
49140         (ILL_BADIADDR): Likewise.
49141         (ILL_BREAK): Likewise.
49142         (FPE_INTDIV): Likewise.
49143         (FPE_INTOVF): Likewise.
49144         (FPE_FLTDIV): Likewise.
49145         (FPE_FLTOVF): Likewise.
49146         (FPE_FLTUND): Likewise.
49147         (FPE_FLTRES): Likewise.
49148         (FPE_FLTINV): Likewise.
49149         (FPE_FLTSUB): Likewise.
49150         (FPE_DECOVF): Likewise.
49151         (FPE_DECDIV): Likewise.
49152         (FPE_DECERR): Likewise.
49153         (FPE_INVASC): Likewise.
49154         (FPE_INVDEC): Likewise.
49155         (SEGV_MAPERR): Likewise.
49156         (SEGV_ACCERR): Likewise.
49157         (SEGV_PSTKOVF): Likewise.
49158         (BUS_ADRALN): Likewise.
49159         (BUS_ADRERR): Likewise.
49160         (BUS_OBJERR): Likewise.
49161         (BUS_MCEERR_AR): Likewise.
49162         (BUS_MCEERR_AO): Likewise.
49163         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49164         (TRAP_TRACE): Likewise.
49165         (TRAP_BRANCH): Likewise.
49166         (TRAP_HWBKPT): Likewise.
49167         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49168         __USE_XOPEN2K8].
49169         (CLD_KILLED): Likewise.
49170         (CLD_DUMPED): Likewise.
49171         (CLD_TRAPPED): Likewise.
49172         (CLD_STOPPED): Likewise.
49173         (CLD_CONTINUED): Likewise.
49174         (POLL_IN): Likewise.
49175         (POLL_OUT): Likewise.
49176         (POLL_MSG): Likewise.
49177         (POLL_ERR): Likewise.
49178         (POLL_PRI): Likewise.
49179         (POLL_HUP): Likewise.
49180         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49181         (ILL_ILLOPN): Likewise.
49182         (ILL_ILLADR): Likewise.
49183         (ILL_ILLTRP): Likewise.
49184         (ILL_PRVOPC): Likewise.
49185         (ILL_PRVREG): Likewise.
49186         (ILL_COPROC): Likewise.
49187         (ILL_BADSTK): Likewise.
49188         (FPE_INTDIV): Likewise.
49189         (FPE_INTOVF): Likewise.
49190         (FPE_FLTDIV): Likewise.
49191         (FPE_FLTOVF): Likewise.
49192         (FPE_FLTUND): Likewise.
49193         (FPE_FLTRES): Likewise.
49194         (FPE_FLTINV): Likewise.
49195         (FPE_FLTSUB): Likewise.
49196         (SEGV_MAPERR): Likewise.
49197         (SEGV_ACCERR): Likewise.
49198         (BUS_ADRALN): Likewise.
49199         (BUS_ADRERR): Likewise.
49200         (BUS_OBJERR): Likewise.
49201         (BUS_MCEERR_AR): Likewise.
49202         (BUS_MCEERR_AO): Likewise.
49203         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49204         (TRAP_TRACE): Likewise.
49205         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49206         __USE_XOPEN2K8].
49207         (CLD_KILLED): Likewise.
49208         (CLD_DUMPED): Likewise.
49209         (CLD_TRAPPED): Likewise.
49210         (CLD_STOPPED): Likewise.
49211         (CLD_CONTINUED): Likewise.
49212         (POLL_IN): Likewise.
49213         (POLL_OUT): Likewise.
49214         (POLL_MSG): Likewise.
49215         (POLL_ERR): Likewise.
49216         (POLL_PRI): Likewise.
49217         (POLL_HUP): Likewise.
49218         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49219         (ILL_ILLOPN): Likewise.
49220         (ILL_ILLADR): Likewise.
49221         (ILL_ILLTRP): Likewise.
49222         (ILL_PRVOPC): Likewise.
49223         (ILL_PRVREG): Likewise.
49224         (ILL_COPROC): Likewise.
49225         (ILL_BADSTK): Likewise.
49226         (FPE_INTDIV): Likewise.
49227         (FPE_INTOVF): Likewise.
49228         (FPE_FLTDIV): Likewise.
49229         (FPE_FLTOVF): Likewise.
49230         (FPE_FLTUND): Likewise.
49231         (FPE_FLTRES): Likewise.
49232         (FPE_FLTINV): Likewise.
49233         (FPE_FLTSUB): Likewise.
49234         (SEGV_MAPERR): Likewise.
49235         (SEGV_ACCERR): Likewise.
49236         (BUS_ADRALN): Likewise.
49237         (BUS_ADRERR): Likewise.
49238         (BUS_OBJERR): Likewise.
49239         (BUS_MCEERR_AR): Likewise.
49240         (BUS_MCEERR_AO): Likewise.
49241         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49242         (TRAP_TRACE): Likewise.
49243         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49244         __USE_XOPEN2K8].
49245         (CLD_KILLED): Likewise.
49246         (CLD_DUMPED): Likewise.
49247         (CLD_TRAPPED): Likewise.
49248         (CLD_STOPPED): Likewise.
49249         (CLD_CONTINUED): Likewise.
49250         (POLL_IN): Likewise.
49251         (POLL_OUT): Likewise.
49252         (POLL_MSG): Likewise.
49253         (POLL_ERR): Likewise.
49254         (POLL_PRI): Likewise.
49255         (POLL_HUP): Likewise.
49256         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49257         (ILL_ILLOPN): Likewise.
49258         (ILL_ILLADR): Likewise.
49259         (ILL_ILLTRP): Likewise.
49260         (ILL_PRVOPC): Likewise.
49261         (ILL_PRVREG): Likewise.
49262         (ILL_COPROC): Likewise.
49263         (ILL_BADSTK): Likewise.
49264         (FPE_INTDIV): Likewise.
49265         (FPE_INTOVF): Likewise.
49266         (FPE_FLTDIV): Likewise.
49267         (FPE_FLTOVF): Likewise.
49268         (FPE_FLTUND): Likewise.
49269         (FPE_FLTRES): Likewise.
49270         (FPE_FLTINV): Likewise.
49271         (FPE_FLTSUB): Likewise.
49272         (SEGV_MAPERR): Likewise.
49273         (SEGV_ACCERR): Likewise.
49274         (BUS_ADRALN): Likewise.
49275         (BUS_ADRERR): Likewise.
49276         (BUS_OBJERR): Likewise.
49277         (BUS_MCEERR_AR): Likewise.
49278         (BUS_MCEERR_AO): Likewise.
49279         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49280         (TRAP_TRACE): Likewise.
49281         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49282         __USE_XOPEN2K8].
49283         (CLD_KILLED): Likewise.
49284         (CLD_DUMPED): Likewise.
49285         (CLD_TRAPPED): Likewise.
49286         (CLD_STOPPED): Likewise.
49287         (CLD_CONTINUED): Likewise.
49288         (POLL_IN): Likewise.
49289         (POLL_OUT): Likewise.
49290         (POLL_MSG): Likewise.
49291         (POLL_ERR): Likewise.
49292         (POLL_PRI): Likewise.
49293         (POLL_HUP): Likewise.
49294         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49295         (ILL_ILLOPN): Likewise.
49296         (ILL_ILLADR): Likewise.
49297         (ILL_ILLTRP): Likewise.
49298         (ILL_PRVOPC): Likewise.
49299         (ILL_PRVREG): Likewise.
49300         (ILL_COPROC): Likewise.
49301         (ILL_BADSTK): Likewise.
49302         (ILL_DBLFLT): Likewise.
49303         (ILL_HARDWALL): Likewise.
49304         (FPE_INTDIV): Likewise.
49305         (FPE_INTOVF): Likewise.
49306         (FPE_FLTDIV): Likewise.
49307         (FPE_FLTOVF): Likewise.
49308         (FPE_FLTUND): Likewise.
49309         (FPE_FLTRES): Likewise.
49310         (FPE_FLTINV): Likewise.
49311         (FPE_FLTSUB): Likewise.
49312         (SEGV_MAPERR): Likewise.
49313         (SEGV_ACCERR): Likewise.
49314         (BUS_ADRALN): Likewise.
49315         (BUS_ADRERR): Likewise.
49316         (BUS_OBJERR): Likewise.
49317         (BUS_MCEERR_AR): Likewise.
49318         (BUS_MCEERR_AO): Likewise.
49319         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49320         (TRAP_TRACE): Likewise.
49321         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49322         __USE_XOPEN2K8].
49323         (CLD_KILLED): Likewise.
49324         (CLD_DUMPED): Likewise.
49325         (CLD_TRAPPED): Likewise.
49326         (CLD_STOPPED): Likewise.
49327         (CLD_CONTINUED): Likewise.
49328         (POLL_IN): Likewise.
49329         (POLL_OUT): Likewise.
49330         (POLL_MSG): Likewise.
49331         (POLL_ERR): Likewise.
49332         (POLL_PRI): Likewise.
49333         (POLL_HUP): Likewise.
49334         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
49335         (ILL_ILLOPN): Likewise.
49336         (ILL_ILLADR): Likewise.
49337         (ILL_ILLTRP): Likewise.
49338         (ILL_PRVOPC): Likewise.
49339         (ILL_PRVREG): Likewise.
49340         (ILL_COPROC): Likewise.
49341         (ILL_BADSTK): Likewise.
49342         (FPE_INTDIV): Likewise.
49343         (FPE_INTOVF): Likewise.
49344         (FPE_FLTDIV): Likewise.
49345         (FPE_FLTOVF): Likewise.
49346         (FPE_FLTUND): Likewise.
49347         (FPE_FLTRES): Likewise.
49348         (FPE_FLTINV): Likewise.
49349         (FPE_FLTSUB): Likewise.
49350         (SEGV_MAPERR): Likewise.
49351         (SEGV_ACCERR): Likewise.
49352         (BUS_ADRALN): Likewise.
49353         (BUS_ADRERR): Likewise.
49354         (BUS_OBJERR): Likewise.
49355         (BUS_MCEERR_AR): Likewise.
49356         (BUS_MCEERR_AO): Likewise.
49357         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49358         (TRAP_TRACE): Likewise.
49359         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49360         __USE_XOPEN2K8].
49361         (CLD_KILLED): Likewise.
49362         (CLD_DUMPED): Likewise.
49363         (CLD_TRAPPED): Likewise.
49364         (CLD_STOPPED): Likewise.
49365         (CLD_CONTINUED): Likewise.
49366         (POLL_IN): Likewise.
49367         (POLL_OUT): Likewise.
49368         (POLL_MSG): Likewise.
49369         (POLL_ERR): Likewise.
49370         (POLL_PRI): Likewise.
49371         (POLL_HUP): Likewise.
49372         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
49373         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49374
49375         [BZ #16670]
49376         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
49377         before #include of <time.h>.
49378         [!__USE_XOPEN2K] (__need_timespec): Likewise.
49379         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
49380         (test-xfail-UNIX98/sched.h/conform): Likewise.
49381
49382 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49383
49384         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
49385         error absence of trapping exception support.
49386         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
49387
49388 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49389
49390         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
49391         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
49392         * timezone/Makefile (testdata): Move definition above include of
49393         Rules.
49394         (test-zones): New variable.
49395         (tests-special): Add zone files.
49396         (build-testdata): Use $(evaluate-test).
49397
49398         * elf/Makefile (tests-special): Rename tests to end with .out.
49399         ($(objpfx)noload-mem): Likewise.
49400         ($(objpfx)tst-leaks1-mem): Likewise.
49401         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
49402         * iconv/Makefile (xtests-special): Change test-iconvconfig to
49403         $(objpfx)test-iconvconfig.out.
49404         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
49405         set -e inside subshell and redirect output to file.
49406         * iconvdata/Makefile (generated): Rename tests to end with .out.
49407         Correct type.
49408         (tests-special): Rename tests to end with .out.
49409         ($(objpfx)mtrace-tst-loading): Likewise.
49410         * intl/Makefile (generated): Likewise.
49411         (tests-special): Likewise.
49412         ($(objpfx)mtrace-tst-gettext): Likewise.
49413         * misc/Makefile (generated): Likewise.
49414         (tests-special): Likewise.
49415         ($(objpfx)tst-error1-mem): Likewise.
49416         * nptl/Makefile (tests-special): Likewise.
49417         ($(objpfx)tst-stack3-mem): Likewise.
49418         (generated): Likewise.
49419         * posix/Makefile (generated): Likewise.
49420         (tests-special): Likewise.
49421         (xtests-special): Likewise.
49422         ($(objpfx)tst-fnmatch-mem): Likewise.
49423         ($(objpfx)bug-regex2-mem): Likewise.
49424         ($(objpfx)bug-regex14-mem): Likewise.
49425         ($(objpfx)bug-regex21-mem): Likewise.
49426         ($(objpfx)bug-regex31-mem): Likewise.
49427         ($(objpfx)tst-vfork3-mem): Likewise.
49428         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49429         ($(objpfx)tst-pcre-mem): Likewise.
49430         ($(objpfx)tst-boost-mem): Likewise.
49431         ($(objpfx)bug-ga2-mem): Likewise.
49432         ($(objpfx)bug-glob2-mem): Likewise.
49433         * resolv/Makefile (generate): Likewise.
49434         (tests-special): Likewise.
49435         (xtests-special): Likewise.
49436         (generated): Likewise.
49437         ($(objpfx)mtrace-tst-leaks): Likewise.
49438         ($(objpfx)mtrace-tst-leaks2): Likewise.
49439
49440         * scripts/merge-test-results.sh: New file.
49441         * Makefile (tests-special-notdir): New variable.
49442         (tests): Run merge-test-results.sh.
49443         (xtests): Likewise.
49444         * Rules (tests-special-notdir): New variable.
49445         (xtests-special-notdir): Likewise.
49446         (tests): Run merge-test-results.sh
49447         (xtests): Likewise.
49448
49449         * Makeconfig (test-xfail-name): New variable.
49450         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
49451         compute variable name for expected failures.
49452         * conform/Makefile (conformtest-headers-data): New variable.
49453         (conformtest-standards): Likewise.
49454         (conformtest-headers-ISO): Likewise.
49455         (conformtest-headers-ISO99): Likewise.
49456         (conformtest-headers-ISO11): Likewise.
49457         (conformtest-headers-POSIX): Likewise.
49458         (conformtest-headers-XPG3): Likewise.
49459         (conformtest-headers-XPG4): Likewise.
49460         (conformtest-headers-UNIX98): Likewise.
49461         (conformtest-headers-XOPEN2K): Likewise.
49462         (conformtest-headers-POSIX2008): Likewise.
49463         (conformtest-headers-XOPEN2K8): Likewise.
49464         (conformtest-header-list-base): Likewise.
49465         (conformtest-header-list-tests): Likewise.
49466         (conformtest-header-base): Likewise.
49467         (conformtest-header-tests): Likewise.
49468         (tests-special): Add $(conformtest-header-list-tests).  If
49469         [$(fast-check) && !$(cross-compiling)], add
49470         $(conformtest-header-tests) instead of
49471         $(objpfx)run-conformtest.out.
49472         (generated): Add $(conformtest-header-list-base).  If
49473         [$(fast-check) && !$(cross-compiling)], add
49474         $(conformtest-header-base).  Remove previous setting.
49475         ($(conformtest-header-list-tests)): New target.
49476         (test-xfail-run-conformtest): Remove variable.
49477         ($(objpfx)run-conformtest.out): Remove target.
49478         (test-xfail-ISO11/complex.h/conform): New variable.
49479         (test-xfail-ISO11/stdalign.h/conform): Likewise.
49480         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
49481         (test-xfail-XPG3/varargs.h/conform): Likewise.
49482         (test-xfail-XPG4/varargs.h/conform): Likewise.
49483         (test-xfail-UNIX98/varargs.h/conform): Likewise.
49484         (test-xfail-XPG4/ndbm.h/conform): Likewise.
49485         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
49486         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
49487         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
49488         (test-xfail-XPG3/fcntl.h/conform): Likewise.
49489         (test-xfail-XPG3/ftw.h/conform): Likewise.
49490         (test-xfail-XPG3/grp.h/conform): Likewise.
49491         (test-xfail-XPG3/langinfo.h/conform): Likewise.
49492         (test-xfail-XPG3/limits.h/conform): Likewise.
49493         (test-xfail-XPG3/pwd.h/conform): Likewise.
49494         (test-xfail-XPG3/search.h/conform): Likewise.
49495         (test-xfail-XPG3/signal.h/conform): Likewise.
49496         (test-xfail-XPG3/stdio.h/conform): Likewise.
49497         (test-xfail-XPG3/stdlib.h/conform): Likewise.
49498         (test-xfail-XPG3/string.h/conform): Likewise.
49499         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
49500         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
49501         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
49502         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
49503         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
49504         (test-xfail-XPG3/sys/types.h/conform): Likewise.
49505         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
49506         (test-xfail-XPG3/termios.h/conform): Likewise.
49507         (test-xfail-XPG3/time.h/conform): Likewise.
49508         (test-xfail-XPG3/unistd.h/conform): Likewise.
49509         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
49510         (test-xfail-XPG4/fcntl.h/conform): Likewise.
49511         (test-xfail-XPG4/langinfo.h/conform): Likewise.
49512         (test-xfail-XPG4/netdb.h/conform): Likewise.
49513         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
49514         (test-xfail-XPG4/signal.h/conform): Likewise.
49515         (test-xfail-XPG4/stdio.h/conform): Likewise.
49516         (test-xfail-XPG4/stdlib.h/conform): Likewise.
49517         (test-xfail-XPG4/stropts.h/conform): Likewise.
49518         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
49519         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
49520         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
49521         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
49522         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
49523         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
49524         (test-xfail-XPG4/sys/time.h/conform): Likewise.
49525         (test-xfail-XPG4/sys/types.h/conform): Likewise.
49526         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
49527         (test-xfail-XPG4/termios.h/conform): Likewise.
49528         (test-xfail-XPG4/ucontext.h/conform): Likewise.
49529         (test-xfail-XPG4/unistd.h/conform): Likewise.
49530         (test-xfail-XPG4/utmpx.h/conform): Likewise.
49531         (test-xfail-POSIX/sched.h/conform): Likewise.
49532         (test-xfail-POSIX/signal.h/conform): Likewise.
49533         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49534         (test-xfail-POSIX/tar.h/conform): Likewise.
49535         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
49536         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
49537         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
49538         (test-xfail-UNIX98/netdb.h/conform): Likewise.
49539         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
49540         (test-xfail-UNIX98/sched.h/conform): Likewise.
49541         (test-xfail-UNIX98/signal.h/conform): Likewise.
49542         (test-xfail-UNIX98/stdio.h/conform): Likewise.
49543         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
49544         (test-xfail-UNIX98/stropts.h/conform): Likewise.
49545         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
49546         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
49547         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
49548         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
49549         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
49550         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
49551         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
49552         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
49553         (test-xfail-UNIX98/unistd.h/conform): Likewise.
49554         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
49555         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
49556         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
49557         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
49558         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
49559         (test-xfail-XOPEN2K/math.h/conform): Likewise.
49560         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
49561         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
49562         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
49563         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
49564         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
49565         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
49566         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
49567         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
49568         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
49569         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
49570         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
49571         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
49572         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
49573         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
49574         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
49575         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
49576         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
49577         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
49578         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
49579         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
49580         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
49581         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
49582         (test-xfail-POSIX2008/signal.h/conform): Likewise.
49583         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
49584         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
49585         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
49586         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
49587         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
49588         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
49589         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
49590         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
49591         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
49592         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
49593         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
49594         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
49595         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
49596         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
49597         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
49598         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
49599         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
49600         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
49601         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
49602         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
49603         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
49604         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
49605         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
49606         (conformtest-cc-flags): Likewise.
49607         ($(conformtest-header-tests): New target.
49608         * conform/check-header-lists.sh: New file.
49609         * conform/run-conformtest.sh: Remove.
49610
49611         * conform/conformtest.pl: Allow ' and \ in values given for
49612         constants.
49613         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
49614         inclusion.
49615         [POSIX] (sys/types.h): Likewise.
49616         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
49617         inclusion.
49618         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
49619         inclusion.
49620         * conform/data/signal.h-data (SIGIO): Remove expectation.
49621         [XPG3] (SIGBUS): Do not expect.
49622         [POSIX || XPG3] (SIGPOLL): Likewise.
49623         [POSIX || XPG3] (SIGPROF): Likewise.
49624         [POSIX || XPG3] (SIGSYS): Likewise.
49625         [XPG3] (SIGTRAP): Likewise.
49626         [POSIX || XPG3] (SIGURG): Likewise.
49627         [POSIX || XPG3] (SIGVTALRM): Likewise.
49628         [POSIX || XPG3] (SIGXCPU): Likewise.
49629         [POSIX || XPG3] (SIGXFSZ): Likewise.
49630         [POSIX] (SA_SIGINFO): Expect.
49631         [XPG3] (siginfo_t): Do not expect type or contents.
49632         [POSIX] (si_pid): Do not expect element.
49633         [POSIX] (si_uid): Likewise.
49634         [POSIX] (si_addr): Likewise.
49635         [POSIX] (si_status): Likewise.
49636         [POSIX] (si_band): Likewise.
49637         [XPG4] (si_value): Likewise.
49638         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
49639         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
49640         [POSIX || XPG3] (ILL_ILLADR): Likewise.
49641         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
49642         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
49643         [POSIX || XPG3] (ILL_PRVREG): Likewise.
49644         [POSIX || XPG3] (ILL_COPROC): Likewise.
49645         [POSIX || XPG3] (ILL_BADSTK): Likewise.
49646         [POSIX || XPG3] (FPE_INTDIV): Likewise.
49647         [POSIX || XPG3] (FPE_INTOVF): Likewise.
49648         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
49649         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
49650         [POSIX || XPG3] (FPE_FLTUND): Likewise.
49651         [POSIX || XPG3] (FPE_FLTRES): Likewise.
49652         [POSIX || XPG3] (FPE_FLTINV): Likewise.
49653         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
49654         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
49655         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
49656         [POSIX || XPG3] (BUS_ADRALN): Likewise.
49657         [POSIX || XPG3] (BUS_ADRERR): Likewise.
49658         [POSIX || XPG3] (BUS_OBJERR): Likewise.
49659         [POSIX || XPG3] (CLD_EXITED): Likewise.
49660         [POSIX || XPG3] (CLD_KILLED): Likewise.
49661         [POSIX || XPG3] (CLD_DUMPED): Likewise.
49662         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
49663         [POSIX || XPG3] (CLD_STOPPED): Likewise.
49664         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
49665         [POSIX || XPG3] (POLL_IN): Likewise.
49666         [POSIX || XPG3] (POLL_OUT): Likewise.
49667         [POSIX || XPG3] (POLL_MSG): Likewise.
49668         [POSIX || XPG3] (POLL_ERR): Likewise.
49669         [POSIX || XPG3] (POLL_PRI): Likewise.
49670         [POSIX || XPG3] (POLL_HUP): Likewise.
49671         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
49672         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
49673         (SIG*): Do not allow.
49674         [XPG3] (si_*): Likewise.
49675         [XPG3] (SI_*): Likewise.
49676         [XPG3 || XPG4] (sigev_*): Likewise.
49677         [XPG3 || XPG4] (SIGEV_*): Likewise.
49678         [XPG3 || XPG4] (sival_*): Likewise.
49679         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
49680         [POSIX || XPG3] (BUS_*): Likewise.
49681         [POSIX || XPG3] (CLD_*): Likewise.
49682         [POSIX || XPG3] (FPE_*): Likewise.
49683         [POSIX || XPG3] (ILL_*): Likewise.
49684         [POSIX || XPG3] (POLL_*): Likewise.
49685         [POSIX || XPG3] (SEGV_*): Likewise.
49686         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
49687         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
49688         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
49689         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
49690         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
49691         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
49692         Specify type and value.
49693         (TVERSLEN): Likewise.
49694         (REGTYPE): Likewise.
49695         (AREGTYPE): Likewise.
49696         (LNKTYPE): Likewise.
49697         (SYMTYPE): Likewise.
49698         (CHRTYPE): Likewise.
49699         (BLKTYPE): Likewise.
49700         (DIRTYPE): Likewise.
49701         (FIFOTYPE): Likewise.
49702         (CONTTYPE): Likewise.
49703         (TSUID): Likewise.
49704         (TSGID): Likewise.
49705         (TSVTX): Likewise.
49706         (TUREAD): Likewise.
49707         (TUWRITE): Likewise.
49708         (TUEXEC): Likewise.
49709         (TGREAD): Likewise.
49710         (TGWRITE): Likewise.
49711         (TGEXEC): Likewise.
49712         (TOREAD): Likewise.
49713         (TOWRITE): Likewise.
49714         (TOEXEC): Likewise.
49715         [POSIX] (TSVTX): Expect constant.
49716
49717 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
49718
49719         * Makefile (tests): Change dependencies to ....
49720         (tests-special): ... additions to this variable.
49721         (tests): Depend on $(tests-special).
49722         * Makerules (check-abi-list): New variable.
49723         (check-abi): Depend on $(check-abi-list).
49724         [$(subdir) = elf] (tests-special): Add
49725         $(objpfx)check-abi-libc.out.
49726         [$(build-shared) = yes && subdir] (tests-special): Add
49727         $(check-abi-list).
49728         [$(build-shared) = yes && subdir] (tests): Do not depend on
49729         check-abi.
49730         * Rules (tests): Depend on $(tests-special).
49731         (xtests): Depend on $(xtests-special).
49732         * catgets/Makefile (tests): Change dependencies to ....
49733         (tests-special): ... additions to this variable.
49734         * conform/Makefile (tests): Change dependencies to ....
49735         (tests-special): ... additions to this variable.
49736         * elf/Makefile (tests): Change dependencies to ....
49737         (tests-special): ... additions to this variable.
49738         * grp/Makefile (tests): Change dependencies to ....
49739         (tests-special): ... additions to this variable.
49740         * iconv/Makefile (xtests): Change dependencies to ....
49741         (xtests-special): ... additions to this variable.
49742         * iconvdata/Makefile (tests): Change dependencies to ....
49743         (tests-special): ... additions to this variable.
49744         * intl/Makefile (tests): Change dependencies to ....
49745         (tests-special): ... additions to this variable.  Also add
49746         $(objpfx)tst-gettext.out.
49747         * io/Makefile (tests): Change dependencies to ....
49748         (tests-special): ... additions to this variable.
49749         * libio/Makefile (tests): Change dependencies to ....
49750         (tests-special): ... additions to this variable.
49751         * malloc/Makefile (tests): Change dependencies to ....
49752         (tests-special): ... additions to this variable.
49753         * misc/Makefile (tests): Change dependencies to ....
49754         (tests-special): ... additions to this variable.
49755         * nptl/Makefile (tests): Change dependencies to ....
49756         (tests-special): ... additions to this variable.
49757         * nptl_db/Makefile (tests): Change dependencies to ....
49758         (tests-special): ... additions to this variable.
49759         * posix/Makefile (tests): Change dependencies to ....
49760         (tests-special): ... additions to this variable.
49761         (xtests): Change dependencies to ....
49762         (xtests-special): ... additions to this variable.
49763         * resolv/Makefile (tests): Change dependencies to ....
49764         (tests-special): ... additions to this variable.
49765         (xtests): Change dependencies to ....
49766         (xtests-special): ... additions to this variable.
49767         * stdio-common/Makefile (tests): Change dependencies to ....
49768         (tests-special): ... additions to this variable.
49769         (do-tst-unbputc): Remove target.
49770         (do-tst-printf): Likewise.
49771         * stdlib/Makefile (tests): Change dependencies to ....
49772         (tests-special): ... additions to this variable.
49773         * string/Makefile (tests): Change dependencies to ....
49774         (tests-special): ... additions to this variable.
49775         * sysdeps/x86/Makefile (tests): Change dependencies to ....
49776         (tests-special): ... additions to this variable.
49777
49778         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
49779         whole file.
49780         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
49781         whole file.
49782         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
49783         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
49784
49785         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
49786         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
49787         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
49788         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
49789         * conform/data/libgen.h-data [XPG3]: Likewise.
49790         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
49791         * conform/data/ndbm.h-data [XPG3]: Likewise.
49792         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49793         * conform/data/netdb.h-data [XPG3]: Likewise.
49794         * conform/data/netinet/in.h-data [XPG3]: Likewise.
49795         * conform/data/poll.h-data [XPG3]: Likewise.
49796         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
49797         * conform/data/strings.h-data [XPG3]: Likewise.
49798         * conform/data/stropts.h-data [XPG3]: Likewise.
49799         * conform/data/sys/mman.h-data [XPG3]: Likewise.
49800         * conform/data/sys/resource.h-data [XPG3]: Likewise.
49801         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
49802         Likewise.
49803         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
49804         * conform/data/sys/time.h-data [XPG3]: Likewise.
49805         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
49806         * conform/data/sys/uio.h-data [XPG3]: Likewise.
49807         * conform/data/sys/un.h-data [XPG3]: Likewise.
49808         * conform/data/syslog.h-data [XPG3]: Likewise.
49809         * conform/data/ucontext.h-data [XPG3]: Likewise.
49810         * conform/data/utmpx.h-data [XPG3]: Likewise.
49811         * conform/data/varargs.h-data [UNIX98]: Enable file.
49812
49813         * manual/Makefile (INSTALL_INFO): Remove variable setting.
49814
49815         * math/libm-test.inc (struct test_f_f_data): Move expected results
49816         into structure for each rounding mode.
49817         (struct test_ff_f_data): Likewise.
49818         (struct test_ff_f_data_nexttoward): Likewise.
49819         (struct test_fi_f_data): Likewise.
49820         (struct test_fl_f_data): Likewise.
49821         (struct test_if_f_data): Likewise.
49822         (struct test_fff_f_data): Likewise.
49823         (struct test_c_f_data): Likewise.
49824         (struct test_f_f1_data): Likewise.
49825         (struct test_fF_f1_data): Likewise.
49826         (struct test_ffI_f1_data): Likewise.
49827         (struct test_c_c_data): Likewise.
49828         (struct test_cc_c_data): Likewise.
49829         (struct test_f_i_data): Likewise.
49830         (struct test_ff_i_data): Likewise.
49831         (struct test_f_l_data): Likewise.
49832         (struct test_f_L_data): Likewise.
49833         (struct test_fFF_11_data): Likewise.
49834         (RM_): New macro.
49835         (RM_FE_DOWNWARD): Likewise.
49836         (RM_FE_TONEAREST): Likewise.
49837         (RM_FE_TOWARDZERO): Likewise.
49838         (RM_FE_UPWARD): Likewise.
49839         (RUN_TEST_LOOP_f_f): Update references to expected results.
49840         (RUN_TEST_LOOP_2_f): Likewise.
49841         (RUN_TEST_LOOP_fff_f): Likewise.
49842         (RUN_TEST_LOOP_c_f): Likewise.
49843         (RUN_TEST_LOOP_f_f1): Likewise.
49844         (RUN_TEST_LOOP_fF_f1): Likewise.
49845         (RUN_TEST_LOOP_fI_f1): Likewise.
49846         (RUN_TEST_LOOP_ffI_f1): Likewise.
49847         (RUN_TEST_LOOP_c_c): Likewise.
49848         (RUN_TEST_LOOP_cc_c): Likewise.
49849         (RUN_TEST_LOOP_f_i): Likewise.
49850         (RUN_TEST_LOOP_f_i_tg): Likewise.
49851         (RUN_TEST_LOOP_ff_i_tg): Likewise.
49852         (RUN_TEST_LOOP_f_b): Likewise.
49853         (RUN_TEST_LOOP_f_b_tg): Likewise.
49854         (RUN_TEST_LOOP_f_l): Likewise.
49855         (RUN_TEST_LOOP_f_L): Likewise.
49856         (RUN_TEST_LOOP_fFF_11): Likewise.
49857         * math/gen-libm-test.pl (parse_args): Output four copies of
49858         expected results for each test.
49859
49860         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
49861         (__ASSUME_UTIMES): Remove.
49862         * sysdeps/unix/sysv/linux/tile/kernel-features.h
49863         (__ASSUME_UTIMES): Likewise.
49864
49865         * math/gen-auto-libm-tests.c: Update comment on output format.
49866         (output_for_one_input_case): Generate before-rounding and
49867         after-rounding information as conditions on output flags not
49868         floating-point format.
49869         * math/auto-libm-test-out: Regenerated.
49870         * math/gen-libm-test.pl (cond_value): New function.
49871         (or_cond_value): Use cond_value.
49872         (generate_testfile): Handle conditional exceptions.
49873
49874 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
49875
49876         * math/libm-test.inc (max_valid_error): New variable.
49877         (init_max_error): Take new argument specifying whether function
49878         results are exactly determined.  Set max_valid_error and bound
49879         other variables for errors based on this argument.
49880         (set_max_error): Do not record results above max_valid_error.
49881         (check_float_internal): Only accept errors of up to 0.5ulps if
49882         also at most max_valid_error.
49883         (START): Take new argument EXACT and pass it to init_max_error.
49884         (acos_test): Update call to START.
49885         (acos_test_tonearest): Likewise.
49886         (acos_test_towardzero): Likewise.
49887         (acos_test_downward): Likewise.
49888         (acos_test_upward): Likewise.
49889         (acosh_test): Likewise.
49890         (asin_test): Likewise.
49891         (asin_test_tonearest): Likewise.
49892         (asin_test_towardzero): Likewise.
49893         (asin_test_downward): Likewise.
49894         (asin_test_upward): Likewise.
49895         (asinh_test): Likewise.
49896         (atan_test): Likewise.
49897         (atanh_test): Likewise.
49898         (atan2_test): Likewise.
49899         (cabs_test): Likewise.
49900         (cacos_test): Likewise.
49901         (cacosh_test): Likewise.
49902         (carg_test): Likewise.
49903         (casin_test): Likewise.
49904         (casinh_test): Likewise.
49905         (catan_test): Likewise.
49906         (catanh_test): Likewise.
49907         (cbrt_test): Likewise.
49908         (ccos_test): Likewise.
49909         (ccosh_test): Likewise.
49910         (ceil_test): Likewise.
49911         (cexp_test): Likewise.
49912         (cimag_test): Likewise.
49913         (clog_test): Likewise.
49914         (clog10_test): Likewise.
49915         (conj_test): Likewise.
49916         (copysign_test): Likewise.
49917         (cos_test): Likewise.
49918         (cos_test_tonearest): Likewise.
49919         (cos_test_towardzero): Likewise.
49920         (cos_test_downward): Likewise.
49921         (cos_test_upward): Likewise.
49922         (cosh_test): Likewise.
49923         (cosh_test_tonearest): Likewise.
49924         (cosh_test_towardzero): Likewise.
49925         (cosh_test_downward): Likewise.
49926         (cosh_test_upward): Likewise.
49927         (cpow_test): Likewise.
49928         (cproj_test): Likewise.
49929         (creal_test): Likewise.
49930         (csin_test): Likewise.
49931         (csinh_test): Likewise.
49932         (csqrt_test): Likewise.
49933         (ctan_test): Likewise.
49934         (ctan_test_tonearest): Likewise.
49935         (ctan_test_towardzero): Likewise.
49936         (ctan_test_downward): Likewise.
49937         (ctan_test_upward): Likewise.
49938         (ctanh_test): Likewise.
49939         (ctanh_test_tonearest): Likewise.
49940         (ctanh_test_towardzero): Likewise.
49941         (ctanh_test_downward): Likewise.
49942         (ctanh_test_upward): Likewise.
49943         (erf_test): Likewise.
49944         (erfc_test): Likewise.
49945         (exp_test): Likewise.
49946         (exp_test_tonearest): Likewise.
49947         (exp_test_towardzero): Likewise.
49948         (exp_test_downward): Likewise.
49949         (exp_test_upward): Likewise.
49950         (exp10_test): Likewise.
49951         (exp10_test_tonearest): Likewise.
49952         (exp10_test_towardzero): Likewise.
49953         (exp10_test_downward): Likewise.
49954         (exp10_test_upward): Likewise.
49955         (pow10_test): Likewise.
49956         (exp2_test): Likewise.
49957         (expm1_test): Likewise.
49958         (expm1_test_tonearest): Likewise.
49959         (expm1_test_towardzero): Likewise.
49960         (expm1_test_downward): Likewise.
49961         (expm1_test_upward): Likewise.
49962         (fabs_test): Likewise.
49963         (fdim_test): Likewise.
49964         (floor_test): Likewise.
49965         (fma_test): Likewise.
49966         (fma_test_towardzero): Likewise.
49967         (fma_test_downward): Likewise.
49968         (fma_test_upward): Likewise.
49969         (fmax_test): Likewise.
49970         (fmin_test): Likewise.
49971         (fmod_test): Likewise.
49972         (fpclassify_test): Likewise.
49973         (frexp_test): Likewise.
49974         (hypot_test): Likewise.
49975         (ilogb_test): Likewise.
49976         (isfinite_test): Likewise.
49977         (finite_test): Likewise.
49978         (isgreater_test): Likewise.
49979         (isgreaterequal_test): Likewise.
49980         (isinf_test): Likewise.
49981         (isless_test): Likewise.
49982         (islessequal_test): Likewise.
49983         (islessgreater_test): Likewise.
49984         (isnan_test): Likewise.
49985         (isnormal_test): Likewise.
49986         (issignaling_test): Likewise.
49987         (isunordered_test): Likewise.
49988         (j0_test): Likewise.
49989         (j1_test): Likewise.
49990         (jn_test): Likewise.
49991         (ldexp_test): Likewise.
49992         (lgamma_test): Likewise.
49993         (gamma_test): Likewise.
49994         (lrint_test): Likewise.
49995         (lrint_test_tonearest): Likewise.
49996         (lrint_test_towardzero): Likewise.
49997         (lrint_test_downward): Likewise.
49998         (lrint_test_upward): Likewise.
49999         (llrint_test): Likewise.
50000         (llrint_test_tonearest): Likewise.
50001         (llrint_test_towardzero): Likewise.
50002         (llrint_test_downward): Likewise.
50003         (llrint_test_upward): Likewise.
50004         (log_test): Likewise.
50005         (log10_test): Likewise.
50006         (log1p_test): Likewise.
50007         (log2_test): Likewise.
50008         (logb_test): Likewise.
50009         (logb_test_downward): Likewise.
50010         (lround_test): Likewise.
50011         (llround_test): Likewise.
50012         (modf_test): Likewise.
50013         (nearbyint_test): Likewise.
50014         (nextafter_test): Likewise.
50015         (nexttoward_test): Likewise.
50016         (pow_test): Likewise.
50017         (pow_test_tonearest): Likewise.
50018         (pow_test_towardzero): Likewise.
50019         (pow_test_downward): Likewise.
50020         (pow_test_upward): Likewise.
50021         (remainder_test): Likewise.
50022         (drem_test): Likewise.
50023         (remainder_test_tonearest): Likewise.
50024         (drem_test_tonearest): Likewise.
50025         (remainder_test_towardzero): Likewise.
50026         (drem_test_towardzero): Likewise.
50027         (remainder_test_downward): Likewise.
50028         (drem_test_downward): Likewise.
50029         (remainder_test_upward): Likewise.
50030         (drem_test_upward): Likewise.
50031         (remquo_test): Likewise.
50032         (rint_test): Likewise.
50033         (rint_test_tonearest): Likewise.
50034         (rint_test_towardzero): Likewise.
50035         (rint_test_downward): Likewise.
50036         (rint_test_upward): Likewise.
50037         (round_test): Likewise.
50038         (scalb_test): Likewise.
50039         (scalbn_test): Likewise.
50040         (scalbln_test): Likewise.
50041         (signbit_test): Likewise.
50042         (sin_test): Likewise.
50043         (sin_test_tonearest): Likewise.
50044         (sin_test_towardzero): Likewise.
50045         (sin_test_downward): Likewise.
50046         (sin_test_upward): Likewise.
50047         (sincos_test): Likewise.
50048         (sinh_test): Likewise.
50049         (sinh_test_tonearest): Likewise.
50050         (sinh_test_towardzero): Likewise.
50051         (sinh_test_downward): Likewise.
50052         (sinh_test_upward): Likewise.
50053         (sqrt_test): Likewise.
50054         (sqrt_test_tonearest): Likewise.
50055         (sqrt_test_towardzero): Likewise.
50056         (sqrt_test_downward): Likewise.
50057         (sqrt_test_upward): Likewise.
50058         (tan_test): Likewise.
50059         (tan_test_tonearest): Likewise.
50060         (tan_test_towardzero): Likewise.
50061         (tan_test_downward): Likewise.
50062         (tan_test_upward): Likewise.
50063         (tanh_test): Likewise.
50064         (tgamma_test): Likewise.
50065         (trunc_test): Likewise.
50066         (y0_test): Likewise.
50067         (y1_test): Likewise.
50068         (yn_test): Likewise.
50069         (significand_test): Likewise.
50070
50071         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50072         individual tests in comment.
50073         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50074         (prev_max_error): New variable.
50075         (prev_real_max_error): Likewise.
50076         (prev_imag_max_error): Likewise.
50077         (compare_ulp_data): Don't refer to test names in comment.
50078         (find_test_ulps): Remove function.
50079         (find_function_ulps): Likewise.
50080         (find_complex_function_ulps): Likewise.
50081         (init_max_error): Take function name as argument.  Look up ulps
50082         for that function.
50083         (print_ulps): Remove function.
50084         (print_max_error): Use prev_max_error instead of calling
50085         find_function_ulps.
50086         (print_complex_max_error): Use prev_real_max_error and
50087         prev_imag_max_error instead of calling find_complex_function_ulps.
50088         (check_float_internal): Take max_ulp parameter instead of calling
50089         find_test_ulps.  Don't call print_ulps.
50090         (check_float): Update call to check_float_internal.
50091         (check_complex): Update calls to check_float_internal.
50092         (START): Pass argument to init_max_error.
50093         * math/gen-libm-test.pl (%results): Don't include "kind"
50094         information.
50095         (parse_ulps): Don't handle ulps of individual tests.
50096         (print_ulps_file): Likewise.
50097         (output_ulps): Likewise.
50098         * math/README.libm-test: Update.
50099         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50100         individual tests.
50101         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50102         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50103         * sysdeps/arm/libm-test-ulps: Likewise.
50104         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50105         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50106         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50107         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50108         * sysdeps/microblaze/libm-test-ulps: Likewise.
50109         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50110         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50111         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50112         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50113         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50114         * sysdeps/sh/libm-test-ulps: Likewise.
50115         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50116         * sysdeps/tile/libm-test-ulps: Likewise.
50117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50118
50119 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50120
50121         * math/libm-test.inc (print_complex_max_error): Check separately
50122         whether real and imaginary errors are within allowed range and
50123         pass 0 to print_complex_function_ulps instead of value within
50124         allowed range.
50125
50126 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50127
50128         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50129         formatting.
50130         (get_handles_fopen): Likewise.
50131         (do_write_test): Likewise.
50132
50133         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50134
50135         * libio/fileops.c (do_ftell): Use cached offset when
50136         available.
50137         * libio/iofwide.c (do_ftell_wide): Likewise.
50138         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50139         _IO_file_attach.
50140         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50141
50142         [BZ #16532]
50143         * libio/libioP.h (get_file_offset): New function.
50144         * libio/fileops.c (get_file_offset): Likewise.
50145         (do_ftell): Likewise.
50146         (_IO_new_file_seekoff): Split out ftell logic.
50147         * libio/wfileops.c (do_ftell_wide): Likewise.
50148         (_IO_wfile_seekoff): Split out ftell logic.
50149         * libio/tst-ftell-active-handler.c: New test case.
50150         * libio/Makefile (tests): Add it.
50151
50152 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50153
50154         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50155         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50156
50157 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50158
50159         [BZ #16639]
50160         * nscd/connections.c (nscd_init): Call do_exit.
50161         (start_threads): Call do_exit and notify_parent.
50162         (begin_drop_privileges): Call do_exit.
50163         (finish_drop_privileges): Likewise.
50164         * nscd/selinux.c (preserve_capabilities): Likewise.
50165         (install_real_capabilities): Likewise.
50166         (nscd_selinux_enabled): Likewise.
50167         (avc_create_thread): Likewise.
50168         (avc_alloc_lock): Likewise.
50169         (nscd_avc_init): Likewise.
50170         * nscd/nscd.c (parent_fd): New static variable.
50171         (main): Create a pipe between parent and child processes.
50172         Skip closing parent_fd.
50173         (monitor_child): New function.
50174         (do_exit): Likewise.
50175         (notify_parent): Likewise.
50176         * nscd/nscd.h (notify_parent): Likewise.
50177         (do_exit): Likewise.
50178
50179 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50180
50181         * malloc/malloc.c (__libc_calloc): Revert last change.
50182
50183 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50184
50185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50186
50187 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50188
50189         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50190         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50191         implementation.
50192         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50193         (__libc_ifunc_impl_list): Likewise.
50194         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50195         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50196         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50197         * string/strrchr.c: Define STRRCHR.
50198
50199 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50200
50201         * benchtest/bench-strtok.c (simple_strtok): Delete.
50202         (strtok_string): Use as benchmark.
50203         * string/strtok (STRTOK): New macro.
50204
50205 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50206
50207         * manual/threads.texi: Add header and standard comments to all
50208         functions.
50209
50210         * elf/dl-lookup.c (check_match): New function.
50211         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50212         (do_lookup_x): Remove nested function check_match. Use non-nested
50213         function check_match.
50214
50215 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50216
50217         * csu/Makefile (generated, before-compile): Use += rather than =.
50218         * catgets/Makefile (generated, generated-dirs): Likewise.
50219         * debug/Makefile (generated): Likewise.
50220         * dlfcn/Makefile (generated): Likewise.
50221         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50222         * iconvdata/Makefile (before-compile, generated): Likewise.
50223         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50224         * libio/Makefile (generated): Likewise.
50225         * malloc/Makefile (generated): Likewise.
50226         * manual/Makefile (generated, generated-dirs): Likewise.
50227         * misc/Makefile (generated): Likewise.
50228         * posix/Makefile (generated): Likewise.
50229         * resolv/Makefile (generated): Likewise.
50230         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50231         * timezone/Makefile (generated, generated-dirs): Likewise.
50232
50233         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50234
50235 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50236
50237         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50238         power8 implementation.
50239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50240         file: POWER8 llround ifunc implementation.
50241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50242         (__lllround): Add POWER8 implementation.
50243         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50244         POWER8 llround implementation.
50245
50246         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50247         power8 implementation.
50248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50249         file: POWER8 llrint ifunc implementation.
50250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50251         Add POWER8 implementation.
50252         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50253         POWER8 llrint implementation.
50254
50255         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50256         power8 implementation.
50257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50258         file: POWER8 finite ifunc implementation.
50259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50260         Add POWER8 implementation.
50261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50262         Likewise.
50263         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50264         POWER8 finite implementation.
50265         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50266
50267         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50268         power8 implementation.
50269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50270         file: POWER8 isinf ifunc implementation.
50271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50272         POWER8 implementation.
50273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50274         Likewise.
50275         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50276         isinf implementation.
50277         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50278
50279         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50280         (INIT_ARCH): Add hwcap2 initialization.
50281         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50282         power8 implementation.
50283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50284         file: POWER8 isnan ifunc implementation.
50285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50286         POWER8 implementation.
50287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50288         Likewise.
50289         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50290         isnan implementation.
50291         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50292
50293 2014-02-27  Joey Ye  <joey.ye@arm.com>
50294
50295         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50296         (_FP_NANFRAC_Q): Set to zero.
50297
50298 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50299
50300         [BZ #16623]
50301         * math/auto-libm-test-in: New test inputs.
50302         * math/auto-libm-test-out: Regenerate.
50303         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50304         and DA.
50305         (__cos): Likewise.
50306         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
50307
50308 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
50309
50310         * scripts/evaluate-test.sh: Take new argument indicating whether
50311         failure is expected.
50312         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
50313         indicating whether failure is expected.
50314         * conform/Makefile (test-xfail-run-conformtest): New variable.
50315         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
50316         level.
50317         * posix/Makefile (test-xfail-annexc): New variable.
50318         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
50319
50320 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
50321
50322         * argp/Makefile: Include Makeconfig immediately after defining
50323         subdir.
50324         * assert/Makefile: Likewise.
50325         * benchtests/Makefile: Likewise.
50326         * catgets/Makefile: Likewise.
50327         * conform/Makefile: Likewise.
50328         * crypt/Makefile: Likewise.
50329         * csu/Makefile: Likewise.
50330         (all): Remove target.
50331         * ctype/Makefile: Include Makeconfig immediately after defining
50332         subdir.
50333         * debug/Makefile: Likewise.
50334         * dirent/Makefile: Likewise.
50335         * dlfcn/Makefile: Likewise.
50336         * gmon/Makefile: Likewise.
50337         * gnulib/Makefile: Likewise.
50338         * grp/Makefile: Likewise.
50339         * gshadow/Makefile: Likewise.
50340         * hesiod/Makefile: Likewise.
50341         * hurd/Makefile: Likewise.
50342         (all): Remove target.
50343         * iconvdata/Makefile: Include Makeconfig immediately after
50344         defining subdir.
50345         * inet/Makefile: Likewise.
50346         * intl/Makefile: Likewise.
50347         * io/Makefile: Likewise.
50348         * libio/Makefile: Likewise.
50349         (all): Remove target.
50350         * locale/Makefile: Include Makeconfig immediately after defining
50351         subdir.
50352         * login/Makefile: Likewise.
50353         * mach/Makefile: Likewise.
50354         (all): Remove target.
50355         * malloc/Makefile: Include Makeconfig immediately after defining
50356         subdir.
50357         (all): Remove target.
50358         * manual/Makefile: Include Makeconfig immediately after defining
50359         subdir.
50360         * math/Makefile: Likewise.
50361         * misc/Makefile: Likewise.
50362         * nis/Makefile: Likewise.
50363         * nss/Makefile: Likewise.
50364         * po/Makefile: Likewise.
50365         (all): Remove target.
50366         * posix/Makefile: Include Makeconfig immediately after defining
50367         subdir.
50368         * pwd/Makefile: Likewise.
50369         * resolv/Makefile: Likewise.
50370         * resource/Makefile: Likewise.
50371         * rt/Makefile: Likewise.
50372         * setjmp/Makefile: Likewise.
50373         * shadow/Makefile: Likewise.
50374         * signal/Makefile: Likewise.
50375         * socket/Makefile: Likewise.
50376         * soft-fp/Makefile: Likewise.
50377         * stdio-common/Makefile: Likewise.
50378         * stdlib/Makefile: Likewise.
50379         * streams/Makefile: Likewise.
50380         * string/Makefile: Likewise.
50381         * sunrpc/Makefile: Likewise.
50382         (all): Remove target.
50383         * sysvipc/Makefile: Include Makeconfig immediately after defining
50384         subdir.
50385         * termios/Makefile: Likewise.
50386         * time/Makefile: Likewise.
50387         * timezone/Makefile: Likewise.
50388         (all): Remove target.
50389         * wcsmbs/Makefile: Include Makeconfig immediately after defining
50390         subdir.
50391         * wctype/Makefile: Likewise.
50392
50393 2014-02-26  Steve Ellcey  <sellcey@mips.com>
50394
50395         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
50396         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
50397         (libc_feholdexcept_setround_mips): Ditto.
50398         (libc_feholdsetround): New.
50399         (libc_feholdsetroundf): New.
50400         (libc_feholdsetroundl): New.
50401         (libc_feupdateenv_test_mips): New.
50402         (libc_feupdateenv_test): New.
50403         (libc_feupdateenv_testf): New.
50404         (libc_feupdateenv_testl): New.
50405         (libc_feresetround): New.
50406         (libc_feresetroundf): New.
50407         (libc_feresetroundl): New.
50408         (libc_fetestexcept_mips): New.
50409         (libc_fetestexcept): New.
50410         (libc_fetestexceptf): New.
50411         (libc_fetestexceptl): New.
50412         (HAVE_RM_CTX): New.
50413         (libc_feholdexcept_setround_mips_ctx): New.
50414         (libc_feholdexcept_setround_ctx): New.
50415         (libc_feholdexcept_setroundf_ctx): New.
50416         (libc_feholdexcept_setroundl_ctx): New.
50417         (libc_fesetenv_mips_ctx): New.
50418         (libc_fesetenv_ctx): New.
50419         (libc_fesetenv_ctxf): New.
50420         (libc_fesetenv_ctxl): New.
50421         (libc_feupdateenv_mips_ctx): New.
50422         (libc_feupdateenv_ctx): New.
50423         (libc_feupdateenvf_ctx): New.
50424         (libc_feupdateenvl_ctx): New.
50425         (libc_feholdsetround_mips_ctx): New.
50426         (libc_feholdsetround_ctx): New.
50427         (libc_feholdsetroundf_ctx): New.
50428         (libc_feholdsetroundl_ctx): New.
50429         (libc_feresetround_mips_ctx): New.
50430         (libc_feresetround_ctx): New.
50431         (libc_feresetroundf_ctx): New.
50432         (libc_feresetroundl_ctx): New.
50433
50434 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
50435
50436         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
50437
50438         * manual/ipc.texi: New file.
50439         * manual/Makefile (chapters): Add ipc.
50440         * manual/job.texi: Add "Inter-Process Communication" to next.
50441         * manual/process.texi: Add "Inter-Process Communication" to prev.
50442
50443 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50444
50445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50446
50447 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
50448
50449         * malloc/malloc.c (__libc_calloc): Simplify implementation.
50450
50451         * manual/arith.texi: Fix spaces after sentences.
50452         * manual/charset.texi: Likewise.
50453         * manual/errno.texi: Likewise.
50454         * manual/install.texi: Likewise.
50455         * manual/llio.texi: Likewise.
50456         * manual/locale.texi: Likewise.
50457         * manual/maint.texi: Likewise.
50458         * manual/math.texi: Likewise.
50459         * manual/memory.texi: Likewise.
50460         * manual/message.texi: Likewise.
50461         * manual/probes.texi: Likewise.
50462         * manual/resource.texi: Likewise.
50463         * manual/signal.texi: Likewise.
50464         * manual/socket.texi: Likewise.
50465         * manual/stdio.texi: Likewise.
50466         * manual/string.texi: Likewise.
50467         * manual/time.texi: Likewise.
50468         * manual/users.texi: Likewise.
50469
50470 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
50471
50472         [BZ #16632]
50473         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
50474         _DEFAULT_SOURCE is defined.
50475
50476 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
50477             Carlos O'Donell  <carlos@redhat.com>
50478
50479         [BZ #16613]
50480         * elf/dl-tls.c (_dl_count_modids): New function.
50481         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
50482         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
50483         audit library and increment generation counter.
50484         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
50485         * elf/tst-audit9.c: New file.
50486         * elf/tst-auditmod9a.c: New file.
50487         * elf/tst-auditmod9b.c: New file.
50488         * elf/Makefile: Add rules to build and run tst-audit9.
50489
50490 2014-02-25  Florian Weimer  <fweimer@redhat.com>
50491
50492         [BZ #15347]
50493         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
50494
50495 2014-02-25  Will Newton  <will.newton@linaro.org>
50496
50497         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
50498         (__longjmp): Restore sp and lr before restoring callee
50499         saved registers.  Add longjmp and longjmp_target
50500         SystemTap probe point.
50501         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
50502         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
50503         Define to zero to match jmpbuf layout.
50504         * sysdeps/arm/setjmp.S: Include stap-probe.h.
50505         (__sigsetjmp): Save sp and lr before saving callee
50506         saved registers.  Add setjmp SystemTap probe point.
50507
50508 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
50509
50510         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
50511
50512 2014-02-24  Andreas Schwab  <schwab@suse.de>
50513
50514         [BZ #15804]
50515         * elf/pldd.c (wait_for_ptrace_stop): New function.
50516         (main): Call it after attaching.
50517
50518 2014-02-22  Roland McGrath  <roland@hack.frob.com>
50519
50520         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
50521         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
50522         Versions files is now verboten.
50523         * hurd/Versions (libc: GLIBC_2.0):
50524         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
50525         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
50526         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
50527         * mach/Versions: Likewise.
50528
50529         * csu/Versions: Remove unused %include.
50530         * resolv/Versions: Likewise.
50531
50532 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
50533
50534         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
50535         ($(objpfx)check-local-headers.out): Likewise.
50536         ($(objpfx)begin-end-check.out): Likewise.
50537         * Makerules (check-abi-%.out): Likewise.
50538         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
50539         ($(objpfx)test2.cat): Likewise.
50540         ($(objpfx)de/libc.cat): Likewise.
50541         ($(objpfx)test-gencat.out): Likewise.
50542         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
50543         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
50544         ($(objpfx)noload-mem): Likewise.
50545         ($(objpfx)tst-pathopt.out): Likewise.
50546         ($(objpfx)tst-rtld-load-self.out): Likewise.
50547         ($(objpfx)tst-array1-cmp.out): Likewise.
50548         ($(objpfx)tst-array1-static-cmp.out): Likewise.
50549         ($(objpfx)tst-array2-cmp.out): Likewise.
50550         ($(objpfx)tst-array3-cmp.out): Likewise.
50551         ($(objpfx)tst-array4-cmp.out): Likewise.
50552         ($(objpfx)tst-array5-cmp.out): Likewise.
50553         ($(objpfx)tst-array5-static-cmp.out): Likewise.
50554         ($(objpfx)check-textrel.out): Likewise.
50555         ($(objpfx)check-execstack.out): Likewise.
50556         ($(objpfx)check-localplt.out): Likewise.
50557         ($(objpfx)order2-cmp.out): Likewise.
50558         ($(objpfx)tst-leaks1-mem): Likewise.
50559         ($(objpfx)tst-leaks1-static-mem): Likewise.
50560         ($(objpfx)tst-initorder-cmp.out): Likewise.
50561         ($(objpfx)tst-initorder2-cmp.out): Likewise.
50562         ($(objpfx)tst-unused-dep.out): Likewise.
50563         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
50564         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
50565         * iconv/Makefile (test-iconvconfig): Likewise.
50566         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
50567         ($(objpfx)iconv-test.out): Likewise.
50568         ($(objpfx)tst-tables.out): Likewise.
50569         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
50570         ($(objpfx)tst-gettext.out): Likewise.
50571         ($(objpfx)tst-translit.out): Likewise.
50572         ($(objpfx)tst-gettext2.out): Likewise.
50573         ($(objpfx)tst-gettext4.out): Likewise.
50574         ($(objpfx)tst-gettext6.out): Likewise.
50575         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
50576         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
50577         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
50578         ($(objpfx)tst-fopenloc-mem.out): Likewise.
50579         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
50580         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
50581         * posix/Makefile ($(objpfx)globtest.out): Likewise.
50582         ($(objpfx)wordexp-tst.out): Likewise.
50583         ($(objpfx)annexc.out): Likewise.
50584         ($(objpfx)tst-fnmatch-mem): Likewise.
50585         ($(objpfx)bug-regex2-mem): Likewise.
50586         ($(objpfx)bug-regex14-mem): Likewise.
50587         ($(objpfx)bug-regex21-mem): Likewise.
50588         ($(objpfx)bug-regex31-mem): Likewise.
50589         ($(objpfx)tst-vfork3-mem): Likewise.
50590         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
50591         ($(objpfx)tst-pcre-mem): Likewise.
50592         ($(objpfx)tst-boost-mem): Likewise.
50593         ($(objpfx)tst-getconf.out): Likewise.
50594         ($(objpfx)bug-ga2-mem): Likewise.
50595         ($(objpfx)bug-glob2-mem): Likewise.
50596         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
50597         ($(objpfx)mtrace-tst-leaks2): Likewise.
50598         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
50599         ($(objpfx)tst-printf.out): Likewise.
50600         ($(objpfx)tst-setvbuf1.out): Likewise.
50601         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
50602         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
50603         ($(objpfx)tst-fmtmsg.out): Likewise.
50604         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
50605         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
50606
50607         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
50608         * bits/sigaction.h [__USE_MISC]: Likewise.
50609         * bits/waitstatus.h: Update #endif comments.
50610         * ctype/ctype.h: Likewise.
50611         * dirent/dirent.h: Likewise.
50612         [__USE_MISC]: Remove redundant conditionals.
50613         * grp/grp.h: Update #endif comments.
50614         [__USE_GNU]: Remove redundant conditionals.
50615         [__USE_MISC]: Likewise.
50616         * inet/netinet/in.h [__USE_GNU]: Likewise.
50617         * io/sys/stat.h [__USE_MISC]: Likewise.
50618         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
50619         * libio/bits/stdio.h: Update #endif comments.
50620         [__USE_MISC]: Remove redundant conditionals.
50621         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
50622         * libio/stdio.h: Update #endif comments.
50623         [__USE_MISC]: Remove redundant conditionals.
50624         * math/bits/math-finite.h [__USE_MISC]: Likewise.
50625         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
50626         * math/math.h: Update #else and #endif comments.
50627         [__USE_MISC]: Remove redundant conditionals.
50628         * misc/sys/uio.h: Update #endif comments.
50629         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
50630         * posix/glob.h [__USE_MISC]: Likewise.
50631         * posix/sys/types.h: Update #endif comments.
50632         [__USE_MISC]: Remove redundant conditionals.
50633         * posix/sys/wait.h: Update #endif comments.
50634         [__USE_MISC]: Remove redundant conditionals.
50635         * posix/unistd.h: Update #endif comments.
50636         [__USE_MISC]: Remove redundant conditionals.
50637         * pwd/pwd.h [__USE_GNU]: Likewise.
50638         [__USE_MISC]: Likewise.
50639         * resolv/netdb.h [__USE_GNU]: Likewise.
50640         * signal/signal.h: Update #endif comments.
50641         [__USE_MISC]: Remove redundant conditionals.
50642         * stdlib/stdlib.h: Update #else and #endif comments.
50643         [__USE_MISC]: Remove redundant conditionals.
50644         [__USE_GNU]: Likewise.
50645         * string/bits/string2.h [__USE_MISC]: Likewise.
50646         * string/string.h: Update #endif comments.
50647         [__USE_MISC]: Remove redundant conditionals.
50648         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
50649         Likewise.
50650         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
50651         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
50652         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
50653         Likewise.
50654         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
50655         Likewise.
50656         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
50657         comments.
50658         [__USE_MISC]: Remove redundant conditionals.
50659         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
50660         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
50661         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
50662         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
50663         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
50664         Likewise.
50665         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
50666         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
50667         Likewise.
50668         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
50669         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
50670         Likewise.
50671         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
50672         Likewise.
50673         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
50674         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
50675         Likewise.
50676         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
50677         Likewise.
50678         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
50679         * sysdeps/x86/bits/string.h: Update #endif comments.
50680         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
50681         conditionals.
50682         * time/sys/time.h: Update #endif comments.
50683         * time/time.h: Likewise.
50684         [__USE_MISC]: Remove redundant conditionals.
50685
50686 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
50687
50688         [BZ #16600]
50689         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
50690
50691 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
50692
50693         * Versions.def (librt): Add GLIBC_2.17.
50694
50695 2014-02-21  Adam Conrad  <adconrad@0c3.net>
50696
50697         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
50698         synonym for _SYS_AUXV_H to allow direct inclusion.
50699         * sysdeps/sparc/bits/hwcap.h: Likewise.
50700         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
50701         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
50702         * sysdeps/sparc/sysdep.h: Likewise.
50703
50704 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50705
50706         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
50707
50708 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
50709
50710         * benchtests/bench-strrchr.c: Print length instead of position.
50711
50712 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
50713
50714         [BZ #16611]
50715         * sysdeps/unix/sysv/linux/kernel-features.h
50716         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
50717         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
50718         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
50719         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
50720         Likewise.
50721         [__i386__ || __powerpc__ || __sh__ || __sparc__]
50722         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50723         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
50724         (__ASSUME_SENDMMSG): Define instead of using previous
50725         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
50726         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50727         (__ASSUME_SENDMMSG_SYSCALL): Define.
50728         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50729         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
50730         Likewise.
50731         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50732         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50733         Likewise.
50734         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50735         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50736         Likewise.
50737         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
50738         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50739         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50740         [__ASSUME_SENDMMSG]: Change conditionals to
50741         [__ASSUME_SENDMMSG_SOCKETCALL].
50742         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50743         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
50744         Define.
50745         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50746         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
50747         Likewise.
50748         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
50749         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
50750         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
50751         [!__ASSUME_SENDMMSG]: Change conditional to
50752         [!__ASSUME_SENDMMSG_SOCKETCALL].
50753         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50754         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
50755         Define.
50756
50757         [BZ #16610]
50758         * sysdeps/unix/sysv/linux/kernel-features.h
50759         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
50760         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
50761         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
50762         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
50763         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
50764         [__i386__ || __sparc__]
50765         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50766         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
50767         (__ASSUME_RECVMMSG): Define instead of using previous
50768         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
50769         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50770         (__ASSUME_RECVMMSG_SYSCALL): Define.
50771         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50772         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50773         Likewise.
50774         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50775         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50776         Likewise.
50777         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50778         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50779         Likewise.
50780         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
50781         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50782         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50783         [__ASSUME_RECVMMSG]: Change condition to
50784         [__ASSUME_RECVMMSG_SOCKETCALL].
50785         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50786         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50787         Define.
50788         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
50789         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50790         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
50791         Likewise.
50792         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
50793         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
50794         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
50795         [!__ASSUME_RECVMMSG]: Change condition to
50796         [!__ASSUME_RECVMMSG_SOCKETCALL].
50797         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50798         (__ASSUME_RECVMMSG_SYSCALL): Define.
50799
50800         [BZ #16609]
50801         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
50802         __powerpc__ || __s390__ || __sh__ || __sparc__]
50803         (__ASSUME_SOCKETCALL): Define.
50804         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
50805         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
50806         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
50807         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
50808         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
50809         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
50810         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
50811         (__ASSUME_ACCEPT4): Define instead of using previous
50812         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
50813         __powerpc__ || __sparc__ || __s390__)] condition.
50814         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50815         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50816         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
50817         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50818         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50819         [!__ASSUME_ACCEPT4]: Change condition to
50820         [!__ASSUME_ACCEPT4_SOCKETCALL].
50821         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
50822         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
50823         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
50824         * sysdeps/unix/sysv/linux/arm/kernel-features.h
50825         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
50826         __ASSUME_ACCEPT4_SYSCALL.
50827         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
50828         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
50829         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
50830         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
50831         __ASSUME_ACCEPT4_SYSCALL.
50832         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
50833         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
50834         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
50835         [__ASSUME_ACCEPT4]: Change condition to
50836         [__ASSUME_ACCEPT4_SOCKETCALL].
50837         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
50838         (__ASSUME_SOCKETCALL): Define.
50839         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
50840         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
50841         (__ASSUME_SOCKETCALL): Define.
50842         (__ASSUME_ACCEPT4): Remove.
50843         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
50844         Define.
50845         * sysdeps/unix/sysv/linux/mips/kernel-features.h
50846         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
50847         Likewise.
50848         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50849         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
50850
50851         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
50852         macro.
50853         (HWCAP_ARM_LPAE): Likewise.
50854         (HWCAP_ARM_EVTSTRM): Likewise.
50855         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
50856         Add vpfd32, lpae and evtstrm.
50857         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
50858         Increase to 22.
50859
50860 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
50861
50862         * math/auto-libm-test-in: Add tests of clog10.
50863         * math/auto-libm-test-out: Regenerated.
50864         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
50865         * sysdeps/i386/fpu/libm-test-ulps: Update.
50866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50867
50868 2014-02-18  Andreas Schwab  <schwab@suse.de>
50869
50870         [BZ #16574]
50871         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
50872         Store non-zero if the second buffer was newly allocated.
50873         (send_dg): Likewise.
50874         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
50875         to send_vc and send_dg.
50876         (res_nsend): Pass NULL for ansp2_malloced.
50877         * resolv/res_query.c (__libc_res_nquery): Add parameter
50878         answerp2_malloced and pass it down to __libc_res_nsend.
50879         (res_nquery): Pass additional NULL to __libc_res_nquery.
50880         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
50881         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
50882         second answer buffer if answerp2_malloced was set.
50883         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
50884         (__libc_res_nquerydomain): Add parameter
50885         answerp2_malloced and pass it down to __libc_res_nquery.
50886         (res_nquerydomain): Pass additional NULL to
50887         __libc_res_nquerydomain.
50888         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
50889         additional NULL to __libc_res_nsend and __libc_res_nquery.
50890         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
50891         additional NULL to __libc_res_nsearch.
50892         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
50893         parameter of __libc_res_nsearch to check for separately allocated
50894         second buffer.
50895         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
50896         __libc_res_nquery.
50897         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
50898         additional NULL to __libc_res_nquery.
50899         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
50900         __libc_res_nsearch.
50901         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
50902         * include/resolv.h: Update prototypes of __libc_res_nquery,
50903         __libc_res_nsearch, __libc_res_nsend.
50904
50905 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
50906
50907         * math/auto-libm-test-in: Add tests of fma.
50908         * math/auto-libm-test-out: Regenerated.
50909         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
50910         (fma_towardzero_test_data): Likewise.
50911         (fma_downward_test_data): Likewise.
50912         (fma_upward_test_data): Likewise.
50913         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
50914         mpc_mode.
50915         (rounding_modes): Add values for new field.
50916         (func_calc_method): Add value mpfr_fff_f.
50917         (func_calc_desc): Add mpfr_fff_f union field.
50918         (test_function): Add field exact_args.
50919         (FUNC): Add macro argument EXACT_ARGS.
50920         (FUNC_mpfr_f_f): Update call to FUNC.
50921         (FUNC_mpfr_f_f): Likewise.
50922         (FUNC_mpfr_ff_f): Likewise.
50923         (FUNC_mpfr_if_f): Likewise.
50924         (FUNC_mpc_c_f): Likewise.
50925         (FUNC_mpc_c_c): Likewise.
50926         (test_functions): Add fma.  Update calls to FUNC.
50927         (handle_input_arg): Add argument exact_args.
50928         (add_test): Update call to handle_input_arg.
50929         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
50930         (output_for_one_input_case): Update call to calc_generic_results.
50931         Recalculate exact zero results in each rounding mode.
50932
50933         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
50934         non-negative before setting low bit.
50935         * math/auto-libm-test-in: Mark one asin test possibly having
50936         spurious underflow.
50937         * math/auto-libm-test-out: Regenerated.
50938         * sysdeps/i386/fpu/libm-test-ulps: Update.
50939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50940
50941 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
50942
50943         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
50944         * sysdeps/unix/sysv/linux/microblaze: Move directory from
50945         ports/sysdeps/unix/sysv/linux/microblaze.
50946         * README: Add missing listing for microblaze*-*-linux-gnu.
50947
50948 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
50949
50950         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
50951         duplicate code
50952
50953 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
50954
50955         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
50956         * sysdeps/unix/sysv/linux/ia64: Move directory from
50957         ports/sysdeps/unix/sysv/linux/ia64.
50958         * README: Update listing for ia64-*-linux-gnu.
50959
50960 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
50961             Joseph Myers  <joseph@codesourcery.com>
50962
50963         * Makeconfig (test-name): New variable.
50964         (evaluate-test): Likewise.
50965         * Makerules (do-test-clean): Remove .test-result files.
50966         (common-mostlyclean): Likewise.
50967         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
50968         * scripts/evaluate-test.sh: New file.
50969
50970 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
50971
50972         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
50973         separate $(objpfx)tst-fopenloc-cmp.out and
50974         $(objpfx)tst-fopenloc-mem.out targets.
50975         (tests): Update dependencies.
50976         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
50977         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
50978         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
50979         (tst-rxspencer-no-utf8-ARGS): New variable.
50980         (tst-rxspencer-no-utf8-ENV): Likewise.
50981         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
50982         instead of $(objpfx)tst-rxspencer-mem.
50983         ($(objpfx)tst-rxspencer-mem): Change target to
50984         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
50985         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
50986         * posix/tst-rxspencer-no-utf8.c: New file.
50987
50988         * elf/Makefile ($(objpfx)order.out): Remove rule.
50989         [$(run-built-tests) = yes] (tests): Depend on
50990         $(objpfx)order-cmp.out.
50991         ($(objpfx)order-cmp.out): New rule.
50992         [$(run-built-tests) = yes] (tests): Depend on
50993         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
50994         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
50995         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
50996         $(objpfx)tst-array5-static-cmp.out.
50997         ($(objpfx)tst-array1.out): Remove rule.
50998         ($(objpfx)tst-array1-cmp.out): New rule.
50999         ($(objpfx)tst-array1-static.out): Remove rule.
51000         ($(objpfx)tst-array1-static-cmp.out): New rule.
51001         ($(objpfx)tst-array2.out): Remove rule.
51002         ($(objpfx)tst-array2-cmp.out): New rule.
51003         ($(objpfx)tst-array3.out): Remove rule.
51004         ($(objpfx)tst-array3-cmp.out): New rule.
51005         ($(objpfx)tst-array4.out): Remove rule.
51006         ($(objpfx)tst-array4-cmp.out): New rule.
51007         ($(objpfx)tst-array5.out): Remove rule.
51008         ($(objpfx)tst-array5-cmp.out): New rule.
51009         ($(objpfx)tst-array5-static.out): Remove rule.
51010         ($(objpfx)tst-array5-static-cmp.out): New rule.
51011         [$(run-built-tests) = yes] (tests): Depend on
51012         $(objpfx)order2-cmp.out.
51013         ($(objpfx)order2.out): Remove rule.
51014         ($(objpfx)order2-cmp.out): New rule.
51015         ($(objpfx)tst-initorder.out): Remove rule.
51016         [$(run-built-tests) = yes] (tests): Depend on
51017         $(objpfx)tst-initorder-cmp.out.
51018         ($(objpfx)tst-initorder-cmp.out): New rule.
51019         ($(objpfx)tst-initorder2.out): Remove rule.
51020         [$(run-built-tests) = yes] (tests): Depend on
51021         $(objpfx)tst-initorder2-cmp.out.
51022         ($(objpfx)tst-initorder2-cmp.out): New rule.
51023         [$(run-built-tests) = yes] (tests): Depend on
51024         $(objpfx)tst-unused-dep-cmp.out.
51025         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51026         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51027         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51028         on $(objpfx)tst-setvbuf1-cmp.out.
51029         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51030         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51031         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51032         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51033         ($(objpfx)tst-svc.out): Remove rule.
51034         ($(objpfx)tst-svc-cmp.out): New rule.
51035
51036 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51037
51038         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51039         * ctype/ctype.h [__USE_MISC]: Likewise.
51040         * dirent/dirent.h [__USE_MISC]: Likewise.
51041         * grp/grp.h [__USE_MISC]: Likewise.
51042         * io/fcntl.h [__USE_MISC]: Likewise.
51043         * io/sys/stat.h [__USE_MISC]: Likewise.
51044         * libio/stdio.h [__USE_MISC]: Likewise.
51045         * posix/unistd.h [__USE_MISC]: Likewise.
51046         * pwd/pwd.h [__USE_MISC]: Likewise.
51047         * stdlib.h [__USE_MISC]: Likewise.
51048         * string/bits/string2.h [__USE_MISC]: Likewise.
51049         * string/string.h [__USE_MISC]: Likewise.
51050         * time/time.h [__USE_MISC]: Likewise.
51051
51052 2014-02-13  Andreas Schwab  <schwab@suse.de>
51053
51054         [BZ #16574]
51055         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51056         second answer buffer if it was separately allocated.
51057
51058 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51059
51060         * sysdeps/mips/math-tests.h: Include <features.h>.
51061         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51062         (ROUNDING_TESTS_long_double): Do not define.
51063         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51064         (EXCEPTION_TESTS_long_double): Likewise.
51065         * sysdeps/mips/mips64/libm-test-ulps: Update.
51066
51067         * include/features.h (__USE_BSD): Remove macro definitions.
51068         (__USE_SVID): Likewise.
51069         (_BSD_SOURCE): Likewise.
51070         (_SVID_SOURCE): Likewise.
51071         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51072         from definition of _DEFAULT_SOURCE.
51073         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51074         [_DEFAULT_SOURCE].
51075         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51076         * bits/mman.h [__USE_BSD]: Likewise.
51077         * bits/termios.h [__USE_BSD]: Likewise.
51078         * bits/waitstatus.h [__USE_BSD]: Likewise.
51079         * ctype/ctype.h [__USE_SVID]: Likewise.
51080         * dirent/dirent.h [__USE_BSD]: Likewise.
51081         * grp/grp.h [__USE_SVID]: Likewise.
51082         [__USE_BSD]: Likewise.
51083         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51084         * io/fcntl.h [__USE_BSD]: Likewise.
51085         * io/ftw.h [__USE_BSD]: Likewise.
51086         * io/sys/stat.h [__USE_BSD]: Likewise.
51087         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51088         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51089         * libio/stdio.h [__USE_SVID]: Likewise.
51090         [__USE_BSD]: Likewise.
51091         * math/math.h [__USE_SVID]: Likewise.
51092         [__USE_BSD]: Likewise.
51093         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51094         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51095         * misc/search.h [__USE_SVID]: Likewise.
51096         * misc/sys/mman.h [__USE_BSD]: Likewise.
51097         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51098         * misc/sys/uio.h [__USE_BSD]: Likewise.
51099         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51100         * posix/glob.h [__USE_BSD]: Likewise.
51101         * posix/regex.h [__USE_BSD]: Likewise.
51102         * posix/sys/types.h [__USE_BSD]: Likewise.
51103         [__USE_SVID]: Likewise.
51104         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51105         * posix/sys/wait.h [__USE_BSD]: Likewise.
51106         [__USE_SVID]: Likewise.
51107         * posix/unistd.h [__USE_BSD]: Likewise.
51108         [__USE_SVID]: Likewise.
51109         * pwd/pwd.h [__USE_SVID]: Likewise.
51110         * resolv/netdb.h [__USE_BSD]: Likewise.
51111         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51112         * signal/signal.h [__USE_BSD]: Likewise.
51113         [__USE_SVID]: Likewise.
51114         * socket/sys/socket.h [__USE_BSD]: Likewise.
51115         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51116         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51117         [__USE_SVID]: Likewise.
51118         * string/bits/string2.h [__USE_BSD]: Likewise.
51119         [__USE_SVID]: Likewise.
51120         * string/bits/string3.h [__USE_BSD]: Likewise.
51121         * string/endian.h [__USE_BSD]: Likewise.
51122         * string/string.h [__USE_SVID]: Likewise.
51123         [__USE_BSD]: Likewise.
51124         * string/strings.h [__USE_BSD]: Likewise.
51125         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51126         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51127         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51128         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51129         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51130         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51131         Likewise.
51132         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51133         Likewise.
51134         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51135         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51136         Likewise.
51137         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51138         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51139         Likewise.
51140         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51141         Likewise.
51142         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51143         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51144         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51145         Likewise.
51146         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51147         Likewise.
51148         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51149         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51150         * termios/termios.h [__USE_BSD]: Likewise.
51151         * time/sys/time.h [__USE_BSD]: Likewise.
51152         * time/time.h [__USE_BSD]: Likewise.
51153         [__USE_SVID]: Likewise.
51154
51155         * Makefile (subdir_targets): Remove subdir_lint.out.
51156
51157         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51158         (do-tst-printf): Likewise.
51159         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51160         $(objpfx)tst-printf.out.
51161
51162         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51163
51164         * Makerules (check-abi-%): Change target to
51165         $(objpfx)check-abi-%.out.
51166         (check-abi target): Update dependencies.
51167         (check-abi-pattern variable): Redirect output of diff to $@.
51168         (check-abi variable): Likewise.
51169         * elf/Makefile (check-abi): Update dependencies.
51170
51171         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51172         unused.
51173         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51174         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51175         subnormal range.
51176         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51177         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51178         value has largest subnormal exponent.
51179         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51180         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51181         * sysdeps/aarch64/soft-fp/sfp-machine.h
51182         (_FP_TININESS_AFTER_ROUNDING): New macro.
51183         * sysdeps/alpha/soft-fp/sfp-machine.h
51184         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51185         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51186         Likewise.
51187         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51188         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51189         * sysdeps/mips/soft-fp/sfp-machine.h
51190         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51191         * sysdeps/powerpc/soft-fp/sfp-machine.h
51192         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51193         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51194         Likewise.
51195         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51196         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51197         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51198         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51199         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51200         Likewise.
51201
51202 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51203
51204         [BZ #16545]
51205         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51206         model 1.
51207
51208 2014-02-12  Richard Henderson  <rth@redhat.com>
51209
51210         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51211         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51212         * sysdeps/unix/sysv/linux/alpha: Move directory from
51213         ports/sysdeps/unix/sysv/linux/alpha.
51214         * README: Update listing for alpha-*-linux-gnu.
51215
51216 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51217
51218         * include/features.h: Update comment documenting feature test
51219         macros.
51220         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51221         _DEFAULT_SOURCE.
51222         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51223         (_SVID_SOURCE): Likewise.
51224         (_DEFAULT_SOURCE): Update description of default features.
51225         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51226         with _GNU_SOURCE.
51227         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51228         (S_ISVTX): Likewise.
51229         * manual/math.texi (Mathematical Constants): Likewise.
51230         * manual/signal.texi (Interrupted Primitives): Likewise.
51231         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51232         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51233         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51234         Don't refer to _SVID_SOURCE in warning text.
51235
51236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51237
51238         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51239         already defined.
51240         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51241         * sysdeps/mips/dl-lookup.c: Remove.
51242         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51243
51244 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51245
51246         [BZ #16447]
51247         * math/auto-libm-test-in: Add testcase for expl.
51248         * math/auto-libm-test-out: Regenerate.
51249         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51250         calculation of unsafe.
51251         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51252
51253 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51254
51255         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51256         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51257         ports/sysdeps/unix/sysv/linux/aarch64.
51258         * README: Update listing for aarch64*-*-linux-gnu.
51259
51260 2014-02-11  Will Newton  <will.newton@linaro.org>
51261
51262         * manual/probes.texi (Mathematical Function Probes): Use
51263         "triggered" instead of "hit".
51264
51265         * manual/probes.texi (Internal Probes): Add documentation
51266         of setjmp, longjmp and longjmp_target probes.
51267
51268         * include/stap-probe.h: Add comment about probe argument
51269         format.
51270
51271         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51272         definition.  (tr_where, tr_freehook, tr_mallochook,
51273         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51274
51275 2014-02-11  David S. Miller  <davem@davemloft.net>
51276
51277         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51278         processing int_tests.
51279
51280 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51281
51282         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51283         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51284         * sysdeps/unix/sysv/linux/mips: Move directory from
51285         ports/sysdeps/unix/sysv/linux/mips.
51286         * README: Update listing for mips-*-linux-gnu and
51287         mips64-*-linux-gnu.
51288
51289 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51290
51291         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51292         * sysdeps/unix/sysv/linux/m68k: Move directory from
51293         ports/sysdeps/unix/sysv/linux/m68k.
51294         * README: Update listing for m68k-*-linux-gnu.
51295
51296 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51297
51298         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51299         * sysdeps/unix/sysv/linux/generic: Move directory from
51300         ports/sysdeps/unix/sysv/linux/generic.
51301         * sysdeps/unix/sysv/linux/tile: Move directory from
51302         ports/sysdeps/unix/sysv/linux/tile.
51303         * README: Update listing for tile*-*-linux-gnu.
51304
51305 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51306
51307         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
51308         __builtin_expect.
51309         * benchtests/bench-memmem.c (simple_memmem): Likewise.
51310         * catgets/open_catalog.c (__open_catalog): Likewise.
51311         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
51312         * debug/confstr_chk.c: Likewise.
51313         * debug/fread_chk.c (__fread_chk): Likewise.
51314         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
51315         * debug/getgroups_chk.c: Likewise.
51316         * debug/mbsnrtowcs_chk.c: Likewise.
51317         * debug/mbsrtowcs_chk.c: Likewise.
51318         * debug/mbstowcs_chk.c: Likewise.
51319         * debug/memcpy_chk.c: Likewise.
51320         * debug/memmove_chk.c: Likewise.
51321         * debug/mempcpy_chk.c: Likewise.
51322         * debug/memset_chk.c: Likewise.
51323         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
51324         * debug/strcat_chk.c (__strcat_chk): Likewise.
51325         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
51326         * debug/strncat_chk.c (__strncat_chk): Likewise.
51327         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
51328         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
51329         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
51330         * debug/wcpncpy_chk.c: Likewise.
51331         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
51332         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
51333         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
51334         * debug/wcsncpy_chk.c: Likewise.
51335         * debug/wcsnrtombs_chk.c: Likewise.
51336         * debug/wcsrtombs_chk.c: Likewise.
51337         * debug/wcstombs_chk.c: Likewise.
51338         * debug/wmemcpy_chk.c: Likewise.
51339         * debug/wmemmove_chk.c: Likewise.
51340         * debug/wmempcpy_chk.c: Likewise.
51341         * debug/wmemset_chk.c: Likewise.
51342         * dirent/scandirat.c (SCANDIRAT): Likewise.
51343         * dlfcn/dladdr1.c (dladdr1): Likewise.
51344         * dlfcn/dladdr.c (dladdr): Likewise.
51345         * dlfcn/dlclose.c (dlclose_doit): Likewise.
51346         * dlfcn/dlerror.c (__dlerror): Likewise.
51347         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
51348         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
51349         * dlfcn/dlopen.c (dlopen_doit): Likewise.
51350         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
51351         * dlfcn/dlsym.c (dlsym_doit): Likewise.
51352         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
51353         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
51354         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
51355         Likewise.
51356         * elf/dl-conflict.c: Likewise.
51357         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
51358         * elf/dl-dst.h: Likewise.
51359         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
51360         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
51361         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
51362         * elf/dl-init.c (call_init, _dl_init): Likewise.
51363         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
51364         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
51365         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
51366         Likewise.
51367         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
51368         Likewise.
51369         * elf/dl-minimal.c (__libc_memalign): Likewise.
51370         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
51371         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
51372         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
51373         * elf/dl-sym.c (do_sym): Likewise.
51374         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
51375         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
51376         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
51377         * elf/dl-writev.h (_dl_writev): Likewise.
51378         * elf/ldconfig.c (search_dir): Likewise.
51379         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
51380         (dl_main): Likewise.
51381         * elf/setup-vdso.h (setup_vdso): Likewise.
51382         * grp/compat-initgroups.c (compat_call): Likewise.
51383         * grp/fgetgrent.c (fgetgrent): Likewise.
51384         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
51385         * grp/putgrent.c (putgrent): Likewise.
51386         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
51387         Likewise.
51388         * hurd/hurdinit.c: Likewise.
51389         * iconvdata/8bit-gap.c (struct): Likewise.
51390         * iconvdata/ansi_x3.110.c : Likewise.
51391         * iconvdata/big5.c : Likewise.
51392         * iconvdata/big5hkscs.c : Likewise.
51393         * iconvdata/cp1255.c: Likewise.
51394         * iconvdata/cp1258.c : Likewise.
51395         * iconvdata/cp932.c : Likewise.
51396         * iconvdata/euc-cn.c: Likewise.
51397         * iconvdata/euc-jisx0213.c : Likewise.
51398         * iconvdata/euc-jp.c: Likewise.
51399         * iconvdata/euc-jp-ms.c : Likewise.
51400         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
51401         * iconvdata/gb18030.c : Likewise.
51402         * iconvdata/gbbig5.c (const): Likewise.
51403         * iconvdata/gbgbk.c: Likewise.
51404         * iconvdata/gbk.c : Likewise.
51405         * iconvdata/ibm1364.c : Likewise.
51406         * iconvdata/ibm930.c : Likewise.
51407         * iconvdata/ibm932.c: Likewise.
51408         * iconvdata/ibm933.c : Likewise.
51409         * iconvdata/ibm935.c : Likewise.
51410         * iconvdata/ibm937.c : Likewise.
51411         * iconvdata/ibm939.c : Likewise.
51412         * iconvdata/ibm943.c: Likewise.
51413         * iconvdata/iso_11548-1.c: Likewise.
51414         * iconvdata/iso-2022-cn.c : Likewise.
51415         * iconvdata/iso-2022-cn-ext.c : Likewise.
51416         * iconvdata/iso-2022-jp-3.c: Likewise.
51417         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
51418         * iconvdata/iso-2022-kr.c : Likewise.
51419         * iconvdata/iso646.c (gconv_end): Likewise.
51420         * iconvdata/iso_6937-2.c : Likewise.
51421         * iconvdata/iso_6937.c : Likewise.
51422         * iconvdata/iso8859-1.c: Likewise.
51423         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
51424         * iconvdata/shift_jisx0213.c : Likewise.
51425         * iconvdata/sjis.c : Likewise.
51426         * iconvdata/t.61.c : Likewise.
51427         * iconvdata/tcvn5712-1.c : Likewise.
51428         * iconvdata/tscii.c: Likewise.
51429         * iconvdata/uhc.c : Likewise.
51430         * iconvdata/unicode.c (gconv_end): Likewise.
51431         * iconvdata/utf-16.c (gconv_end): Likewise.
51432         * iconvdata/utf-32.c (gconv_end): Likewise.
51433         * iconvdata/utf-7.c (base64): Likewise.
51434         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
51435         * iconv/gconv_close.c (__gconv_close): Likewise.
51436         * iconv/gconv_open.c (__gconv_open): Likewise.
51437         * iconv/gconv_simple.c (internal_ucs4_loop_single)
51438         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
51439         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
51440         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
51441         (ucs4le_internal_loop_single): Likewise.
51442         * iconv/iconv.c (iconv): Likewise.
51443         * iconv/iconv_close.c: Likewise.
51444         * iconv/loop.c (SINGLE): Likewise.
51445         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
51446         * include/atomic.h: Likewise.
51447         * inet/inet6_option.c (option_alloc): Likewise.
51448         * intl/bindtextdom.c (set_binding_values): Likewise.
51449         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
51450         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
51451         * intl/localealias.c (read_alias_file): Likewise.
51452         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
51453         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
51454         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
51455         * libio/fmemopen.c (fmemopen): Likewise.
51456         * libio/iofgets.c (_IO_fgets): Likewise.
51457         * libio/iofgets_u.c (fgets_unlocked): Likewise.
51458         * libio/iofgetws.c (fgetws): Likewise.
51459         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
51460         * libio/iogetdelim.c (_IO_getdelim): Likewise.
51461         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
51462         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
51463         * locale/findlocale.c (_nl_find_locale): Likewise.
51464         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
51465         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
51466         Likewise.
51467         * locale/setlocale.c (setlocale): Likewise.
51468         * login/programs/pt_chown.c (main): Likewise.
51469         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
51470         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
51471         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
51472         (mmap, mmap64, mremap, munmap): Likewise.
51473         * math/e_exp2l.c: Likewise.
51474         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
51475         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
51476         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
51477         * math/s_catan.c (__catan): Likewise.
51478         * math/s_catanf.c (__catanf): Likewise.
51479         * math/s_catanh.c (__catanh): Likewise.
51480         * math/s_catanhf.c (__catanhf): Likewise.
51481         * math/s_catanhl.c (__catanhl): Likewise.
51482         * math/s_catanl.c (__catanl): Likewise.
51483         * math/s_ccosh.c (__ccosh): Likewise.
51484         * math/s_ccoshf.c (__ccoshf): Likewise.
51485         * math/s_ccoshl.c (__ccoshl): Likewise.
51486         * math/s_cexp.c (__cexp): Likewise.
51487         * math/s_cexpf.c (__cexpf): Likewise.
51488         * math/s_cexpl.c (__cexpl): Likewise.
51489         * math/s_clog10.c (__clog10): Likewise.
51490         * math/s_clog10f.c (__clog10f): Likewise.
51491         * math/s_clog10l.c (__clog10l): Likewise.
51492         * math/s_clog.c (__clog): Likewise.
51493         * math/s_clogf.c (__clogf): Likewise.
51494         * math/s_clogl.c (__clogl): Likewise.
51495         * math/s_csin.c (__csin): Likewise.
51496         * math/s_csinf.c (__csinf): Likewise.
51497         * math/s_csinh.c (__csinh): Likewise.
51498         * math/s_csinhf.c (__csinhf): Likewise.
51499         * math/s_csinhl.c (__csinhl): Likewise.
51500         * math/s_csinl.c (__csinl): Likewise.
51501         * math/s_csqrt.c (__csqrt): Likewise.
51502         * math/s_csqrtf.c (__csqrtf): Likewise.
51503         * math/s_csqrtl.c (__csqrtl): Likewise.
51504         * math/s_ctan.c (__ctan): Likewise.
51505         * math/s_ctanf.c (__ctanf): Likewise.
51506         * math/s_ctanh.c (__ctanh): Likewise.
51507         * math/s_ctanhf.c (__ctanhf): Likewise.
51508         * math/s_ctanhl.c (__ctanhl): Likewise.
51509         * math/s_ctanl.c (__ctanl): Likewise.
51510         * math/w_pow.c: Likewise.
51511         * math/w_powf.c: Likewise.
51512         * math/w_powl.c: Likewise.
51513         * math/w_scalb.c (sysv_scalb): Likewise.
51514         * math/w_scalbf.c (sysv_scalbf): Likewise.
51515         * math/w_scalbl.c (sysv_scalbl): Likewise.
51516         * misc/error.c (error_tail): Likewise.
51517         * misc/pselect.c (__pselect): Likewise.
51518         * nis/nis_callback.c (__nis_create_callback): Likewise.
51519         * nis/nis_call.c (__nisfind_server): Likewise.
51520         * nis/nis_creategroup.c (nis_creategroup): Likewise.
51521         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
51522         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
51523         * nis/nis_getservlist.c (nis_getservlist): Likewise.
51524         * nis/nis_lookup.c (nis_lookup): Likewise.
51525         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
51526         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
51527         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
51528         * nis/nis_xdr.c (xdr_endpoint): Likewise.
51529         * nis/nss_compat/compat-grp.c (getgrent_next_file)
51530         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
51531         * nis/nss_compat/compat-initgroups.c (add_group)
51532         (internal_getgrent_r): Likewise.
51533         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
51534         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
51535         * nis/nss_compat/compat-spwd.c (getspent_next_file)
51536         (internal_getspnam_r): Likewise.
51537         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
51538         (_nss_nis_getaliasbyname_r): Likewise.
51539         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
51540         (_nss_nis_getntohost_r): Likewise.
51541         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
51542         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
51543         (_nss_nis_getgrgid_r): Likewise.
51544         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
51545         (internal_nis_gethostent_r, internal_gethostbyname2_r)
51546         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
51547         (_nss_nis_gethostbyname4_r): Likewise.
51548         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
51549         (initgroups_netid): Likewise.
51550         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
51551         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
51552         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
51553         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
51554         (_nss_nis_getprotobynumber_r): Likewise.
51555         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
51556         (_nss_nis_getsecretkey): Likewise.
51557         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
51558         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
51559         (_nss_nis_getpwuid_r): Likewise.
51560         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
51561         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
51562         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
51563         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
51564         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
51565         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
51566         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
51567         Likewise.
51568         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
51569         (_nss_nisplus_getntohost_r): Likewise.
51570         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
51571         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
51572         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
51573         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
51574         Likewise.
51575         * nis/nss_nisplus/nisplus-initgroups.c
51576         (_nss_nisplus_initgroups_dyn): Likewise.
51577         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
51578         (_nss_nisplus_getnetbyaddr_r): Likewise.
51579         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
51580         (_nss_nisplus_getprotobynumber_r): Likewise.
51581         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
51582         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
51583         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
51584         Likewise.
51585         * nis/nss_nisplus/nisplus-service.c
51586         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
51587         (_nss_nisplus_getservbyport_r): Likewise.
51588         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
51589         (_nss_nisplus_getspnam_r): Likewise.
51590         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
51591         Likewise.
51592         * nscd/aicache.c (addhstaiX): Likewise.
51593         * nscd/cache.c (cache_search, prune_cache): Likewise.
51594         * nscd/connections.c (register_traced_file, send_ro_fd)
51595         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
51596         (main_loop_epoll): Likewise.
51597         * nscd/grpcache.c (addgrbyX): Likewise.
51598         * nscd/hstcache.c (addhstbyX): Likewise.
51599         * nscd/initgrcache.c (addinitgroupsX): Likewise.
51600         * nscd/mem.c (gc, mempool_alloc): Likewise.
51601         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
51602         (addinnetgrX): Likewise.
51603         * nscd/nscd-client.h (__nscd_acquire_maplock)
51604         (__nscd_drop_map_ref): Likewise.
51605         * nscd/nscd_getai.c (__nscd_getai): Likewise.
51606         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
51607         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
51608         Likewise.
51609         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
51610         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
51611         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
51612         (__nscd_get_map_ref): Likewise.
51613         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
51614         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
51615         Likewise.
51616         * nscd/pwdcache.c (addpwbyX): Likewise.
51617         * nscd/selinux.c (preserve_capabilities): Likewise.
51618         * nscd/servicescache.c (addservbyX): Likewise.
51619         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
51620         * posix/fnmatch.c (fnmatch): Likewise.
51621         * posix/getopt.c (_getopt_internal_r): Likewise.
51622         * posix/glob.c (glob, glob_in_dir): Likewise.
51623         * posix/wordexp.c (exec_comm_child): Likewise.
51624         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
51625         (getanswer_r, gaih_getanswer_slice): Likewise.
51626         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
51627         * resolv/res_init.c: Likewise.
51628         * resolv/res_mkquery.c (res_nmkquery): Likewise.
51629         * resolv/res_query.c (__libc_res_nquery): Likewise.
51630         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
51631         Likewise.
51632         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
51633         * stdio-common/perror.c (perror): Likewise.
51634         * stdio-common/printf_fp.c (___printf_fp): Likewise.
51635         * stdio-common/tmpnam.c (tmpnam): Likewise.
51636         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
51637         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
51638         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
51639         Likewise.
51640         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
51641         * stdlib/putenv.c (putenv): Likewise.
51642         * stdlib/setenv.c (__add_to_environ): Likewise.
51643         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
51644         * stdlib/strtol_l.c (INTERNAL): Likewise.
51645         * string/memmem.c (memmem): Likewise.
51646         * string/strerror.c (strerror): Likewise.
51647         * string/strnlen.c (__strnlen): Likewise.
51648         * string/test-memmem.c (simple_memmem): Likewise.
51649         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
51650         * sunrpc/pm_getport.c (__get_socket): Likewise.
51651         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
51652         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
51653         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
51654         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
51655         Likewise.
51656         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
51657         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
51658         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
51659         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
51660         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
51661         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
51662         Likewise.
51663         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
51664         Likewise.
51665         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
51666         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
51667         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
51668         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
51669         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
51670         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
51671         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
51672         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
51673         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
51674         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
51675         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
51676         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
51677         Likewise.
51678         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
51679         Likewise.
51680         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
51681         Likewise.
51682         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
51683         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
51684         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
51685         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
51686         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
51687         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
51688         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
51689         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
51690         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
51691         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
51692         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
51693         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
51694         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
51695         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
51696         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
51697         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
51698         Likewise.
51699         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
51700         Likewise.
51701         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
51702         Likewise.
51703         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
51704         Likewise.
51705         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
51706         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
51707         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
51708         Likewise.
51709         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
51710         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
51711         * sysdeps/posix/opendir.c (__opendirat): Likewise.
51712         * sysdeps/posix/sleep.c: Likewise.
51713         * sysdeps/posix/tempname.c: Likewise.
51714         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
51715         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
51716         Likewise.
51717         * sysdeps/powerpc/powerpc32/dl-machine.h
51718         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
51719         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
51720         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
51721         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
51722         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
51723         Likewise.
51724         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
51725         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
51726         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51727         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
51728         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
51729         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
51730         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
51731         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
51732         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
51733         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
51734         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
51735         (elf_machine_lazy_rel): Likewise.
51736         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
51737         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
51738         (elf_machine_lazy_rel): Likewise.
51739         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
51740         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
51741         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
51742         * sysdeps/unix/grantpt.c (grantpt): Likewise.
51743         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
51744         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
51745         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
51746         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51747         Likewise.
51748         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
51749         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
51750         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
51751         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
51752         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51753         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51754         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
51755         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
51756         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
51757         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51758         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
51759         Likewise.
51760         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
51761         (__posix_fallocate64_l64): Likewise.
51762         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
51763         (posix_fallocate): Likewise.
51764         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
51765         Likewise.
51766         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
51767         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
51768         (getifaddrs_internal): Likewise.
51769         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
51770         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
51771         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
51772         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
51773         * sysdeps/unix/sysv/linux/posix_fallocate64.c
51774         (__posix_fallocate64_l64): Likewise.
51775         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
51776         Likewise.
51777         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
51778         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
51779         (__get_clockfreq): Likewise.
51780         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
51781         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
51782         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
51783         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
51784         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
51785         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
51786         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
51787         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
51788         Likewise.
51789         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
51790         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
51791         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
51792         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
51793         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
51794         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
51795         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
51796         Likewise.
51797         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
51798         (posix_fallocate): Likewise.
51799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
51800         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
51801         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
51802         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
51803         (elf_machine_rela, elf_machine_rela_relative)
51804         (elf_machine_lazy_rel): Likewise.
51805         * time/asctime.c (asctime_internal): Likewise.
51806         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
51807         * time/tzset.c (__tzset_parse_tz): Likewise.
51808         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
51809         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
51810         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
51811         * wcsmbs/wcsmbsload.h: Likewise.
51812
51813         [BZ #15894]
51814         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
51815
51816         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
51817         (arena_get2): Remove THREAD_STATS conditionals.
51818         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
51819         (__malloc_stats, int): Likewise.
51820
51821 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
51822
51823         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
51824         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
51825
51826         * manual/setjmp.texi: Fix typos/grammar errors.
51827
51828         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
51829         Only return early when n is <= 0.  Delete unused return statement.
51830
51831         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
51832         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
51833         * debug/tst-longjmp_chk3.c: New file.
51834
51835         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
51836         (test_main): Replace code with set_fortify_handler call.
51837         * debug/test-strcpy_chk.c: Likewise.
51838         * debug/tst-chk1.c: Likewise.
51839         * debug/tst-longjmp_chk.c: Likewise.
51840         * test-skeleton.c: Include fcntl.h & paths.h
51841         (set_fortify_handler): Define.
51842
51843         * debug/tst-longjmp_chk.c: Add header comment and include
51844         ../test-skeleton.c.
51845         (do_test): Mark static.
51846         (TEST_FUNCTION): Define.
51847
51848         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
51849         (IP_PMTUDISC_INTERFACE): Likewise.
51850         (IP_MULTICAST_IF): Likewise.
51851         (IP_MULTICAST_TTL): Likewise.
51852         (IP_MULTICAST_LOOP): Likewise.
51853         (IP_ADD_MEMBERSHIP): Likewise.
51854         (IP_DROP_MEMBERSHIP): Likewise.
51855         (IP_UNBLOCK_SOURCE): Likewise.
51856         (IP_BLOCK_SOURCE): Likewise.
51857         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
51858         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
51859         (IP_MSFILTER): Likewise.
51860         (MCAST_JOIN_GROUP): Likewise.
51861         (MCAST_BLOCK_SOURCE): Likewise.
51862         (MCAST_UNBLOCK_SOURCE): Likewise.
51863         (MCAST_LEAVE_GROUP): Likewise.
51864         (MCAST_JOIN_SOURCE_GROUP): Likewise.
51865         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
51866         (MCAST_MSFILTER): Likewise.
51867         (IP_MULTICAST_ALL): Likewise.
51868         (IP_UNICAST_IF): Likewise.
51869
51870         * timezone/Makefile: Delete $(have-ksh) check.
51871         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
51872         * timezone/tzselect.ksh: Add +x mode bits.
51873
51874         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
51875         (ANON_INODE_FS_MAGIC): Likewise.
51876         (BDEVFS_MAGIC): Likewise.
51877         (BINFMTFS_MAGIC): Likewise.
51878         (BTRFS_TEST_MAGIC): Likewise.
51879         (CRAMFS_MAGIC_WEND): Likewise.
51880         (DEBUGFS_MAGIC): Likewise.
51881         (ECRYPTFS_SUPER_MAGIC): Likewise.
51882         (EXT3_SUPER_MAGIC): Likewise.
51883         (EXT4_SUPER_MAGIC): Likewise.
51884         (FUTEXFS_SUPER_MAGIC): Likewise.
51885         (HOSTFS_SUPER_MAGIC): Likewise.
51886         (HUGETLBFS_MAGIC): Likewise.
51887         (MINIX3_SUPER_MAGIC): Likewise.
51888         (MTD_INODE_FS_MAGIC): Likewise.
51889         (NILFS_SUPER_MAGIC): Likewise.
51890         (OPENPROM_SUPER_MAGIC): Likewise.
51891         (PIPEFS_MAGIC): Likewise.
51892         (PSTOREFS_MAGIC): Likewise.
51893         (QNX6_SUPER_MAGIC): Likewise.
51894         (RAMFS_MAGIC): Likewise.
51895         (REISERFS_SUPER_MAGIC_STRING): Likewise.
51896         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
51897         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
51898         (SECURITYFS_MAGIC): Likewise.
51899         (SELINUX_MAGIC): Likewise.
51900         (SMACK_MAGIC): Likewise.
51901         (SOCKFS_MAGIC): Likewise.
51902         (SQUASHFS_MAGIC): Likewise.
51903         (STACK_END_MAGIC): Likewise.
51904         (TMPFS_MAGIC): Likewise.
51905         (USBDEVICE_SUPER_MAGIC): Likewise.
51906         (V9FS_MAGIC): Likewise.
51907         (XENFS_SUPER_MAGIC): Likewise.
51908         (CRAMFS_MAGIC): Fix typo in comment.
51909         (EXT2_SUPER_MAGIC): Update comment.
51910         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
51911
51912 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
51913
51914         * sysdeps/arm: Move directory from ports/sysdeps/arm.
51915         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
51916         * sysdeps/unix/sysv/linux/arm: Move directory from
51917         ports/sysdeps/unix/sysv/linux/arm.
51918         * README: Update listing for arm-*-linux-gnueabi.
51919
51920         * README: Remove mention of am33.
51921
51922 2014-02-07  Roland McGrath  <roland@hack.frob.com>
51923
51924         * bits/sigset.h (__sigemptyset): Use a statement expression rather
51925         than the comma operator, to avoid "rhs of comma has no effect"
51926         compiler warnings.
51927         (__sigfillset, __sigandset, __sigorset): Likewise.
51928         * include/signal.h (__sigemptyset): Likewise.
51929         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
51930
51931 2014-02-07  Allan McRae  <allan@archlinux.org>
51932
51933         * version.h (RELEASE): Set to "development".
51934         (VERSION): Set to "2.19.90"
51935         * NEWS: Add 2.20 section.
51936
51937 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
51938
51939         [BZ #16529]
51940         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
51941
51942 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
51943
51944         * manual/contrib.texi: Update entry for Carlos O'Donell,
51945         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
51946
51947 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
51948
51949         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
51950
51951         * sysdeps/unix/sysv/linux/kernel-features.h
51952         [__LINUX_KERNEL_VERSION >= 0x020621]
51953         (__ASSUME_PROC_PID_TASK_COMM): Define.
51954
51955 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
51956
51957         [BZ #16398]
51958         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
51959         conversion when destination buffer does not have enough space.
51960         * libio/tst-ftell-partial-wide.c: New test case.
51961         * libio/Makefile (tests): Add tst-ftell-partial-wide.
51962
51963         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
51964         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
51965         Leonard and Allan McRae.
51966
51967 2014-02-04  David S. Miller  <davem@davemloft.net>
51968
51969         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
51970         32-bit.
51971
51972 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51973
51974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
51975         New file
51976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
51977         New file
51978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
51979         New file.
51980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
51981         New file.
51982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
51983         New file.
51984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
51985         New file.
51986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
51987         New file.
51988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
51989         New file.
51990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
51991         New file.
51992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
51993         New file.
51994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
51995         New file.
51996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
51997         New file.
51998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
51999         New file.
52000
52001 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52002
52003         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52004         * shlib-versions: Likewise.
52005
52006 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52007             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52008
52009         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52010         (abilist-pattern): New variable, set to %-le.abilist.
52011
52012         * Makerules (abilist-pattern): New variable.
52013         (vpath): Use $(abilist-pattern) in place of %.abilist.
52014         (check-abi-% pattern rule): Likewise.
52015         (check-abi, update-abi): Likewise.
52016
52017 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52018
52019         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52020
52021 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52022
52023         * manual/startup.texi: Add next, previous, and top entries for
52024         the `Program Arguments' and `Environment Variables' nodes.
52025
52026 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52027
52028         * manual/macros.texi: Add comments before MTASC-safety macros.
52029
52030         * manual/users.texi: Document MTASC-safety properties.
52031
52032         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52033         (pthread_getspecific, pthread_setspecific): Format with
52034         @deftypefun, and add @safety note.
52035         * manual/signal.texi: Move comments that analyze the above
52036         functions to their home place.
52037
52038 2014-02-03  Allan McRae  <allan@archlinux.org>
52039
52040         * po/sl.po: Update Slovenian translation from translation project.
52041
52042 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52043
52044         * manual/time.texi (timegm): Add missing blank after @c.
52045         Reported by Joseph Myers <joseph@codesourcery.com>.
52046
52047 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52048
52049         * manual/check-safety.sh: New.
52050         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52051
52052         * manual/terminal.texi: Document MTASC-safety properties.
52053
52054         * manual/filesys.texi: Document MTASC-safety properties.
52055
52056         * manual/errno.texi: Document MTASC-safety properties.
52057
52058         * manual/intro.texi: Document safety identifiers and
52059         conditionals.
52060
52061         * manual/string.texi (wcstok): Fix prototype.
52062         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52063
52064         * manual/time.texi: Document MTASC-safety properties.
52065
52066         * manual/string.texi: Document MTASC-safety properties.
52067
52068         * manual/threads.texi: Document MTASC-safety properties.
52069
52070         * manual/stdio.texi: Document MTASC-safety properties.
52071
52072         * manual/syslog.texi: Document MTASC-safety properties.
52073
52074         * manual/sysinfo.texi: Document MTASC-safety properties.
52075
52076         * manual/startup.texi: Document MTASC-safety properties.
52077
52078         * manual/socket.texi: Document MTASC-safety properties.
52079
52080         * manual/signal.texi: Document MTASC-safety properties.
52081
52082 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52083
52084         * manual/setjmp.texi: Document MTASC-safety properties.
52085
52086         * manual/search.texi: Document MTASC-safety properties.
52087
52088         * manual/resource.texi: Document MTASC-safety properties.
52089
52090         * manual/process.texi: Document MTASC-safety properties.
52091
52092         * manual/platform.texi: Document MTASC-safety properties.
52093
52094         * manual/pipe.texi: Document MTASC-safety properties.
52095
52096         * manual/pattern.texi: Document MTASC-safety properties.
52097
52098         * manual/message.texi: Document MTASC-safety properties.
52099
52100         [BZ #12751]
52101         * manual/memory.texi: Document MTASC-safety properties.
52102
52103         * manual/math.texi: Document MTASC-safety properties.
52104
52105         * manual/locale.texi: Document MTASC-safety properties.
52106
52107         * manual/llio.texi: Document MTASC-safety properties.
52108
52109         * manual/libdl.texi: New.
52110
52111         * manual/lang.texi: Document MTASC-safety properties.
52112
52113         * manual/job.texi: Document MTASC-safety properties.
52114
52115         * manual/getopt.texi: Document MTASC-safety properties.
52116
52117         * manual/ctype.texi: Document MTASC-safety properties.
52118
52119 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52120
52121         [BZ #16046]
52122         * csu/libc-tls.c (static_map): Remove variable.
52123         (__libc_setup_tls): Use main executable's link map for TLS data.
52124         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52125         casing for LM_ID_BASE and GL(dl_nns).
52126         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52127         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52128         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52129         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52130         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52131         member.
52132         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52133         l_phnum members.
52134
52135 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52136
52137         * manual/debug.texi: Document MTASC-safety properties.
52138
52139 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52140
52141         [BZ #16510]
52142         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52143         of __x86_64__ when disabling x87 inline functions.
52144
52145 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52146
52147         * manual/charset.texi: Document MTASC-safety properties.
52148
52149         * manual/crypt.texi: Document MTASC-safety properties.
52150
52151         * manual/conf.texi: Document MTASC-safety properties.
52152
52153         * manual/arith.texi: Document MTASC-safety properties.
52154
52155         * manual/argp.texi: Document MTASC-safety properties.
52156
52157         * manual/macros.texi: Introduce macros to document multi
52158         thread, asynchronous signal and asynchronous cancellation
52159         safety properties.
52160         * manual/intro.texi: Introduce the properties themselves.
52161
52162 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52163
52164         * sysdeps/sh/sh4/Makefile: New file.
52165
52166 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52167
52168         * math/gen-libm-test.pl ($srcdir): New variable.
52169         ($auto_input): Use it.
52170
52171 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52172
52173         [BZ #16506]
52174         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52175         access beyond array bounds when parsing netgroups file.
52176
52177         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52178         the old buffer before realloc.
52179
52180 2014-01-27  Allan McRae  <allan@archlinux.org>
52181
52182         * po/fr.po: Update French translation from translation project.
52183
52184 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52185
52186         * sysdeps/sh/libm-test-ulps: Regenerate.
52187
52188 2014-01-24  David S. Miller  <davem@davemloft.net>
52189
52190         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52191
52192 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52193
52194         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52195         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52196
52197 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52198
52199         [BZ #16474]
52200         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52201         string pointers after reallocation.
52202
52203 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52204
52205         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52206         __SH4A__ instead of __SH_FPU_ANY__.
52207
52208 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52209
52210         * sysdeps/sh/fpu_control.h: New file.
52211         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52212         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52213         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52214         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52215         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52216         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52217         * sysdeps/sh/sys/ucontext.h: Remove.
52218         * sysdeps/sh/sys: Remove directory.
52219
52220 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52221
52222         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52223         s390/sys/ucontext.h.
52224         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52225         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52226
52227 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52228
52229         [BZ #15605]
52230         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52231
52232 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52233
52234         [BZ #16431]
52235         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52236         Adjust the vDSO correctly for internal calls.
52237         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52238
52239 2014-01-20  Allan McRae  <allan@archlinux.org>
52240
52241         * po/ca.po: Update Catalan translation from translation project.
52242
52243 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52244
52245         * sysdeps/s390/sotruss-lib.c: New file.
52246
52247 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52248
52249         [BZ #16430]
52250         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52251         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52252         local calls issues by not having a PLT stub required for IFUNC calls.
52253         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52254
52255 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52256
52257         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52258         * math/test-fpucw-static.c: Likewise.
52259
52260 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52261
52262         [BZ #16453]
52263         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52264
52265 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52266
52267         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52268         implementation for powerpc.
52269
52270 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52271
52272         [BZ #14782]
52273         * sysdeps/posix/system.c (__libc_system): Do not enable
52274         asynchronous cancellation.
52275
52276 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52277
52278         [BZ #16427]
52279         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52280         handling only for numbers special also in the IEEE case.
52281
52282 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52283
52284         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52285
52286 2014-01-11  Allan McRae  <allan@archlinux.org>
52287
52288         * po/bg.po: Update Bulgarian translation from translation project.
52289
52290         * po/de.po: Update German translation from translation project.
52291
52292 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52293
52294         * sysdeps/generic/gcc-compat.h: New file.
52295
52296 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52297
52298         * benchtests/asin-inputs: Correct slow inputs.
52299         * benchtests/acos-inputs: Likewise.
52300
52301 2014-01-10  Allan McRae  <allan@archlinux.org>
52302
52303         * po:sv.po: Update Swedish translation from translation project.
52304
52305         * po/vi.po: Update Vietnamese translation from translation project.
52306
52307         * po/eo.po: Update Esperanto translation from translation project.
52308
52309         * po/cs.po: Update Czech translation from translation project.
52310
52311         * po/nl.po: Update Dutch translation from translation project.
52312
52313         * po/pl.po: Update Polish translation from translation project.
52314
52315         * po/ru.po: Update Russian translation from translation project.
52316
52317         * po/uk.po: Update Ukrainian translation from translation project.
52318
52319 2014-01-08  Brooks Moses  <bmoses@google.com>
52320
52321         * elf/dl-load.c: Fix comment typo.
52322
52323 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
52324
52325         * po/header.pot: Rename to...
52326         * po/pot.header: ... this.
52327         * po/Makefile: Use pot.header.
52328
52329 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
52330             Maxim Kuvyrkov  <maxim@kugelworks.com>
52331
52332         [BZ #16394]
52333         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
52334         SRC and DEST against LEN.
52335
52336 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52337
52338         [BZ #16414]
52339         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
52340         implementation.
52341         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
52342
52343 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52344
52345         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52346
52347 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
52348
52349         [BZ #16408]
52350         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
52351         for large positive arguments.
52352
52353 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
52354
52355         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52356
52357         * math/auto-libm-test-in: Mark various tests with
52358         xfail-rounding:ldbl-128ibm.
52359         * math/auto-libm-test-out: Regenerated.
52360
52361         [BZ #16407]
52362         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
52363         Increase overflow threshold.
52364
52365 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
52366
52367         [BZ #14286]
52368         * stdio-common/vfprintf.c: Check for integer overflow.
52369
52370 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52371
52372         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
52373         the first argument and return value of __tls_get_addr_internal.
52374
52375 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52376
52377         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
52378         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
52379
52380 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52381
52382         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
52383         * sysdeps/s390/rtld-global-offsets.sym: New file.
52384         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
52385         GLIBC_2.19 symbol.
52386         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
52387         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
52388         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
52389         ... this.
52390         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
52391         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
52392         ... this.
52393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52394         Regenerate.
52395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52396         Regenerate.
52397         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
52398         halfs of GPRs for high_gprs contexts.
52399         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
52400         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
52401         field.
52402         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
52403         uc_flags field.
52404         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
52405         64 bit versions:
52406         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
52407         for high GPRs (uc_high_gprs) and for future extensions
52408         (__reserved).
52409         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
52410         for future extensions (__reserved).
52411         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
52412         64 bit versions:
52413         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
52414         SC_HIGHGPRS offset definition.
52415         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
52416         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
52417
52418         * Versions.def: Add GLIBC_2.19 for libpthread.
52419         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
52420         siglongjmp for libpthread with GLIBC_2.19 symver.
52421         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
52422         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
52423         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
52424         * sysdeps/s390/__longjmp.c: New file.
52425         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
52426         * sysdeps/s390/longjmp.c: New file.
52427         * sysdeps/s390/setjmp.S: New file.
52428         * sysdeps/s390/sigjmp.S: New file.
52429         * sysdeps/s390/v1-longjmp.c: New file.
52430         * sysdeps/s390/v1-setjmp.h: New file.
52431         * sysdeps/s390/v1-sigjmp.c: New file.
52432         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
52433         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
52434         GLIBC_2.19 version.
52435         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
52436         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
52437         versioned symbols for ____longjmp_chk.
52438         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
52439         Likewise.
52440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52441         Regenerate.
52442         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52443         Regenerate.
52444         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52445         Regenerate.
52446         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52447         Regenerate.
52448         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
52449         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
52450         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
52451         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
52452         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
52453         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
52454         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
52455         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
52456         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
52457         * sysdeps/s390/rtld-__longjmp.c: New file.
52458         * sysdeps/s390/rtld-setjmp.S: New file.
52459
52460 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
52461
52462         [BZ #16400]
52463         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52464         Return -__logl (x) for small positive arguments without evaluating
52465         a polynomial.
52466
52467 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
52468
52469         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
52470         Rename to ...
52471         (__ptrace_peeksiginfo_args): ... this.
52472         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52473         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52474         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52475
52476 2014-01-06  Allan McRae  <allan@archlinux.org>
52477
52478         * inet/netinet/in.h: Fix typo in comment.
52479
52480 2014-01-05  Andreas Jaeger  <aj@suse.de>
52481
52482         * sysdeps/i386/fpu/libm-test-ulps: Update.
52483
52484 2014-01-05  Allan McRae  <allan@archlinux.org>
52485
52486         * po/libc.pot: Regenerated.
52487
52488         * malloc/memusagestat.c: Fix gettext call formatting.
52489
52490 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
52491
52492         * nscd/nscd.c: Improve usage() output.
52493
52494 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
52495
52496         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
52497         * sysdeps/unix/sysv/linux/configure: Regenerated.
52498         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
52499         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
52500
52501 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52502
52503         [BZ #16390]
52504         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
52505         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
52506
52507 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52508
52509         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
52510         extra tokens at end of #undef directive.
52511         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
52512         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
52513         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
52514
52515 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52516
52517         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52518
52519         * math/auto-libm-test-in: Mark various tests with
52520         xfail-rounding:ldbl-128ibm.
52521         * math/auto-libm-test-out: Regenerated.
52522
52523 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
52524
52525         [BZ #16386]
52526         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
52527         numbers with subnormal high part when calculating exponent.
52528
52529         [BZ #16385]
52530         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
52531         fabs.
52532
52533         [BZ #16384]
52534         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
52535         M_LN2l.
52536         (__ieee754_acoshl): Use __log1pl not __log1p.
52537
52538 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
52539
52540         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
52541         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
52542         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
52543         (grow_heap, heap_trim, _int_new_arena, get_free_list)
52544         (reused_arena, arena_get2): Convert to GNU style.
52545         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
52546         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
52547         (memalign_check, __malloc_set_state): Likewise.
52548         * malloc/mallocbug.c (main): Likewise.
52549         * malloc/malloc.c (__malloc_assert, malloc_init_state)
52550         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
52551         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
52552         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
52553         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
52554         (__posix_memalign, malloc_info): Likewise.
52555         * malloc/malloc.h: Likewise.
52556         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
52557         (mallochook, memalignhook, reallochook, mabort): Likewise.
52558         * malloc/mcheck.h: Likewise.
52559         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
52560         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
52561         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
52562         * malloc/morecore.c (__default_morecore): Likewise.
52563         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
52564         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
52565         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
52566         (print_and_abort): Likewise.
52567         * malloc/obstack.h: Likewise.
52568         * malloc/set-freeres.c (__libc_freeres): Likewise.
52569         * malloc/tst-mallocstate.c (main): Likewise.
52570         * malloc/tst-mtrace.c (main): Likewise.
52571         * malloc/tst-realloc.c (do_test): Likewise.
52572
52573 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
52574
52575         [BZ #16366]
52576         * nscd/netgroupcache.c (do_notfound): New function.
52577         (addgetnetgrentX): Use it.
52578
52579         [BZ # 16365]
52580         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
52581         NSS_STATUS_NOTFOUND.
52582
52583 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
52584
52585         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
52586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52587
52588 2014-01-01  Allan McRae  <allan@archlinux.org>
52589
52590         * scripts/update-copyrights: Update configure input file suffix.
52591
52592         * NEWS: Update copyright year.
52593         * catgets/gencat.c: Likewise.
52594         * csu/version.c: Likewise.
52595         * debug/catchsegv.sh: Likewise.
52596         * debug/pcprofiledump.c: Likewise.
52597         * debug/xtrace.sh: Likewise.
52598         * elf/ldconfig.c: Likewise.
52599         * elf/ldd.bash.in: Likewise.
52600         * elf/pldd.c: Likewise.
52601         * elf/sotruss.ksh: Likewise.
52602         * elf/sprof.c: Likewise.
52603         * iconv/iconv_prog.c: Likewise.
52604         * iconv/iconvconfig.c: Likewise.
52605         * locale/programs/locale.c: Likewise.
52606         * locale/programs/localedef.c: Likewise.
52607         * login/programs/pt_chown.c: Likewise.
52608         * malloc/memusage.sh: Likewise.
52609         * malloc/memusagestat.c: Likewise.
52610         * malloc/mtrace.pl: Likewise.
52611         * manual/libc.texinfo: Likewise.
52612         * nscd/nscd.c: Likewise.
52613         * nss/getent.c: Likewise.
52614         * nss/makedb.c: Likewise.
52615         * posix/getconf.c: Likewise.
52616         * scripts/test-installation.pl: Likewise.
52617
52618         * All files with FSF copyright notices: Update copyright dates
52619         using scripts/update-copyrights.
52620         * intl/plural.c: Regenerated.
52621         * locale/programs/charmap-kw.h: Likewise.
52622         * locale/programs/locfile-kw.h: Likewise.
52623
52624 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
52625
52626         * sysdeps/unix/sysv/linux/configure: Regenerated.
52627         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
52628         the linux/fanotify.h header.
52629         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
52630         HAVE_LINUX_FANOTIFY_H is defined.
52631
52632 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
52633
52634         * benchtests/cos-inputs: New inputs.
52635         * benchtests/sin-inputs: Likewise.
52636
52637         * benchtests/atan-inputs: New inputs. Fix name of multiple
52638         precision fallback inputs.
52639
52640         * benchtests/atanh-inputs: New inputs.
52641         * benchtests/tanh-inputs: Likewise.
52642
52643         * benchtests/acosh-inputs: New inputs.
52644         * benchtests/asinh-inputs: Likewise.
52645
52646         * benchtests/cosh-inputs: New inputs.
52647         * benchtests/sinh-inputs: Likewise.
52648
52649         * benchtests/acos-inputs: Add more inputs.
52650         * benchtests/asin-inputs: Likewise.
52651
52652 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
52653
52654         [BZ #16375]
52655         * manual/arith.texi: Fix spelling.
52656         * manual/charset.texi: Likewise.
52657         * manual/errno.texi: Likewise.
52658         * manual/filesys.texi: Likewise.
52659         * manual/lang.texi: Likewise.
52660         * manual/llio.texi: Likewise.
52661         * manual/locale.texi: Likewise.
52662         * manual/message.texi: Likewise.
52663         * manual/resource.texi: Likewise.
52664         * manual/search.texi: Likewise.
52665         * manual/setjmp.texi: Likewise.
52666         * manual/stdio.texi: Likewise.
52667         * manual/string.texi: Likewise.
52668         * manual/sysinfo.texi: Likewise.
52669         * manual/time.texi: Likewise.
52670
52671 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
52672
52673         * po/sl.po: New file.
52674
52675 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
52676
52677         * .gitignore: Add core/.gdbinit/.gdb_history.
52678
52679 2013-12-27  Allan McRae  <allan@archlinux.org>
52680
52681         [BZ #16369]
52682         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
52683         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
52684
52685 2013-12-24  Brooks Moses  <bmoses@google.com>
52686
52687         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
52688         all compilers that claim C++98 compliance, not just GCC.
52689         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
52690         Likewise.
52691
52692 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52693
52694         * NEWS: Restore accidentally deleted bug-fix entries.
52695
52696 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
52697             Ondřej Bílka  <neleai@seznam.cz>
52698
52699         [BZ #15073]
52700         * malloc/malloc.c (_int_free): Perform sanity check only if we
52701         have_lock.
52702
52703 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
52704
52705         [BZ #12986]
52706         * manual/stdio.texi (String Input Conversions): Clarify that character
52707         classes are not supported.
52708
52709 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52710
52711         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52712
52713 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
52714
52715         [BZ #16337]
52716         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52717         Calculate results for small negative arguments directly rather
52718         than using reflection formula with special underflow handling.
52719
52720         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
52721         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
52722         sysdeps/unix/bsd/bsd4.4/syscalls.list.
52723         (fchflags): Likewise.
52724         (revoke): Likewise.
52725         (setlogin): Likewise.
52726         (sigaltstack): Likewise.
52727         (wait4): Likewise.
52728         (sigblock): Remove.
52729         (sigsetmask): Likewise.
52730         (wait3): Likewise.
52731         (waitpid): Likewise.
52732         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
52733         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
52734         file.
52735         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
52736         * sysdeps/unix/bsd/Makefile: ... here.
52737         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
52738         * sysdeps/unix/bsd/Versions: ... here.
52739         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
52740         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
52741         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
52742         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
52743         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
52744         * sysdeps/unix/bsd/sigblock.c: ... here.
52745         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
52746         * sysdeps/unix/bsd/sigsetmask.c: ... here.
52747         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
52748         * sysdeps/unix/bsd/sigvec.c: ... here.
52749         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
52750         * sysdeps/unix/bsd/tcdrain.c: ... here.
52751         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
52752         * sysdeps/unix/bsd/tcgetattr.c: ... here.
52753         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
52754         * sysdeps/unix/bsd/tcsetattr.c: ... here.
52755         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
52756         * sysdeps/unix/bsd/wait.c: ... here.
52757         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
52758         * sysdeps/unix/bsd/wait3.c: ... here.
52759         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
52760         * sysdeps/unix/bsd/waitpid.c: ... here.
52761
52762 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
52763
52764         [BZ #16356]
52765         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
52766         round-to-nearest for [!USE_AS_EXPM1L].
52767         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
52768         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
52769         more tests of exp and exp10.  Expect some exp10 tests to miss
52770         exceptions or fail in directed rounding modes.
52771         * math/auto-libm-test-out: Regenerated.
52772         * math/libm-test.inc (exp10_tonearest_test_data): New array.
52773         (exp10_test_tonearest): New function.
52774         (exp10_towardzero_test_data): New array.
52775         (exp10_test_towardzero): New function.
52776         (exp10_downward_test_data): New array.
52777         (exp10_test_downward): New function.
52778         (exp10_upward_test_data): New array.
52779         (exp10_test_upward): New function.
52780         (main): Call the new functions.
52781         * sysdeps/i386/fpu/libm-test-ulps: Update.
52782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52783
52784 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
52785
52786         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
52787         asinh, atan, atan2, atanh, cbrt, cos and cosh.
52788         * math/auto-libm-test-out: Regenerated.
52789         * math/libm-test.inc (acosh_test_data): Add more tests.
52790         (atanh_test_data): Likewise.
52791         (ceil_test_data): Likewise.
52792         (copysign_test_data): Likewise.
52793         * sysdeps/i386/fpu/libm-test-ulps: Update.
52794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52795
52796         * timezone/checktab.awk: Update from tzcode 2013i.
52797         * timezone/private.h: Likewise.
52798         * timezone/scheck.c: Likewise.
52799         * timezone/tzfile.h: Likewise.
52800         * timezone/tzselect.ksh: Likewise.
52801         * timezone/zdump.c: Likewise.
52802         * timezone/zic.c: Likewise.
52803
52804         * math/auto-libm-test-in: Add tests of cpow.
52805         * math/auto-libm-test-out: Regenerated.
52806         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
52807         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52808         mpc_cc_c.
52809         (func_calc_desc): Add mpc_cc_c union field.
52810         (test_functions): Add cpow.
52811         (special_fill_2pi): New function.
52812         (special_real_inputs): Add 2pi.
52813         (calc_generic_results): Handle mpc_cc_c.
52814         * sysdeps/i386/fpu/libm-test-ulps: Update.
52815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52816
52817         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
52818         csqrt, ctan and ctanh.
52819         * math/auto-libm-test-out: Regenerated.
52820         * math/libm-test.inc (TEST_COND_x86_64): New macro.
52821         (TEST_COND_x86): Likewise.
52822         (ccos_test_data): Use AUTO_TESTS_c_c.
52823         (ccosh_test_data): Likewise.
52824         (cexp_test_data): Likewise.
52825         (clog_test_data): Likewise.
52826         (csqrt_test_data): Likewise.
52827         (ctan_test_data): Likewise.
52828         (ctan_tonearest_test_data): Likewise.
52829         (ctan_towardzero_test_data): Likewise.
52830         (ctan_downward_test_data): Likewise.
52831         (ctan_upward_test_data): Likewise.
52832         (ctanh_test_data): Likewise.
52833         (ctanh_tonearest_test_data): Likewise.
52834         (ctanh_towardzero_test_data): Likewise.
52835         (ctanh_downward_test_data): Likewise.
52836         (ctanh_upward_test_data): Likewise.
52837         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52838         mpc_c_c.
52839         (func_calc_desc): Add mpc_c_c union field.
52840         (FUNC_mpc_c_c): New macro.
52841         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
52842         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
52843         ctanh.
52844         (special_fill_min_subnorm_p120): New function.
52845         (special_real_inputs): Add min_subnorm_p120.
52846         (calc_generic_results): Handle mpc_c_c.
52847         * sysdeps/i386/fpu/libm-test-ulps: Update.
52848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52849
52850 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
52851
52852         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
52853         (do_sin_slow): New functions.
52854         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
52855         (cslow2, csloww1, csloww2): Use the new functions.
52856
52857         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
52858         Use M to change sign of result instead of X.  Assume X is
52859         positive.
52860         (csloww1): Likewise.
52861         (__sin): Adjust.
52862         (__cos): Adjust.
52863
52864         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
52865         arguments A and DA.
52866         (__sin): Adjust.
52867         (__cos): Likewise.
52868
52869         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
52870         (__cos): Likewise.
52871         (sloww1): Don't adjust sign of DX.
52872         (csloww1): Likewise.
52873         (sloww2): Use X directly and don't adjust sign of DX.
52874         (csloww2): Likewise.
52875
52876 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52877
52878         * math/auto-libm-test-in: Add tests of cabs and carg.
52879         * math/auto-libm-test-out: Regenerated.
52880         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
52881         (carg_test_data): Likewise.
52882         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52883         mpc_c_f.
52884         (func_calc_desc): Add mpc_c_f union field.
52885         (test_functions): Add cabs and carg.
52886         (calc_generic_results): Handle mpc_c_f.
52887
52888         * sysdeps/powerpc/powerpc32/libgcc-compat.S
52889         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
52890         as a macro and a compat symbol.
52891         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
52892         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
52893         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
52894         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
52895         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
52896         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
52897         not use .hidden.
52898         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
52899         Likewise.
52900         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
52901         Likewise.
52902         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
52903         Likewise.
52904         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
52905         Likewise.
52906         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
52907         Likewise.
52908         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
52909         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
52910         from GLIBC_2.3.2.
52911
52912 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52913
52914         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52915
52916 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52917
52918         * manual/texinfo.tex: Update to version 2013-11-26.10 with
52919         trailing whitespace removed.
52920         * scripts/config.guess: Update to version 2013-11-29.
52921         * scripts/config.sub: Update to version 2013-10-01.
52922
52923         * math/auto-libm-test-in: Add tests of sincos.
52924         * math/auto-libm-test-out: Regenerated.
52925         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
52926         * math/gen-auto-libm-tests.c (func_calc_method): Add value
52927         mpfr_f_11.
52928         (func_calc_desc): Add mpfr_f_11 union field.
52929         (test_functions): Add sincos.
52930         (calc_generic_results): Handle mpfr_f_11.
52931         * sysdeps/i386/fpu/libm-test-ulps: Update.
52932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52933
52934 2013-12-19  Andreas Schwab  <schwab@suse.de>
52935
52936         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
52937         CALL_MCOUNT.
52938         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52939         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
52940         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
52941
52942 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
52943
52944         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
52945         * sysdeps/i386/fpu/libm-test-ulps: Update.
52946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52947
52948         [BZ #16293]
52949         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
52950         round-to-nearest mode when using frndint.
52951         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
52952         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
52953         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
52954         Likewise.
52955         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
52956         sinh test to fail.
52957         * math/auto-libm-test-out: Regenerated.
52958         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
52959         (TEST_COND_x86): Likewise.
52960         (expm1_tonearest_test_data): New array.
52961         (expm1_test_tonearest): New function.
52962         (expm1_towardzero_test_data): New array.
52963         (expm1_test_towardzero): New function.
52964         (expm1_downward_test_data): New array.
52965         (expm1_test_downward): New function.
52966         (expm1_upward_test_data): New array.
52967         (expm1_test_upward): New function.
52968         (main): Run the new test functions.
52969         * sysdeps/i386/fpu/libm-test-ulps: Update.
52970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52971
52972         * include/features.h: Update comment documenting feature test
52973         macros.  Mention _DEFAULT_SOURCE in comment.
52974         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
52975         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
52976         _BSD_SOURCE and _SVID_SOURCE.
52977         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
52978         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
52979         !_SVID_SOURCE]: Likewise.
52980         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52981         (__USE_POSIX_IMPLICITLY): Define.
52982         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52983         (_POSIX_SOURCE): Undefine and redefine.
52984         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
52985         (_POSIX_C_SOURCE): Likewise.
52986         * manual/creature.texi (_DEFAULT_SOURCE): Document.
52987         (Feature Test Macros): Update documentation of default features.
52988
52989 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
52990
52991         * benchtests/Makefile: Add bench-strtok.
52992         * benchtests/bench-strtok.c: New file: strtok benchtest.
52993
52994 2013-12-19  Allan McRae  <allan@archlinux.org>
52995
52996         * manual/install.texi: Suppress menu for plain text output.
52997         * INSTALL: Regenerated.
52998
52999 2013-12-18  Brooks Moses  <bmoses@google.com>
53000
53001         [BZ #15846]
53002         * misc/getauxval.c: Include errno.h.
53003         (__getauxval): Set errno to ENOENT if the requested type is not
53004         found.
53005         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53006         don't declare with __attribute_const__.
53007         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53008         * manual/startup.texi: Document that getauxval sets errno.
53009
53010 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53011
53012         * math/auto-libm-test-in: Add tests of jn and yn.
53013         * math/auto-libm-test-out: Regenerated.
53014         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53015         (yn_test_data): Likewise.
53016         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53017         mpfr_if_f.
53018         (func_calc_desc): Add mpfr_if_f union field.
53019         (FUNC_mpfr_if_f): New macro.
53020         (test_functions): Add jn and yn.
53021         (calc_generic_results): Assert type of second input for
53022         mpfr_ff_f.  Handle mpfr_if_f.
53023         (output_for_one_input_case): Disable all checking for arguments
53024         fitting floating-point types in case of an integer argument.
53025         * sysdeps/i386/fpu/libm-test-ulps: Update.
53026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53027
53028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53029         Don't expect fegetround reference in libm.so.
53030
53031 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53032
53033         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53034         $(config-cflags-nofma).
53035
53036 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53037
53038         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53039         * math/auto-libm-test-out: Regenerated.
53040
53041         [BZ #16338]
53042         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53043         to determine exponent and adjust argument to have exponent of -1.
53044         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53045         log2.
53046         * math/auto-libm-test-out: Regenerated.
53047         * sysdeps/i386/fpu/libm-test-ulps: Update.
53048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53049
53050 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53051
53052         * manual/probes.texi: Remove cases when per-thread arenas are
53053         disabled.
53054
53055 2013-12-18  Andreas Schwab  <schwab@suse.de>
53056
53057         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53058         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53059         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53060         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53061         * sysdeps/i386/i686/multiarch/Makefile: Update.
53062         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53063
53064 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53065
53066         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53067         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53068
53069 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         [BZ #15968]
53072         Support TZ transition times < 00:00:00.
53073         This is needed for version-3 tz-format files; it supports time
53074         stamps past 2037 for America/Godthab (the only entry in the tz
53075         database for which this change is relevant).
53076         * manual/time.texi (TZ Variable): Document transition times
53077         from -167:59:59 through -00:00:01.
53078         * time/tzset.c (tz_rule): Time of day is now signed.
53079         (__tzset_parse_tz): Parse negative time of day.
53080
53081         Document TZ transition times >= 25:00:00.
53082         * manual/time.texi (TZ Variable): Document transition times from
53083         25:00:00 through 167:59:59.  These are already supported, and this
53084         support will help with version-3 tz-format files.
53085
53086         * manual/time.texi (TZ Variable): Modernize North America example
53087         to reflect current (i.e., 2007-and-later) daylight saving rules.
53088
53089         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53090
53091 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53092
53093         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53094         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53095         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53096         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53097         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53098         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53099         * sysdeps/unix/bsd/clock.c: Likewise.
53100         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53101         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53102         * sysdeps/unix/bsd/init-posix.c: Likewise.
53103         * sysdeps/unix/bsd/poll.c: Likewise.
53104         * sysdeps/unix/bsd/ptsname.c: Likewise.
53105         * sysdeps/unix/bsd/seekdir.c: Likewise.
53106         * sysdeps/unix/bsd/setegid.c: Likewise.
53107         * sysdeps/unix/bsd/seteuid.c: Likewise.
53108         * sysdeps/unix/bsd/setgid.c: Likewise.
53109         * sysdeps/unix/bsd/setrgid.c: Likewise.
53110         * sysdeps/unix/bsd/setruid.c: Likewise.
53111         * sysdeps/unix/bsd/setsid.c: Likewise.
53112         * sysdeps/unix/bsd/setuid.c: Likewise.
53113         * sysdeps/unix/bsd/sigaction.c: Likewise.
53114         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53115         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53116         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53117         * sysdeps/unix/bsd/telldir.c: Likewise.
53118         * sysdeps/unix/bsd/times.c: Likewise.
53119         * sysdeps/unix/bsd/usleep.c: Likewise.
53120
53121         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53122         ($(objpfx)libbsd-compat.a): Remove rule.
53123
53124         * include/features.h (__FAVOR_BSD): Do not define.
53125         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53126         features conflicting with POSIX.
53127         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53128         (_BSD_SOURCE): Remove description of not being a subset of other
53129         feature test macros.
53130         * manual/job.texi (getpgrp): Do not document BSD version.
53131         (getpgid): Do not document by reference to BSD getpgrp.
53132         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53133         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53134         * signal/signal.h [__FAVOR_BSD]: Likewise.
53135         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53136         instead of making contents conditional on [__FAVOR_BSD].
53137         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53138
53139 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53140
53141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53142
53143 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53144
53145         [BZ #16314]
53146         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53147         values below 2**-450, not 2**-500.
53148         * math/auto-libm-test-in: Don't allow spurious underflow from
53149         hypot.
53150         * math/auto-libm-test-out: Regenerated.
53151
53152         [BZ #16316]
53153         [BZ #16330]
53154         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53155         values of ha and hb and sort them after adjusting subnormal
53156         arguments.
53157         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53158         Likewise.
53159         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53160         values of ea and eb and sort them after adjusting subnormal
53161         arguments.
53162         * math/auto-libm-test-in: Do not expect some hypot tests of
53163         subnormals to fail.  Add more hypot tests.
53164         * math/auto-libm-test-out: Regenerated.
53165
53166 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53167
53168         [BZ #13304]
53169         * sysdeps/sh/s_fma.c: New file.
53170         * sysdeps/sh/s_fmaf.c: New file.
53171         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53172         version.
53173         * sysdeps/sh/Implies: Add sh/soft-fp.
53174
53175 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53176
53177         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53178         level of indirection to members `objname', `errstring', `malloced'.
53179         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53180         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53181         it as the __longjmp argument (just pass 1 instead).
53182         (_dl_catch_error): Initialize C with argument pointers and address of
53183         volatile local ERRCODE rather than copying values out of C at return.
53184
53185 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53186
53187         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53188         * math/auto-libm-test-out: Regenerated.
53189         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53190         (hypot_test_data): Likewise.
53191         (pow_test_data): Likewise.
53192         (pow_tonearest_test_data): Likewise.
53193         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53194         mpfr_ff_f.
53195         (func_calc_desc): Add mpfr_ff_f union field.
53196         (FUNC_mpfr_ff_f): New macro.
53197         (test_functions): Add atan2, hypot and pow.
53198         (special_fill_min): New function.
53199         (special_fill_minus_min): Likewise.
53200         (special_fill_min_subnorm): Likewise.
53201         (special_fill_minus_min_subnorm): Likewise.
53202         (special_real_inputs): Add min, -min, min_subnorm and
53203         -min_subnorm.
53204         (calc_generic_results): Handle mpfr_ff_f.
53205         * sysdeps/i386/fpu/libm-test-ulps: Update.
53206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53207
53208 2013-12-16  Will Newton  <will.newton@linaro.org>
53209
53210         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53211         (Aligned Memory Blocks): Add documentation for aligned_alloc
53212         and suggest it as an alternative to posix_memalign.
53213         (Hooks for Malloc): Document __memalign_hook is also called
53214         for aligned_alloc.  (Summary of Malloc): Add summary for
53215         aligned alloc.  Document __memalign_hook is also called
53216         for aligned_alloc.
53217
53218 2013-12-16  Will Newton  <will.newton@linaro.org>
53219
53220         * manual/memory.texi (Malloc Examples): Clarify default
53221         alignment documentation.  Suggest posix_memalign rather
53222         than memalign or valloc.
53223         (Aligned Memory Blocks): Remove suggestion to use memalign
53224         or valloc.  Remove obsolete comment about BSD.
53225         Document memalign errno values and mark the function obsolete.
53226         Document posix_memalign returned error codes.  Mark valloc
53227         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53228         called for posix_memalign and valloc.
53229         (Summary of Malloc): Add posix_memalign to function summary.
53230         __memalign_hook is also called for posix_memalign and valloc.
53231
53232 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53233
53234         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53235         TAYLOR_SIN.
53236         (__sin): Adjust.
53237         (__cos): Likewise.
53238         (sloww): Use mynumber union.  Expand ternary operator into
53239         if-else statements.
53240         (cslow): use mynumber union.
53241
53242 2013-12-16  Allan McRae  <allan@archlinux.org>
53243
53244         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53245         * configure: Regenerated.
53246
53247         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53248
53249         [BZ #14120]
53250         * configure.ac: Added --enable-maintainer-mode. Check for
53251         autoconf when enabled.
53252         * configure: Regenerated.
53253
53254         * nscd/nscd.service: New file.
53255         * nscd/nscd.tmpfiles: New file.
53256
53257 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53258
53259         [BZ #12100]
53260         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53261         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53262         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53263         (strstr): Add __strstr_sse2_unaligned ifunc.
53264         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53265         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53266         (strcasestr): Remove __strcasestr_sse42 ifunc.
53267         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53268         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53270
53271 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53272
53273         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53274         * sysdeps/sh/bits/fenv.h: ... here.
53275         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53276
53277 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53278
53279         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53280
53281         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53282         hypotf multiarch implementations.
53283         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53284         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53285         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53286         multiarch hypot for PPC64.
53287         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53288         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53289         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53290         multiarch hypotf for PPC64.
53291
53292         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53293         modff multiarch implementations.
53294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53297         multiarch modf for PPC64.
53298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53301         multiarch modff for PPC64.
53302
53303         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53304         and logl multiarch implementations.
53305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
53307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
53308         multiarch logb for PPC64.
53309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
53310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
53311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
53312         multiarch logb for PPC64.
53313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
53314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
53315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
53316         multiarch logb for PPC64.
53317
53318         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
53319         isinff multiarch implementation.
53320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
53321         file.
53322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
53323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
53324         multiarch isinf for PPC64.
53325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
53326         file.
53327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
53328         multiarch isinff for PPC64.
53329
53330         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
53331         finitef multiarch implementation.
53332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
53333         file.
53334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
53335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
53336         multiarch finite for PPC64.
53337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
53338         file.
53339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
53340         multiarch finitef for PPC64.
53341
53342         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
53343         lrint multiarch implementation.
53344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
53345         file.
53346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
53347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
53348         multiarch llrint for PPC64.
53349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
53350         multiarch lrint for PPC64.
53351
53352         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
53353         copysignf multiarch implementation.
53354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
53355         file.
53356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
53357         file.
53358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
53359         multiarch copysign for PPC64.
53360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
53361         multiarch copysignf for PPC64.
53362
53363         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
53364         multiarch implementation.
53365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
53366         file.
53367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
53368         file.
53369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
53370         file.
53371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
53372         file.
53373         multiarch llround for PPC64.
53374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
53375         multiarch trunc for PPC64.
53376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
53377         multiarch truncf for PPC64.
53378
53379         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
53380         multiarch implementation.
53381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
53382         file.
53383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
53384         file.
53385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
53386         file.
53387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
53388         file.
53389         multiarch llround for PPC64.
53390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
53391         multiarch round for PPC64.
53392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
53393         multiarch roundf for PPC64.
53394
53395         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
53396         multiarch implementation.
53397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
53398         file.
53399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
53400         file.
53401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
53402         file.
53403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
53404         file.
53405         multiarch llround for PPC64.
53406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
53407         multiarch floor for PPC64.
53408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
53409         multiarch floorf for PPC64.
53410
53411         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
53412         multiarch implementation.
53413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
53414         file.
53415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
53416         file.
53417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
53418         file.
53419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
53420         file.
53421         multiarch llround for PPC64.
53422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
53423         multiarch ceil for PPC64.
53424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
53425         multiarch ceilf for PPC64.
53426
53427         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53428         multiarch implementation.
53429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
53430         file.
53431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
53432         file.
53433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
53434         file.
53435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
53436         multiarch llround for PPC64.
53437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
53438         multiarch lround for PPC64.
53439
53440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53441         multiarch implementation.
53442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
53443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
53444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
53445         file.
53446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
53447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
53448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
53449         multiarch isnan for PPC64.
53450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
53451         multiarch isnanf for PPC64.
53452
53453         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
53454         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
53455         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
53456         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
53457         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
53458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
53459
53460         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
53461         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
53462         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53463         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53464
53465         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
53466         multiarch implementations.
53467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53468         (__libc_ifunc_impl_list): Likewise.
53469         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
53470         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
53471         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
53472         multiarch stpcpy for PPC64.
53473
53474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
53475         multiarch implementations.
53476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53477         (__libc_ifunc_impl_list): Likewise.
53478         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
53479         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
53480         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
53481         multiarch strcpy for PPC64.
53482
53483         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
53484         redefine function name.
53485         (_wordcopy_fwd_dest_aligned): Likewise.
53486         (_wordcopy_bwd_aligned): Likewise.
53487         (_wordcopy_bwd_dest_aligned): Likewise.
53488         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
53489         multiarch implementations.
53490         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53491         (__libc_ifunc_impl_list): Likewise.
53492         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
53493         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
53494         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
53495         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
53496         multiarch wcscpy for PPC64.
53497
53498         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
53499         multiarch implementations.
53500         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53501         (__libc_ifunc_impl_list): Likewise.
53502         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
53503         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
53504         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
53505         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
53506         multiarch wcscpy for PPC64.
53507
53508         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
53509         multiarch implementations.
53510         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53511         (__libc_ifunc_impl_list): Likewise.
53512         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
53513         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
53514         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
53515         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
53516         multiarch wcsrchr for PPC64.
53517
53518         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
53519         multiarch implementations.
53520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53521         (__libc_ifunc_impl_list): Likewise.
53522         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
53523         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
53524         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
53525         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
53526         multiarch wcschr for PPC64.
53527
53528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
53529         multiarch implementations.
53530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53531         (__libc_ifunc_impl_list): Likewise.
53532         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
53533         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
53534         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
53535         multiarch strchrnul for PPC64.
53536
53537         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
53538         implementations.
53539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53540         (__libc_ifunc_impl_list): Likewise.
53541         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
53542         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
53543         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
53544         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
53545         strchr for PPC64.
53546
53547         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
53548         implementations.
53549         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53550         (__libc_ifunc_impl_list): Likewise.
53551         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
53552         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
53553         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
53554         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
53555         strncmp for PPC64.
53556
53557         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
53558         multiarch implementations.
53559         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53560         (__libc_ifunc_impl_list): Likewise.
53561         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
53562         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
53563         strncasecmp for PPC64.
53564         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
53565         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
53566         multiarch strncasecmp_l for PPC64.
53567
53568         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
53569         multiarch implementations.
53570         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
53571         (__libc_ifunc_impl_list): Likewise.
53572         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
53573         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
53574         multiarch strcasecmp for PPC64.
53575         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
53576         file.
53577         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
53578         multiarch strcasecmp_l for PPC64.
53579
53580         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
53581         implementations.
53582         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53583         (__libc_ifunc_impl_list): Likewise.
53584         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
53585         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
53586         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
53587         strnlen for PPC64.
53588
53589         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
53590         implementations.
53591         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53592         (__libc_ifunc_impl_list): Likewise.
53593         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
53594         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
53595         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
53596         strlen for PPC64.
53597
53598         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
53599         implementations.
53600         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53601         (__libc_ifunc_impl_list): Likewise.
53602         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
53603         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
53604         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
53605         rawmemrchr for PPC64.
53606
53607         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
53608         implementation.
53609         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53610         (__libc_ifunc_impl_list): Likewise.
53611         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
53612         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
53613         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
53614         memrchr for PPC64.
53615
53616         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
53617         implementation.
53618         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53619         (__libc_ifunc_impl_list): Likewise.
53620         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
53621         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
53622         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
53623         memchr for PPC64.
53624
53625         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
53626         implementation.
53627         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53628         (__libc_ifunc_impl_list): Likewise.
53629         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
53630         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
53631         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
53632         mempcpy for PPC64.
53633
53634         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
53635         avoid cretion of __bzero symbol.
53636         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
53637         Likewise.
53638         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
53639         Likewise.
53640         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
53641         Likewise.
53642         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
53643         multiarch implementations.
53644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53645         (__libc_ifunc_impl_list): Likewise.
53646         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
53647         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
53648         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
53649         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
53650         bzero for PPC32.
53651         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
53652         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
53653         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
53654         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
53655         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
53656         memset for PPC64.
53657         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
53658
53659         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
53660         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
53661         implementations.
53662         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53663         (__libc_ifunc_impl_list): Likewise.
53664         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
53665         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
53666         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
53667         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
53668         memcmp for PPC64.
53669
53670         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
53671         multiarch for POWER/PPC64.
53672         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
53673         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
53674         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
53675         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
53676         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
53677         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
53678         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
53679         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
53680         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
53681         memcpy for PPC64.
53682
53683         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
53684         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
53685         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
53686         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
53687         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
53688         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
53689         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
53690         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
53691         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
53692         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
53693         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
53694         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
53695         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
53696         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
53697         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
53698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
53699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
53700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
53701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
53702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
53703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
53704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
53705
53706 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53707
53708         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
53709
53710 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
53711
53712         * benchtests/Makefile (bench): Add exp2 and log2.
53713         (LDLIBS-bench-exp2): Add -lm.
53714         (LDLIBS-bench-log2): Likewise.
53715         * benchtests/exp2-inputs: New inputs file.
53716         * benchtests/log2-inputs: New inputs file.
53717         * benchtests/log-inputs: Add new inputs.
53718         * benchtests/tan-inputs: Likewise.
53719
53720 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53721
53722         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
53723         definition...
53724         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
53725         (csloww2): ... from here.
53726
53727         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
53728         instead of structures.
53729         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
53730         (POLYNOMIAL): Likewise.
53731         (TAYLOR_SLOW): Likewise.
53732         (__sin): Likewise.
53733         (__cos): Likewise.
53734         (slow1): Likewise.
53735         (slow2): Likewise.
53736         (sloww): Likewise.
53737         (sloww1); Likewise.
53738         (sloww2): Likewise.
53739         (bsloww1): Likewise.
53740         (bsloww2): Likewise.
53741         (cslow2): Likewise.
53742         (csloww): Likewise.
53743         (csloww1): Likewise.
53744         (csloww2): Likewise.
53745
53746 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
53747
53748         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
53749         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
53750         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
53751         * malloc/hooks.c (realloc_check): Likewise.
53752
53753         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
53754         * malloc/arena.c: Remove PER_THREAD conditional.
53755         [!PER_THREAD]: Remove code.
53756         (ptmalloc_unlock_all2): Likewise.
53757         (ptmalloc_init): Likewise.
53758         (_int_new_arena): Likewise.
53759         (arena_get2): Likewise.
53760         * malloc/hooks.c (__malloc_get_state): Likewise.
53761         (__malloc_set_state): Likewise.
53762         * malloc/malloc.c: Likewise.
53763         (struct malloc_state): Likewise.
53764         (struct malloc_par): Likewise.
53765         (__libc_realloc): Likewise.
53766         (__libc_mallopt): Likewise.
53767
53768 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53769
53770         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
53771
53772 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
53773
53774         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
53775         macro to a function.  Check for zero perturb_byte.
53776         (_int_malloc, _int_free): Remove zero perturb_byte checks.
53777
53778         * malloc/malloc.c: (force_reg): Remove.
53779         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
53780         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
53781         force_reg by atomic_forced_read.
53782         * malloc/arena.c (ptmalloc_init): Likewise.
53783         * malloc/hooks.c (top_check): Likewise.
53784
53785 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53786
53787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53788
53789 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
53790
53791         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53792
53793 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
53794
53795         * math/auto-libm-test-in: Add tests of lgamma.
53796         * math/auto-libm-test-out: Regenerated.
53797         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
53798         (M_LOG_2_SQRT_PIl): Likewise.
53799         (lgamma_test_data): Use AUTO_TESTS_f_f1.
53800         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53801         mpfr_f_f1.
53802         (func_calc_desc): Add mpfr_f_f1 union field.
53803         (ARGS1): New macro.
53804         (ARGS2): Likewise.
53805         (ARGS3): Likewise.
53806         (ARGS4): Likewise.
53807         (RET1): Likewise.
53808         (RET2): Likewise.
53809         (CALC): Likewise.
53810         (FUNC): Likewise.
53811         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
53812         (test_functions): Add lgamma.
53813         (calc_generic_results): Handle mpfr_f_f1.
53814         * sysdeps/i386/fpu/libm-test-ulps: Update.
53815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53816
53817 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53818
53819         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
53820         __mpn_add_n for PowerPC64/POWER7.
53821         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
53822         __mpn_sub_n for PowerPC64/POWER7.
53823
53824         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
53825         __mpn_addmul_1 for PowerPC64.
53826         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
53827         __mpn_submul_1 for PowerPC64.
53828         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
53829         for PowerPC64.
53830         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
53831         for PowerPC64.
53832
53833 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
53834
53835         [BZ #15089]
53836         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
53837
53838 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53839
53840         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
53841
53842         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
53843         add multiarch folders.
53844         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
53845         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
53846         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
53847         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
53848         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
53849         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
53850         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
53851         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
53852         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
53853         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
53854         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
53855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
53856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
53857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
53858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
53859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
53860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
53861
53862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
53863         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
53864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
53865         New file.
53866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
53867         New file.
53868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
53869         multiarch __ieee754_hypot for PowerPC32.
53870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
53871         New file.
53872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
53873         New file.
53874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
53875         multiarch __ieee754_hypotf for PowerPC32.
53876
53877         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
53878         long_double_symbol only if __logbl is defined.
53879         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
53880         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
53881         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
53882         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
53883         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
53884         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
53885         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
53886         path for implementation.
53887         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
53888         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
53889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
53890         logb, and logbl multiarch implementations for PowerPC32.
53891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
53892         file.
53893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
53894         file.
53895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
53896         multiarch logb for PowerPC32.
53897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
53898         file.
53899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
53900         file.
53901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
53902         multiarch logbf for PowerPC32.
53903         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
53904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
53905         file.
53906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
53907         multiarch logbl implementation for PowerPC32.
53908
53909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
53910         and modff multiarch implementations.
53911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
53912         New file.
53913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
53914         New file.
53915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
53916         multiarch modf for PowerPC32.
53917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
53918         New file.
53919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
53920         New file.
53921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
53922         multiarch modff for PowerPC32.
53923
53924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
53925         and lrintf multiarch implementations.
53926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
53927         New file.
53928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
53929         New file.
53930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
53931         multiarch lrint for PowerPC32.
53932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
53933         file: multiarch lrintf for PowerPC32.
53934
53935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
53936         and lroundf multiarch implementations.
53937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
53938         New file.
53939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
53940         New file.
53941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
53942         New file.
53943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
53944         multiarch lround for PowerPC32.
53945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
53946         file: multiarch lroundf for PowerPC32.
53947
53948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
53949         copysign and copysignf multiarch implementations.
53950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
53951         New file.
53952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
53953         New file.
53954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
53955         file: multiarch copysign for PowerPC32.
53956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
53957         file: multiarch copysignf for PowerPC32.
53958
53959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
53960         and truncf multiarch implementations.
53961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
53962         New file.
53963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
53964         file.
53965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
53966         multiarch trunc for PowerPC32.
53967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
53968         New file.
53969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
53970         New file.
53971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
53972         multiarch truncf for PowerPC32.
53973
53974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
53975         and roundf multiarch implementations.
53976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
53977         New file.
53978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
53979         file.
53980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
53981         multiarch round for PowerPC32.
53982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
53983         New file.
53984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
53985         New file.
53986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
53987         multiarch roundf for PowerPC32.
53988
53989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
53990         and floorf multiarch implementations.
53991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
53992         New file.
53993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
53994         file.
53995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
53996         multiarch floor for PowerPC32.
53997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
53998         New file.
53999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54000         New file.
54001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54002         multiarch floorf for PowerPC32.
54003
54004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54005         and ceilf multiarch implementations.
54006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54007         New file.
54008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54009         file.
54010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54011         multiarch ceil for PowerPC32.
54012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54013         New file.
54014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54015         file.
54016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54017         multiarch ceilf for PowerPC32.
54018
54019         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54020         is defined.
54021         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54022         FINITEF is defined.
54023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54024         and finitef multiarch implementations.
54025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54026         New file.
54027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54028         file.
54029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54030         multiarch finite for PowerPC32.
54031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54032         New file.
54033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54034         file: multiarch finitef for PowerPC32.
54035
54036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54037         and isinff multiarch implementations.
54038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54039         file.
54040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54041         file.
54042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54043         multiarch isinf for PowerPC32.
54044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54045         New file.
54046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54047         multiarch isinff for PowerPC32.
54048
54049         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54050         alias when __isnan is defined.
54051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54052         and isnanf multiarch implementations.
54053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54054         file.
54055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54056         file.
54057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54058         file.
54059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54060         file.
54061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54062         multiarch isnan for PowerPC32.
54063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54064         New file.
54065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54066         New file.
54067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54068         multiarch isnanf for PowerPC32.
54069
54070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54071         and sqrtf multiarch implementations.
54072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54073         file.
54074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54075         file.
54076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54077         multiarch sqrt for PowerPC32.
54078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54079         file.
54080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54081         file.
54082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54083         multiarch sqrtf for PowerPC32.
54084
54085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54086         and llroundf multiarch implementations.
54087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54088         New file.
54089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54090         New file.
54091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54092         New file.
54093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54094         file: multiarch llround for PowerPC32.
54095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54096         file: multiarch llroundf for PowerPC32.
54097
54098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54099         multiarch PowerPC32 fpu implementations.
54100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54101         New file.
54102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54103         New file.
54104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54105         multiarch llrint for PowerPC32.
54106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54107         New file.
54108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54109         New file.
54110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54111         file.
54112
54113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54114
54115         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54116         file.
54117         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54118         file.
54119         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54120         file.
54121         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54122         multiarch wordcopy for PPC32.
54123         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54124         wordcopy objects.
54125         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54126         (__libc_ifunc_impl_list): Likewise.
54127         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54128         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54129         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54130         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54131         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54132         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54133
54134         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54135         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54136         file.
54137         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54138         file.
54139         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54140         file.
54141         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54142         multiarch wcscpy for PPC32.
54143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54144         multiarch objects.
54145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54146         (__libc_ifunc_impl_list): Likewise.
54147         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54148         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54149         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54150         sysdeps/powerpc/power6/wcscpy.c.
54151
54152         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54153         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54154         file.
54155         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54156         file.
54157         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54158         file.
54159         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54160         multiarch wcsrchr for PPC32.
54161         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54162         multiarch objects.
54163         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54164         (__libc_ifunc_impl_list): Likewise.
54165         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54166         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54167         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54168         sysdeps/powerpc/power6/wcsrchr.c.
54169
54170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54171         file.
54172         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54173         file.
54174         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54175         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54176         multiarch wcschr for PPc32.
54177         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54178         multiarch objects.
54179         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54180         (__libc_ifunc_impl_list): Likewise.
54181         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54182         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54183         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54184         sysdeps/powerpc/power6/wcschr.c.
54185
54186         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54187         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54188         file.
54189         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54190         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54191         file: multiarch strchr for PPC32.
54192         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54193         multiarch objects.
54194         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54195         (__libc_ifunc_impl_list): Likewise.
54196
54197         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54198         name.
54199         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54200         file.
54201         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54202         file.
54203         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54204         multiarch strchrnul for PPC32.
54205         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54206         multiarch objects.
54207         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54208         (__libc_ifunc_impl_list): Likewise.
54209
54210         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54211         file.
54212         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54213         multiarch strncasecmp for PPC32.
54214         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54215         file.
54216         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54217         multiarch strncasecmp_l for PPC32.
54218         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54219         strncasecmp multiarch objects.
54220         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54221         (__libc_ifunc_impl_list): Likewise.
54222
54223         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54224         file.
54225         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54226         multiarch strncasecmp for PPC32.
54227         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54228         New file.
54229         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54230         multiarch strcasecmp_l for PPC32.
54231         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54232         multiarch objects.
54233         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54234         (__libc_ifunc_impl_list): Likewise.
54235
54236         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54237         file.
54238         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54239         file.
54240         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54241         multiarch strncmp for PPC32.
54242         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54243         multiarch objects.
54244         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54245         (__libc_ifunc_impl_list): Likewise.
54246
54247         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54248         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54249         file.
54250         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54251         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54252         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54253         multiarch objects.
54254         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54255         (__libc_ifunc_impl_list): Likewise.
54256
54257         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54258         file.
54259         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54260         file.
54261         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54262         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54263         multiarch objects.
54264         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54265         (__libc_ifunc_impl_list): Likewise.
54266
54267         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54268         file.
54269         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54270         file.
54271         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54272         multiarch rawmemchr for PPC32.
54273         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54274         multiarch objects.
54275         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54276         (__libc_ifunc_impl_list): Likewise.
54277
54278         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54279         file.
54280         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54281         file.
54282         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54283         file: memrchr multiarch for PPC32.
54284         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54285         multiarch objects.
54286         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54287         (__libc_ifunc_impl_list): Likewise.
54288
54289         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54290         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54291         file.
54292         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54293         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54294         multiarch memchr for PPC32.
54295         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54296         multiarch objects.
54297         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54298         (__libc_ifunc_impl_list): Likewise.
54299
54300         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54301         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54302         file.
54303         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54304         file.
54305         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54306         file: multiarch mempcpy for PPC32.
54307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
54308         multiarch objects.
54309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54310         (__libc_ifunc_impl_list): Likewise.
54311
54312         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
54313         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
54314         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
54315         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
54316         multiarch bzero for PPC32.
54317         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
54318         file.
54319         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
54320         file.
54321         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
54322         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
54323         file: multiarch memset for PPC32.
54324         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
54325         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
54326         memset multiarch objects.
54327         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54328         (__libc_ifunc_impl_list): Likewise.
54329
54330         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
54331         file.
54332         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
54333         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
54334         memcmp for PPC32.
54335         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
54336         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
54337         multiarch objects.
54338         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54339         (__libc_ifunc_impl_list): Likewise.
54340
54341         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
54342         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
54343         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
54344         file.
54345         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
54346         file.
54347         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
54348         file.
54349         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
54350         multiarch memcpy for PPC32.
54351         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
54352         multiarch objects.
54353         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54354         (__libc_ifunc_impl_list): Likewise.
54355
54356         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
54357         support multiarch for POWER/PPC32.
54358         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
54359         Likewise.
54360         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
54361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
54362         Implies file to make multiarch folder appers before the fpu and
54363         default folder for power4 configuration.
54364
54365 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54366
54367         * scripts/bench.pl: Append volatile keyword to type.
54368
54369 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54370
54371         * sysdeps/sh/sotruss-lib.c: New file.
54372         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
54373
54374 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54375
54376         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54377
54378 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
54379
54380         [BZ #6810]
54381         * math/w_tgamma.c: Include <errno.h>.
54382         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
54383         * math/w_tgammaf.c: Include <errno.h>.
54384         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
54385         * math/w_tgammal.c: Include <errno.h>.
54386         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
54387         * math/auto-libm-test-in: Do not allow missing errno on tgamma
54388         underflow.  Add more tgamma tests.
54389         * math/auto-libm-test-out: Regenerated.
54390         * sysdeps/i386/fpu/libm-test-ulps: Update.
54391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54392
54393         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
54394         sin, sinh, tan, tanh, tgamma, y0 and y1.
54395         * math/auto-libm-test-out: Regenerated.
54396         * math/libm-test.inc (TEST_COND_x86_64): New macro.
54397         (TEST_COND_x86): Likewise.
54398         (M_E2l): Remove macro.
54399         (M_E3l): Likewise.
54400         (M_2_SQRT_PIl): Likewise.
54401         (M_SQRT_PIl): Likewise.
54402         (M_1_DIV_El): Likewise.
54403         (log_test_data): Use AUTO_TESTS_f_f.
54404         (log10_test_data): Likewise.
54405         (log1p_test_data): Likewise.
54406         (log2_test_data): Likewise.
54407         (sin_test_data): Likewise.
54408         (sin_tonearest_test_data): Likewise.
54409         (sin_towardzero_test_data): Likewise.
54410         (sin_downward_test_data): Likewise.
54411         (sin_upward_test_data): Likewise.
54412         (sinh_test_data): Likewise.
54413         (sinh_tonearest_test_data): Likewise.
54414         (sinh_towardzero_test_data): Likewise.
54415         (sinh_downward_test_data): Likewise.
54416         (sinh_upward_test_data): Likewise.
54417         (tan_test_data): Likewise.
54418         (tan_tonearest_test_data): Likewise.
54419         (tan_towardzero_test_data): Likewise.
54420         (tan_downward_test_data): Likewise.
54421         (tan_upward_test_data): Likewise.
54422         (tanh_test_data): Likewise.
54423         (tgamma_test_data): Likewise.
54424         (y0_test_data): Likewise.
54425         (y1_test_data): Likewise.
54426         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
54427         (special_real_inputs): Add pi/4.
54428         * sysdeps/i386/fpu/libm-test-ulps: Update.
54429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54430
54431 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54432
54433         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
54434         "longjmp_target" static probes.
54435         (__longjmp): Rename to __longjmp_symbol.
54436         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
54437         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
54438         on which longjmp to generate.
54439         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
54440         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
54441         probe.
54442         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54443         (__sigjmp_save): Rename to __sigjmp_save_symbol.
54444         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
54445         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
54446         and __sigjmp_save_symbol based on which sigsetjmp to generated.
54447         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
54448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
54449         __longjmp_symbol based on which __longjmp to generate.
54450         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
54451         probe.
54452         (setjmp): Rename to setjmp_symbol.
54453         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54454         (_setjmp): Rename to _setjmp_symbol.
54455         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54456         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
54457         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
54458         which setjmp to generate.
54459         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
54460         "longjmp_target" static probes.
54461
54462 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
54463
54464         * benchtests/README: Add note about output arguments.
54465         * benchtests/bench-sincos.c: Remove file.
54466         * benchtests/sincos-inputs: New file.
54467         * scripts/bench.pl: Identify output arguments and define
54468         static variables for them.
54469
54470         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
54471
54472         [BZ #15941]
54473         * Makefile (INSTALL): Add install-plain.texi as the primary
54474         dependency.
54475         * manual/install-plain.texi: New file.
54476         * manual/install.texi: Include node directive only for
54477         non-plaintext output.
54478
54479 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
54480
54481         * stdlib/longlong.h: Update from GCC.
54482
54483         [BZ #6807]
54484         [BZ #15901]
54485         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
54486         * math/w_j0f.c (y0f): Likewise.
54487         * math/w_j0l.c (__y0l): Likewise.
54488         * math/w_j1.c (y1): Likewise.
54489         * math/w_j1f.c (y1f): Likewise.
54490         * math/w_j1l.c (__y1l): Likewise.
54491         * math/w_jn.c (yn): Likewise.
54492         * math/w_jnf.c (ynf): Likewise.
54493         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
54494         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
54495         value for Bessel function domain errors outside _SVID_ mode.
54496         Adjust sign of return value for yn (negative integer, 0).
54497         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
54498         by zero in return for negative x and set sign appropriately for
54499         negative n.
54500         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
54501         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
54502         * math/libm-test.inc (y0_test_data): Add more tests and adjust
54503         expectations in error cases.
54504         (y1_test_data): Likewise.
54505         (yn_test_data): Likewise.
54506         * sysdeps/i386/fpu/libm-test-ulps: Update.
54507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54508
54509 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54510
54511         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
54512         "64" to "64-v1".  Add "64-v2".
54513         (abi-64-options): Rename to ...
54514         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
54515         (abi-64-condition): Rename to ...
54516         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
54517         (abi-64-ld-soname): Rename to ...
54518         (abi-64-v1-ld-soname): ... this.
54519         (abi-64-v2-options): Define.
54520         (abi-64-v2-condition): Likewise.
54521         (abi-64-v2-ld-soname): Likewise.
54522         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
54523         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
54524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
54525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
54526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
54527
54528 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54529             Alan Modra  <amodra@gmail.com>
54530
54531         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
54532         New versions for use with the ELFv2 ABI.
54533         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
54534         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
54535         declaration.
54536         (struct La_ppc64v2_retval): Likewise.
54537         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
54538         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
54539         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
54540         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
54541         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
54542         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
54543         Do not save or restore CR.
54544         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
54545         (_dl_profile_resolve): Do no save or restore CR.  Support extended
54546         return values for ELFv2 ABI.  Fix location of FPR return registers.
54547         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
54548         updated values for _CALL_ELF == 2.
54549         (La_regs, La_retval, int_retval): Likewise.
54550
54551 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54552
54553         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
54554         (FRAME_MIN_SIZE_PARM): Likewise.
54555         (FRAME_BACKCHAIN): Likewise.
54556         (FRAME_CR_SAVE): Likewise.
54557         (FRAME_LR_SAVE): Likewise.
54558         (FRAME_TOC_SAVE): Likewise.
54559         (FRAME_PARM_SAVE): Likewise.
54560         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
54561         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
54562         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54563         (call_mcount_parm_offset): New macro.
54564         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
54565         (PROF): Use symbolic stack frame offsets.
54566         (TAIL_CALL_SYSCALL_ERROR): Likewise.
54567         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
54568         Redefine in terms of FRAME_MIN_SIZE.
54569         (_dl_runtime_resolve): Use symbolic stack frame offsets.
54570         (_dl_profile_resolve): Likewise.  Update comment.
54571         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
54572         symbols stack frame offsets.
54573         (__sigsetjmp): Likewise.
54574         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
54575         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
54576         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
54577         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
54578
54579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
54580         (FRAME_BACKCHAIN): Remove.
54581         (FRAME_CR_SAVE): Likewise.
54582         (FRAME_LR_SAVE): Likewise.
54583         (FRAME_COMPILER_DW): Likewise.
54584         (FRAME_LINKER_DW): Likewise.
54585         (FRAME_TOC_SAVE): Likewise.
54586         (FRAME_PARM_SAVE): Likewise.
54587         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
54588         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
54589         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
54590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
54591         (CHECK_SP): Use symbolic stack frame offsets.
54592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
54593         zone" instead of caller's parameter save area for temp storage.
54594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
54595         Likewise.  Also, use symbolic stack frame offsets.
54596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
54597         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
54598         our own stack frame instead of the caller's.
54599         (__socket): Use symbolic stack frame offsets.
54600
54601 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54602             Alan Modra  <amodra@gmail.com>
54603
54604         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
54605         Define.
54606         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
54607         (PPC64_LOCAL_ENTRY_OFFSET): Define.
54608         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
54609         New function.
54610         (elf_machine_fixup_plt): Call it.
54611         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
54612         reloc arguments.
54613         (elf_machine_rela): Update call to elf_machine_plt_conflict.
54614         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54615         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
54616         r2 before calling target.
54617
54618 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54619             Alan Modra  <amodra@gmail.com>
54620
54621         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
54622         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
54623         versions of macros to support ELFv2 ABI.
54624         (LOCALENTRY): New macro.
54625         (ENTRY, EALIGN): Use it.
54626         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
54627         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
54628         fall through into ENTRY entry point.
54629         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
54630         Only define if _CALL_ELF != 2.
54631
54632         (elf_machine_matches_host): Verify ABI version matches.
54633         (RTLD_START): Use LOCALENTRY.
54634         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
54635         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
54636         (PLT_ENTRY_WORDS): New macro.
54637         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
54638         (elf_machine_runtime_setup): Support ELFv2 ABI.
54639         (elf_machine_fixup_plt): Likewise.
54640         (elf_machine_plt_conflict): Likewise.
54641         (resolve_ifunc): Likewise.
54642         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
54643         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
54644         Likewise.
54645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
54646         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
54647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54648         (makecontext): Support ELFv2 ABI.
54649         * elf/elf.h (EF_PPC64_ABI): Define.
54650
54651 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54652
54653         * sysdeps/powerpc/powerpc64/sysdep.h
54654         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
54655         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
54656         (ENTRY) [ASSEMBLER]: ... but instead here ...
54657         (EALIGN) [ASSEMBLER]: ... and here.
54658         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
54659         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
54660         (ENTRY_2) [!ASSEMBLER]: Use it.
54661         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
54662         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
54663         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
54664         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
54665         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
54666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
54667         Use PPC64_LOAD_FUNCPTR.
54668
54669         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
54670
54671 2013-12-04  Alan Modra  <amodra@gmail.com>
54672
54673         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
54674         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
54675         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
54676         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
54677
54678         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
54679         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
54680         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
54681         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
54682         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
54683         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
54684
54685 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54686
54687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
54688         (__makecontext): Fix incorrect CFI when backtracing out of
54689         context created via makecontext.
54690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
54691         (__setcontext): Fix incorrect CFI during switch to new context.
54692         (__novec_setcontext): Likewise.
54693
54694 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54695
54696         [BZ #4772]
54697         * time/strptime_l.c (__strptime_internal): Allow modifiers
54698         in strptime.
54699         * time/tst-strptime.c (day_tests): Add testcase.
54700
54701 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
54702
54703         * scripts/bench.pl: Skip over blank lines.
54704
54705 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         [BZ #926]
54708         * manual/time.texi (Calendar Time): Clarify what timezone functions
54709         use.
54710
54711 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54712
54713         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54714
54715 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
54716
54717         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
54718         implementation.
54719         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
54720         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
54721         * debug/memset_chk.c (__memset_chk): Likewise.
54722         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
54723         * debug/strncpy_chk.c: Likewise.
54724
54725 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54726
54727         [BZ #15268]
54728         [BZ #15425]
54729         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
54730         (__ieee754_exp): For possibly underflowing results, check size of
54731         result and force underflow exception if required.
54732         * math/auto-libm-test-in: Add more tests of exp.
54733         * math/auto-libm-test-out: Regenerated.
54734         * sysdeps/i386/fpu/libm-test-ulps: Update.
54735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54736
54737         [BZ #16283]
54738         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
54739         * math/w_exp2f.c (__exp2f): Likewise.
54740         * math/w_exp2l.c (__exp2l): Likewise.
54741         * math/auto-libm-test-in: Do not allow missing errno on exp2
54742         underflow.
54743         * math/auto-libm-test-out: Regenerated.
54744
54745 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
54746
54747         [BZ #16274]
54748         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
54749         handle filename validation.
54750         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
54751         (do_open): Delete.
54752
54753 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
54754
54755         [BZ #6786]
54756         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
54757         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
54758         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
54759         <float.h>.
54760         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
54761         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
54762         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54763         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
54764         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54765         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
54766         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
54767         * math/auto-libm-test-in: Don't allow missing errno from erfc.
54768         Add more erfc tests.
54769         * math/auto-libm-test-out: Regenerated.
54770         * sysdeps/i386/fpu/libm-test-ulps: Update.
54771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54772
54773         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
54774         exp2, expm1, j0 and j1.
54775         * math/auto-libm-test-out: Regenerated.
54776         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
54777         (erfc_test_data): Likewise.
54778         (exp_test_data): Likewise.
54779         (exp_tonearest_test_data): Likewise.
54780         (exp_towardzero_test_data): Likewise.
54781         (exp_downward_test_data): Likewise.
54782         (exp_upward_test_data): Likewise.
54783         (exp10_test_data): Likewise.
54784         (exp2_test_data): Likewise.
54785         (expm1_test_data): Likewise.
54786         (j0_test_data): Likewise.
54787         (j1_test_data): Likewise.
54788         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
54789         (input_flag_type): Add flag_xfail_rounding.
54790         (input_flags): Add xfail-rounding.
54791         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
54792         (output_for_one_input_case): Handle flag_xfail_rounding.
54793         * sysdeps/i386/fpu/libm-test-ulps: Update.
54794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54795
54796 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
54797
54798         [BZ #16289]
54799         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
54800         division by 0.
54801
54802 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
54803
54804         [BZ #16195]
54805         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
54806         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
54807         (STAP_PROBE0): New macro.
54808         (STAP_PROBE1): Likewise.
54809         (STAP_PROBE2): Likewise.
54810         (STAP_PROBE3): Likewise.
54811         (STAP_PROBE4): Likewise.
54812
54813 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
54814
54815         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
54816
54817 2013-12-02  Steve Ellcey  <sellcey@mips.com>
54818
54819         * benchtests/Makefile (bench): Add sqrt.
54820         (LDLIBS-bench-sqrt): New.
54821         * benchtests/sqrt-input: New.
54822
54823 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
54824
54825         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
54826         (GAIH_EAI): Likewise.
54827         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
54828         (gaih_inet): Likewise.
54829         (getaddrinfo): Don't use GAIH_EAI.
54830
54831         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
54832         (struct gaih): Remove definition.
54833
54834 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
54835
54836         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
54837         Use HERRNOP directly.
54838
54839 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54840
54841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54842
54843 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
54844
54845         * math/gen-auto-libm-tests.c (test_functions): Add more
54846         single-argument functions.
54847         (special_fill_pi_2): New function.
54848         (special_fill_minus_pi_2): Likewise.
54849         (special_fill_pi_6): Likewise.
54850         (special_fill_minus_pi_6): Likewise.
54851         (special_fill_pi_3): Likewise.
54852         (special_fill_2pi_3): Likewise.
54853         (special_fill_e): Likewise.
54854         (special_fill_1_e): Likewise.
54855         (special_fill_e_minus_1): Likewise.
54856         (special_real_inputs): Add more special inputs.
54857         (output_for_one_input_case): Do not require ERANGE on underflow to
54858         zero if round-to-nearest result does not underflow to zero, unless
54859         exact results required.
54860         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
54861         atan, atanh, cbrt, cos and cosh.
54862         * math/auto-libm-test-out: Regenerated.
54863         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
54864         (acos_tonearest_test_data): Likewise.
54865         (acos_towardzero_test_data): Likewise.
54866         (acos_downward_test_data): Likewise.
54867         (acos_upward_test_data): Likewise.
54868         (acosh_test_data): Likewise.
54869         (asin_test_data): Likewise.
54870         (asin_tonearest_test_data): Likewise.
54871         (asin_towardzero_test_data): Likewise.
54872         (asin_upward_test_data): Likewise.
54873         (asinh_test_data): Likewise.
54874         (atan_test_data): Likewise.
54875         (atanh_test_data): Likewise.
54876         (cbrt_test_data): Likewise.
54877         (cos_test_data): Likewise.
54878         (cos_tonearest_test_data): Likewise.
54879         (cos_towardzero_test_data): Likewise.
54880         (cos_downward_test_data): Likewise.
54881         (cos_upward_test_data): Likewise.
54882         (cosh_test_data): Likewise.
54883         (cosh_tonearest_test_data): Likewise.
54884         (cosh_towardzero_test_data): Likewise.
54885         (cosh_downward_test_data): Likewise.
54886         (cosh_upward_test_data): Likewise.
54887         * sysdeps/i386/fpu/libm-test-ulps: Update.
54888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54889
54890 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
54891
54892         [BZ #6787]
54893         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
54894         * math/w_exp10f.c (__exp10f): Likewise.
54895         * math/w_exp10l.c (__exp10l): Likewise.
54896         * math/libm-test.inc (exp10_test_data): Add more tests and expect
54897         errno settings in existing tests.
54898
54899         [BZ #14032]
54900         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
54901         precision control set to double precision.
54902         * sysdeps/i386/fpu/w_sqrt.c: New file.
54903         * math/auto-libm-test-in: Add more tests.
54904         * math/auto-libm-test-out: Update.
54905
54906         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
54907         (sqrt_test_tonearest): New function.
54908         (sqrt_towardzero_test_data): New variable.
54909         (sqrt_test_towardzero): New function.
54910         (sqrt_downward_test_data): New variable.
54911         (sqrt_test_downward): New function.
54912         (sqrt_upward_test_data): New variable.
54913         (sqrt_test_upward): New function.
54914         (main): Call the new functions.
54915
54916         * math/gen-auto-libm-tests.c: New file.
54917         * math/auto-libm-test-in: Likewise.
54918         * math/auto-libm-test-out: New generated file.
54919         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
54920         variables.
54921         (%beautify): Add generated representations of zero.
54922         (top level): Set $auto_input and call parse_auto_input.
54923         (beautify): Remove trailing "f" from hex float constants.
54924         (parse_args): Handle XFAIL_TEST.
54925         (convert_condition): New function.
54926         (or_value): Likewise.
54927         (or_cond_value): Likewise.
54928         (generate_testfile): Handle AUTO_TESTS_* lines.
54929         (parse_auto_input): New function.
54930         * math/libm-test.inc (XFAIL_TEST): New macro.
54931         (ERRNO_UNCHANGED): Update value.
54932         (ERRNO_EDOM): Likewise.
54933         (ERRNO_ERANGE): Likewise.
54934         (IGNORE_RESULT): Likewise.
54935         (TEST_COND_flt_32): New macro.
54936         (TEST_COND_dbl_64): Likewise.
54937         (TEST_COND_ldbl_96_intel): Likewise.
54938         (TEST_COND_ldbl_96_m68k): Likewise.
54939         (TEST_COND_ldbl_128): Likewise.
54940         (TEST_COND_ldbl_128ibm): Likewise.
54941         (TEST_COND_long32): Likewise.
54942         (TEST_COND_long64): Likewise.
54943         (TEST_COND_before_rounding): Likewise.
54944         (TEST_COND_after_rounding): Likewise.
54945         (enable_test): Handle XFAIL_TEST flag.
54946         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
54947         with finite results.
54948         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
54949         auto-libm-test-out.
54950
54951 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54952             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54953
54954         [BZ #16214]
54955         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
54956         __tls_get_addr_internal instead of __tls_get_offset in order to
54957         avoid GOT pointer dependency.  Make rtld export
54958         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
54959         __tls_get_addr since we are a __tls_get_offset platform.
54960         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
54961         GOT pointer being set up before.
54962         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
54963
54964 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
54965
54966         * manual/math.texi (Errors in Math Functions): Document accuracy
54967         goals.
54968
54969         [BZ #15004]
54970         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
54971         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
54972         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
54973         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
54974         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
54975         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
54976         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
54977         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
54978         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
54979         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
54980         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
54981         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
54982         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
54983         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
54984         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
54985         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
54986
54987         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
54988         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
54989         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
54990         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
54991         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
54992         Likewise.
54993         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
54994         Likewise.
54995         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
54996         Likewise.
54997         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
54998         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
54999         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55000         atomic-feupdateenv and flt-rounds.
55001         * sysdeps/powerpc/nofpu/Versions (libc): Add
55002         __atomic_feholdexcept, __atomic_feclearexcept,
55003         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55004         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55005         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55006         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55007         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55008         here.
55009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55010         Update.
55011
55012         * manual/arith.texi (FP Exceptions): Document that exceptions may
55013         not be raised when matherr is used.
55014         (Math Error Reporting): Document overflow in directed rounding
55015         modes.  Document that errno may not be set when finite values are
55016         returned on overflow.  Document intent to set errno on underflow
55017         only for underflow to zero.
55018
55019         [BZ #16271]
55020         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55021         round-to-nearest then adjust result for other rounding modes.
55022         * include/fenv.h (fegetround): Use libm_hidden_proto.
55023         * math/fegetround.c (fegetround): Use libm_hidden_def.
55024         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55025         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55026         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55027         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55028         Likewise.
55029         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55030         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55031         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55032         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55033
55034 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55035
55036         [BZ #16077]
55037         * nss/Versions (libnss_files): Add
55038         _nss_files_gethostbyname3_r.
55039         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55040         New function.
55041         (HOST_DB_LOOKUP): Remove macro.
55042         (_nss_files_gethostbyname_r): Implement function without the
55043         HOST_DB_LOOKUP macro.
55044         (_nss_files_gethostbyname2_r): Likewise.
55045
55046 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55047
55048         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55049
55050 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55051
55052         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55053         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55054         warning.
55055
55056 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55057
55058         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55059         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55060         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55061         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55062         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55063         __fe_nomask_env_priv and attribute_hidden.
55064         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55065         (libc_feupdateenv_test_ppc): Likewise.
55066         (libc_feresetround_ppc): Likewise.
55067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55068         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55069         compat_symbol macro.
55070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55071         (__fe_nomask_env): Likewise.
55072         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55073
55074 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55075
55076         * string/Makefile: Remove ifunc tests.
55077         * string/test-string.h: Define TEST_IFUNC.
55078         * string/test-bcopy-ifunc.c: Remove.
55079         * string/test-bzero-ifunc.c: Likewise.
55080         * string/test-memccpy-ifunc.c: Likewise.
55081         * string/test-memchr-ifunc.c: Likewise.
55082         * string/test-memcmp-ifunc.c: Likewise.
55083         * string/test-memcpy-ifunc.c: Likewise.
55084         * string/test-memmem-ifunc.c: Likewise.
55085         * string/test-memmove-ifunc.c: Likewise.
55086         * string/test-mempcpy-ifunc.c: Likewise.
55087         * string/test-memrchr-ifunc.c: Likewise.
55088         * string/test-memset-ifunc.c: Likewise.
55089         * string/test-rawmemchr-ifunc.c: Likewise.
55090         * string/test-stpcpy-ifunc.c: Likewise.
55091         * string/test-stpncpy-ifunc.c: Likewise.
55092         * string/test-strcasecmp-ifunc.c: Likewise.
55093         * string/test-strcasestr-ifunc.c: Likewise.
55094         * string/test-strcat-ifunc.c: Likewise.
55095         * string/test-strchr-ifunc.c: Likewise.
55096         * string/test-strchrnul-ifunc.c: Likewise.
55097         * string/test-strcmp-ifunc.c: Likewise.
55098         * string/test-strcpy-ifunc.c: Likewise.
55099         * string/test-strcspn-ifunc.c: Likewise.
55100         * string/test-strlen-ifunc.c: Likewise.
55101         * string/test-strncasecmp-ifunc.c: Likewise.
55102         * string/test-strncat-ifunc.c: Likewise.
55103         * string/test-strncmp-ifunc.c: Likewise.
55104         * string/test-strncpy-ifunc.c: Likewise.
55105         * string/test-strnlen-ifunc.c: Likewise.
55106         * string/test-strpbrk-ifunc.c: Likewise.
55107         * string/test-strrchr-ifunc.c: Likewise.
55108         * string/test-strspn-ifunc.c: Likewise.
55109         * string/test-strstr-ifunc.c: Likewise.
55110
55111 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55112
55113         * benchtests/Makefile: Remove ifunc tests.
55114         * benchtests/bench-string.h: Define TEST_IFUNC.
55115         * benchtests/bench-bcopy-ifunc.c: Remove.
55116         * benchtests/bench-bzero-ifunc.c: Likewise.
55117         * benchtests/bench-memccpy-ifunc.c: Likewise.
55118         * benchtests/bench-memchr-ifunc.c: Likewise.
55119         * benchtests/bench-memcmp-ifunc.c: Likewise.
55120         * benchtests/bench-memcpy-ifunc.c: Likewise.
55121         * benchtests/bench-memmem-ifunc.c: Likewise.
55122         * benchtests/bench-memmove-ifunc.c: Likewise.
55123         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55124         * benchtests/bench-memrchr-ifunc.c: Likewise.
55125         * benchtests/bench-memset-ifunc.c: Likewise.
55126         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55127         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55128         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55129         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55130         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55131         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55132         * benchtests/bench-strcat-ifunc.c: Likewise.
55133         * benchtests/bench-strchr-ifunc.c: Likewise.
55134         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55135         * benchtests/bench-strcmp-ifunc.c: Likewise.
55136         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55137         * benchtests/bench-strcpy-ifunc.c: Likewise.
55138         * benchtests/bench-strcspn-ifunc.c: Likewise.
55139         * benchtests/bench-strlen-ifunc.c: Likewise.
55140         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55141         * benchtests/bench-strncat-ifunc.c: Likewise.
55142         * benchtests/bench-strncmp-ifunc.c: Likewise.
55143         * benchtests/bench-strncpy-ifunc.c: Likewise.
55144         * benchtests/bench-strnlen-ifunc.c: Likewise.
55145         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55146         * benchtests/bench-strrchr-ifunc.c: Likewise.
55147         * benchtests/bench-strsep-ifunc.c: Likewise.
55148         * benchtests/bench-strspn-ifunc.c: Likewise.
55149         * benchtests/bench-strstr-ifunc.c: Likewise.
55150
55151 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55152
55153         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55154
55155 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55156
55157         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55158         * rt/aio.h: Likewise.
55159         * sysdeps/gnu/bits/utmp.h: Likewise.
55160         * sysdeps/gnu/bits/utmpx.h: Likewise.
55161         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55162         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55163         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55164         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55165         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55166         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55167         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55168         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55169         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55170         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55171         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55172         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55173         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55175         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55176         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55177         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55178         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55179         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55180         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55181         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55182         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55183         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55184         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55185         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55186         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55187         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55188         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55189         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55190         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55191         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55192         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55193         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55194         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55195         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55196         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55197         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55198         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55199         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55200         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55201         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55202         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55203
55204 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55205
55206         [BZ #16245]
55207         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55208         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55209
55210 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55211
55212         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55213         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55214         Likewise.
55215
55216 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55217
55218         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55219         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55220         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55221         (__fesetround): Remove define.
55222         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55223         rounding and exceptions handling.
55224         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55225         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55226         (__fe_nomask_env): Likewise.
55227         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55228         __fegetround instead of fegetround.
55229         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55230         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55231
55232 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55233
55234         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55235         it's there.
55236
55237         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55238
55239 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55240
55241         [BZ #11157]
55242         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55243         (encrypt_r): Likewise.
55244         * malloc/obstack.h (obstack_free): Likewise.
55245         * posix/unistd.h (encrypt): Likewise.
55246
55247 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55248
55249         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55250         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55251         DL_CALL_DT_FINI() that call the functions directly.
55252         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55253         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55254         * elf/dl-fini.c: Likewise.
55255
55256 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55257
55258         * malloc/hooks.c (memalign_check): Add alignment rounding.
55259         * malloc/malloc.c (_mid_memalign): New function.
55260         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55261         Implement by calling _mid_memalign.
55262         * manual/probes.texi (Memory Allocation Probes): Remove
55263         memory_valloc_retry and memory_pvalloc_retry.
55264
55265 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55266
55267         * locale/programs/locarchive.c (open_archive): Add const
55268         qualifier to ARCHIVEFNAME and copy default fname to
55269         DEFAULT_FNAME.
55270
55271         [BZ #15601]
55272         * libio/tst-widetext.input: Rename Oriya to Odia.
55273         * locale/iso-639.def: Likewise.
55274
55275         * manual/probes.texi (Mathematical Function Probes): Add
55276         documentation for sin, cos, asin and acos probes.
55277         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55278         (__sin32): Add slowasin probe.
55279         (__cos32): Add slowacos probe.
55280         (__mpsin): Add slowsin probe.
55281         (__mpcos): Add slowcos probe.
55282
55283 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55284
55285         [BZ #15483]
55286         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55287         thread-local __sim_exceptions_thread and global
55288         __sim_exceptions_global.
55289         (__sim_disabled_exceptions): Change to thread-local
55290         __sim_disabled_exceptions_thread and global
55291         __sim_disabled_exceptions_global.
55292         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55293         and global __sim_round_mode_global.
55294         (__simulate_exceptions): Use thread-local floating-point state and
55295         set global state from it as needed.
55296         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55297         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55298         __sim_round_mode_thread.
55299         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55300         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55301         and global __sim_exceptions_global.
55302         (__sim_disabled_exceptions): Change to thread-local
55303         __sim_disabled_exceptions_thread and global
55304         __sim_disabled_exceptions_global.
55305         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55306         and global __sim_round_mode_global.
55307         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
55308         (SIM_SET_GLOBAL): Likewise.
55309         * sysdeps/powerpc/soft-fp/sfp-machine.h
55310         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
55311         __sim_round_mode_thread.
55312         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
55313         __sim_disabled_exceptions_thread.
55314         (__sim_exceptions): Change to __sim_exceptions_thread.
55315         (__sim_disabled_exceptions): Change to
55316         __sim_disabled_exceptions_thread.
55317         (__sim_round_mode): Change to __sim_round_mode_thread.
55318         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
55319         thread-local floating-point state and set global state from it as
55320         needed.
55321         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
55322         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
55323         (__sim_disabled_exceptions): Remove extern declaration.
55324         (feenableexcept): Use thread-local floating-point state and set
55325         global state from it as needed.
55326         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
55327         extern declaration.
55328         (__sim_disabled_exceptions): Likewise.
55329         (__sim_round_mode): Likewise.
55330         (__fegetenv): Use thread-local floating-point state.
55331         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
55332         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55333         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
55334         floating-point state and set global state from it as needed.
55335         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
55336         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
55337         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
55338         Likewise.
55339         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
55340         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
55341         Likewise.
55342         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
55343         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
55344         Use __sim_round_mode_thread.
55345         * math/test-fenv-tls.c: New file.
55346         * math/Makefile (tests): Add test-fenv-tls.
55347         ($(objpfx)test-fenv-tls): Depend on
55348         $(common-objpfx)nptl/libpthread.so.
55349
55350 2013-11-19  Andreas Schwab  <schwab@suse.de>
55351
55352         * locale/programs/locale.c (show_info): Decode wordarray elements.
55353         * locale/categories.def (LC_MONETARY): Add element for
55354         _NL_MONETARY_CRNCYSTR.
55355         * locale/C-monetary.c (conversion_rate): New variable.
55356         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
55357         element.
55358
55359 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
55360
55361         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
55362         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
55363
55364 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
55365
55366         * elf/Makefile (tst-auxv): New test.
55367         * elf/tst-auxv.c: New
55368         * elf/rtld.c (dl_main): Adjust AT_EXECFN
55369
55370 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
55371
55372         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
55373         (hidden_proto): Caller changed.
55374         (hidden_tls_proto): New macro.
55375         (libc_hidden_tls_proto): Likewise.
55376         (rtld_hidden_tls_proto): Likewise.
55377         (libm_hidden_tls_proto): Likewise.
55378         (libresolv_hidden_tls_proto): Likewise.
55379         (librt_hidden_tls_proto): Likewise.
55380         (libdl_hidden_tls_proto): Likewise.
55381         (libnss_files_hidden_tls_proto): Likewise.
55382         (libnsl_hidden_tls_proto): Likewise.
55383         (libnss_nisplus_hidden_tls_proto): Likewise.
55384         (libutil_hidden_tls_proto): Likewise.
55385
55386 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
55387
55388         [BZ #10253]
55389         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
55390         (decompose_rpath): Defer expansion to fillin_rpath.
55391         (_dl_init_paths): Pass linkmap to fillin_rpath.
55392
55393 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
55394
55395         * benchtests/Makefile: Add strsep.
55396         * benchtests/bench-strsep.c: New file: strsep benchtest.
55397         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
55398
55399 2013-11-18  Andreas Schwab  <schwab@suse.de>
55400
55401         * locale/programs/locale.c (show_info) [case byte]: Check for
55402         '\377' instead of '\177'.
55403         * locale/C-monetary.c (not_available): Always use "\377".
55404         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
55405         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
55406         detect unavailable sign_posn locale elements.
55407         * locale/localeconv.c (__localeconv): For grouping and
55408         mon_grouping handle "\177" and "\377" like no grouping.
55409         (INT_ELEM): New macro.  Use it to set all numeric members.
55410         * locale/programs/ld-monetary.c (monetary_read)
55411         <tok_mon_grouping>: Normalize single -1 to the empty string.
55412         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
55413         Likewise.
55414
55415 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55416
55417         [BZ #16055]
55418         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
55419         when we match (nil).
55420         * stdio-common/tst-sscanf.c (struct test): Add testcase.
55421
55422 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
55423
55424         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
55425         (NO_TEST_INLINE): Update value.
55426         (ERRNO_UNCHANGED): Likewise.
55427         (ERRNO_EDOM): Likewise.
55428         (ERRNO_ERANGE): Likewise.
55429         (IGNORE_RESULT): Likewise.
55430         (check_float_internal): Check signs of NaN results if
55431         TEST_NAN_SIGN used.
55432         (check_complex): Pass TEST_NAN_SIGN flag through to second
55433         check_float_internal call.
55434         (copysign_test_data): Add tests with quiet NaNs as second
55435         argument.  Use TEST_NAN_SIGN.
55436         (fabs_test_data): Add test of negative quiet NaN argument.  Use
55437         TEST_NAN_SIGN.
55438         (signbit_test_data): Add tests of quiet NaN argument.
55439         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
55440
55441         * math/gen-libm-test.pl (show_exceptions): Take extra argument
55442         $ignore_result.
55443         (parse_args): Handle function results specified as IGNORE.
55444         * math/libm-test.inc (IGNORE_RESULT): New macro.
55445         (check_float_internal): Do not check numerical result if flag
55446         IGNORE_RESULT set.
55447         (check_complex): Pass through IGNORE_RESULT to second
55448         check_float_internal call.
55449         (check_int): Do not check numerical result if flag IGNORE_RESULT
55450         set.
55451         (check_long): Likewise.
55452         (check_bool): Likewise.
55453         (check_longlong): Likewise.
55454         (lrint_test_data): Add tests of infinite and NaN arguments.
55455         (lrint_tonearest_test_data): Likewise.
55456         (lrint_towardzero_test_data): Likewise.
55457         (lrint_downward_test_data): Likewise.
55458         (lrint_upward_test_data): Likewise.
55459         (llrint_test_data): Likewise.
55460         (llrint_tonearest_test_data): Likewise.
55461         (llrint_towardzero_test_data): Likewise.
55462         (llrint_downward_test_data): Likewise.
55463         (llrint_upward_test_data): Likewise.
55464         (lround_test_data): Likewise.
55465         (llround_test_data): Likewise.
55466
55467         * math/libm-test.inc (NO_TEST_INLINE): New macro.
55468         (ERRNO_UNCHANGED): Update value.
55469         (ERRNO_EDOM): Likewise.
55470         (ERRNO_ERANGE): Likewise.
55471         (NO_TEST_INLINE_FLOAT): New macro.
55472         (NO_TEST_INLINE_DOUBLE): Likewise.
55473         (enable_test): New function.
55474         (RUN_TEST_f_f): Check enable_test before running test.
55475         (RUN_TEST_2_f): Likewise.
55476         (RUN_TEST_fff_f): Likewise.
55477         (RUN_TEST_c_f): Likewise.
55478         (RUN_TEST_f_f1): Likewise.
55479         (RUN_TEST_fF_f1): Likewise.
55480         (RUN_TEST_fI_f1): Likewise.
55481         (RUN_TEST_ffI_f1): Likewise.
55482         (RUN_TEST_c_c): Likewise.
55483         (RUN_TEST_cc_c): Likewise.
55484         (RUN_TEST_f_i): Likewise.
55485         (RUN_TEST_f_i_tg): Likewise.
55486         (RUN_TEST_ff_i_tg): Likewise.
55487         (RUN_TEST_f_b): Likewise.
55488         (RUN_TEST_f_b_tg): Likewise.
55489         (RUN_TEST_f_l): Likewise.
55490         (RUN_TEST_f_L): Likewise.
55491         (RUN_TEST_fFF_11): Likewise.
55492         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
55493         conditionals.
55494         (cosh_test_data): Likewise.
55495         (exp_test_data): Likewise.
55496         (expm1_test_data): Likewise.
55497         (hypot_test_data): Likewise.
55498         (pow_test_data): Likewise.
55499         (sinh_test_data): Likewise.
55500         (tanh_test_data): Likewise.
55501         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
55502         flags argument.
55503
55504         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
55505         tests with quiet NaN input and output.
55506         (acosh_test_data): Likewise.
55507         (asin_test_data): Likewise.
55508         (asinh_test_data): Likewise.
55509         (atan_test_data): Likewise.
55510         (atanh_test_data): Likewise.
55511         (atan2_test_data): Likewise.
55512         (cbrt_test_data): Likewise.
55513         (cos_test_data): Likewise.
55514         (cosh_test_data): Likewise.
55515         (erf_test_data): Likewise.
55516         (erfc_test_data): Likewise.
55517         (exp_test_data): Likewise.
55518         (exp10_test_data): Likewise.
55519         (exp2_test_data): Likewise.
55520         (expm1_test_data): Likewise.
55521         (hypot_test_data): Likewise.
55522         (j0_test_data): Likewise.
55523         (j1_test_data): Likewise.
55524         (jn_test_data): Likewise.
55525         (lgamma_test_data): Likewise.
55526         (log_test_data): Likewise.
55527         (log10_test_data): Likewise.
55528         (log1p_test_data): Likewise.
55529         (log2_test_data): Likewise.
55530         (pow_test_data): Likewise.
55531         (scalb_test_data): Likewise.
55532         (sin_test_data): Likewise.
55533         (sincos_test_data): Likewise.
55534         (sinh_test_data): Likewise.
55535         (tan_test_data): Likewise.
55536         (tanh_test_data): Likewise.
55537         (tgamma_test_data): Likewise.
55538         (y0_test_data): Likewise.
55539         (y1_test_data): Likewise.
55540         (yn_test_data): Likewise.
55541
55542         [BZ #16167]
55543         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
55544         argument being NaN and avoid computations with second argument in
55545         that case.
55546         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
55547         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
55548         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
55549
55550 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
55551
55552         * locale/iso-639.def: Add Chitwani Tharu (the).
55553
55554 2013-11-14  Andreas Schwab  <schwab@suse.de>
55555
55556         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
55557         word instead of empty string.
55558
55559 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55560
55561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55562         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
55563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55564         (__fe_nomask_env): Likewise.
55565
55566 2013-11-13  Steve Ellcey  <sellcey@mips.com>
55567
55568         * benchtests/bench-timing.h: Include time.h.
55569
55570 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
55571
55572         [BZ #15997]
55573         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
55574         to 3.4.0 for x32.
55575         * sysdeps/unix/sysv/linux/configure: Regenerated.
55576
55577 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
55578
55579         [BZ #16151]
55580         * stdlib/strtod_l.c (round_and_return): Do not consider
55581         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
55582         exponent one less than half the least subnormal exponent.
55583         * stdlib/test-strtod-round-data: Add more tests.
55584         * stdlib/tst-strtod-round.c (tests): Regenerated.
55585
55586 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55587
55588         [BZ #14143]
55589         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
55590         (__fe_mask_env): Likewise.
55591         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
55592         libm_hidden_proto and add function prototype.
55593         (__fe_mask_env): Add function prototype.
55594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55595         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
55596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
55597         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
55598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55599         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
55600
55601 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55602
55603         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
55604         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
55605
55606 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55607
55608         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
55609         of htab_find_slot().
55610
55611 2013-11-11  David S. Miller  <davem@davemloft.net>
55612
55613         [BZ #16150]
55614         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
55615         symbol in the non-vis3 case in static builds.
55616         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
55617         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
55618         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
55619         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
55620
55621 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
55622
55623         [BZ #387]
55624         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
55625         it is empty.
55626
55627 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55628
55629         * benchtests/Makefile: Add bench-strtod.
55630         * benchtests/bench-strtod.c: New file: strtod benchtest
55631
55632 2013-11-11  Andreas Schwab  <schwab@suse.de>
55633
55634         [BZ #16153]
55635         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
55636         terminating NUL in key length.
55637
55638 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55639
55640         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55641         Add artificial ODP entry for vDSO symbol for PPC64.
55642         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
55643         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
55644
55645 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55646
55647         [BZ #15374]
55648         * nss/getent.c (services_keys): Recognize services starting with digit.
55649
55650 2013-11-06  David S. Miller  <davem@davemloft.net>
55651
55652         [BZ #15985]
55653         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
55654         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
55655
55656 2013-11-06  Will Newton  <will.newton@linaro.org>
55657
55658         * manual/memory.texi (Malloc Examples): Remove register
55659         keyword from examples.
55660
55661 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
55662
55663         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
55664
55665 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
55666
55667         [BZ #6981]
55668         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
55669         depending on [__GCC_IEC_559 > 0].
55670         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
55671         depending on [__GCC_IEC_559_COMPLEX > 0].
55672
55673 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
55674
55675         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
55676         to iso-639.def.
55677
55678 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
55679
55680         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
55681
55682 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
55683
55684         [BZ #16112]
55685         * malloc/malloc (malloc_info): Do not handle first bin as
55686         special case.
55687
55688 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
55689
55690         * locale/iso-639.def: Add Central Nahuatl (nhn).
55691
55692 2013-11-01  Bruno Haible  <bruno@clisp.org>
55693
55694         [BZ #7003]
55695         * manual/math.texi (BSD Random): Specify range upper bound as
55696         in POSIX.
55697
55698 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
55699
55700         * locale/iso-639.def: Add Meadow Mari (mhr).
55701
55702 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
55703
55704         [BZ #14752], [BZ #15763]
55705         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
55706         Validate name.
55707         * rt/tst_shm.c: Add test for escaping directory.
55708
55709 2013-10-31  Andreas Schwab  <schwab@suse.de>
55710
55711         [BZ #15917]
55712         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
55713         followed by 'x' as part of digit sequence.
55714         * stdio-common/tst-sscanf.c (double_tests2): New tests.
55715
55716 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
55717
55718         [BZ #16037]
55719         * configure.ac: allow GNU Make 4.0 and greater.
55720         * configure: Regenerated.
55721
55722 2013-10-30  Will Newton  <will.newton@linaro.org>
55723
55724         [BZ #16038]
55725         * malloc/hooks.c (memalign_check): Limit alignment to the
55726         maximum representable power of two.
55727         * malloc/malloc.c (__libc_memalign): Likewise.
55728         * malloc/tst-memalign.c (do_test): Add test for very
55729         large alignment values.
55730         * malloc/tst-posix_memalign.c (do_test): Likewise.
55731
55732 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55733
55734         [BZ #11087]
55735         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
55736         (munmap_chunk): Likewise.
55737         (mremap_chunk): Likewise.
55738
55739 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
55740
55741         [BZ #15799]
55742         * stdlib/div.c (div): Remove obsolete code.
55743         * stdlib/ldiv.c (ldiv): Likewise.
55744         * stdlib/lldiv.c (lldiv): Likewise.
55745
55746 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55747
55748         [BZ #16071]
55749         * nss/nss_files/files-XXX.c (get_contents_ret): New
55750         enumerator.
55751         (get_contents): New function.
55752         (internal_getent): Use it.  Expand size of LINEBUFLEN.
55753
55754 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
55755
55756         * configure.in: Moved to ...
55757         * configure.ac: ... here. Change reference to configure.in
55758         to configure.ac.
55759         * sysdeps/arm/preconfigure.ac: ... here.
55760         configure.in to configure.ac.
55761         * sysdeps/gnu/configure.in: Moved to ...
55762         * sysdeps/gnu/configure.ac: ... here.
55763         * sysdeps/i386/configure.in: Moved to ...
55764         * sysdeps/i386/configure.ac: ... here.
55765         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
55766         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
55767         * sysdeps/mach/configure.in: Moved to ...
55768         * sysdeps/mach/configure.ac: ... here.
55769         * sysdeps/mach/hurd/configure.in: Moved to ...
55770         * sysdeps/mach/hurd/configure.ac: ... here.
55771         * sysdeps/powerpc/configure.in: Moved to ...
55772         * sysdeps/powerpc/configure.ac: ... here.
55773         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
55774         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
55775         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
55776         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
55777         * sysdeps/s390/s390-32/configure.in: Moved to ...
55778         * sysdeps/s390/s390-32/configure.ac: ... here.
55779         * sysdeps/s390/s390-64/configure.in: Moved to ...
55780         * sysdeps/s390/s390-64/configure.ac: ... here.
55781         * sysdeps/sh/configure.in: Moved to ...
55782         * sysdeps/sh/configure.ac: ... here.
55783         * sysdeps/sparc/configure.in: Moved to ...
55784         * sysdeps/sparc/configure.ac: ... here.
55785         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
55786         * sysdeps/unix/sysv/linux/configure.ac: ... here.
55787         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
55788         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
55789         * sysdeps/x86_64/configure.in: Moved to ...
55790         * sysdeps/x86_64/configure.ac: ... here.
55791         * sysdeps/x86_64/preconfigure.in: Moved to ...
55792         * sysdeps/x86_64/preconfigure.ac: ... here.
55793         * aclocal.m4: Change reference to configure.in to configure.ac.
55794         * config.h.in: Likewise.
55795         * manual/install.texi: Likewise.
55796         * manual/maint.texi: Likewise.
55797         * Makefile: Likewise.
55798         * malloc/Makefile: Likewise.
55799         * nscd/Makefile: Likewise.
55800         * Makeconfig: Change reference to configure.in and
55801         preconfigure.in to configure.ac and preconfigure.ac
55802         respectively.
55803         * INSTALL: Regenerated.
55804         * configure: Likewise.
55805         * sysdeps/gnu/configure: Likewise.
55806         * sysdeps/i386/configure: Likewise.
55807         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
55808         * sysdeps/mach/configure: Likewise.
55809         * sysdeps/mach/hurd/configure: Likewise.
55810         * sysdeps/powerpc/configure: Likewise.
55811         * sysdeps/powerpc/powerpc32/configure: Likewise.
55812         * sysdeps/powerpc/powerpc64/configure: Likewise.
55813         * sysdeps/s390/s390-32/configure: Likewise.
55814         * sysdeps/s390/s390-64/configure: Likewise.
55815         * sysdeps/sh/configure: Likewise.
55816         * sysdeps/sparc/configure: Likewise.
55817         * sysdeps/unix/sysv/linux/configure: Likewise.
55818         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
55819         * sysdeps/x86_64/configure: Likewise.
55820         * sysdeps/x86_64/preconfigure: Likewise.
55821
55822 2013-10-29  Andreas Schwab  <schwab@suse.de>
55823
55824         * stdio-common/Makefile (tst-swscanf-ENV): Define.
55825
55826 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55827
55828         * benchtests/pow-inputs: Add new inputs.
55829
55830         * benchtests/exp-inputs: Add new inputs.
55831
55832         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
55833         conditional check for return value.
55834         (__cos32): Likewise.
55835
55836 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55837
55838         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
55839         to provide a boost for large inputs with word alignment.
55840         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
55841         implementation based on optimized PPC64 strcpy.
55842         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
55843         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
55844         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
55845         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
55846
55847 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55848
55849         [BZ #2801]
55850         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
55851
55852 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55853
55854         [BZ #14876]
55855         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
55856         * time/tst-strptime.c (day_tests): Add testcase.
55857
55858 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
55859
55860         [BZ #14029]
55861         * manual/pattern.texi: Acknowledge that fnmatch can fail.
55862
55863 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
55864
55865         [BZ #16074]
55866         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
55867         MAP_FAILED on error.
55868
55869 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
55870
55871         [BZ #16072]
55872         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
55873         heap for large requests.
55874
55875 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
55876
55877         [BZ #9954]
55878         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
55879         result if the result has no associated interface.
55880         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
55881         interface for all 127.X.Y.Z addresses.
55882
55883 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
55884
55885         * locale/iso-639.def: Add Ligurian (lij)
55886
55887 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
55888
55889         [BZ #15825]
55890         * sunrpc/rpc_main.c: Document rpcgen -5.
55891
55892 2013-10-19  Michael Stahl  <mstahl@redhat.com>
55893
55894         * elf/rtld.c (do_preload): Print the reason why preloading failed.
55895
55896 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
55897
55898         [BZ #10278]
55899         * posix/glob.c: Match only directories when trailing slash is present.
55900         * posix/tst-gnuglob.c (my_opendir): Do not open files.
55901         (main): Add testcase.
55902
55903 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
55904
55905         [BZ #15670]
55906         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
55907
55908 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
55909
55910         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
55911         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
55912         AUTH_DES and cindex for FIPS 140-2.
55913         (DES Encryption): Add cindex FIPS 46-3.
55914
55915         * locale/locarchive.h (struct locarhandle): Add fname.
55916         * locale/programs/localedef.c (main): Pass ARGV[remaining]
55917         if an optional argument was specified to --list-archive,
55918         otherwise NULL.
55919         * locale/programs/locarchive.c (show_archive_content): Take new
55920         argument fname and pass it via ah.fname to open_archive.
55921         * locale/programs/localedef.h: Update decl.
55922         (open_archive): If AH->fname is non-null, open that file
55923         rather than the default file name, and don't ignore ENOENT.
55924         (create_archive): Set AH.fname to NULL.
55925         (delete_locales_from_archive): Likewise.
55926         (add_locales_to_archive): Likewise.
55927         * locale/programs/locfile.c (write_all_categories): Likewise.
55928
55929 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
55930             Aldy Hernandez  <aldyh@redhat.com>
55931
55932         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
55933         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
55934         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
55935         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
55936         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
55937         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
55938         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
55939         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
55940         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
55941         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
55942         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
55943         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
55944         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
55945         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
55946         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
55947         Likewise.
55948         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
55949         Likewise.
55950         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
55951         Likewise.
55952         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
55953         Likewise.
55954         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
55955         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
55956         Likewise.
55957         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
55958         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
55959         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
55960         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
55961         Likewise.
55962         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
55963         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
55964         * sysdeps/powerpc/preconfigure: Likewise.
55965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
55966         Likewise.
55967         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
55968         Replace contents of file by #include of <fenv_libc.h>.
55969         * sysdeps/powerpc/soft-fp/sfp-machine.h
55970         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
55971         and <sys/prctl.h>.
55972         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
55973         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
55974         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
55975         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
55976         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
55977         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
55978         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
55979         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
55980         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
55981         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
55982         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
55983         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
55984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
55985         Allow copysignl PLT reference to be missing.
55986
55987 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
55988             Joseph Myers  <joseph@codesourcery.com
55989
55990         [BZ #15948]
55991         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
55992         single character.
55993         (add_to_tablewc): Assert sequence of wide characters is nonempty.
55994
55995 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
55996
55997         * elf/tst-tls-dlinfo.c: Don't include tls.h.
55998         * elf/tst-tls1.c: Likewise.
55999         * elf/tst-tls10.h: Likewise.
56000         * elf/tst-tls14.c: Likewise.
56001         * elf/tst-tls2.c: Likewise.
56002         * elf/tst-tls3.c: Likewise.
56003         * elf/tst-tls4.c: Likewise.
56004         * elf/tst-tls5.c: Likewise.
56005         * elf/tst-tls6.c: Likewise.
56006         * elf/tst-tls7.c: Likewise.
56007         * elf/tst-tls8.c: Likewise.
56008         * elf/tst-tls9.c: Likewise.
56009         * elf/tst-tlsmod1.c: Likewise.
56010         * elf/tst-tlsmod13.c: Likewise.
56011         * elf/tst-tlsmod13a.c: Likewise.
56012         * elf/tst-tlsmod14a.c: Likewise.
56013         * elf/tst-tlsmod16a.c: Likewise.
56014         * elf/tst-tlsmod16b.c: Likewise.
56015         * elf/tst-tlsmod2.c: Likewise.
56016         * elf/tst-tlsmod3.c: Likewise.
56017         * elf/tst-tlsmod4.c: Likewise.
56018         * elf/tst-tlsmod5.c: Likewise.
56019         * elf/tst-tlsmod6.c: Likewise.
56020
56021 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56022
56023         [BZ #12486]
56024         * malloc/malloc.c: remove checks for statistics.
56025
56026 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56027
56028         [BZ #15277]
56029         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56030         * inet/tst-network.c: Add testcase.
56031
56032 2013-10-17  Andreas Schwab  <schwab@suse.de>
56033
56034         [BZ #15218]
56035         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56036         to determine canonical name.
56037
56038 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56039
56040         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56041         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56042         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56043         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56044         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56045         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56046         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56047         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56048         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56049         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56050         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56051         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56052         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56053         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56054         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56055         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56056         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56057         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56058         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56059         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56060         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56061         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56062         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56063         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56064         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56065         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56066         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56067         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56068         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56069         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56070         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56071         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56072         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56073         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56074         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56075         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56076         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56077         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56078         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56079         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56080         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56081         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56082         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56083         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56084         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56085         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56086         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56087         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56088         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56089         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56090         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56091         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56092         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56093         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56094         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56095         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56096         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56097         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56098
56099 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56100
56101         [BZ #16041]
56102         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56103         make result into a quiet NaN.
56104
56105 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56106
56107         * soft-fp/adddf3.c: Fix horizontal whitespace.
56108         * soft-fp/addsf3.c: Likewise.
56109         * soft-fp/addtf3.c: Likewise.
56110         * soft-fp/divdf3.c: Likewise.
56111         * soft-fp/divsf3.c: Likewise.
56112         * soft-fp/divtf3.c: Likewise.
56113         * soft-fp/double.h: Likewise.
56114         * soft-fp/eqdf2.c: Likewise.
56115         * soft-fp/eqsf2.c: Likewise.
56116         * soft-fp/eqtf2.c: Likewise.
56117         * soft-fp/extenddftf2.c: Likewise.
56118         * soft-fp/extended.h: Likewise.
56119         * soft-fp/extendsfdf2.c: Likewise.
56120         * soft-fp/extendsftf2.c: Likewise.
56121         * soft-fp/extendxftf2.c: Likewise.
56122         * soft-fp/fixdfdi.c: Likewise.
56123         * soft-fp/fixdfsi.c: Likewise.
56124         * soft-fp/fixdfti.c: Likewise.
56125         * soft-fp/fixsfdi.c: Likewise.
56126         * soft-fp/fixsfsi.c: Likewise.
56127         * soft-fp/fixsfti.c: Likewise.
56128         * soft-fp/fixtfdi.c: Likewise.
56129         * soft-fp/fixtfsi.c: Likewise.
56130         * soft-fp/fixtfti.c: Likewise.
56131         * soft-fp/fixunsdfdi.c: Likewise.
56132         * soft-fp/fixunsdfsi.c: Likewise.
56133         * soft-fp/fixunsdfti.c: Likewise.
56134         * soft-fp/fixunssfdi.c: Likewise.
56135         * soft-fp/fixunssfsi.c: Likewise.
56136         * soft-fp/fixunssfti.c: Likewise.
56137         * soft-fp/fixunstfdi.c: Likewise.
56138         * soft-fp/fixunstfsi.c: Likewise.
56139         * soft-fp/fixunstfti.c: Likewise.
56140         * soft-fp/floatdidf.c: Likewise.
56141         * soft-fp/floatdisf.c: Likewise.
56142         * soft-fp/floatditf.c: Likewise.
56143         * soft-fp/floatsidf.c: Likewise.
56144         * soft-fp/floatsisf.c: Likewise.
56145         * soft-fp/floatsitf.c: Likewise.
56146         * soft-fp/floattidf.c: Likewise.
56147         * soft-fp/floattisf.c: Likewise.
56148         * soft-fp/floattitf.c: Likewise.
56149         * soft-fp/floatundidf.c: Likewise.
56150         * soft-fp/floatundisf.c: Likewise.
56151         * soft-fp/floatunditf.c: Likewise.
56152         * soft-fp/floatunsidf.c: Likewise.
56153         * soft-fp/floatunsisf.c: Likewise.
56154         * soft-fp/floatunsitf.c: Likewise.
56155         * soft-fp/floatuntidf.c: Likewise.
56156         * soft-fp/floatuntisf.c: Likewise.
56157         * soft-fp/floatuntitf.c: Likewise.
56158         * soft-fp/fmadf4.c: Likewise.
56159         * soft-fp/fmasf4.c: Likewise.
56160         * soft-fp/fmatf4.c: Likewise.
56161         * soft-fp/gedf2.c: Likewise.
56162         * soft-fp/gesf2.c: Likewise.
56163         * soft-fp/getf2.c: Likewise.
56164         * soft-fp/ledf2.c: Likewise.
56165         * soft-fp/lesf2.c: Likewise.
56166         * soft-fp/letf2.c: Likewise.
56167         * soft-fp/muldf3.c: Likewise.
56168         * soft-fp/mulsf3.c: Likewise.
56169         * soft-fp/multf3.c: Likewise.
56170         * soft-fp/negdf2.c: Likewise.
56171         * soft-fp/negsf2.c: Likewise.
56172         * soft-fp/negtf2.c: Likewise.
56173         * soft-fp/op-1.h: Likewise.
56174         * soft-fp/op-2.h: Likewise.
56175         * soft-fp/op-4.h: Likewise.
56176         * soft-fp/op-8.h: Likewise.
56177         * soft-fp/op-common.h: Likewise.
56178         * soft-fp/quad.h: Likewise.
56179         * soft-fp/single.h: Likewise.
56180         * soft-fp/soft-fp.h: Likewise.
56181         * soft-fp/sqrtdf2.c: Likewise.
56182         * soft-fp/sqrtsf2.c: Likewise.
56183         * soft-fp/sqrttf2.c: Likewise.
56184         * soft-fp/subdf3.c: Likewise.
56185         * soft-fp/subsf3.c: Likewise.
56186         * soft-fp/subtf3.c: Likewise.
56187         * soft-fp/truncdfsf2.c: Likewise.
56188         * soft-fp/trunctfdf2.c: Likewise.
56189         * soft-fp/trunctfsf2.c: Likewise.
56190         * soft-fp/trunctfxf2.c: Likewise.
56191         * soft-fp/unorddf2.c: Likewise.
56192         * soft-fp/unordsf2.c: Likewise.
56193         * soft-fp/unordtf2.c: Likewise.
56194
56195 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56196
56197         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56198         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56199
56200 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56201
56202         * elf/dl-libc.c: Clear initfini list after freeing.
56203
56204 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56205
56206         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56207         * soft-fp/addsf3.c: Likewise.
56208         * soft-fp/addtf3.c: Likewise.
56209         * soft-fp/divdf3.c: Likewise.
56210         * soft-fp/divsf3.c: Likewise.
56211         * soft-fp/divtf3.c: Likewise.
56212         * soft-fp/double.h: Likewise.
56213         * soft-fp/eqdf2.c: Likewise.
56214         * soft-fp/eqsf2.c: Likewise.
56215         * soft-fp/eqtf2.c: Likewise.
56216         * soft-fp/extenddftf2.c: Likewise.
56217         * soft-fp/extended.h: Likewise.
56218         * soft-fp/extendsfdf2.c: Likewise.
56219         * soft-fp/extendsftf2.c: Likewise.
56220         * soft-fp/extendxftf2.c: Likewise.
56221         * soft-fp/fixdfdi.c: Likewise.
56222         * soft-fp/fixdfsi.c: Likewise.
56223         * soft-fp/fixdfti.c: Likewise.
56224         * soft-fp/fixsfdi.c: Likewise.
56225         * soft-fp/fixsfsi.c: Likewise.
56226         * soft-fp/fixsfti.c: Likewise.
56227         * soft-fp/fixtfdi.c: Likewise.
56228         * soft-fp/fixtfsi.c: Likewise.
56229         * soft-fp/fixtfti.c: Likewise.
56230         * soft-fp/fixunsdfdi.c: Likewise.
56231         * soft-fp/fixunsdfsi.c: Likewise.
56232         * soft-fp/fixunsdfti.c: Likewise.
56233         * soft-fp/fixunssfdi.c: Likewise.
56234         * soft-fp/fixunssfsi.c: Likewise.
56235         * soft-fp/fixunssfti.c: Likewise.
56236         * soft-fp/fixunstfdi.c: Likewise.
56237         * soft-fp/fixunstfsi.c: Likewise.
56238         * soft-fp/fixunstfti.c: Likewise.
56239         * soft-fp/floatdidf.c: Likewise.
56240         * soft-fp/floatdisf.c: Likewise.
56241         * soft-fp/floatditf.c: Likewise.
56242         * soft-fp/floatsidf.c: Likewise.
56243         * soft-fp/floatsisf.c: Likewise.
56244         * soft-fp/floatsitf.c: Likewise.
56245         * soft-fp/floattidf.c: Likewise.
56246         * soft-fp/floattisf.c: Likewise.
56247         * soft-fp/floattitf.c: Likewise.
56248         * soft-fp/floatundidf.c: Likewise.
56249         * soft-fp/floatundisf.c: Likewise.
56250         * soft-fp/floatunsidf.c: Likewise.
56251         * soft-fp/floatunsisf.c: Likewise.
56252         * soft-fp/floatuntidf.c: Likewise.
56253         * soft-fp/floatuntisf.c: Likewise.
56254         * soft-fp/floatuntitf.c: Likewise.
56255         * soft-fp/fmadf4.c: Likewise.
56256         * soft-fp/fmasf4.c: Likewise.
56257         * soft-fp/fmatf4.c: Likewise.
56258         * soft-fp/gedf2.c: Likewise.
56259         * soft-fp/gesf2.c: Likewise.
56260         * soft-fp/getf2.c: Likewise.
56261         * soft-fp/ledf2.c: Likewise.
56262         * soft-fp/lesf2.c: Likewise.
56263         * soft-fp/letf2.c: Likewise.
56264         * soft-fp/muldf3.c: Likewise.
56265         * soft-fp/mulsf3.c: Likewise.
56266         * soft-fp/multf3.c: Likewise.
56267         * soft-fp/negdf2.c: Likewise.
56268         * soft-fp/negsf2.c: Likewise.
56269         * soft-fp/negtf2.c: Likewise.
56270         * soft-fp/op-1.h: Likewise.
56271         * soft-fp/op-2.h: Likewise.
56272         * soft-fp/op-4.h: Likewise.
56273         * soft-fp/op-8.h: Likewise.
56274         * soft-fp/op-common.h: Likewise.
56275         * soft-fp/quad.h: Likewise.
56276         * soft-fp/single.h: Likewise.
56277         * soft-fp/soft-fp.h: Likewise.
56278         * soft-fp/sqrtdf2.c: Likewise.
56279         * soft-fp/sqrtsf2.c: Likewise.
56280         * soft-fp/sqrttf2.c: Likewise.
56281         * soft-fp/subdf3.c: Likewise.
56282         * soft-fp/subsf3.c: Likewise.
56283         * soft-fp/subtf3.c: Likewise.
56284         * soft-fp/truncdfsf2.c: Likewise.
56285         * soft-fp/trunctfdf2.c: Likewise.
56286         * soft-fp/trunctfsf2.c: Likewise.
56287         * soft-fp/trunctfxf2.c: Likewise.
56288         * soft-fp/unorddf2.c: Likewise.
56289         * soft-fp/unordsf2.c: Likewise.
56290         * soft-fp/unordtf2.c: Likewise.
56291
56292 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56293
56294         [BZ #15672]
56295         * misc/error.c (error_tail): Fix possible buffer overflow.
56296
56297 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56298
56299         [BZ #13028]
56300         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56301         address.
56302
56303 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56304
56305         [BZ #832]
56306         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
56307         testing pipefail option.
56308
56309 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56310
56311         * soft-fp/double.h: Indent preprocessor directives inside #if.
56312         * soft-fp/extended.h: Likewise.
56313         * soft-fp/op-2.h: Likewise.
56314         * soft-fp/op-4.h: Likewise.
56315         * soft-fp/op-common.h: Likewise.
56316         * soft-fp/quad.h: Likewise.
56317         * soft-fp/single.h: Likewise.
56318         * soft-fp/soft-fp.h: Likewise.
56319
56320 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
56321
56322         * iconv/iconv_prog.c: Fix typos.
56323         * stdio-common/psiginfo-data.h: Likewise.
56324
56325 2013-10-12   Reuben Thomas <rrt@sc3d.org>
56326
56327         [BZ #15764]
56328         * locale/setlocale.c: Fix typo.
56329
56330 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56331
56332         [BZ #16036]
56333         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
56334         signaling NaN arguments.
56335         * soft-fp/unordsf2.c (__unordsf2): Likewise.
56336         * soft-fp/unordtf2.c (__unordtf2): Likewise.
56337
56338         [BZ #14910]
56339         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
56340         unordered operands.
56341         * soft-fp/gesf2.c (__gesf2): Likewise.
56342         * soft-fp/getf2.c (__getf2): Likewise.
56343         * soft-fp/ledf2.c (__ledf2): Likewise.
56344         * soft-fp/lesf2.c (__lesf2): Likewise.
56345         * soft-fp/letf2.c (__letf2): Likewise.
56346
56347         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
56348         * soft-fp/eqsf2.c (__eqsf2): Likewise.
56349         * soft-fp/eqtf2.c (__eqtf2): Likewise.
56350         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
56351         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56352         * soft-fp/fixdfti.c (__fixdfti): Likewise.
56353         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
56354         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
56355         * soft-fp/fixsfti.c (__fixsfti): Likewise.
56356         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
56357         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
56358         * soft-fp/fixtfti.c (__fixtfti): Likewise.
56359         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
56360         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
56361         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
56362         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
56363         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
56364         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
56365         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
56366         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
56367         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
56368         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
56369         * soft-fp/floatdisf.c (__floatdisf): Likewise.
56370         * soft-fp/floatsisf.c (__floatsisf): Likewise.
56371         * soft-fp/floattidf.c (__floattidf): Likewise.
56372         * soft-fp/floattisf.c (__floattisf): Likewise.
56373         * soft-fp/floattitf.c (__floattitf): Likewise.
56374         * soft-fp/floatundidf.c (__floatundidf): Likewise.
56375         * soft-fp/floatundisf.c (__floatundisf): Likewise.
56376         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
56377         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
56378         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
56379         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
56380         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
56381         * soft-fp/gesf2.c (__gesf2): Likewise.
56382         * soft-fp/getf2.c (__getf2): Likewise.
56383         * soft-fp/ledf2.c (__ledf2): Likewise.
56384         * soft-fp/lesf2.c (__lesf2): Likewise.
56385         * soft-fp/letf2.c (__letf2): Likewise.
56386
56387         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
56388         Undefine and redefine.
56389         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
56390         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
56391         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
56392         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
56393         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56394         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
56395         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56396         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
56397         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56398         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
56399         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56400         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
56401         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56402         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
56403         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56404
56405         [BZ #16032]
56406         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
56407         without decrementing exponent if mantissa >= that for the
56408         denominator, not >.
56409         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
56410         denominator, not >.  Decrement exponent in < case instead of
56411         incrementing in >= case.
56412         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
56413         without decrementing exponent if mantissa >= that for the
56414         denominator, not >.
56415
56416         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
56417         computing saturated result for unsigned overflow.
56418
56419 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56420             Jeff Law  <law@redhat.com>
56421
56422         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
56423         (atan2Mp): Add systemtap probe marker.
56424         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
56425         (__ieee754_log): Add systemtap probe marker.
56426         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
56427         (atanMp): Add systemtap probe marker.
56428         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
56429         (tanMp): Add systemtap probe marker.
56430         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
56431         (__slowexp): Add systemtap probe marker.
56432         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
56433         (__slowpow): Add systemtap probe marker.
56434         * manual/probes.texi: Document probes.
56435
56436 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
56437
56438         [BZ #15362]
56439         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56440         written.
56441         (_IO_new_file_xsputn): Don't return EOF if nothing has been
56442         written.
56443         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
56444         written to buffer but not flushed.
56445         * libio/iofwrite_u.c:  Likewise.
56446         * libio/iopadn.c:  Return bytes returned even if EOF was
56447         encountered.
56448         * libio/iowpadn.c:  Likewise.
56449         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
56450         if _IO_padn does not write the whole buffer.
56451         [!COMPILE_WPRINTF] (PAD): Likewise.
56452
56453 2013-10-10  David S. Miller  <davem@davemloft.net>
56454
56455         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
56456         directory block.
56457
56458 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56459
56460         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
56461         instead of FSF address.
56462         * soft-fp/fixdfti.c: Likewise.
56463         * soft-fp/fixsfti.c: Likewise.
56464         * soft-fp/fixtfti.c: Likewise.
56465         * soft-fp/fixunsdfti.c: Likewise.
56466         * soft-fp/fixunssfti.c: Likewise.
56467         * soft-fp/fixunstfti.c: Likewise.
56468         * soft-fp/floattidf.c: Likewise.
56469         * soft-fp/floattisf.c: Likewise.
56470         * soft-fp/floattitf.c: Likewise.
56471         * soft-fp/floatuntidf.c: Likewise.
56472         * soft-fp/floatuntisf.c: Likewise.
56473         * soft-fp/floatuntitf.c: Likewise.
56474         * soft-fp/trunctfxf2.c: Likewise.
56475
56476         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
56477         * soft-fp/fixdfti.c: Likewise.
56478         * soft-fp/fixsfti.c: Likewise.
56479         * soft-fp/fixtfti.c: Likewise.
56480         * soft-fp/fixunsdfti.c: Likewise.
56481         * soft-fp/fixunssfti.c: Likewise.
56482         * soft-fp/fixunstfti.c: Likewise.
56483         * soft-fp/floattidf.c: Likewise.
56484         * soft-fp/floattisf.c: Likewise.
56485         * soft-fp/floattitf.c: Likewise.
56486         * soft-fp/floatuntidf.c: Likewise.
56487         * soft-fp/floatuntisf.c: Likewise.
56488         * soft-fp/floatuntitf.c: Likewise.
56489         * soft-fp/trunctfxf2.c: Likewise.
56490
56491 2013-10-10  David S. Miller  <davem@davemloft.net>
56492
56493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56494
56495 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
56496
56497         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56498         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
56499         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
56500         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
56501         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
56502         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
56503         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
56504
56505         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
56506         for NaNs before doing comparisons on argument.
56507         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
56508         Likewise.
56509
56510 2013-10-10  Will Newton  <will.newton@linaro.org>
56511
56512         * malloc/hooks.c (memalign_check): Ensure the value of bytes
56513         passed to _int_memalign does not overflow.
56514
56515 2013-10-10  Torvald Riegel  <triegel@redhat.com>
56516
56517         * scripts/bench.pl: Add include-sources directive.
56518         * benchtests/README: Update documentation.
56519
56520 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56521
56522         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
56523         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
56524         instead of FP_INIT_ROUNDMODE.
56525         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
56526         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
56527
56528         [BZ #16034]
56529         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
56530         copy class of input value.
56531         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
56532         not handle exceptions.
56533         * soft-fp/negsf2.c (__negsf2): Likewise.
56534         * soft-fp/negtf2.c (__negtf2): Likewise.
56535         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
56536
56537 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
56538
56539         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
56540         semicolon.  From Linux kernel.
56541
56542 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
56543
56544         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
56545
56546 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
56547
56548         [BZ #156]
56549         * manual/socket.texi: Added statement about buffer
56550         for gethostbyname2_r.
56551
56552 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
56553
56554         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
56555         Use .p2align directive instead, throughout.
56556         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
56557         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
56558         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
56559         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
56560         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
56561         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
56562         * sysdeps/x86_64/strchr.S: Likewise.
56563         * sysdeps/x86_64/strrchr.S: Likewise.
56564
56565 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56566
56567         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
56568
56569         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
56570
56571         * sysdeps/generic/math_private.h (__mpsin1): Remove
56572         declaration.
56573         (__mpcos1): Likewise.
56574         (__mpsin): New argument __range_reduce.
56575         (__mpcos): Likewise.
56576         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56577         (slow): Use __mpsin and __mpcos.
56578         (slow1): Likewise.
56579         (slow2): Likewise.
56580         (sloww): Likewise.
56581         (sloww1): Likewise.
56582         (sloww2): Likewise.
56583         (bsloww): Likewise.
56584         (bsloww1): Likewise.
56585         (bsloww2): Likewise.
56586         (cslow2): Likewise.
56587         (csloww): Likewise.
56588         (csloww1): Likewise.
56589         (csloww2): Likewise.
56590         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
56591         range_reduce.  Merge in __mpsin1.
56592         (__mpcos): Likewise.
56593         (__mpsin1): Remove.
56594         (__mpcos1): Likewise.
56595
56596 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
56597
56598         * locale/loadlocale.c (_nl_intern_locale_data): Use
56599         LOCFILE_ALIGNED_P.
56600         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
56601         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
56602         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
56603         obstack data is appropriately aligned.
56604         (obstack_int32_grow_fast): Likewise.
56605         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
56606         * locale/programs/locfile.c (add_locale_uint32): Likewise.
56607         (add_locale_uint32_array): Likewise.
56608
56609 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56610
56611         * benchtests/Makefile: Remove ARGLIST and RET variables.
56612         ($(objpfx)bench-%.c): Pass only function name to the script.
56613         * benchtests/README: Update documentation.
56614         * benchtests/acos-inputs: Add new directives.
56615         * benchtests/acosh-inputs: Likewise.
56616         * benchtests/asin-inputs: Likewise.
56617         * benchtests/asinh-inputs: Likewise.
56618         * benchtests/atan-inputs: Likewise.
56619         * benchtests/atanh-inputs: Likewise.
56620         * benchtests/cos-inputs: Likewise.
56621         * benchtests/cosh-inputs: Likewise.
56622         * benchtests/exp-inputs: Likewise.
56623         * benchtests/log-inputs: Likewise.
56624         * benchtests/pow-inputs: Likewise.
56625         * benchtests/rint-inputs: Likewise.
56626         * benchtests/sin-inputs: Likewise.
56627         * benchtests/sinh-inputs: Likewise.
56628         * benchtests/tan-inputs: Likewise.
56629         * benchtests/tanh-inputs: Likewise.
56630         * scripts/bench.pl: Add support for new directives.
56631
56632 2013-10-07  Alan Modra  <amodra@gmail.com>
56633
56634         * README: Fix careless merge.
56635
56636 2013-10-05  Alan Modra  <amodra@gmail.com>
56637
56638         * NEWS: Mention powerpc64le support and bugs fixed.
56639         * README: Both big-endian and little-endian powerpc64 supported.
56640
56641 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56642
56643         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
56644         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
56645         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
56646         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
56647
56648 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
56649
56650         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
56651         match prototype.
56652
56653 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
56654
56655         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
56656         Move -mhard-float appending from
56657         ports/sysdeps/powerpc/powerpc32/Makefile.
56658         [$(with-fp) = yes] (ASFLAGS): Likewise.
56659         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
56660         * sysdeps/powerpc/nofpu: Move directory from
56661         ports/sysdeps/powerpc/nofpu.
56662         * sysdeps/powerpc/soft-fp: Move directory from
56663         ports/sysdeps/powerpc/soft-fp.
56664         * sysdeps/powerpc/powerpc32/405: Move directory from
56665         ports/sysdeps/powerpc/powerpc32/405.
56666         * sysdeps/powerpc/powerpc32/440: Move directory from
56667         ports/sysdeps/powerpc/powerpc32/440.
56668         * sysdeps/powerpc/powerpc32/464: Move directory from
56669         ports/sysdeps/powerpc/powerpc32/464.
56670         * sysdeps/powerpc/powerpc32/476: Move directory from
56671         ports/sysdeps/powerpc/powerpc32/476.
56672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
56673         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
56674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
56675         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
56676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
56677         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
56678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
56679         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
56680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
56681         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
56682         * README: Update for powerpc-*-linux-gnu software floating point
56683         support in libc.
56684
56685         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
56686         case to powerpc/powerpc32*.
56687         * sysdeps/unix/sysv/linux/configure: Regenerated.
56688
56689         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
56690         (_FPU_MASK_OM): Define as 0x04.
56691         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
56692         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
56693         0x00c10080.
56694         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
56695         0x0000003c.
56696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
56697
56698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
56699         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56700         getcontext_e500.
56701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
56702         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
56703         setcontext_e500.
56704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
56705         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
56706         and setcontext_e500.
56707
56708 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
56709
56710         * locale/iso-3166.def: Update iso-1366.def and related occurrences
56711
56712 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
56713
56714         * manual/threads.texi (Default Thread Attributes): Fix typo.
56715
56716 2013-10-04  Will Newton  <will.newton@linaro.org>
56717
56718         * malloc/Makefile: Add tst-memalign.
56719         * malloc/tst-memalign.c: New file.
56720
56721         * malloc/tst-posix_memalign.c: Add comments.
56722         (do_test): Add comments and call free on all potentially
56723         allocated pointers. Add space after cast.
56724
56725         * malloc/tst-pvalloc.c: Add comments.
56726         (do_test): Add comments and call free on all potentially
56727         allocated pointers. Remove duplicate check for NULL pointer.
56728         Add space after cast.
56729
56730         * malloc/tst-valloc.c: Add comments.
56731         (do_test): Add comments and call free on all potentially
56732         allocated pointers. Remove duplicate check for NULL pointer.
56733         Add space after cast.
56734
56735 2013-10-04  Alan Modra  <amodra@gmail.com>
56736
56737         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56738         Use stdint types in rather than __attribute__((mode())).
56739         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56740
56741 2013-10-04  Alan Modra  <amodra@gmail.com>
56742
56743         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
56744         Correct handling of unaligned relocs for little-endian.
56745         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
56746
56747 2013-10-04  Alan Modra  <amodra@gmail.com>
56748
56749         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
56750         * configure: Regenerate.
56751         * nptl/shlib-versions: Powerpc*le starts at 2.18.
56752         * shlib-versions: Likewise.
56753
56754 2013-10-04  Alan Modra  <amodra@gmail.com>
56755
56756         * string/tester.c (test_memrchr): Increment reported test cycle.
56757
56758 2013-10-04  Alan Modra  <amodra@gmail.com>
56759
56760         * string/test-memcpy.c (do_one_test): When reporting errors, print
56761         string address and don't overrun end of string.
56762
56763 2013-10-04  Alan Modra  <amodra@gmail.com>
56764
56765         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
56766         insrdi.  Make better use of reg selection to speed exit slightly.
56767         Schedule entry path a little better.  Remove useless "are we done"
56768         checks on entry to main loop.  Handle wrapping around zero address.
56769         Correct main loop count.  Handle single left-over word from main
56770         loop inline rather than by using loop_small.  Remove extra word
56771         case in loop_small caused by wrong loop count.  Add little-endian
56772         support.
56773         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
56774         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
56775         cache hint.
56776         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
56777         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
56778         support.  Avoid rlwimi.
56779         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
56780
56781 2013-10-04  Alan Modra  <amodra@gmail.com>
56782
56783         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
56784         insrdi.  Formatting.
56785         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
56786         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
56787         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
56788         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
56789         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
56790         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
56791
56792 2013-10-04  Alan Modra  <amodra@gmail.com>
56793
56794         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
56795         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
56796         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
56797         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
56798         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
56799         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
56800         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
56801         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
56802         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
56803         use of regs.  Use power7 mtocrf.  Tidy function tails.
56804
56805 2013-10-04  Alan Modra  <amodra@gmail.com>
56806
56807         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
56808         Formatting.  Consistently use rXXX register defines or rN defines.
56809         Use early exit labels that avoid restoring unused non-volatile regs.
56810         Make cr field use more consistent with rWORDn compares.  Rename
56811         regs used as shift registers for unaligned loop, using rN defines
56812         for short lifetime/multiple use regs.
56813         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
56814         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
56815         addi 1,1,64 to pop stack frame.  Simplify return value code.
56816         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
56817
56818 2013-10-04  Alan Modra  <amodra@gmail.com>
56819
56820         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
56821         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
56822         rather than rlwimi.
56823         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
56824         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
56825         little-endian support.  Correct typos.
56826         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
56827         rather than rlwimi.
56828         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
56829         in loop and entry code to keep "and." results.
56830         (strchr): Add little-endian support.  Comment.  Move cntlzd
56831         earlier in tail.
56832         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
56833
56834 2013-10-04  Alan Modra  <amodra@gmail.com>
56835
56836         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
56837         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
56838         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
56839         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
56840
56841 2013-10-04  Alan Modra  <amodra@gmail.com>
56842
56843         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
56844         (rTMP): Define as r11.
56845         (strcmp): Add little-endian support.  Optimise tail.
56846         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
56847         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
56848         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
56849         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
56850         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
56851         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
56852         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
56853
56854 2013-10-04  Alan Modra  <amodra@gmail.com>
56855
56856         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
56857         little-endian support.  Remove unnecessary "are we done" tests.
56858         Handle "s" wrapping around zero and extremely large "size".
56859         Correct main loop count.  Handle single left-over word from main
56860         loop inline rather than by using small_loop.  Correct comments.
56861         Delete "zero" tail, use "end_max" instead.
56862         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
56863
56864 2013-10-04  Alan Modra  <amodra@gmail.com>
56865
56866         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
56867         support.  Don't branch over align.
56868         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
56869         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
56870         support.  Rearrange tmp reg use to suit.  Comment.
56871         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
56872
56873 2013-10-04  Alan Modra  <amodra@gmail.com>
56874
56875         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
56876
56877 2013-10-04  Alan Modra  <amodra@gmail.com>
56878
56879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
56880         conditional form of branch and link when obtaining pc.
56881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
56882
56883 2013-10-04  Alan Modra  <amodra@gmail.com>
56884
56885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
56886         HIWORD/LOWORD.
56887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
56888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
56889
56890 2013-10-04  Alan Modra  <amodra@gmail.com>
56891
56892         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
56893         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
56894         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
56895         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
56896         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
56897         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
56898         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
56899         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
56900         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
56901         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
56902
56903 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56904             Alistair Popple <alistair@ozlabs.au.ibm.com>
56905             Alan Modra <amodra@gmail.com>
56906
56907         [BZ #15723]
56908         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
56909         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
56910         _dl_hwcap access for little-endian.
56911         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
56912         destroy vmx regs when saving unaligned.
56913         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
56914         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
56915         destroy vmx regs when saving unaligned.
56916
56917 2013-10-04  Alan Modra  <amodra@gmail.com>
56918
56919         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
56920         Don't use a union to pack hi/low value.
56921
56922 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56923
56924         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
56925         for little-endian.
56926         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
56927         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
56928         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
56929         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
56930         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
56931
56932 2013-10-04  Alan Modra  <amodra@gmail.com>
56933
56934         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
56935         constants to usual value for .cst8 section, and remove redundant
56936         high address load.
56937         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
56938         constant for 0x1p52.  Load little-endian words of double from
56939         correct stack offsets.
56940
56941 2013-10-04  Alan Modra  <amodra@gmail.com>
56942
56943         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
56944         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
56945         words of double from correct stack offsets.
56946         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
56947         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
56948         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
56949         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
56950         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
56951         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
56952         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
56953         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
56954         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
56955         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
56956         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
56957         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
56958         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
56959         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
56960         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
56961         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
56962         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
56963
56964 2013-10-04  Alan Modra  <amodra@gmail.com>
56965
56966         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
56967         64-bit int/double union.
56968         (_FPU_SETCW): Likewise.
56969         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
56970         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
56971
56972 2013-10-04  Alan Modra  <amodra@gmail.com>
56973
56974         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
56975         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
56976
56977 2013-10-04  Alan Modra  <amodra@gmail.com>
56978
56979         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
56980         use vector int constants.
56981         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
56982
56983 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
56984
56985         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
56986         array with long long.
56987         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
56988         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
56989         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
56990         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
56991         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
56992         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
56993         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
56994         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
56995         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
56996         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
56997         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
56998         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
56999         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57000
57001 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57002
57003         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57004         (__signbit): Likewise.  Correct for little-endian.
57005         (__signbitl): Call __signbit.
57006         (lrint): Correct for little-endian.
57007         (lrintf): Call lrint.
57008
57009 2013-10-04  Alan Modra  <amodra@gmail.com>
57010
57011         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57012         union 32-bit int array member with 64-bit int array.
57013         (t515, tm256): Double rather than long double.
57014         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57015
57016 2013-10-04  Alan Modra  <amodra@gmail.com>
57017
57018         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57019         Delete.
57020         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57021         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57022         version of math_ldbl.h.
57023
57024 2013-10-04  Alan Modra  <amodra@gmail.com>
57025
57026         [BZ #15734], [BZ #15735]
57027         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57028         all uses of ieee875 long double macros and unions.  Simplify test
57029         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57030         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57031         normalize after ldbl_extract_mantissa, and don't add hidden bit
57032         already handled.  Don't treat low word of ieee854 mantissa like
57033         low word of IBM long double and mask off bit when testing for
57034         zero.
57035         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57036         all uses of ieee875 long double macros and unions.  Simplify tests
57037         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57038         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57039         two1022, instead use their values.  Recognise that tests for large
57040         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57041         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57042         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57043         test for 0.0L and nan.  Correct negation.
57044         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57045         ieee875 long double macros and unions.  Correct output for large
57046         magnitude x.  Correct absolute value calculation.
57047         (__erfcl): Likewise.
57048         * math/libm-test.inc: Add tests for errors discovered in IBM long
57049         double versions of fmodl, remainderl, erfl and erfcl.
57050
57051 2013-10-04  Alan Modra  <amodra@gmail.com>
57052
57053         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57054         all uses of ieee854 long double macros and unions.  Simplify tests
57055         for long doubles that are fully specified by the high double.
57056         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57057         Likewise.
57058         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57059         Remove dead code too.
57060         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57061         (__ieee754_ynl): Likewise.
57062         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57063         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57064         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57065         Remove dead code too.
57066         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57067         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57068         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57069         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57070         Simplify.
57071         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57072         Simplify.
57073         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57074         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57075         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57076         Comment on variable precision.
57077         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57078         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57079         Likewise.
57080         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57081         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57082         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57083         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57084         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57085
57086 2013-10-04  Alan Modra  <amodra@gmail.com>
57087
57088         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57089         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57090         all uses of ieee854 long double macros and unions.
57091         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57092         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57093         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57094         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57095         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57096         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57097         Likewise.
57098         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57099         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57100         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57101         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57102         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57103         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57104         Simplify sign and nan test too.
57105         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57106         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57107         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57108         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57109         Likewise.
57110         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57111         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57112         Likewise.
57113         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57114         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57115         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57116         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57117         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57118         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57119
57120 2013-10-04  Alan Modra  <amodra@gmail.com>
57121
57122         * stdio-common/printf_size.c (__printf_size): Don't use
57123         union ieee854_long_double in fpnum union.
57124         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57125         signbit macro to retrieve sign from long double.
57126         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57127         retrieve sign from long double.
57128         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57129         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57130         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57131         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57132         * math/test-misc.c (main): Don't use union ieee854_long_double.
57133
57134 2013-10-04  Alan Modra  <amodra@gmail.com>
57135
57136         [BZ #15680]
57137         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57138         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57139         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57140         calculation.  Remove unnecessary test for denormal exponent.
57141         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57142         Correct handling of denormals.  Avoid undefined shift behaviour.
57143         Correct normalisation of low mantissa when low double is denormal.
57144         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57145         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57146         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57147         Correct normalisation of low mantissa.  Test for overflow of high
57148         mantissa and normalise.
57149         (ldbl_nearbyint): Use more readable constant for two52.
57150         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57151         (__mpn_construct_long_double): Fix test for overflow of high
57152         mantissa and correct normalisation.  Avoid undefined shift.
57153
57154 2013-10-04  Alan Modra  <amodra@gmail.com>
57155
57156         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57157         (union ibm_extended_long_double): Define as an array of ieee754_double.
57158         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57159         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57160         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57161         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57162         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57163         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57164         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57165         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57166         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57167         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57168         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57169
57170 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57171
57172         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57173         page size instead of calling getpagesize.
57174
57175         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57176         (LOCFILE_ALIGN_MASK): Likewise.
57177         (LOCFILE_ALIGN_UP): Likewise.
57178         (LOCFILE_ALIGNED_P): Likewise.
57179         * locale/programs/ld-collate.c (collate_output): Use the new
57180         macros instead of __alignof__ (int32_t).
57181         * locale/weight.h (findidx): Likewise.
57182
57183 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57184
57185         [BZ #431]
57186         * manual/string.texi: Fix strncat and wcsncat.
57187
57188 2013-10-03  Brooks Moses  <bmoses@google.com>
57189
57190         [BZ #15915]
57191         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57192         * Makerules: ...here, and adjust associated comments.
57193
57194 2013-10-02  Will Newton  <will.newton@linaro.org>
57195
57196         * malloc/Makefile: Add tst-pvalloc.
57197         * malloc/tst-pvalloc.c: New file.
57198
57199 2013-10-02  Will Newton  <will.newton@linaro.org>
57200
57201         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57202         improve test coverage.
57203
57204 2013-10-02  Will Newton  <will.newton@linaro.org>
57205
57206         * malloc/Makefile: Add tst-posix_memalign.
57207         * malloc/tst-posix_memalign.c: New file.
57208
57209 2013-10-01  Eric Blake  <eblake@redhat.com>
57210
57211         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57212         Use __THROWNL rather than __THROW on static functions.
57213
57214 2013-09-30  Petr Machata  <pmachata@redhat.com>
57215
57216         * elf/elf.h (R_AARCH64_ABS16): New macro.
57217         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57218         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57219         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57220         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57221         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57222         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57223         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57224         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57225         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57226         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57227         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57228         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57229         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57230         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57231         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57232         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57233         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57234         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57235         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57236         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57237         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57238         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57239         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57240         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57241         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57242         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57243         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57244         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57245         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57246         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57247         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57248         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57249         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57250         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57251         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57252         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57253         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57254         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57255         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57256         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57257         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57258         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57259         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57260         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57261         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57262         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57263         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57264         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57265         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57266         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57267         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57268         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57269         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57270         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57271         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57272         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57273         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57274         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57275         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57276         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57277         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57278         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57279         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57280         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57281         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57282         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57283         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57284         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57285         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57286         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57287         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57288         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57289         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57290         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57291         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57292         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57293         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57294         (R_AARCH64_TLSDESC_LDR): Likewise.
57295         (R_AARCH64_TLSDESC_ADD): Likewise.
57296         (R_AARCH64_TLSDESC_CALL): Likewise.
57297
57298 2013-09-30  Andreas Schwab  <schwab@suse.de>
57299
57300         [BZ #15048]
57301         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57302         the nss database lookup.
57303         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57305
57306 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
57307
57308         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
57309
57310 2013-09-28  P. J. McDermott  <pj@pehjota.net>
57311
57312         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
57313         ${Bash-specific parameter/pattern/string} parameter expansion.
57314         * sysdeps/unix/make-syscalls.sh: Likewise.
57315
57316 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57317
57318         * sysdeps/sh/stackguard-macros.h: New file.
57319
57320 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
57321
57322         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
57323         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
57324         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
57325         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
57326         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57327         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
57328
57329 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57330
57331         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
57332         Fix thread ID register.
57333
57334 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
57335
57336         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
57337         [POSIX || UNIX98]: Require rather than permitting all symbols from
57338         <time.h>.
57339         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
57340         element of struct sched_param.
57341         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
57342         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
57343         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
57344         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
57345         constant.
57346
57347 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
57348
57349         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
57350         argument calculation.
57351
57352 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57353
57354         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
57355         Expect macro.
57356         [POSIX] (pthread_attr_t): Do not require type.
57357         [POSIX] (pthread_cond_t): Likewise.
57358         [POSIX] (pthread_condattr_t): Likewise.
57359         [POSIX] (pthread_key_t): Likewise.
57360         [POSIX] (pthread_mutex_t): Likewise.
57361         [POSIX] (pthread_mutexattr_t): Likewise.
57362         [POSIX] (pthread_once_t): Likewise.
57363         [POSIX] (pthread_t): Likewise.
57364         [POSIX-based standards] (pthread_atfork): Expect function.
57365
57366 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57367             Richard Sandiford  <richard@codesourcery.com>
57368
57369         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
57370         (swap_endianness_p): New extern variable.
57371         (set_big_endian): New inline function.
57372         (maybe_swap_uint32): Likewise.
57373         (maybe_swap_uint32_array): Likewise.
57374         (maybe_swap_uint32_obstack): Likewise.
57375         * locale/programs/locfile.c: Include <stdbool.h>.
57376         (swap_endianness_p): New variable.
57377         (add_locale_uint32): Call maybe_swap_uint32.
57378         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
57379         (write_locale_data): Call maybe_swap_uint32_array.
57380         * locale/programs/ld-collate.c (obstack_int32_grow): Call
57381         maybe_swap_uint32.
57382         (obstack_int32_grow_fast): Likewise.
57383         (output_weightwc): Call maybe_swap_uint32_obstack.
57384         (collate_output): Likewise.
57385         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
57386         (OPT_LITTLE_ENDIAN): Likewise.
57387         (options): Add --little-endian and --big-endian options.
57388         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
57389         * locale/programs/locarchive.c: Include "locfile.h".
57390         (GET): New macro.
57391         (SET): Likewise.
57392         (INC): Likewise.
57393         (create_archive): Use the new macros to access fields of
57394         structures directly mapped from or written to locale archives.
57395         (oldlocrecentcmp): Likewise.
57396         (enlarge_archive): Likewise.
57397         (insert_name): Likewise.
57398         (add_alias): Likewise.
57399         (add_locale): Likewise.
57400         (delete_locales_from_archive): Likewise.
57401         (show_archive_content): Likewise.
57402         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
57403         locale data.
57404
57405 2013-09-24  Roland McGrath  <roland@hack.frob.com>
57406
57407         * manual/freemanuals.texi: Updated from (newly) canonical copy at
57408         http://www.gnu.org/doc/freemanuals.texi.
57409         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
57410
57411 2013-09-24  Will Newton  <will.newton@linaro.org>
57412
57413         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
57414         macro.
57415
57416 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
57417
57418         * locale/hashval.h (compute_hashval): Interpret bytes of key as
57419         unsigned char.
57420
57421 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
57422
57423         * manual/threads.texi (POSIX Threads): Fix a typo.
57424
57425 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
57426
57427         [BZ #14547]
57428         * string/tst-strcoll-overflow.c: New test case.
57429         * string/Makefile (xtests): Add tst-strcoll-overflow.
57430         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
57431         cache if string sizes may cause integer overflow.
57432
57433         [BZ #14547]
57434         * string/strcoll_l.c (coll_seq): New members rule, idx,
57435         save_idx and back_us.
57436         (get_next_seq_nocache): New function.
57437         (do_compare_nocache): New function.
57438         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
57439         when malloc fails.
57440
57441 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
57442
57443         [BZ #15754]
57444         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
57445         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
57446         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
57447
57448         [BZ #15754]
57449         * elf/Makefile (tests): Add tst-ptrguard1.
57450         (tests-static): Add tst-ptrguard1-static.
57451         (tst-ptrguard1-ARGS): Define.
57452         (tst-ptrguard1-static-ARGS): Define.
57453         * elf/tst-ptrguard1.c: New file.
57454         * elf/tst-ptrguard1-static.c: New file.
57455         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
57456         * sysdeps/i386/stackguard-macros.h: Likewise.
57457         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
57458         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
57459         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
57460         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
57461         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
57462         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
57463
57464 2013-09-23  Hector Marco  <hecmargi@upv.es>
57465             Ismael Ripoll  <iripoll@disca.upv.es>
57466             Carlos O'Donell  <carlos@redhat.com>
57467
57468         [BZ #15754]
57469         * sysdeps/generic/stackguard-macros.h: Define
57470         __pointer_chk_guard_local and POINTER_CHK_GUARD.
57471         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
57472         Define __pointer_chk_guard_local.
57473         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
57474         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
57475
57476 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57477
57478         [BZ #15859]
57479         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
57480
57481 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
57482
57483         * include/string.h (__ffs): Declare as hidden.
57484         * string/ffs.c (__ffs): Define as hidden.
57485         * sysdeps/i386/ffs.c (__ffs): Likewise.
57486         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
57487         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
57488         * sysdeps/s390/ffs.c (__ffs): Likewise.
57489         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
57490
57491 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
57492
57493         * NEWS: Mention malloc probes.
57494
57495         * malloc/arena.c (new_heap): New memory_heap_new probe.
57496         (grow_heap): New memory_heap_more probe.
57497         (shrink_heap): New memory_heap_less probe.
57498         (heap_trim): New memory_heap_free probe.
57499         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
57500         (systrim): New memory_sbrk_less probe.
57501         * manual/probes.texi: Document them.
57502
57503         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
57504         * manual/probes.texi: Document it.
57505
57506         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
57507         (__libc_realloc): Add memory_realloc_retry probe.
57508         (__libc_memalign): Add memory_memalign_retry probe.
57509         (__libc_valloc): Add memory_valloc_retry probe.
57510         (__libc_pvalloc): Add memory_pvalloc_retry probe.
57511         (__libc_calloc): Add memory_calloc_retry probe.
57512         * manual/probes.texi: Document them.
57513
57514         * malloc/arena.c (get_free_list): Add probe
57515         memory_arena_reuse_free_list.
57516         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
57517         and memory_arena_reuse.
57518         (arena_get2) [!PER_THREAD]: Likewise.
57519         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
57520         memory_arena_reuse_realloc.
57521         * manual/probes.texi: Document them.
57522
57523         * malloc/malloc.c (__libc_free): Add
57524         memory_mallopt_free_dyn_thresholds probe.
57525         (__libc_mallopt): Add multiple memory_mallopt probes.
57526         * manual/probes.texi: Document them.
57527
57528         * malloc/malloc.c: Include stap-probe.h.
57529         (__libc_mallopt): Add memory_mallopt probe.
57530         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
57531         * manual/probes.texi: New.
57532         * manual/Makefile (chapters): Add probes.
57533         * manual/threads.texi: Set next node.
57534
57535 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
57536
57537         [BZ #15963, #13985]
57538         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
57539         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
57540         Add `Chinese' to `nan' entry name.
57541
57542 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57543
57544         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
57545         (POLYNOMIAL): Likewise.
57546         (TAYLOR_SINCOS): Likewise.
57547         (TAYLOR_SLOW): Likewise.
57548         (__sin): Use TAYLOR_SINCOS.
57549         (__cos): Likewise.
57550         (slow): Use TAYLOR_SLOW.
57551         (sloww): Likewise.
57552         (bsloww): Likewise.
57553         (csloww): Likewise.
57554
57555 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
57556
57557         * stdlib/strtod_l.c: Fix buffer overrun.
57558
57559 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57560
57561         * benchtests/Makefile (bench): Add sincos.
57562         * benchtests/bench-sincos.c: New file.
57563
57564         * math/libm-test.inc (cos_test_data): New test inputs.
57565         (sin_test_data): Likewise.
57566
57567         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
57568         macro.
57569         (__sin): Use it.
57570         (__cos): Likewise.
57571         (slow1): Likewise.
57572         (slow2): Likewise.
57573         (sloww1): Likewise.
57574         (sloww2): Likewise.
57575         (bsloww1): Likewise.
57576         (bsloww2): Likewise.
57577         (cslow2): Likewise.
57578         (csloww1): Likewise.
57579         (csloww2): Likewise.
57580
57581         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
57582         function.
57583         (__sin): Use it.
57584         (__cos): Likewise.
57585
57586         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
57587         gotos.
57588         (__cos): Likewise.
57589
57590 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
57591
57592         * config.h.in (HAVE_MIPS_NAN2008): New macro.
57593         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
57594         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
57595         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
57596         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
57597         * elf/cache.c (print_entry): Handle the new cache flags.
57598
57599 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57600             Aldy Hernandez  <aldyh@redhat.com>
57601
57602         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
57603         Change condition to [_SOFT_FLOAT].
57604         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
57605         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
57606         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
57607         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
57608         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
57609         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
57610         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
57611         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
57612         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
57613         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
57614         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
57615         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
57616         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
57617         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
57618         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
57619         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
57620         declaration.
57621
57622 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
57623
57624         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
57625         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57626         (__longjmp): Use LOAD_GP to load saved GPRs.
57627         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
57628         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
57629         (__sigsetjmp): Use SAVE_GP to save GPRs.
57630
57631         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
57632         Do not append -msoft-float.
57633         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
57634
57635 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57636
57637         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
57638
57639 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
57640
57641         [BZ #15966]
57642         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
57643         (_FPU_GETCW): Use initial "__" on variable and field names but not
57644         on macro parameter name.
57645         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
57646         parentheses around reference to macro parameter.
57647
57648 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
57649
57650         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
57651         prototype.
57652         (ctype_startup): Use uint32_t in cast and sizeof for
57653         ctype->charnames.
57654
57655 2013-09-11  Jia Liu  <proljc@gmail.com>
57656
57657         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
57658         __daddr_t_defined.
57659         [__FreeBSD__]: Likewise.
57660
57661 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
57662
57663         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
57664         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
57665         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
57666         (strchr): Remove __strchr_sse42 ifunc selection.
57667         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
57668         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
57669
57670 2013-09-11  Will Newton  <will.newton@linaro.org>
57671
57672         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
57673         parameter to RES. Remove hardcoded 1000 value.
57674         * benchtests/bench-skeleton.c (main): Pass RES parameter
57675         to TIMING_INIT and multiply result by 1000.
57676
57677 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57678
57679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
57680
57681 2013-09-11  Andreas Schwab  <schwab@suse.de>
57682
57683         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
57684         if not defined.
57685         (O_TMPFILE) [__USE_GNU]: Define.
57686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
57687         Define.
57688
57689 2013-09-11  Will Newton  <will.newton@linaro.org>
57690
57691         [BZ #15857]
57692         * malloc/malloc.c (__libc_memalign): Check the value of bytes
57693         does not overflow.
57694
57695 2013-09-11  Will Newton  <will.newton@linaro.org>
57696
57697         [BZ #15856]
57698         * malloc/malloc.c (__libc_valloc): Check the value of bytes
57699         does not overflow.
57700
57701 2013-09-11  Will Newton  <will.newton@linaro.org>
57702
57703         [BZ #15855]
57704         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
57705         does not overflow.
57706
57707 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
57708
57709         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
57710         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
57711         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
57712         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
57713         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
57714
57715 2013-09-10  Allan McRae  <allan@archlinux.org>
57716
57717         [BZ #15748]
57718         * manual/arith.texi (Parsing of Floats): Clarify
57719         cross-reference.
57720
57721         [BZ #15849]
57722         * manual/install.texi (Running make install): Mention
57723         --enable-pt-chown.
57724         * INSTALL: Regenerated.
57725
57726 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
57727
57728         * csu/init-first.c (_init): Remove the !SHARED condition around
57729         FPU control word initialization.
57730         * elf/dl-support.c (_dl_fpu_control): New variable.
57731         (_dl_aux_init) <AT_FPUCW>: Initialize it.
57732         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
57733         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
57734         * math/test-fpucw-static.c: New file.
57735         * math/test-fpucw-ieee.c: New file.
57736         * math/test-fpucw-ieee-static.c: New file.
57737         * math/Makefile (tests): Add `test-fpucw-ieee' and
57738         `$(tests-static)'.
57739         (tests-static): New variable.
57740         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
57741         dependency to...
57742         [($(build-shared),yes)]
57743         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
57744         ... this.
57745         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
57746         New dependency.
57747
57748 2013-09-09  Allan McRae  <allan@archlinux.org>
57749
57750         [BZ #15939]
57751         * manual/string.texi (Collation Functions): Fix typo in
57752         strcoll example.
57753         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
57754
57755         [BZ #15893]
57756         * stdlib/isomac.c (get_null_defines): Fix memory leak.
57757
57758         [BZ #15892]
57759         * libio/memstream.c (open_memstream): Fix memory leak.
57760         * libio/wmemstream.c (open_wmemstream): Likewise.
57761
57762         [BZ #15895]
57763         * nscd/netgroupcache.c: Fix nesting of ifdefs.
57764
57765 2013-09-09  Will Newton  <will.newton@linaro.org>
57766
57767         * malloc/Makefile: Add tst-realloc to tests.
57768         * malloc/tst-realloc.c: New file.
57769
57770 2013-09-09  Allan McRae  <allan@archlinux.org>
57771
57772         [BZ #15844]
57773         * COPYING: Update from GNU website to fix FSF address.
57774         * COPYING.LIB: Likewise.
57775
57776 2013-09-06  David S. Miller  <davem@davemloft.net>
57777
57778         * po/zh_TW.po: Update Chinese (traditional) translation from
57779         translation project.
57780
57781 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
57782             Joseph Myers  <joseph@codesourcery.com>
57783
57784         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
57785         "localeinfo.h".
57786         (obstack_chunk_alloc): New macro.
57787         (obstack_chunk_free): Likewise.
57788         (record_offset): New function.
57789         (init_locale_data): Likewise.
57790         (align_locale_data): Likewise.
57791         (add_locale_empty): Likewise.
57792         (add_locale_raw_data): Likewise.
57793         (add_locale_raw_obstack): Likewise.
57794         (add_locale_string): Likewise.
57795         (add_locale_wstring): Likewise.
57796         (add_locale_uint32): Likewise.
57797         (add_locale_uint32_array): Likewise.
57798         (add_locale_char): Likewise.
57799         (start_locale_structure): Likewise.
57800         (end_locale_structure): Likewise.
57801         (start_locale_prelude): Likewise.
57802         (end_locale_prelude): Likewise.
57803         (write_locale_data): Take locale_file structure rather than an
57804         iovec.
57805         * locale/programs/locfile.h: Include "obstack.h".
57806         (struct locale_file): Change to store locale file contents instead
57807         of header.
57808         (init_locale_data): New prototype.
57809         (align_locale_data): Likewise.
57810         (add_locale_empty): Likewise.
57811         (add_locale_raw_data): Likewise.
57812         (add_locale_raw_obstack): Likewise.
57813         (add_locale_string): Likewise.
57814         (add_locale_wstring): Likewise.
57815         (add_locale_uint32): Likewise.
57816         (add_locale_uint32_array): Likewise.
57817         (add_locale_char): Likewise.
57818         (start_locale_structure): Likewise.
57819         (end_locale_structure): Likewise.
57820         (start_locale_prelude): Likewise.
57821         (end_locale_prelude): Likewise.
57822         (write_locale_data): Update prototype.
57823         * locale/programs/3level.h (struct TABLE): Remove result field.
57824         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
57825         Use new locale_file interface.
57826         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
57827         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
57828         * locale/programs/ld-address.c (address_output): Use new
57829         locale_file interface.
57830         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
57831         NO_ADD_LOCALE.
57832         (collate_finish): Don't call collseq_table_finalize.
57833         (collate_output): Use new locale_file interface.
57834         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
57835         in file.
57836         (NO_FINALIZE): Change to NO_ADD_LOCALE.
57837         (TABLE): Move defines earlier in file.
57838         (ELEMENT): Likewise.
57839         (DEFAULT): Likewise.
57840         (wctrans_table_add): Move macro and inline function earlier in
57841         file.
57842         (struct wctype_table): Move type earlier in file.
57843         (add_locale_wctype_table): New static prototype.
57844         (struct locale_ctype_t): Use logical types instead of struct iovec
57845         pointers for members.
57846         (ctype_output): Use new locale_file interface.
57847         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
57848         new locale_file interface.
57849         (allocate_arrays): Update for use of new locale_file interface.
57850         * locale/programs/ld-identification.c (identification_output): Use
57851         new locale_file interface.
57852         * locale/programs/ld-measurement.c (measurement_output): Likewise.
57853         * locale/programs/ld-messages.c (messages_output): Likewise.
57854         * locale/programs/ld-monetary.c (monetary_output): Likewise.
57855         * locale/programs/ld-name.c (name_output): Likewise.
57856         * locale/programs/ld-numeric.c (numeric_output): Likewise.
57857         * locale/programs/ld-paper.c (paper_output): Likewise.
57858         * locale/programs/ld-telephone.c (telephone_output): Likewise.
57859         * locale/programs/ld-time.c (time_output): Likewise.
57860
57861 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57862
57863         * benchtests/Makefile: Add memrchr benchmark.
57864         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
57865         benchmark as memrchr.
57866         * benchtests/bench-memrchr-ifunc.c: New file.
57867         * benchtests/bench-memrchr.c: New file.
57868
57869 2013-09-06   Will Newton  <will.newton@linaro.org>
57870
57871         * benchtests/Makefile (string-bench): Add memcpy.
57872
57873 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
57874             Cong Wang  <amwang@redhat.com>
57875
57876         [BZ #15850]
57877         * sysdeps/unix/sysv/linux/bits/in.h
57878         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
57879         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
57880         before __USE_KERNEL_IPV6_DEFS uses.
57881         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
57882         IPPROTO_BEETPH.
57883         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
57884         sockaddr_in6, or ipv6_mreq.
57885
57886 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57887
57888         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
57889         memory access for final bytes in some large inputs.
57890         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
57891
57892 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57893
57894         * string/test-memrchr.c: New file.
57895         * string/test-memrchr-ifunc.c: New file.
57896         * string/Makefile: Add new memrchr testcase.
57897
57898 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
57899
57900         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
57901         fanotify_init returns EPERM.
57902
57903 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
57904
57905         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
57906         errors.
57907         (top level): Treat second token from macro or constant entries for
57908         allowed headers as allowed.
57909         * include/complex.h: Condition internal declarations on
57910         [!_ISOMAC].
57911         * include/fenv.h: Condition include of <stdbool.h> and internal
57912         declarations on [!_ISOMAC].
57913
57914 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
57915
57916         [BZ #15923]
57917         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
57918
57919 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
57920
57921         * configure.in (--enable-versioning): Remove configure option.
57922         (libc_cv_asm_symver_directive): Remove configure test.
57923         (libc_cv_ld_version_script_option): Likewise.
57924         (VERSIONING): Remove variable and AC_SUBST.
57925         (DO_VERSIONING): Remove AC_DEFINE.
57926         * configure: Regenerated.
57927         * config.h.in (DO_VERSIONING): Remove macro.
57928         * Makerules [$(versioning) = yes]: Change conditionals to
57929         [$(build-shared) = yes].
57930         * config.make.in (versioning): Remove variable.
57931         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
57932         [$(build-shared) = yes].
57933         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
57934         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
57935         * elf/Makefile [$(versioning) = yes]: Change conditionals to
57936         [$(build-shared) = yes].
57937         * extra-lib.mk [$(versioning) = yes]: Likewise.
57938         * hurd/Makefile [$(versioning) = yes]: Likewise.
57939         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
57940         [SHARED].
57941         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
57942         [SHARED].
57943         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
57944         [SHARED && !NO_HIDDEN].
57945         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
57946         [SHARED].
57947         [SHARED && DO_VERSIONING]: Likewise..
57948         * libio/Makefile [$(versioning) = yes]: Change conditionals to
57949         [$(build-shared) = yes].
57950         * manual/install.texi (--disable-versioning): Remove
57951         documentation.
57952         * INSTALL: Regenerated.
57953         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
57954         to [SHARED].
57955         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
57956         [$(build-shared) = yes].
57957         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
57958         * sysdeps/i386/i686/multiarch/strstr-c.c
57959         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
57960         [SHARED && !NO_HIDDEN].
57961         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
57962         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
57963         * sysdeps/powerpc/powerpc32/dl-machine.c
57964         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
57965         * sysdeps/powerpc/powerpc32/sysdep.h
57966         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
57967         to [SHARED && PIC && !NO_HIDDEN].
57968         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
57969         conditional to [SHARED].
57970
57971 2013-09-04   Will Newton  <will.newton@linaro.org>
57972
57973         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
57974         * benchtests/bench-string.h: Include bench-timing.h instead
57975         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
57976         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
57977         call to HP_TIMING_DIFF_INIT.
57978         * benchtests/bench-memccpy.c: Use bench-timing.h macros
57979         instead of hp-timing.h macros.
57980         * benchtests/bench-memchr.c: Likewise.
57981         * benchtests/bench-memcmp.c: Likewise.
57982         * benchtests/bench-memcpy.c: Likewise.
57983         * benchtests/bench-memmem.c: Likewise.
57984         * benchtests/bench-memmove.c: Likewise.
57985         * benchtests/bench-memset.c: Likewise.
57986         * benchtests/bench-rawmemchr.c: Likewise.
57987         * benchtests/bench-strcasecmp.c: Likewise.
57988         * benchtests/bench-strcasestr.c: Likewise.
57989         * benchtests/bench-strcat.c: Likewise.
57990         * benchtests/bench-strchr.c: Likewise.
57991         * benchtests/bench-strcmp.c: Likewise.
57992         * benchtests/bench-strcpy.c: Likewise.
57993         * benchtests/bench-strcpy_chk.c: Likewise.
57994         * benchtests/bench-strlen.c: Likewise.
57995         * benchtests/bench-strncasecmp.c: Likewise.
57996         * benchtests/bench-strncat.c: Likewise.
57997         * benchtests/bench-strncmp.c: Likewise.
57998         * benchtests/bench-strncpy.c: Likewise.
57999         * benchtests/bench-strnlen.c: Likewise.
58000         * benchtests/bench-strpbrk.c: Likewise.
58001         * benchtests/bench-strrchr.c: Likewise.
58002         * benchtests/bench-strspn.c: Likewise.
58003         * benchtests/bench-strstr.c: Likewise.
58004
58005 2013-09-04  Will Newton  <will.newton@linaro.org>
58006
58007         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58008
58009 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58010
58011         [BZ #15427]
58012         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58013         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58014         * math/libm-test.inc (lgamma_test_data): Add more tests.
58015         * sysdeps/i386/fpu/libm-test-ulps: Update.
58016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58017
58018 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58019
58020         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58021         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58022         Add ifunc.
58023         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58024         Add strcmp-sse2-unaligned
58025         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58026
58027 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58028
58029         * Versions.def (libc): Add GLIBC_2.19.
58030
58031 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58032
58033         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58034         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58035
58036 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58037
58038         [BZ #14155]
58039         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58040         intermediate calculations in recurrence.
58041         (__ieee754_ynf): Likewise.
58042         * math/libm-test.inc (jn_test_data): Do not allow spurious
58043         underflow exception.  Add more tests.
58044         (yn_test_data): Add more tests.
58045         * sysdeps/i386/fpu/libm-test-ulps: Update.
58046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58047
58048 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58049
58050         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58051
58052 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58053
58054         * csu/init-first.c: Fix then/than typos.
58055         * locale/programs/ld-collate.c: Likewise.
58056         * locale/programs/linereader.h: Likewise.
58057         * manual/charset.texi: Likewise.
58058         * manual/filesys.texi: Likewise.
58059         * manual/stdio.texi: Likewise.
58060         * manual/string.texi: Likewise.
58061         * stdlib/fmtmsg.c: Likewise.
58062         * sysdeps/i386/stpncpy.S: Likewise.
58063         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58064         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58065         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58066         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58067
58068 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58069
58070         * elf/dl-open.c: Fix typos.
58071         * iconvdata/gbbig5.c: Likewise.
58072         * iconvdata/iso-2022-jp.c: Likewise.
58073         * iconv/gconv_int.h: Likewise.
58074         * iconv/loop.c: Likewise.
58075         * nis/rpcsvc/nis.h: Likewise.
58076         * resolv/ns_name.c: Likewise.
58077         * stdio-common/vfscanf.c: Likewise.
58078         * streams/stropts.h: Likewise.
58079         * sunrpc/rpc_thread.c: Likewise.
58080         * sysdeps/i386/strpbrk.S: Likewise.
58081         * sysdeps/ieee754/k_standard.c: Likewise.
58082         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58083         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58084         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58085         * sysdeps/mach/hurd/profil.c: Likewise.
58086         * sysdeps/s390/dl-procinfo.h: Likewise.
58087         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58088         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58089         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58090         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58091         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58092
58093 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58094
58095         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58096         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58097
58098 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58099
58100         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58101         aix specific files.
58102         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58103         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58104         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58105         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58106         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58107         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58108         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58109         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58110
58111 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58112             Roland McGrath  <roland@hack.frob.com>
58113
58114         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58115         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58116
58117 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58118
58119         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58120         __executable_start symbol instead of _start.
58121
58122 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58123
58124         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58125         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58126         Move macros to...
58127         * sysdeps/gnu/ldsodefs.h: ... this new file.
58128
58129         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58130         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58131         instead of ELFOSABI_LINUX.
58132
58133         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58134         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58135         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58136         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58137         Likewise.
58138         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58139         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58140         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58141         Likewise.
58142         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58143         (ibm_extended_long_double): Add ieee_nan member.
58144         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58145         (do_test): New function.
58146
58147         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58148         TEST_TRUNC.
58149         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58150         functions, renamed from truncdfsf_test, trunctfsf_test,
58151         trunctfdf_test.
58152         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58153         functions.
58154         (do_test): Run all these.
58155
58156 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58157
58158         * argp/argp-help.c: Fix typos.
58159         * argp/argp-parse.c: Likewise.
58160         * debug/backtracesyms.c: Likewise.
58161         * elf/elf.h: Likewise.
58162         * malloc/malloc.c: Likewise.
58163         * nis/nis_print.c: Likewise.
58164         * resolv/res_comp.c: Likewise.
58165         * stdlib/stdlib.h: Likewise.
58166         * sunrpc/clnt_tcp.c: Likewise.
58167         * sunrpc/clnt_udp.c: Likewise.
58168         * sunrpc/clnt_unix.c: Likewise.
58169         * sysdeps/unix/bsd/ptsname.c: Likewise.
58170         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58171         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58173         Likewise.
58174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58175         Likewise.
58176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58177         Likewise.
58178         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58179
58180 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58181
58182         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58183         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58184
58185 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58186
58187         [BZ #15897]
58188         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58189         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58190         ($(objpfx)bug-dl-leaf): New rule.
58191         ($(objpfx)bug-dl-leaf.so): Likewise.
58192         ($(objpfx)bug-dl-leaf.out): Likewise.
58193         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58194         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58195         * dlfcn/bug-dl-leaf.c: New test.
58196         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58197         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58198         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58199         (dlclose): Likewise.
58200         (dlmopen): Likewise.
58201
58202 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58203
58204         * include/netdb.h [!_ISOMAC]:
58205         Don't include <tls.h>.
58206         (h_errno, __libc_h_errno): Move declaration and macros out of
58207         [_LIBC_REENTRANT].
58208
58209         * include/resolv.h [_RESOLV_H_]:
58210         Don't include <tls.h>.
58211         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58212         * resolv/res_libc.c: Don't include <tls.h>.
58213         (_res): Use __attribute__ ((nocommon)) in place of
58214         __attribute__ ((section (".bss"))).
58215
58216         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58217         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58218
58219         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58220
58221         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58222         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58223
58224         * resolv/res_mkquery.c: Include <sys/time.h>.
58225
58226         * inet/ifreq.c: Moved to ...
58227         * sysdeps/unix/ifreq.c: ... here.
58228         * inet/ifreq.c: New file, true stub version.
58229
58230         * socket/sa_len.c: New file.
58231         * socket/Makefile (aux): Add it.
58232         * sysdeps/unix/sysv/linux/Makefile
58233         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58234         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58235         and #include <socket/sa_len.c>.
58236         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58237         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58238
58239         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58240         * bits/socket.h: ... here.
58241
58242         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58243         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58244         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58245
58246 2013-08-27  Andreas Schwab  <schwab@suse.de>
58247
58248         [BZ #15736]
58249         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58250         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58251         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58252         * string/test-strcasecmp.c (test_main): Run tests in several
58253         locales.
58254         * string/test-strncasecmp.c (test_main): Likewise.
58255
58256         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58257         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58258         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58259         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58260         (__strncasecmp_ssse3) [PIC]: Likewise.
58261
58262 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58263
58264         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58265
58266         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58267         instead of explicitly declaring xdecrypt.
58268         * nis/nss_nis/nis-publickey.c: Likewise.
58269
58270 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58271
58272         [BZ #15890]
58273         * nscd/aicache.c: Include res_hconf.h.
58274         (addhstaiX): Initialize res_hconf.
58275
58276 2013-08-26  Andreas Schwab  <schwab@suse.de>
58277
58278         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58279         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58280
58281 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58282
58283         * nscd/aicache.c (addhstaiX): Fix indentation.
58284
58285 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58286
58287         * configure.ac: Quote $build_pt_chown test.
58288         * configure: Regenerated.
58289
58290 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58291
58292         [BZ #15532]
58293         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58294         * math/s_cexpf.c (__cexpf): Likewise.
58295         * math/s_cexpl.c (__cexpl): Likewise.
58296         * math/libm-test.inc (cexp_test_data): Correct expected return
58297         value for NaN + i0.  Add another test.
58298
58299 2013-08-22  David S. Miller  <davem@davemloft.net>
58300
58301         * po/ca.po: Update Catalan translation from translation project.
58302         * po/uk.po: Add Ukrainian translations from translation project.
58303
58304 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58305
58306         [BZ #15797]
58307         * math/s_fdim.c (__fdim): Check for infinite arguments if result
58308         is infinite, not alongside NaN test.
58309         * math/s_fdimf.c (__fdimf): Likewise.
58310         * math/s_fdiml.c (__fdiml): Likewise.
58311         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
58312         errno is unchanged.
58313
58314 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
58315
58316         * argp/argp-help.c: Fix typos.
58317         * crypt/speeds.c: Likewise.
58318         * csu/check_fds.c: Likewise.
58319         * elf/dl-load.c: Likewise.
58320         * elf/dl-open.c: Likewise.
58321         * elf/reldep3.c: Likewise.
58322         * elf/reldep.c: Likewise.
58323         * elf/sprof.c: Likewise.
58324         * iconv/iconv_charmap.c: Likewise.
58325         * iconv/skeleton.c: Likewise.
58326         * iconv/strtab.c: Likewise.
58327         * io/lockf64.c: Likewise.
58328         * libio/libioP.h: Likewise.
58329         * resolv/gai_notify.c: Likewise.
58330         * resolv/ns_name.c: Likewise.
58331         * resolv/ns_samedomain.c: Likewise.
58332         * resolv/res_send.c: Likewise.
58333         * stdlib/random.c: Likewise.
58334         * sunrpc/rpc/xdr.h: Likewise.
58335         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
58336         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
58337         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
58338         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
58339         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
58340         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
58341         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
58342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
58343         * sysdeps/mach/hurd/check_fds.c: Likewise.
58344         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
58345         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
58346         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
58347         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
58348         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58349         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
58350         * sysdeps/pthread/aio_notify.c: Likewise.
58351         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
58352         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
58353         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
58354         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
58355         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58356
58357 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58358
58359         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
58360         version if bit_Slow_SSE4_2 is set.
58361         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
58362         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
58363
58364 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58365
58366         [BZ #15867]
58367         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
58368         trampoline stack frame information.
58369         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
58370         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
58371         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
58372         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
58373         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
58374         * sysdeps/unix/sysv/linux/powerpc/init-first.c
58375         (_libc_vdso_platform_setup): Initialize the signal trampolines.
58376         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
58377         sa_flags value.
58378         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
58379         interrupting a syscall and set with option SA_SIGINFO.
58380
58381 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58382
58383         [BZ #15531]
58384         * math/s_cproj.c (__cproj): Only return an infinity if one part of
58385         argument is infinite.
58386         * math/s_cprojf.c (__cprojf): Likewise.
58387         * math/s_cprojl.c (__cprojl): Likewise.
58388         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
58389         * math/libm-test.inc (cproj_test_data): Add more tests.
58390
58391         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
58392
58393         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
58394         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
58395         size.  Use __ffs to determine corresponding shift.
58396
58397 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58398             Roland McGrath  <roland@hack.frob.com>
58399
58400         * Makefile (INSTALL): Remove trailing blank lines from output of
58401         makeinfo.
58402
58403 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58404
58405         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
58406         Align 32 bit compat elf_greg to 8 bytes.
58407
58408 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58409
58410         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
58411
58412 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58413
58414         * string/strcoll_l.c (coll_seq): New structure.
58415         (get_next_seq_cached): New function.
58416         (get_next_seq): New function.
58417         (do_compare): New function.
58418         (STRCOLL): Use GNU style definition.  Simplify implementation
58419         by using get_next_seq, get_next_seq_cached and do_compare.
58420
58421 2013-08-16  Florian Weimer  <fweimer@redhat.com>
58422
58423         [BZ #14699]
58424         CVE-2013-4237
58425         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
58426         member.
58427         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
58428         member.
58429         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
58430         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
58431         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
58432         conditional.
58433         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
58434         GETDENTS_64BIT_ALIGNED.
58435         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58436         * manual/filesys.texi (Reading/Closing Directory): Document
58437         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58438         strongly.
58439         * manual/conf.texi (Limits for Files): Add portability note to
58440         NAME_MAX, PATH_MAX.
58441         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
58442
58443 2013-08-13  Andreas Schwab  <schwab@suse.de>
58444
58445         [BZ #15749]
58446         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
58447         of fabs.
58448         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
58449         LDBL_MAX_EXP >= 16384]: Add tests for it.
58450
58451 2013-08-12  David S. Miller  <davem@davemloft.net>
58452
58453         * version.h (RELEASE): Set to "development".
58454         (VERSION): Set to "2.18.90".
58455         * NEWS: Add 2.19 section.
58456
58457 2013-08-03  David S. Miller  <davem@davemloft.net>
58458
58459         * po/ko.po: Update Korean translation from translation project.
58460
58461 2013-08-01  David S. Miller  <davem@davemloft.net>
58462
58463         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
58464         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
58465         Bilka.
58466
58467 2013-07-30  David S. Miller  <davem@davemloft.net>
58468
58469         * po/fr.po: Update French translation from translation project.
58470
58471 2013-07-28  David S. Miller  <davem@davemloft.net>
58472
58473         * po/cs.po: Update Czech translation from translation project.
58474
58475         * po/sv.po: Update Swedish translation from translation project.
58476
58477 2013-07-27  David S. Miller  <davem@davemloft.net>
58478
58479         * po/eo.po: Update Esperanto translation from translation project.
58480
58481         * po/vi.po: Update Vietnamese translation from translation project.
58482
58483         * po/de.po: Update German translation from translation project.
58484
58485 2013-07-26  David S. Miller  <davem@davemloft.net>
58486
58487         * po/bg.po: Update Bulgarian translation from translation project.
58488
58489         * po/nl.po: Update Dutch translation from translation project.
58490         * po/pl.po: Update Polish translation from translation project.
58491         * po/ru.po: Update Russian translation from translation project.
58492
58493 2013-07-24  David S. Miller  <davem@davemloft.net>
58494
58495         * po/libc.pot: Update.
58496
58497 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58498
58499         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
58500         variable page size.
58501         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
58502         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
58503         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
58504
58505 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58506
58507         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
58508
58509 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58510             Andreas Schwab  <schwab@suse.de>
58511             Roland McGrath  <roland@hack.frob.com>
58512             Joseph Myers  <joseph@codesourcery.com>
58513             Carlos O'Donell  <carlos@redhat.com>
58514
58515         [BZ #15755]
58516         * config.h.in: Define HAVE_PT_CHOWN.
58517         * config.make.in (build-pt-chown): New variable.
58518         * configure.in (--enable-pt_chown): New configure option.
58519         * configure: Regenerate.
58520         * login/Makefile: Include Makeconfig.  Build pt_chown only if
58521         build-pt-chown is enabled.
58522         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
58523         pt_chown to fix pty ownership.
58524         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
58525         CLOSE_ALL_FDS.
58526         * manual/install.texi (Configuring and compiling): Mention
58527         --enable-pt_chown. Add @findex for grantpt.
58528         * INSTALL: Regenerate.
58529
58530 2013-07-20  David S. Miller  <davem@davemloft.net>
58531
58532         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
58533         difference between 32-bit and 64-bit.
58534
58535 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
58536
58537         [BZ #15711]
58538         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
58539         Avoid system header dependency with -ffreestanding.
58540         ($(objpfx)bits/syscall%d): Likewise.
58541
58542 2013-07-13  David S. Miller  <davem@davemloft.net>
58543
58544         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
58545         underflows from atanl/atan2l due to bug 15319.
58546         (casinh_test_data): Likewise.
58547
58548 2013-07-07  David S. Miller  <davem@davemloft.net>
58549
58550         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
58551
58552 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
58553
58554         * sysdeps/i386/fpu/libm-test-ulps: Update.
58555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58556
58557 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
58558
58559         * configure.in (--enable-lock-elision): Fix message text.
58560         * INSTALL: Regenerate.
58561         * configure: Regenerate.
58562
58563 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58564
58565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58566
58567 2013-07-03  Andreas Jaeger  <aj@suse.de>
58568
58569         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
58570         define.
58571         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
58572         (ptrace_peeksiginfo_args): Add.
58573         (__ptrace_peeksiginfo_flags): Add.
58574         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
58575         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
58576         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
58577
58578 2013-07-03  Allan McRae  <allan@archlinux.org>
58579
58580         * sysdeps/i386/fpu/libm-test-ulps: Update.
58581
58582 2013-07-02  David S. Miller  <davem@davemloft.net>
58583
58584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58585
58586 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
58587
58588         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58589
58590 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58591
58592         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
58593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58594
58595 2013-07-02  Andi Kleen <ak@linux.intel.com>
58596
58597         * config.h.in (ENABLE_LOCK_ELISION): Add.
58598         * configure.in (--enable-lock-elision): Add option.
58599         * manual/install.texi: Document --enable lock elision.
58600         * configure: Regenerate
58601         * INSTALL: Regenerate.
58602
58603 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
58604
58605         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
58606         SSE4.2 strcasecmp for libc.a.
58607         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
58608
58609 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
58610
58611         [BZ #13304]
58612         * soft-fp/op-common.h (_FP_FMA): New macro.
58613         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
58614         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
58615         (_FP_MUL_MEAT_1_imm): ... here.
58616         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
58617         (_FP_MUL_MEAT_1_wide): ... here.
58618         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
58619         (_FP_MUL_MEAT_1_hard): ... here.
58620         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
58621         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
58622         (_FP_MUL_MEAT_2_wide): ... here.
58623         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
58624         (_FP_MUL_MEAT_2_wide_3mul): ... here.
58625         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
58626         (_FP_MUL_MEAT_2_gmp): ... here.
58627         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
58628         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
58629         (_FP_MUL_MEAT_4_wide): ... here.
58630         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
58631         (_FP_MUL_MEAT_4_gmp): ... here.
58632         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
58633         (_FP_WFRACBITS_DW_S): Likewise.
58634         (_FP_WFRACXBITS_DW_S): Likewise.
58635         (_FP_HIGHBIT_DW_S): Likewise.
58636         (FP_FMA_S): Likewise.
58637         (_FP_FRAC_HIGH_DW_S): Likewise.
58638         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
58639         (_FP_WFRACBITS_DW_D): Likewise.
58640         (_FP_WFRACXBITS_DW_D): Likewise.
58641         (_FP_HIGHBIT_DW_D): Likewise.
58642         (FP_FMA_D): Likewise.
58643         (_FP_FRAC_HIGH_DW_D): Likewise.
58644         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
58645         (_FP_WFRACBITS_DW_E): Likewise.
58646         (_FP_WFRACXBITS_DW_E): Likewise.
58647         (_FP_HIGHBIT_DW_E): Likewise.
58648         (FP_FMA_E): Likewise.
58649         (_FP_FRAC_HIGH_DW_E): Likewise.
58650         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
58651         (_FP_WFRACBITS_DW_Q): Likewise.
58652         (_FP_WFRACXBITS_DW_Q): Likewise.
58653         (_FP_HIGHBIT_DW_Q): Likewise.
58654         (FP_FMA_Q): Likewise.
58655         (_FP_FRAC_HIGH_DW_Q): Likewise.
58656         * soft-fp/fmasf4.c: New file.
58657         * soft-fp/fmadf4.c: Likewise.
58658         * soft-fp/fmatf4.c: Likewise.
58659
58660 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58661
58662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
58663         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
58664         Silvermont.
58665         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
58666         macro.
58667         (index_Slow_SSE4_2): Likewise.
58668         (index_Prefer_PMINUB_for_stringop): Likewise.
58669         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
58670         bit_Slow_SSE4_2 is set.
58671         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
58672         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58673
58674 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58675
58676         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
58677         rtld_global._dl_hwcap2.
58678         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
58679         POWER8.
58680         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
58681         POWER8 feature descriptions defined in _dl_hwcap2.
58682         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
58683         string handling for POWER8 feature bits.
58684         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
58685         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
58686         _dl_powerpc_cap_flags.
58687         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
58688         * sysdeps/powerpc/rtld-global-offsets.sym
58689         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
58690         _dl_hwcap2 in the rtld_global_ro structure.
58691
58692 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58693
58694         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
58695         hardware capabilities in support of AT_HWCAP2.
58696         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
58697         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
58698         GLRO(dl_hwcap2).
58699         (_dl_show_auxv): Add support for calling _dl_procinfo to display
58700         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
58701         explicitly the unknown a_type display mechanism is used.
58702         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
58703         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
58704         struct member.
58705         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
58706         to macro prototype for AT_HWCAP2 support.
58707         * sysdeps/i386/dl-procinfo.h: Likewise.
58708         * sysdeps/s390/dl-procinfo.h: Likewise.
58709         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
58710         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
58711         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
58712         return -1 for unknown a_type display fallback.
58713         * sysdeps/sparc/dl-procinfo.h: Likewise.
58714         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
58715         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
58716
58717 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
58718
58719         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
58720         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
58721
58722 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
58723
58724         [BZ #12492]
58725         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
58726         mprotect making __stack_prot writable.
58727
58728 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
58729             Joseph Myers  <joseph@codesourcery.com>
58730
58731         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
58732         as being properly aligned.
58733
58734 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
58735
58736         * dlfcn/modstatic5.c: New file.
58737         * dlfcn/tststatic5.c: New file.
58738         * dlfcn/Makefile (tests): Add tststatic5.
58739         (tests-static): Likewise.
58740         (modules-names): Add modstatic5.
58741         (tststatic5-ENV): New variable.
58742         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
58743
58744         [BZ #15022]
58745         * elf/dl-support.c (_dl_main_map): New variable.
58746         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
58747         (_dl_nns, _dl_load_adds): Set to 1.
58748         (_dl_initial_searchlist): Refer to _dl_main_map.
58749         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
58750         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
58751         call to _dl_get_origin.
58752         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
58753         around call_map.
58754         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
58755         * dlfcn/modstatic3.c: New file.
58756         * dlfcn/tststatic3.c: New file.
58757         * dlfcn/tststatic4.c: New file.
58758         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
58759         (tests-static): Likewise.
58760         (modules-names): Add modstatic3.
58761         (tststatic3-ENV, tststatic4-ENV): New variables.
58762         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
58763         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
58764
58765 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
58766
58767         * configure.in (CC): Require GCC version 4.4 or later.
58768         * configure: Regenerated.
58769         * manual/install.texi (Tools for Compilation): Update GCC version
58770         requirement.
58771         * INSTALL: Regenerated.
58772
58773 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58774
58775         [BZ #15674]
58776         * string/test-memcmp.c (check2): New.
58777         (main): Call check2.
58778
58779         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
58780
58781 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
58782
58783         [BZ #15022]
58784         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
58785         over to...
58786         (dl_open_worker) [!SHARED]: ... here.
58787
58788 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58789
58790         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
58791
58792 2013-06-25  Richard Henderson  <rth@redhat.com>
58793
58794         * locale/programs/locarchive.c: Include <libc-internal.h>
58795
58796 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
58797
58798         * manual/texinfo.tex: Update to version 2013-06-21.17, with
58799         trailing whitespace removed.
58800
58801 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58802
58803         [BZ #10283]
58804         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
58805         * locale/programs/locarchive.c: Include libc-mmap.h.
58806         (prepare_address_space): Take two new outputs (the mmap base and len).
58807         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
58808         values.
58809         (create_archive): Declare new mmap base and len values for
58810         prepare_address_space, and store the result in ah.
58811         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
58812         (enlarge_archive): If ah->mmap_base is not NULL, use that and
58813         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58814         Declare new mmap base and len values for
58815         prepare_address_space, and store the result in new_ah.
58816         (open_archive): Declare new mmap base and len values for
58817         prepare_address_space, and store the result in ah.
58818         (close_archive): If ah->mmap_base is not NULL, use that and
58819         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
58820         * sysdeps/generic/libc-mmap.h: New file.
58821
58822 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
58823
58824         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
58825         (ALIGN_UP): Likewise.
58826         (PTR_ALIGN_DOWN): Likewise.
58827         (PTR_ALIGN_UP): Likewise.
58828
58829 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58830
58831         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
58832         entry mapped to PPC_PLATFORM_POWER8.
58833         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
58834         POWER8.
58835         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
58836         (_dl_string_platform): Add case for exporting platform position for
58837         POWER8.
58838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
58839         search path to sysdeps/powerpc/powerpc32/power8 directory.
58840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
58841         search path to sysdeps/powerpc/powerpc64/power8 directory.
58842         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
58843         power7 directories.
58844         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
58845         power7 directories.
58846
58847 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
58848
58849         * INSTALL: Regenerate.
58850
58851         * nscd/connections.c (nscd_init): Fix comment.
58852
58853 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
58854
58855         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
58856
58857         [BZ #15667]
58858         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
58859         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
58860
58861 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
58862
58863         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
58864         DL_DST_REQ_STATIC.
58865         (DL_DST_REQ_STATIC): Remove macro.
58866
58867 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
58868
58869         [BZ #7006]
58870         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
58871         with a shift of 0 bits.
58872
58873 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
58874
58875         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
58876         $(tststatic-ENV).
58877
58878 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
58879
58880         [BZ #15655]
58881         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
58882
58883 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58884
58885         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
58886         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
58887         accepts -fno-tree-loop-distribute-patterns.
58888         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
58889         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
58890         recursive call.
58891         * string/memset.c (memset): Likewise.
58892         * string/test-memmove.c (simple_memmove): Disable loop transformation
58893         to library calls.
58894         * string/test-memset.c (simple_memset): Likewise.
58895         * benchtests/bench-memmove.c (simple_memmove): Likewise.
58896         * benchtests/bench-memset.c (simple_memset): Likewise.
58897         * configure: Regenerated.
58898
58899 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
58900
58901         * math/test-misc.c (main): Ignore fesetround failure when failures
58902         of subsequent rounding tests would be ignored.
58903
58904         [BZ #15654]
58905         * math/fedisblxcpt.c (fedisableexcept): Return 0.
58906         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
58907         * math/fegetenv.c (__fegetenv): Return 0.
58908         * math/fegetexcept.c (fegetexcept): Return 0.
58909         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
58910         FE_TONEAREST.
58911         * math/feholdexcpt.c (feholdexcept): Return 0.
58912         * math/fesetenv.c (__fesetenv): Return 0.
58913         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
58914         argument FE_TONEAREST.
58915         * math/feupdateenv.c (__feupdateenv): Return 0.
58916         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
58917
58918 2013-06-18  Roland McGrath  <roland@hack.frob.com>
58919
58920         * elf/rtld-Rules (rtld-compile-command.S): New variable.
58921         (rtld-compile-command.s, rtld-compile-command.c): New variables.
58922         ($(objpfx)rtld-%.os rules): Use them.
58923
58924 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58925
58926         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
58927         fields.
58928
58929 2013-06-17  Roland McGrath  <roland@hack.frob.com>
58930
58931         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
58932         length of target pattern, then descending length of dependency pattern.
58933         * configure.in (AWK): Require gawk 3.1.2 or newer.
58934         * manual/install.texi (Tools for Compilation): Say that we do.
58935         * configure: Regenerated.
58936
58937         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
58938         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
58939         * scripts/sysd-rules.awk: ... this new script.
58940         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
58941         than a glob-style pattern.
58942
58943 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
58944
58945         * math/test-misc.c (main): Do not treat incorrectly rounded
58946         conversions as failure unless ROUNDING_TESTS passes.
58947
58948 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
58949
58950         [BZ #15631]
58951         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
58952         restore exception state around main square root computation, then
58953         check for inexactness explicitly.
58954
58955         * math/libm-test.inc (fma_test_data): Add another test.
58956
58957 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
58958
58959         * manual/threads.texi (Non-POSIX Extensions): New document
58960         node.  Document pthread_getattr_default_np and
58961         pthread_setattr_default_np.
58962
58963         * Versions.def (libpthread): Add GLIBC_2.18.
58964         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
58965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
58966         Likewise.
58967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
58968         Likewise.
58969         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
58970         Likewise.
58971         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
58972         Likewise.
58973         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
58974         Likewise.
58975         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
58976         Likewise.
58977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
58978         Likewise.
58979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
58980         Likewise.
58981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
58982         Likewise.
58983
58984 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58985
58986         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
58987         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
58988
58989 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58990             H.J. Lu  <hjl.tools@gmail.com>
58991
58992         [BZ #15627]
58993         * sysdeps/x86_64/rtld-memset.c: Remove file.
58994         * sysdeps/x86_64/rtld-memset.S: New file.
58995
58996 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
58997
58998         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
58999         (test_in_one_mode): Take arguments for whether the rounding mode
59000         is supported for each floating-point type.
59001         (do_test): Pass new arguments to test_in_one_mode using
59002         ROUNDING_TESTS.
59003
59004 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59005
59006         * posix/tst-waitid.c (do_test): Distinguish different instances of
59007         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59008         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59009         before entering the kernel for waitpid.
59010
59011 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59012
59013         * NEWS: Fix note on clock function precision.  Text by Roland
59014         McGrath.
59015
59016 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59017
59018         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59019         it into place only when and if the sanity check passes.
59020
59021 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59022
59023         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59024         output for whether conversion result is exact.  Take argument
59025         indicating whether type is IBM long double.
59026         (round_for_all): Change need_exact field to ibm_ld.
59027         * stdlib/tst-strtod-round.c (struct exactness): New type.
59028         (struct test): Change bool ld_ok field to struct exactness exact.
59029         (TEST): Update all definitions for change to field.
59030         (tests): Regenerate array contents.
59031         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59032         field value.  Check for IBM long double here.
59033         (do_test): Update calls to test_in_one_mode.
59034
59035 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59036
59037         [BZ #12515]
59038         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59039         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59040
59041 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59042
59043         [BZ #15605]
59044         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59045         generated by the compiler on loop optimizations.
59046         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59047         general definitions.
59048
59049 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59050
59051         * math/bug-nextafter.c: Include <math-tests.h>.
59052         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59053         the relevant type.
59054         * math/bug-nexttoward.c: Include <math-tests.h>.
59055         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59056         the relevant type.
59057         * math/test-misc.c: Include <math-tests.h>.
59058         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59059         the relevant type.
59060
59061 2013-06-12  Andreas Jaeger  <aj@suse.de>
59062
59063         * po/ia.po: Update Interlingua translation from translation
59064         project.
59065
59066 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59067
59068         * include/fenv.h: Include stdbool.h.
59069         (struct rm_ctx): New structure.
59070         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59071         Define macro.
59072         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59073         (SET_RESTORE_ROUNDF): Likewise.
59074         (SET_RESTORE_ROUNDL): Likewise.
59075         (SET_RESTORE_ROUND_NOEX): Likewise.
59076         (SET_RESTORE_ROUND_NOEXF): Likewise.
59077         (SET_RESTORE_ROUND_NOEXL): Likewise.
59078         (SET_RESTORE_ROUND_53BIT): Likewise.
59079         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59080         (libc_feresetround_noexf_ctx): Likewise.
59081         (libc_feresetround_noexl_ctx): Likewise.
59082         (libc_feholdsetround_53bit_ctx): Likewise.
59083         (libc_feresetround_53bit_ctx): Likewise.
59084         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59085         (libc_feholdexcept_setround_sse_ctx): New function.
59086         (libc_fesetenv_sse_ctx): Likewise.
59087         (libc_feupdateenv_sse_ctx): Likewise.
59088         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59089         (libc_feholdexcept_setround_387_ctx): Likewise.
59090         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59091         (libc_feholdsetround_387_prec_ctx): Likewise.
59092         (libc_feholdsetround_387_ctx): Likewise.
59093         (libc_feholdsetround_387_53bit_ctx): Likewise.
59094         (libc_feholdsetround_sse_ctx): Likewise.
59095         (libc_feresetround_sse_ctx): Likewise.
59096         (libc_feresetround_387_ctx): Likewise.
59097         (libc_feupdateenv_387_ctx): Likewise.
59098         (libc_feholdexcept_setroundf_ctx): Define macro.
59099         (libc_fesetenvf_ctx): Likewise.
59100         (libc_feupdateenvf_ctx): Likewise.
59101         (libc_feholdsetroundf_ctx): Likewise.
59102         (libc_feresetroundf_ctx): Likewise.
59103         (libc_feholdexcept_setround_ctx): Likewise.
59104         (libc_fesetenv_ctx): Likewise.
59105         (libc_feupdateenv_ctx): Likewise.
59106         (libc_feholdsetround_ctx): Likewise.
59107         (libc_feresetround_ctx): Likewise.
59108         (libc_feholdexcept_setroundl_ctx): Likewise.
59109         (libc_feupdateenvl_ctx): Likewise.
59110         (libc_feholdsetroundl_ctx): Likewise.
59111         (libc_feresetroundl_ctx): Likewise.
59112         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59113         (libc_feresetround_53bit_ctx): Likewise.
59114
59115 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59116
59117         * locale/iso-639.def: Convert to UTF-8.
59118
59119 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59120
59121         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59122         (EXCEPTION_TESTS_double): Likewise.
59123         (EXCEPTION_TESTS_long_double): Likewise.
59124         (EXCEPTION_TESTS): Likewise.
59125         * math/libm-test.inc (test_exceptions): Only test exceptions if
59126         EXCEPTION_TESTS (FLOAT).
59127
59128 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59129
59130         * benchtests/Makefile (string-bench): Add strcpy_chk and
59131         stpcpy_chk.
59132         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59133         * benchtests/bench-stpcpy_chk.c: New file.
59134         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59135         * benchtests/bench-strcpy_chk.c: New file.
59136         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59137         code.
59138         (do_test): Likewise.
59139
59140 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59141
59142         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59143         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59144         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59145         with tabs where appropriate.
59146         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59147         dl-procinfo.h.
59148         [PPC_PLATFORM_PPC440]: Likewise.
59149         [PPC_PLATFORM_PPC464]: Likewise.
59150         [PPC_PLATFORM_PPC476]: Likewise.
59151         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59152         ppc464, and ppc476 platform strings merging from ports/
59153         dl-procinfo.h.
59154
59155 2013-06-11  Andreas Schwab  <schwab@suse.de>
59156
59157         [BZ #14991]
59158         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59159         (from_ucs4_idx): Regenerate.
59160         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59161         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59162         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59163         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59164         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59165         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59166         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59167         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59168         from FROM_LOOP and TO_LOOP specific macros.
59169         (BODY): Handle combining characters.
59170         * iconvdata/BIG5HKSCS.irreversible: Update.
59171         * iconvdata/BIG5HKSCS.precomposed: New file.
59172         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59173         characters.
59174         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59175
59176 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59177
59178         * include/sys/time.h: Fix indentation and add copyright header.
59179
59180         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59181         (do_test): Likewise.
59182         * string/test-memchr.c (do_one_test): Likewise.
59183         (do_test): Likewise.
59184         * string/test-memcmp.c (do_one_test): Likewise.
59185         (do_test): Likewise.
59186         * string/test-memcpy.c (do_one_test): Likewise.
59187         (do_test): Likewise.
59188         * string/test-memmem.c (do_one_test): Likewise.
59189         (do_test): Likewise.
59190         (do_random_tests): Likewise.
59191         * string/test-memmove.c (do_one_test): Likewise.
59192         (do_test): Likewise.
59193         * string/test-memset.c (do_one_test): Likewise.
59194         (do_test): Likewise.
59195         * string/test-rawmemchr.c (do_one_test): Likewise.
59196         (do_test): Likewise.
59197         * string/test-strcasecmp.c (do_one_test): Likewise.
59198         (do_test): Likewise.
59199         * string/test-strcasestr.c (do_one_test): Likewise.
59200         (do_test): Likewise.
59201         * string/test-strcat.c (do_one_test): Likewise.
59202         (do_test): Likewise.
59203         * string/test-strchr.c (do_one_test): Likewise.
59204         (do_test): Likewise.
59205         * string/test-strcmp.c (do_one_test): Likewise.
59206         (do_test): Likewise.
59207         * string/test-strcpy.c (do_one_test): Likewise.
59208         (do_test): Likewise.
59209         * string/test-string.h: Likewise.
59210         (test_init): Likewise.
59211         * string/test-strlen.c (do_one_test): Likewise.
59212         (do_test): Likewise.
59213         * string/test-strncasecmp.c (do_one_test): Likewise.
59214         (do_test): Likewise.
59215         * string/test-strncat.c (do_one_test): Likewise.
59216         (do_test): Likewise.
59217         * string/test-strncmp.c (do_one_test): Likewise.
59218         (do_test_limit): Likewise.
59219         (do_test): Likewise.
59220         * string/test-strncpy.c (do_one_test): Likewise.
59221         (do_test): Likewise.
59222         * string/test-strnlen.c (do_one_test): Likewise.
59223         (do_test): Likewise.
59224         * string/test-strpbrk.c (do_one_test): Likewise.
59225         (do_test): Likewise.
59226         * string/test-strrchr.c (do_one_test): Likewise.
59227         (do_test): Likewise.
59228         * string/test-strspn.c (do_one_test): Likewise.
59229         (do_test): Likewise.
59230         * string/test-strstr.c (do_one_test): Likewise.
59231         (do_test): Likewise.
59232
59233         * benchtests/Makefile (string-bench): Add string benchmarks.
59234         * benchtests/bench-bcopy-ifunc.c: New file.
59235         * benchtests/bench-bcopy.c: New file.
59236         * benchtests/bench-bzero-ifunc.c: New file.
59237         * benchtests/bench-bzero.c: New file.
59238         * benchtests/bench-memccpy-ifunc.c: New file.
59239         * benchtests/bench-memccpy.c: New file.
59240         * benchtests/bench-memchr-ifunc.c: New file.
59241         * benchtests/bench-memchr.c: New file.
59242         * benchtests/bench-memcmp-ifunc.c: New file.
59243         * benchtests/bench-memcmp.c: New file.
59244         * benchtests/bench-memmem-ifunc.c: New file.
59245         * benchtests/bench-memmem.c: New file.
59246         * benchtests/bench-memmove-ifunc.c: New file.
59247         * benchtests/bench-memmove.c: New file.
59248         * benchtests/bench-mempcpy-ifunc.c: New file.
59249         * benchtests/bench-mempcpy.c: New file.
59250         * benchtests/bench-memset-ifunc.c: New file.
59251         * benchtests/bench-memset.c: New file.
59252         * benchtests/bench-rawmemchr-ifunc.c: New file.
59253         * benchtests/bench-rawmemchr.c: New file.
59254         * benchtests/bench-stpcpy-ifunc.c: New file.
59255         * benchtests/bench-stpcpy.c: New file.
59256         * benchtests/bench-stpncpy-ifunc.c: New file.
59257         * benchtests/bench-stpncpy.c: New file.
59258         * benchtests/bench-strcasecmp-ifunc.c: New file.
59259         * benchtests/bench-strcasecmp.c: New file.
59260         * benchtests/bench-strcasestr-ifunc.c: New file.
59261         * benchtests/bench-strcasestr.c: New file.
59262         * benchtests/bench-strcat-ifunc.c: New file.
59263         * benchtests/bench-strcat.c: New file.
59264         * benchtests/bench-strchr-ifunc.c: New file.
59265         * benchtests/bench-strchr.c: New file.
59266         * benchtests/bench-strchrnul-ifunc.c: New file.
59267         * benchtests/bench-strchrnul.c: New file.
59268         * benchtests/bench-strcmp-ifunc.c: New file.
59269         * benchtests/bench-strcmp.c: New file.
59270         * benchtests/bench-strcpy-ifunc.c: New file.
59271         * benchtests/bench-strcpy.c: New file.
59272         * benchtests/bench-strcspn-ifunc.c: New file.
59273         * benchtests/bench-strcspn.c: New file.
59274         * benchtests/bench-strlen-ifunc.c: New file.
59275         * benchtests/bench-strlen.c: New file.
59276         * benchtests/bench-strncasecmp-ifunc.c: New file.
59277         * benchtests/bench-strncasecmp.c: New file.
59278         * benchtests/bench-strncat-ifunc.c: New file.
59279         * benchtests/bench-strncat.c: New file.
59280         * benchtests/bench-strncmp-ifunc.c: New file.
59281         * benchtests/bench-strncmp.c: New file.
59282         * benchtests/bench-strncpy-ifunc.c: New file.
59283         * benchtests/bench-strncpy.c: New file.
59284         * benchtests/bench-strnlen-ifunc.c: New file.
59285         * benchtests/bench-strnlen.c: New file.
59286         * benchtests/bench-strpbrk-ifunc.c: New file.
59287         * benchtests/bench-strpbrk.c: New file.
59288         * benchtests/bench-strrchr-ifunc.c: New file.
59289         * benchtests/bench-strrchr.c: New file.
59290         * benchtests/bench-strspn-ifunc.c: New file.
59291         * benchtests/bench-strspn.c: New file.
59292         * benchtests/bench-strstr-ifunc.c: New file.
59293         * benchtests/bench-strstr.c: New file.
59294
59295         * benchtests/Makefile: Disable parallel execution of targets.
59296         (string-bench): Add memcpy.
59297         (benchset): New variable to store a list of benchmark sets.
59298         (bench-func): Renamed from bench.
59299         (bench-set): New target.
59300         (bench): Depend on bench-func and bench-set.
59301         * benchtests/README: Add section on benchmark sets.
59302         * benchtests/bench-memcpy-ifunc.c: New file.
59303         * benchtests/bench-memcpy.c: New file.
59304         * benchtests/bench-string.h: New file.
59305
59306 2013-06-11  Andreas Schwab  <schwab@suse.de>
59307
59308         [BZ #15577]
59309         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
59310         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
59311         values in the triple.
59312         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
59313         terminator in the group key.
59314
59315 2013-06-11  Andreas Jaeger  <aj@suse.de>
59316
59317         * po/zh_TW.po: Update Chinese (traditional) translation from
59318         translation project.
59319
59320 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59321
59322         * include/time.h (__clock_gettime): Add libc_hidden_proto.
59323         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
59324         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
59325         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59326         (clock_getcpuclockid): Likewise.
59327         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
59328         Add weak_alias and libc_hidden_def.
59329         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
59330         * rt/clock_gettime.c (clock_gettime): Rename to
59331         __clock_gettime.  Add weak_alias and libc_hidden_def.
59332         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
59333         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
59334         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
59335         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
59336         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
59337         Likewise.
59338         * rt/clock_settime.c (clock_settime): Rename to
59339         __clock_settime.  Add weak_alias and libc_hidden_def.
59340         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
59341
59342 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
59343
59344         * mach/err_boot.sub: Remove trailing whitespace.
59345         * mach/err_ipc.sub: Likewise.
59346         * mach/err_mach.sub: Likewise.
59347
59348         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
59349         (ROUNDING_TESTS_double): Likewise.
59350         (ROUNDING_TESTS_long_double): Likewise.
59351         (ROUNDING_TESTS): Likewise.
59352         * math/libm-test.inc: Include <math-tests.h>.
59353         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
59354         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
59355         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
59356         (IF_ROUND_INIT_FE_UPWARD): Likewise.
59357
59358 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59359
59360         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
59361         of assigning.
59362
59363 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
59364
59365         * sysdeps/gnu/errlist.awk: Do not generate space at end of
59366         otherwise empty TRANS lines.
59367         * sysdeps/gnu/errlist.c: Regenerated.
59368
59369         * catgets/gencat.c (error_print): Use (void) in function
59370         definition.
59371         * crypt/crypt_util.c (__init_des): Likewise.
59372         * crypt/speeds.c (Stop): Likewise.
59373         (main): Likewise.
59374         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
59375         * inet/ruserpass.c (token): Likewise.
59376         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
59377         * intl/localealias.c (extend_alias_table): Likewise.
59378         * intl/plural-exp.c (init_germanic_plural): Likewise.
59379         * libio/fcloseall.c (__fcloseall): Likewise.
59380         * libio/genops.c (_IO_flush_all): Likewise.
59381         (_IO_flush_all_linebuffered): Likewise.
59382         (_IO_cleanup): Likewise.
59383         (_IO_iter_begin): Likewise.
59384         (_IO_iter_end): Likewise.
59385         (_IO_list_lock): Likewise.
59386         (_IO_list_unlock): Likewise.
59387         (_IO_list_resetlock): Likewise.
59388         * libio/getchar.c (getchar): Likewise.
59389         * libio/getchar_u.c (getchar_unlocked): Likewise.
59390         * libio/getwchar.c (getwchar): Likewise.
59391         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
59392         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
59393         * login/getpt.c (__getpt): Likewise.
59394         * login/tst-utmp.c (main): Likewise.
59395         * malloc/hooks.c (__malloc_check_init): Likewise.
59396         * malloc/malloc.c (__malloc_stats): Likewise.
59397         * malloc/mtrace.c (tr_break): Likewise.
59398         (mtrace): Likewise.
59399         (muntrace): Likewise.
59400         * misc/fstab.c (endfsent): Likewise.
59401         * misc/getclktck.c (__getclktck): Likewise.
59402         * misc/getdtsz.c (__getdtablesize): Likewise.
59403         * misc/gethostid.c (gethostid): Likewise.
59404         * misc/getpagesize.c (__getpagesize): Likewise.
59405         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
59406         (__get_nprocs): Likewise.
59407         (__get_phys_pages): Likewise.
59408         (__get_avphys_pages): Likewise.
59409         * misc/getttyent.c (getttyent): Likewise.
59410         (setttyent): Likewise.
59411         (endttyent): Likewise.
59412         * misc/getusershell.c (getusershell): Likewise.
59413         (endusershell): Likewise.
59414         (setusershell): Likewise.
59415         (initshells): Likewise.
59416         * misc/hsearch.c (__hdestroy): Likewise.
59417         * misc/sync.c (sync): Likewise.
59418         * misc/syslog.c (closelog_internal): Likewise.
59419         (closelog): Likewise.
59420         * misc/ttyslot.c (ttyslot): Likewise.
59421         * misc/vhangup.c (vhangup): Likewise.
59422         * posix/fork.c (__fork): Likewise.
59423         * posix/getegid.c (__getegid): Likewise.
59424         * posix/geteuid.c (__geteuid): Likewise.
59425         * posix/getgid.c (__getgid): Likewise.
59426         * posix/getpid.c (__getpid): Likewise.
59427         * posix/getppid.c (__getppid): Likewise.
59428         * posix/getuid.c (__getuid): Likewise.
59429         * posix/pause.c (pause): Likewise.
59430         * posix/setpgrp.c (setpgrp): Likewise.
59431         * posix/setsid.c (__setsid): Likewise.
59432         * posix/test-vfork.c (noop): Likewise.
59433         * resolv/gethnamaddr.c (_endhtent): Likewise.
59434         (_gethtent): Likewise.
59435         (ht_endhostent): Likewise.
59436         (gethostent): Likewise.
59437         (dns_service): Likewise.
59438         * stdlib/drand48.c (drand48): Likewise.
59439         * stdlib/lrand48.c (lrand48): Likewise.
59440         * stdlib/mrand48.c (mrand48): Likewise.
59441         * stdlib/rand.c (rand): Likewise.
59442         * stdlib/random.c (__random): Likewise.
59443         * stdlib/setenv.c (clearenv): Likewise.
59444         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
59445         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
59446         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
59447         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
59448         (__get_nprocs): Likewise.
59449         (__get_phys_pages): Likewise.
59450         (__get_avphys_pages): Likewise.
59451         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
59452         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
59453         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
59454         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
59455         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
59456         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
59457         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
59458         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
59459         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
59460         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
59461         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
59462         * sysdeps/mach/hurd/sync.c (sync): Likewise.
59463         * sysdeps/posix/clock.c (clock): Likewise.
59464         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
59465         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
59466         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
59467         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
59468         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
59469         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
59470         (__get_nprocs_conf): Likewise.
59471         (__get_phys_pages): Likewise.
59472         (__get_avphys_pages): Likewise.
59473         * time/clock.c (clock): Likewise.
59474         * time/tzset.c (__tzname_max): Likewise.
59475
59476 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
59477
59478         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
59479         (__bswap_32): Do not use "register".
59480         * crypt/crypt.c (_ufc_doit_r): Likewise.
59481         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
59482         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
59483         * gmon/gmon.c (__monstartup): Likewise.
59484         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
59485         * hurd/hurdmalloc.c (more_memory): Likewise.
59486         (malloc): Likewise.
59487         (free): Likewise.
59488         (realloc): Likewise.
59489         (malloc_fork_prepare): Likewise.
59490         (malloc_fork_parent): Likewise.
59491         (malloc_fork_child): Likewise.
59492         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
59493         (_svcauth_des): Likewise.
59494         * inet/inet_lnaof.c (inet_lnaof): Likewise.
59495         * inet/inet_net.c (inet_network): Likewise.
59496         * inet/inet_netof.c (inet_netof): Likewise.
59497         * inet/rcmd.c (__validuser2_sa): Likewise.
59498         * io/fts.c (fts_open): Likewise.
59499         (fts_load): Likewise.
59500         (fts_close): Likewise.
59501         (fts_read): Likewise.
59502         (fts_children): Likewise.
59503         (fts_build): Likewise.
59504         (fts_stat): Likewise.
59505         (fts_sort): Likewise.
59506         (fts_alloc): Likewise.
59507         (fts_lfree): Likewise.
59508         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
59509         (_IO_file_xsgetn): Likewise.
59510         (_IO_file_xsgetn_mmap): Likewise.
59511         * libio/iofopncook.c (_IO_cookie_read): Likewise.
59512         (_IO_cookie_write): Likewise.
59513         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
59514         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
59515         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
59516         * malloc/obstack.c (_obstack_begin): Likewise.
59517         (_obstack_begin_1): Likewise.
59518         (_obstack_newchunk): Likewise.
59519         (_obstack_allocated_p): Likewise.
59520         (obstack_free): Likewise.
59521         (_obstack_memory_used): Likewise.
59522         * misc/getttyent.c (getttynam): Likewise.
59523         (getttyent): Likewise.
59524         (skip): Likewise.
59525         (value): Likewise.
59526         * misc/getusershell.c (initshells): Likewise.
59527         * misc/syslog.c (__vsyslog_chk): Likewise.
59528         * misc/ttyslot.c (ttyslot): Likewise.
59529         * nis/nis_hash.c (__nis_hash): Likewise.
59530         * posix/fnmatch_loop.c (FCT): Likewise.
59531         * posix/getconf.c (print_all): Likewise.
59532         (main): Likewise.
59533         * posix/getopt.c (exchange): Likewise.
59534         * posix/glob.c (globfree): Likewise.
59535         (prefix_array): Likewise.
59536         (__glob_pattern_type): Likewise.
59537         * resolv/arpa/nameser.h (NS_GET16): Likewise.
59538         (NS_GET32): Likewise.
59539         (NS_PUT16): Likewise.
59540         (NS_PUT32): Likewise.
59541         * resolv/gethnamaddr.c (getanswer): Likewise.
59542         (gethostbyname2): Likewise.
59543         (gethostbyaddr): Likewise.
59544         (_gethtent): Likewise.
59545         (_gethtbyname2): Likewise.
59546         (_gethtbyaddr): Likewise.
59547         * resolv/ns_print.c (dst_s_get_int16): Likewise.
59548         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
59549         * resolv/res_init.c (__res_vinit): Likewise.
59550         (net_mask): Likewise.
59551         * resolv/res_mkquery.c (outchar): Likewise.
59552         (PRINT): Likewise.
59553         * stdio-common/printf_fp.c (outchar): Likewise.
59554         (PRINT): Likewise.
59555         * stdio-common/printf_fphex.c (outchar): Likewise.
59556         (PRINT): Likewise.
59557         * stdio-common/printf_size.c (outchar): Likewise.
59558         (PRINT): Likewise.
59559         * stdio-common/test_rdwr.c (main): Likewise.
59560         * stdio-common/tfformat.c (matches): Likewise.
59561         * stdio-common/vfprintf.c (outchar): Likewise.
59562         (printf_unknown): Likewise.
59563         (buffered_vfprintf): Likewise.
59564         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
59565         * stdio-common/xbug.c (AppendToBuffer): Likewise.
59566         (ReadFile): Likewise.
59567         * stdlib/qsort.c (SWAP): Likewise.
59568         (_quicksort): Likewise.
59569         * stdlib/setenv.c (__add_to_environ): Likewise.
59570         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
59571         * stdlib/strtol_l.c (__strtol_l): Likewise.
59572         * stdlib/tst-strtod.c (main): Likewise.
59573         * stdlib/tst-strtol.c (main): Likewise.
59574         * stdlib/tst-strtoll.c (main): Likewise.
59575         * string/bits/string2.h (__strcmp_cc): Likewise.
59576         (__strcmp_cg): Likewise.
59577         (__strcspn_c1): Likewise.
59578         (__strcspn_c2): Likewise.
59579         (__strcspn_c3): Likewise.
59580         (__strspn_c1): Likewise.
59581         (__strspn_c2): Likewise.
59582         (__strspn_c3): Likewise.
59583         (__strsep_1c): Likewise.
59584         (__strsep_2c): Likewise.
59585         (__strsep_3c): Likewise.
59586         * string/memccpy.c (__memccpy): Likewise.
59587         * string/stpcpy.c (__stpcpy): Likewise.
59588         * string/strcmp.c (strcmp): Likewise.
59589         * string/strrchr.c (strrchr): Likewise.
59590         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
59591         Likewise.
59592         * sysdeps/mach/hurd/getcwd.c
59593         (_hurd_canonicalize_directory_name_internal): Likewise.
59594         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
59595         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
59596         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
59597         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
59598         Likewise, in both definitions.
59599         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
59600         definitions.
59601         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
59602         64] (__bswap_64): Likewise.
59603         * time/test_time.c (main): Likewise.
59604         * time/tzfile.c (__tzfile_read): Likewise.
59605         (__tzfile_compute): Likewise.
59606         * time/tzset.c (__tzset_parse_tz): Likewise.
59607         (tzset_internal): Likewise.
59608         (compute_change): Likewise.
59609         * wcsmbs/wcscat.c (__wcscat): Likewise.
59610         * wcsmbs/wcschr.c (wcschr): Likewise.
59611         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
59612         * wcsmbs/wcscspn.c (wcscspn): Likewise.
59613         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
59614         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
59615         * wcsmbs/wcsspn.c (wcsspn): Likewise.
59616         * wcsmbs/wcsstr.c (wcsstr): Likewise.
59617         * wcsmbs/wmemchr.c (wmemchr): Likewise.
59618         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
59619         * wcsmbs/wmemset.c (wmemset): Likewise.
59620
59621 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
59622
59623         * scripts/config.guess: Update to version 2013-05-16.
59624         * scripts/config.sub: Update to version 2013-04-24.
59625         * scripts/install-sh: Update to version 2011-11-20.07.
59626         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
59627         * scripts/move-if-change: Update to version 2012-01-06 07:23.
59628
59629 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
59630
59631         * debug/fgetws_u_chk.c: Fix leading whitespaces.
59632         * elf/sln.c: Likewise.
59633         * hurd/hurd/ioctl.h: Likewise.
59634         * hurd/hurdmalloc.c: Likewise.
59635         * hurd/xattr.c: Likewise.
59636         * include/shlib-compat.h: Likewise.
59637         * inet/ruserpass.c: Likewise.
59638         * libio/iofgets_u.c: Likewise.
59639         * libio/iofgetws_u.c: Likewise.
59640         * locale/programs/ld-identification.c: Likewise.
59641         * locale/programs/ld-time.c: Likewise.
59642         * mach/msg-destroy.c: Likewise.
59643         * nss/nss_files/files-netgrp.c: Likewise.
59644         * resolv/res_data.c: Likewise.
59645         * soft-fp/op-1.h: Likewise.
59646         * soft-fp/op-2.h: Likewise.
59647         * soft-fp/op-4.h: Likewise.
59648         * soft-fp/op-common.h: Likewise.
59649         * stdio-common/printf_fphex.c: Likewise.
59650         * stdlib/strtod_l.c: Likewise.
59651         * sunrpc/rpc/clnt.h: Likewise.
59652         * sysdeps/generic/framestate.c: Likewise.
59653         * sysdeps/i386/bsd-_setjmp.S: Likewise.
59654         * sysdeps/i386/bsd-setjmp.S: Likewise.
59655         * sysdeps/i386/__longjmp.S: Likewise.
59656         * sysdeps/i386/setjmp.S: Likewise.
59657         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
59658         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
59659         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59660         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
59661         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
59662         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
59663         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
59664         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
59665         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
59666         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59667         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
59668         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
59669         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
59670         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
59671         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
59672         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
59673         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
59674         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
59675         * sysdeps/ieee754/support.c: Likewise.
59676         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59677         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
59678         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
59679         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
59680         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
59681         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
59682         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
59683         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
59684         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
59685         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
59686         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
59687         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
59688         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
59689         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
59690         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
59691         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
59692         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
59693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
59694
59695 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
59696
59697         * posix/transbug.c: Remove executable mode.
59698
59699 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
59700
59701         * crypt/speeds.c: Remove trailing whitespace.
59702         * dlfcn/default.c: Likewise.
59703         * elf/ifuncdep2.c: Likewise.
59704         * elf/ifuncmain1.c: Likewise.
59705         * elf/ifuncmain1vis.c: Likewise.
59706         * elf/testobj.h: Likewise.
59707         * elf/tst-stackguard1.c: Likewise.
59708         * gmon/sys/gmon.h: Likewise.
59709         * hurd/hurdmsg.c: Likewise.
59710         * hurd/new-fd.c: Likewise.
59711         * hurd/ports-get.c: Likewise.
59712         * iconvdata/ibm1008_420.c: Likewise.
59713         * inet/tst-getni1.c: Likewise.
59714         * inet/tst-getni2.c: Likewise.
59715         * libio/ioungetc.c: Likewise.
59716         * libio/wfiledoalloc.c: Likewise.
59717         * manual/libm-err-tab.pl: Likewise.
59718         * math/w_dremf.c: Likewise.
59719         * misc/ftruncate.c: Likewise.
59720         * posix/bug-glob2.c: Likewise.
59721         * posix/tst-pcre.c: Likewise.
59722         * posix/wait4.c: Likewise.
59723         * resolv/README: Likewise.
59724         * resolv/res_debug.h: Likewise.
59725         * resolv/tst-inet_ntop.c: Likewise.
59726         * setjmp/bug269-setjmp.c: Likewise.
59727         * soft-fp/extended.h: Likewise.
59728         * soft-fp/op-1.h: Likewise.
59729         * soft-fp/op-2.h: Likewise.
59730         * soft-fp/op-4.h: Likewise.
59731         * soft-fp/op-8.h: Likewise.
59732         * soft-fp/testit.c: Likewise.
59733         * stdio-common/bug16.c: Likewise.
59734         * stdlib/random.c: Likewise.
59735         * sunrpc/rpcsvc/rquota.x: Likewise.
59736         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
59737         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
59738         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
59739         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
59740         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
59741         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
59742         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
59743         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
59744         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
59745         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
59746         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
59747         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
59748         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
59749         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
59750         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
59751         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
59752         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
59753         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
59754         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
59755         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
59756         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
59757         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
59758         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
59759         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
59760         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
59761         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
59762         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
59763         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
59764         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
59765         * sysdeps/ieee754/s_lib_version.c: Likewise.
59766         * sysdeps/mach/hurd/check_fds.c: Likewise.
59767         * sysdeps/mach/hurd/getsockname.c: Likewise.
59768         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
59769         * sysdeps/mach/hurd/recvfrom.c: Likewise.
59770         * sysdeps/powerpc/bits/link.h: Likewise.
59771         * sysdeps/powerpc/dl-procinfo.c: Likewise.
59772         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
59773         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
59774         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
59775         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59776         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
59777         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
59778         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59779         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
59780         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
59781         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
59782         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
59783         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
59784         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
59785         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
59786         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
59787         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
59788         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
59789         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
59790         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59791         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59792         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
59793         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59794         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
59795         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
59796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
59797         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
59798         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59799         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59800         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
59801         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
59802         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
59803         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59804         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
59805         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
59806         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59807         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
59808         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
59809         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
59810         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
59811         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
59812         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
59813         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
59814         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
59815         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
59816         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
59817         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
59818         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
59819         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
59820         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
59821         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
59822         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
59823         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59824         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59825         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
59826         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
59827         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
59828         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59829         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
59830         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
59831         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
59832         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
59833         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
59834         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59835         * sysdeps/powerpc/sysdep.h: Likewise.
59836         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59837         * sysdeps/s390/s390-64/sub_n.S: Likewise.
59838         * sysdeps/sh/dl-trampoline.S: Likewise.
59839         * sysdeps/sh/memset.S: Likewise.
59840         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
59841         * sysdeps/sh/strlen.S: Likewise.
59842         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
59843         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
59844         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
59845         * sysdeps/sparc/sparc32/rem.S: Likewise.
59846         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
59847         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
59848         * sysdeps/sparc/sparc32/strchr.S: Likewise.
59849         * sysdeps/sparc/sparc32/udiv.S: Likewise.
59850         * sysdeps/sparc/sparc32/urem.S: Likewise.
59851         * sysdeps/sparc/sparc64/add_n.S: Likewise.
59852         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
59853         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
59854         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
59855         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
59856         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
59857         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
59858         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
59859         * sysdeps/unix/bsd/times.c: Likewise.
59860         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
59861         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
59862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
59863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
59864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
59865         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
59866         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
59867         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
59868         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
59869         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
59870         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
59871         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
59872         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
59873         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
59874         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
59875         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
59876         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
59877         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
59878         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
59879         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
59880         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
59881         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
59882         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
59883         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
59884         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
59885         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
59886         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
59887         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
59888         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
59889         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
59890         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
59891         * sysdeps/x86_64/strcspn.S: Likewise.
59892
59893 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59894
59895         * locale/C-translit.h: Revert #include <stdint.h> because this is a
59896         generated file.  Regenerate properly from gen-translit.pl.
59897         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
59898         locale/C-translit.h.
59899
59900 2013-06-05  Andreas Schwab  <schwab@suse.de>
59901
59902         [BZ #15100]
59903         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
59904         week as 6 instead of -1.
59905         * time/tst-strptime.c (day_tests): Add test case.
59906
59907 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
59908
59909         * sysdeps/generic/math_private.h
59910         (libc_feholdexcept_setround_53bit): Replace with
59911         libc_feholdsetround_53bit.
59912         (libc_feupdateenv_53bit): Replace with
59913         libc_feresetround_53bit.
59914         (SET_RESTORE_ROUND_53BIT): Adjust.
59915
59916 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
59917
59918         * string/test-strchrnul.c: Add copyright header.
59919
59920         * posix/tst-getaddrinfo4.c: Increase test timeout.
59921
59922 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
59923
59924         [BZ #15536]
59925         * math/libm-test.inc (MAX_EXP): Remove
59926         (MIN_EXP): Define.
59927         (ulp): Use MIN_EXP - MANT_DIG.
59928         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
59929
59930 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
59931
59932         * po/be.po: Revert last change.
59933         * po/zh_CN.po: Likewise.
59934         * po/header.pot: Likewise.
59935
59936 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
59937
59938         * Makefile ($(common-objpfx)linkobj/libc.so): Define
59939         link-libc-deps to empty as target-specific variable.
59940         * Makerules (link-libc-args): New variable.
59941         (libc-for-link): Likewise.
59942         (link-libc-deps): Likewise.
59943         (lib%.so): Depend on $(link-libc-deps).  Link with
59944         $(link-libc-args).
59945         (build-module): Link with $(link-libc-args).
59946         (build-module-asneeded): Likewise.
59947         (build-module-helper-objlist): Filter out $(link-libc-deps) from
59948         list of objects.
59949         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
59950         target-specific variable.
59951         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
59952         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
59953         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
59954         libc.
59955         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
59956         libc and ld.so.
59957         ($(objpfx)libpcprofile.so): Likewise.
59958         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
59959         libc_nonshared.a.
59960         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
59961         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
59962         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
59963         $(link-libc-deps).
59964         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
59965         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
59966         * login/Makefile ($(objpfx)libutil.so): Likewise.
59967         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
59968         * math/Makefile ($(objpfx)libm.so): Likewise.
59969         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
59970         $(objpfx)libnsl.so): Define libc-for-link as target-specific
59971         variable instead of depending directly on libc.
59972         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
59973         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
59974         $(link-libc-deps).
59975         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
59976         libc.
59977         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
59978         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
59979         ($(objpfx)libanl.so): Likewise.
59980         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
59981         ld.so.
59982         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
59983         $(link-libc-deps).
59984         * sysdeps/i386/fpu/Makefile: Remove file.
59985         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
59986         ($(objpfx)libm.so): Remove dependency on ld.so.
59987
59988 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
59989
59990         [BZ # 15553]
59991         * nis/yp_xdr.c (XDRMAXNAME): Define.
59992         (XDRMAXRECORD): Define.
59993         (xdr_domainname): Use XDRMAXNAME.
59994         (xdr_mapname): Likewise.
59995         (xdr_peername): Likewise.
59996         (xdr_keydat): Use XDRMAXRECORD.
59997         (xdr_valdat): Likewise.
59998
59999 2013-05-30  Jeff Law  <law@redhat.com>
60000
60001         [BZ #14256]
60002         * manual/errno.texi (ESTALE): Update to account for more than
60003         just NFS file systems.
60004         * sysdeps/gnu/errlist.c: Regenerated.
60005
60006 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60007
60008         [BZ #15465]
60009         * elf/Makefile (tests): Add tst-null-argv.
60010         (modules-names):  Add tst-null-argv-lib.
60011         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60012         (tst-null-argv-ENV): Set environment for tst-null-argv.
60013         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60014         (RTLD_PROGNAME): New macro.
60015         * elf/tst-null-argv.c: New test case.
60016         * elf/tst-null-argv-lib.c: Library for test case.
60017         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60018         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60019         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60020         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60021         * elf/dl-init.c (call_init): Likewise.
60022         (_dl_init): Likewise.
60023         * elf/dl-load.c (print_search_path): Likewise.
60024         (_dl_map_object): Likewise.
60025         * elf/dl-lookup.c (do_lookup_x): Likewise.
60026         (add_dependency): Likewise.
60027         (_dl_lookup_symbol_x): Likewise.
60028         (_dl_debug_bindings): Likewise.
60029         * elf/dl-open.c (_dl_show_scope): Likewise.
60030         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60031         * elf/dl-version.c (match_symbol): Likewise.
60032         (_dl_check_map_versions): Likewise.
60033         * elf/rtld.c (dl_main): Likewise.
60034         (print_unresolved): Use RTLD_PROGNAME.
60035         (print_missing_version): Likewise.
60036         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60037         (elf_machine_rela): Likewise.
60038         * sysdeps/powerpc/powerpc32/dl-machine.c
60039         (__process_machine_rela): Likewise.
60040         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60041         Likewise.
60042         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60043         Likewise.
60044         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60045         Likewise.
60046         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60047         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60048         Likewise.
60049         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60050         Likewise.
60051         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60052
60053 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60054
60055         * po/be.po: Add descriptive title.
60056         * po/zh_CN.po: Likewise.
60057         * po/header.pot: Likewise.
60058
60059 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60060
60061         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60062         error message.
60063         (enlarge_archive): Likewise.
60064
60065 2013-05-28  Ben North  <ben@redfrontdoor.org>
60066
60067         * manual/arith.texi (frexp): It is the magnitude of the return
60068         value which lies in [0.5, 1), not the return value itself.
60069
60070 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60071
60072         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60073
60074 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60075
60076         * stdio-common/bug26.c (main): Correct fscanf template.
60077
60078         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60079         declare _dl_skip_args.
60080
60081         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60082         Don't declare.
60083
60084         * manual/platform.texi: Add missing @end deftypefun.
60085
60086 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60087
60088         [BZ #15529]
60089         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60090         bit of mantissa of 2^16382.
60091         * math/libm-test.inc (hypot_test_data): Add more tests.
60092
60093         * math/libm-test.inc: Add drem and pow10 to list of tested
60094         functions.
60095         (pow10_test): New function.
60096         (drem_test): Likewise.
60097         (drem_test_tonearest): Likewise.
60098         (drem_test_towardzero): Likewise.
60099         (drem_test_downward): Likewise.
60100         (drem_test_upward): Likewise.
60101         (main): Call the new functions.
60102
60103         * math/libm-test.inc (finite_test_data): Remove.
60104         (finite_test): Run tests from isfinite_test_data.
60105         (gamma_test_data): Remove.
60106         (gamma_test): Run tests from lgamma_test_data.
60107         * sysdeps/i386/fpu/libm-test-ulps: Update.
60108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60109
60110 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60111
60112         * manual/platform.texi: Add PowerPC PPR function set documentation.
60113         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60114         implementation.
60115
60116 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60117
60118         * math/libm-test.inc (MAX_EXP): Define.
60119         (ULPDIFF): Define.
60120         (ulp): New function.
60121         (check_float_internal): Use ULPDIFF.
60122         (cpow_test): Disable failing test.
60123         (check_ulp): Test ulp() implementation.
60124         (main): Call check_ulp before starting tests.
60125
60126 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60127
60128         * math/gen-libm-test.pl (generate_testfile): Do not handle
60129         START_DATA and END_DATA.
60130         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60131         END_DATA.
60132         (acos_tonearest_test_data): Likewise.
60133         (acos_towardzero_test_data): Likewise.
60134         (acos_downward_test_data): Likewise.
60135         (acos_upward_test_data): Likewise.
60136         (acosh_test_data): Likewise.
60137         (asin_test_data): Likewise.
60138         (asin_tonearest_test_data): Likewise.
60139         (asin_towardzero_test_data): Likewise.
60140         (asin_downward_test_data): Likewise.
60141         (asin_upward_test_data): Likewise.
60142         (asinh_test_data): Likewise.
60143         (atan_test_data): Likewise.
60144         (atanh_test_data): Likewise.
60145         (atan2_test_data): Likewise.
60146         (cabs_test_data): Likewise.
60147         (cacos_test_data): Likewise.
60148         (cacosh_test_data): Likewise.
60149         (carg_test_data): Likewise.
60150         (casin_test_data): Likewise.
60151         (casinh_test_data): Likewise.
60152         (catan_test_data): Likewise.
60153         (catanh_test_data): Likewise.
60154         (cbrt_test_data): Likewise.
60155         (ccos_test_data): Likewise.
60156         (ccosh_test_data): Likewise.
60157         (ceil_test_data): Likewise.
60158         (cexp_test_data): Likewise.
60159         (cimag_test_data): Likewise.
60160         (clog_test_data): Likewise.
60161         (clog10_test_data): Likewise.
60162         (conj_test_data): Likewise.
60163         (copysign_test_data): Likewise.
60164         (cos_test_data): Likewise.
60165         (cos_tonearest_test_data): Likewise.
60166         (cos_towardzero_test_data): Likewise.
60167         (cos_downward_test_data): Likewise.
60168         (cos_upward_test_data): Likewise.
60169         (cosh_test_data): Likewise.
60170         (cosh_tonearest_test_data): Likewise.
60171         (cosh_towardzero_test_data): Likewise.
60172         (cosh_downward_test_data): Likewise.
60173         (cosh_upward_test_data): Likewise.
60174         (cpow_test_data): Likewise.
60175         (cproj_test_data): Likewise.
60176         (creal_test_data): Likewise.
60177         (csin_test_data): Likewise.
60178         (csinh_test_data): Likewise.
60179         (csqrt_test_data): Likewise.
60180         (ctan_test_data): Likewise.
60181         (ctan_tonearest_test_data): Likewise.
60182         (ctan_towardzero_test_data): Likewise.
60183         (ctan_downward_test_data): Likewise.
60184         (ctan_upward_test_data): Likewise.
60185         (ctanh_test_data): Likewise.
60186         (ctanh_tonearest_test_data): Likewise.
60187         (ctanh_towardzero_test_data): Likewise.
60188         (ctanh_downward_test_data): Likewise.
60189         (ctanh_upward_test_data): Likewise.
60190         (erf_test_data): Likewise.
60191         (erfc_test_data): Likewise.
60192         (exp_test_data): Likewise.
60193         (exp_tonearest_test_data): Likewise.
60194         (exp_towardzero_test_data): Likewise.
60195         (exp_downward_test_data): Likewise.
60196         (exp_upward_test_data): Likewise.
60197         (exp10_test_data): Likewise.
60198         (exp2_test_data): Likewise.
60199         (expm1_test_data): Likewise.
60200         (fabs_test_data): Likewise.
60201         (fdim_test_data): Likewise.
60202         (finite_test_data): Likewise.
60203         (floor_test_data): Likewise.
60204         (fma_test_data): Likewise.
60205         (fma_towardzero_test_data): Likewise.
60206         (fma_downward_test_data): Likewise.
60207         (fma_upward_test_data): Likewise.
60208         (fmax_test_data): Likewise.
60209         (fmin_test_data): Likewise.
60210         (fmod_test_data): Likewise.
60211         (fpclassify_test_data): Likewise.
60212         (frexp_test_data): Likewise.
60213         (gamma_test_data): Likewise.
60214         (hypot_test_data): Likewise.
60215         (ilogb_test_data): Likewise.
60216         (isfinite_test_data): Likewise.
60217         (isgreater_test_data): Likewise.
60218         (isgreaterequal_test_data): Likewise.
60219         (isinf_test_data): Likewise.
60220         (isless_test_data): Likewise.
60221         (islessequal_test_data): Likewise.
60222         (islessgreater_test_data): Likewise.
60223         (isnan_test_data): Likewise.
60224         (isnormal_test_data): Likewise.
60225         (issignaling_test_data): Likewise.
60226         (isunordered_test_data): Likewise.
60227         (j0_test_data): Likewise.
60228         (j1_test_data): Likewise.
60229         (jn_test_data): Likewise.
60230         (ldexp_test_data): Likewise.
60231         (lgamma_test_data): Likewise.
60232         (lrint_test_data): Likewise.
60233         (lrint_tonearest_test_data): Likewise.
60234         (lrint_towardzero_test_data): Likewise.
60235         (lrint_downward_test_data): Likewise.
60236         (lrint_upward_test_data): Likewise.
60237         (llrint_test_data): Likewise.
60238         (llrint_tonearest_test_data): Likewise.
60239         (llrint_towardzero_test_data): Likewise.
60240         (llrint_downward_test_data): Likewise.
60241         (llrint_upward_test_data): Likewise.
60242         (log_test_data): Likewise.
60243         (log10_test_data): Likewise.
60244         (log1p_test_data): Likewise.
60245         (log2_test_data): Likewise.
60246         (logb_test_data): Likewise.
60247         (logb_downward_test_data): Likewise.
60248         (lround_test_data): Likewise.
60249         (llround_test_data): Likewise.
60250         (modf_test_data): Likewise.
60251         (nearbyint_test_data): Likewise.
60252         (nextafter_test_data): Likewise.
60253         (nexttoward_test_data): Likewise.
60254         (pow_test_data): Likewise.
60255         (pow_tonearest_test_data): Likewise.
60256         (pow_towardzero_test_data): Likewise.
60257         (pow_downward_test_data): Likewise.
60258         (pow_upward_test_data): Likewise.
60259         (remainder_test_data): Likewise.
60260         (remainder_tonearest_test_data): Likewise.
60261         (remainder_towardzero_test_data): Likewise.
60262         (remainder_downward_test_data): Likewise.
60263         (remainder_upward_test_data): Likewise.
60264         (remquo_test_data): Likewise.
60265         (rint_test_data): Likewise.
60266         (rint_tonearest_test_data): Likewise.
60267         (rint_towardzero_test_data): Likewise.
60268         (rint_downward_test_data): Likewise.
60269         (rint_upward_test_data): Likewise.
60270         (round_test_data): Likewise.
60271         (scalb_test_data): Likewise.
60272         (scalbn_test_data): Likewise.
60273         (scalbln_test_data): Likewise.
60274         (signbit_test_data): Likewise.
60275         (sin_test_data): Likewise.
60276         (sin_tonearest_test_data): Likewise.
60277         (sin_towardzero_test_data): Likewise.
60278         (sin_downward_test_data): Likewise.
60279         (sin_upward_test_data): Likewise.
60280         (sincos_test_data): Likewise.
60281         (sinh_test_data): Likewise.
60282         (sinh_tonearest_test_data): Likewise.
60283         (sinh_towardzero_test_data): Likewise.
60284         (sinh_downward_test_data): Likewise.
60285         (sinh_upward_test_data): Likewise.
60286         (sqrt_test_data): Likewise.
60287         (tan_test_data): Likewise.
60288         (tan_tonearest_test_data): Likewise.
60289         (tan_towardzero_test_data): Likewise.
60290         (tan_downward_test_data): Likewise.
60291         (tan_upward_test_data): Likewise.
60292         (tanh_test_data): Likewise.
60293         (tgamma_test_data): Likewise.
60294         (trunc_test_data): Likewise.
60295         (y0_test_data): Likewise.
60296         (y1_test_data): Likewise.
60297         (yn_test_data): Likewise.
60298         (significand_test_data): Likewise.
60299
60300         * math/gen-libm-test.pl (@functions): Remove variable.
60301         (generate_testfile): Don't handle START and END lines.
60302         * math/libm-test.inc (START): New macro.
60303         (END): Likewise.
60304         (END_COMPLEX): Likewise.
60305         (acos_test): Use END macro without arguments.
60306         (acos_test_tonearest): Likewise.
60307         (acos_test_towardzero): Likewise.
60308         (acos_test_downward): Likewise.
60309         (acos_test_upward): Likewise.
60310         (acosh_test): Likewise.
60311         (asin_test): Likewise.
60312         (asin_test_tonearest): Likewise.
60313         (asin_test_towardzero): Likewise.
60314         (asin_test_downward): Likewise.
60315         (asin_test_upward): Likewise.
60316         (asinh_test): Likewise.
60317         (atan_test): Likewise.
60318         (atanh_test): Likewise.
60319         (atan2_test): Likewise.
60320         (cabs_test): Likewise.
60321         (cacos_test): Use END_COMPLEX macro without arguments.
60322         (cacosh_test): Likewise.
60323         (carg_test): Use END macro without arguments.
60324         (casin_test): Use END_COMPLEX macro without arguments.
60325         (casinh_test): Likewise.
60326         (catan_test): Likewise.
60327         (catanh_test): Likewise.
60328         (cbrt_test): Use END macro without arguments.
60329         (ccos_test): Use END_COMPLEX macro without arguments.
60330         (ccosh_test): Likewise.
60331         (ceil_test): Use END macro without arguments.
60332         (cexp_test): Use END_COMPLEX macro without arguments.
60333         (cimag_test): Use END macro without arguments.
60334         (clog_test): Use END_COMPLEX macro without arguments.
60335         (clog10_test): Likewise.
60336         (conj_test): Likewise.
60337         (copysign_test): Use END macro without arguments.
60338         (cos_test): Likewise.
60339         (cos_test_tonearest): Likewise.
60340         (cos_test_towardzero): Likewise.
60341         (cos_test_downward): Likewise.
60342         (cos_test_upward): Likewise.
60343         (cosh_test): Likewise.
60344         (cosh_test_tonearest): Likewise.
60345         (cosh_test_towardzero): Likewise.
60346         (cosh_test_downward): Likewise.
60347         (cosh_test_upward): Likewise.
60348         (cpow_test): Use END_COMPLEX macro without arguments.
60349         (cproj_test): Likewise.
60350         (creal_test): Use END macro without arguments.
60351         (csin_test): Use END_COMPLEX macro without arguments.
60352         (csinh_test): Likewise.
60353         (csqrt_test): Likewise.
60354         (ctan_test): Likewise.
60355         (ctan_test_tonearest): Likewise.
60356         (ctan_test_towardzero): Likewise.
60357         (ctan_test_downward): Likewise.
60358         (ctan_test_upward): Likewise.
60359         (ctanh_test): Likewise.
60360         (ctanh_test_tonearest): Likewise.
60361         (ctanh_test_towardzero): Likewise.
60362         (ctanh_test_downward): Likewise.
60363         (ctanh_test_upward): Likewise.
60364         (erf_test): Use END macro without arguments.
60365         (erfc_test): Likewise.
60366         (exp_test): Likewise.
60367         (exp_test_tonearest): Likewise.
60368         (exp_test_towardzero): Likewise.
60369         (exp_test_downward): Likewise.
60370         (exp_test_upward): Likewise.
60371         (exp10_test): Likewise.
60372         (exp2_test): Likewise.
60373         (expm1_test): Likewise.
60374         (fabs_test): Likewise.
60375         (fdim_test): Likewise.
60376         (finite_test): Likewise.
60377         (floor_test): Likewise.
60378         (fma_test): Likewise.
60379         (fma_test_towardzero): Likewise.
60380         (fma_test_downward): Likewise.
60381         (fma_test_upward): Likewise.
60382         (fmax_test): Likewise.
60383         (fmin_test): Likewise.
60384         (fmod_test): Likewise.
60385         (fpclassify_test): Likewise.
60386         (frexp_test): Likewise.
60387         (gamma_test): Likewise.
60388         (hypot_test): Likewise.
60389         (ilogb_test): Likewise.
60390         (isfinite_test): Likewise.
60391         (isgreater_test): Likewise.
60392         (isgreaterequal_test): Likewise.
60393         (isinf_test): Likewise.
60394         (isless_test): Likewise.
60395         (islessequal_test): Likewise.
60396         (islessgreater_test): Likewise.
60397         (isnan_test): Likewise.
60398         (isnormal_test): Likewise.
60399         (issignaling_test): Likewise.
60400         (isunordered_test): Likewise.
60401         (j0_test): Likewise.
60402         (j1_test): Likewise.
60403         (jn_test): Likewise.
60404         (ldexp_test): Likewise.
60405         (lgamma_test): Likewise.
60406         (lrint_test): Likewise.
60407         (lrint_test_tonearest): Likewise.
60408         (lrint_test_towardzero): Likewise.
60409         (lrint_test_downward): Likewise.
60410         (lrint_test_upward): Likewise.
60411         (llrint_test): Likewise.
60412         (llrint_test_tonearest): Likewise.
60413         (llrint_test_towardzero): Likewise.
60414         (llrint_test_downward): Likewise.
60415         (llrint_test_upward): Likewise.
60416         (log_test): Likewise.
60417         (log10_test): Likewise.
60418         (log1p_test): Likewise.
60419         (log2_test): Likewise.
60420         (logb_test): Likewise.
60421         (logb_test_downward): Likewise.
60422         (lround_test): Likewise.
60423         (llround_test): Likewise.
60424         (modf_test): Likewise.
60425         (nearbyint_test): Likewise.
60426         (nextafter_test): Likewise.
60427         (nexttoward_test): Likewise.
60428         (pow_test): Likewise.
60429         (pow_test_tonearest): Likewise.
60430         (pow_test_towardzero): Likewise.
60431         (pow_test_downward): Likewise.
60432         (pow_test_upward): Likewise.
60433         (remainder_test): Likewise.
60434         (remainder_test_tonearest): Likewise.
60435         (remainder_test_towardzero): Likewise.
60436         (remainder_test_downward): Likewise.
60437         (remainder_test_upward): Likewise.
60438         (remquo_test): Likewise.
60439         (rint_test): Likewise.
60440         (rint_test_tonearest): Likewise.
60441         (rint_test_towardzero): Likewise.
60442         (rint_test_downward): Likewise.
60443         (rint_test_upward): Likewise.
60444         (round_test): Likewise.
60445         (scalb_test): Likewise.
60446         (scalbn_test): Likewise.
60447         (scalbln_test): Likewise.
60448         (signbit_test): Likewise.
60449         (sin_test): Likewise.
60450         (sin_test_tonearest): Likewise.
60451         (sin_test_towardzero): Likewise.
60452         (sin_test_downward): Likewise.
60453         (sin_test_upward): Likewise.
60454         (sincos_test): Likewise.
60455         (sinh_test): Likewise.
60456         (sinh_test_tonearest): Likewise.
60457         (sinh_test_towardzero): Likewise.
60458         (sinh_test_downward): Likewise.
60459         (sinh_test_upward): Likewise.
60460         (sqrt_test): Likewise.
60461         (tan_test): Likewise.
60462         (tan_test_tonearest): Likewise.
60463         (tan_test_towardzero): Likewise.
60464         (tan_test_downward): Likewise.
60465         (tan_test_upward): Likewise.
60466         (tanh_test): Likewise.
60467         (tgamma_test): Likewise.
60468         (trunc_test): Likewise.
60469         (y0_test): Likewise.
60470         (y1_test): Likewise.
60471         (yn_test): Likewise.
60472         (significand_test): Likewise.
60473
60474 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
60475
60476         [BZ #15381]
60477         * libio/genops.c (_IO_no_init): Initialize wide struct info.
60478
60479 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60480
60481         [BZ #14894]
60482         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
60483         __ppc_mdoio and __ppc_mdoom.
60484         * manual/platform.texi: Document new functions __ppc_yield,
60485         __ppc_mdoio and __ppc_mdoom.
60486
60487 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
60488
60489         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
60490         (main): Mention "tls" pseudo-hwcap is legacy.
60491         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
60492
60493 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60494
60495         * math/gen-libm-test.pl (parse_args): Output only string of
60496         arguments as text for test name, not full call or descriptions of
60497         tests for extra outputs.
60498         (generate_testfile): Do not pass function name to parse_args.
60499         Generate this_func variable from START.
60500         * math/libm-test.inc (struct test_f_f_data): Rename test_name
60501         field to arg_str.
60502         (struct test_ff_f_data): Likewise.
60503         (test_ff_f_data_nexttoward): Likewise.
60504         (struct test_fi_f_data): Likewise.
60505         (struct test_fl_f_data): Likewise.
60506         (struct test_if_f_data): Likewise.
60507         (struct test_fff_f_data): Likewise.
60508         (struct test_c_f_data): Likewise.
60509         (struct test_f_f1_data): Likewise.  Remove field extra_name.
60510         (struct test_fF_f1_data): Likewise.
60511         (struct test_ffI_f1_data): Likewise.
60512         (struct test_c_c_data): Rename test_name field to arg_str.
60513         (struct test_cc_c_data): Likewise.
60514         (struct test_f_i_data): Likewise.
60515         (struct test_ff_i_data): Likewise.
60516         (struct test_f_l_data): Likewise.
60517         (struct test_f_L_data): Likewise.
60518         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
60519         and extra2_name.
60520         (COMMON_TEST_SETUP): New macro.
60521         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
60522         (COMMON_TEST_CLEANUP): Likewise.
60523         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
60524         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
60525         macros.
60526         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
60527         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
60528         macros.
60529         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
60530         (RUN_TEST_fff_f): Take argument string.  Call new setup and
60531         cleanup macros.
60532         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
60533         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
60534         macros.
60535         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
60536         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
60537         macros.
60538         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60539         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
60540         cleanup macros.
60541         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60542         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
60543         cleanup macros.
60544         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60545         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
60546         cleanup macros.
60547         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60548         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
60549         macros.
60550         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
60551         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
60552         macros.
60553         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
60554         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
60555         macros.
60556         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
60557         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
60558         cleanup macros.
60559         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
60560         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
60561         cleanup macros.
60562         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
60563         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
60564         macros.
60565         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
60566         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
60567         cleanup macros.
60568         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
60569         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
60570         macros.
60571         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
60572         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
60573         macros.
60574         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
60575         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
60576         cleanup macros.
60577         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
60578
60579 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
60580
60581         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
60582         to _sifields.sigfault.
60583         (si_addr_lsb): Define new macro.
60584         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
60585         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
60586         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
60587
60588 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
60589
60590         [BZ #15441]
60591         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
60592         returns -1.
60593         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
60594         null return -1.
60595         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
60596         loading the domain.
60597
60598 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60599
60600         * math/gen-libm-test.pl (parse_args): Do not include expected
60601         result in test name.
60602         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
60603         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60604         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60605         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60606         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60608
60609 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
60610
60611         * benchtests/Makefile: Sort function entries.
60612
60613         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
60614         tanh, asinh, acosh, atanh.
60615         * benchtests/acos-inputs: New file.
60616         * benchtests/acosh-inputs: New file.
60617         * benchtests/asin-inputs: New file.
60618         * benchtests/asinh-inputs: New file.
60619         * benchtests/atanh-inputs: New file.
60620         * benchtests/cosh-inputs: New file.
60621         * benchtests/log-inputs: New file.
60622         * benchtests/sinh-inputs: New file.
60623         * benchtests/tanh-inputs: New file.
60624
60625 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
60626
60627         [BZ #15339]
60628         * posix/tst-getaddrinfo4.c: New test.
60629         * posix/Makefile (tests): Add it.
60630
60631 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60632
60633         [BZ #15339]
60634         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
60635         when no services were used.
60636         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
60637         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
60638
60639 2013-05-21  Andreas Schwab  <schwab@suse.de>
60640
60641         [BZ #15014]
60642         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
60643         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
60644         successful.
60645         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
60646         redundant variable declarations and reallocation of buffer when
60647         parsing as IPv6 address.  Always set NSS status when called from
60648         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
60649         buffer too small.  Correct computation of needed size.
60650         * nss/Makefile (tests): Add test-digits-dots.
60651         * nss/test-digits-dots.c: New test.
60652
60653 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
60654
60655         * benchtests/Makefile: Remove instructions for adding
60656         benchmark tests.
60657         * benchtests/README: New file to explain how to execute and
60658         enhance the benchmark tests.
60659
60660 2013-05-21  Andreas Schwab  <schwab@suse.de>
60661
60662         [BZ #15493]
60663         * setjmp/Makefile (tests): Add tst-sigsetjmp.
60664         * setjmp/tst-sigsetjmp.c: New test.
60665
60666 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60667
60668         * sysdeps/x86_64/memset.S (memset): New implementation.
60669         (__bzero): Likewise.
60670         (__memset_tail): New function.
60671
60672 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
60673
60674         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
60675         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
60676         __memcpy_sse2_unaligned ifunc selection.
60677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
60678         Add memcpy-sse2-unaligned.S.
60679         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
60680         Add: __memcpy_sse2_unaligned.
60681
60682 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
60683
60684         [BZ #15490]
60685         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
60686         math_force_eval before restoring floating-point envrionment.
60687         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
60688         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
60689         Likewise.
60690         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
60691         <math_private.h>.
60692         (__nearbyintl): Use math_force_eval before restoring
60693         floating-point environment.
60694         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
60695
60696         * math/gen-libm-test.pl (special_functions): Remove.
60697         (parse_args): Don't handle TEST_extra.  Handle functions with no
60698         return value.
60699         * math/libm-test.inc (struct test_sincos_data): Replace with
60700         struct test_fFF_11_data.
60701         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
60702         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
60703         (sincos_test_data): Change element type to struct
60704         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
60705         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
60706         RUN_TEST_LOOP_sincos.
60707         * math/README.libm-test: Don't mention special handling of
60708         individual functions.
60709         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
60710         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
60711         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
60712         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
60713         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
60714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60715
60716         * math/gen-libm-test.pl (get_variable): Remove function.
60717         (parse_args): Don't show pointer parameters to call in test
60718         names.  Use "extra output N" in test names for extra outputs
60719         rather than naming variables.
60720
60721 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
60722
60723         [BZ #15488]
60724         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
60725         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
60726         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
60727         double tests.
60728         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
60729         disable.
60730         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
60731         check_long_double.
60732
60733         * math/gen-libm-test.pl (@tests): Remove variable.
60734         ($count): Likewise.
60735         (new_test): Remove function.
60736         (show_exceptions): New function.
60737         (special_functions): Use show_exceptions instead of new_test.
60738         (parse_args): Likewise.
60739         (generate_testfile): Pass only function name in generated call to
60740         print_max_error or print_complex_max_error.
60741         (get_ulps): Do not handle complex tests specially.
60742         (output_test): Rename to ...
60743         (get_all_ulps_for_test): ... this.  Return a string rather than
60744         printing to a file.  Require ulps to be present.
60745         (output_ulps): Generate arrays rather than #defines.
60746         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
60747         (struct ulp_data): New type.
60748         (BUILD_COMPLEX_ULP): Remove macro.
60749         (compare_ulp_data): New function.
60750         (find_ulps): Likewise.
60751         (find_test_ulps): Likewise.
60752         (find_function_ulps): Likewise.
60753         (find_complex_function_ulps): Likewise.
60754         (print_max_error): Determine allowed ulps using
60755         find_function_ulps.
60756         (print_complex_max_error): Determine allowed ulps using
60757         find_complex_function_ulps.
60758         (check_float_internal): Determine max ulps using find_test_ulps.
60759         (check_float): Do not take max_ulp parameter.  Update call to
60760         check_float_internal.
60761         (check_complex): Likewise.
60762         (check_int): Do not take max_ulp parameter.
60763         (check_long): Likewise.
60764         (check_bool): Likewise.
60765         (check_longlong): Likewise.
60766         (struct test_f_f_data): Remove max_ulp field.
60767         (struct test_ff_f_data): Likewise.
60768         (struct test_ff_f_data_nexttoward): Likewise.
60769         (struct test_fi_f_data): Likewise.
60770         (struct test_fl_f_data): Likewise.
60771         (struct test_if_f_data): Likewise.
60772         (struct test_fff_f_data): Likewise.
60773         (struct test_c_f_data): Likewise.
60774         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
60775         (struct test_fF_f1_data): Likewise.
60776         (struct test_ffI_f1_data): Likewise.
60777         (struct test_c_c_data): Remove max_ulp field.
60778         (struct test_cc_c_data): Likewise.
60779         (struct test_f_i_data): Likewise.
60780         (struct test_ff_i_data): Likewise.
60781         (struct test_f_l_data): Likewise.
60782         (struct test_f_L_data): Likewise.
60783         (struct test_sincos_data): Likewise.
60784         (RUN_TEST_f_f): Do not handle ulps.
60785         (RUN_TEST_LOOP_f_f): Likewise.
60786         (RUN_TEST_2_f): Likewise.
60787         (RUN_TEST_LOOP_2_f): Likewise.
60788         (RUN_TEST_fff_f): Likewise.
60789         (RUN_TEST_LOOP_fff_f): Likewise.
60790         (RUN_TEST_c_f): Likewise.
60791         (RUN_TEST_LOOP_c_f): Likewise.
60792         (RUN_TEST_f_f1): Likewise.
60793         (RUN_TEST_LOOP_f_f1): Likewise.
60794         (RUN_TEST_fF_f1): Likewise.
60795         (RUN_TEST_LOOP_fF_f1): Likewise.
60796         (RUN_TEST_fI_f1): Likewise.
60797         (RUN_TEST_LOOP_fI_f1): Likewise.
60798         (RUN_TEST_ffI_f1): Likewise.
60799         (RUN_TEST_LOOP_ffI_f1): Likewise.
60800         (RUN_TEST_c_c): Likewise.
60801         (RUN_TEST_LOOP_c_c): Likewise.
60802         (RUN_TEST_cc_c): Likewise.
60803         (RUN_TEST_LOOP_cc_c): Likewise.
60804         (RUN_TEST_f_i): Likewise.
60805         (RUN_TEST_LOOP_f_i): Likewise.
60806         (RUN_TEST_f_i_tg): Likewise.
60807         (RUN_TEST_LOOP_f_i_tg): Likewise.
60808         (RUN_TEST_ff_i_tg): Likewise.
60809         (RUN_TEST_LOOP_ff_i_tg): Likewise.
60810         (RUN_TEST_f_b): Likewise.
60811         (RUN_TEST_LOOP_f_b): Likewise.
60812         (RUN_TEST_f_b_tg): Likewise.
60813         (RUN_TEST_LOOP_f_b_tg): Likewise.
60814         (RUN_TEST_f_l): Likewise.
60815         (RUN_TEST_LOOP_f_l): Likewise.
60816         (RUN_TEST_f_L): Likewise.
60817         (RUN_TEST_LOOP_f_L): Likewise.
60818         (RUN_TEST_sincos): Likewise.
60819         (RUN_TEST_LOOP_sincos): Likewise.
60820
60821 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
60822
60823         [BZ #15480]
60824         [BZ #15485]
60825         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
60826         main case of finite arguments, set rounding mode to FE_TONEAREST
60827         and discard exceptions.
60828         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
60829         exceptions.
60830         (remainder_tonearest_test_data): New variable.
60831         (remainder_test_tonearest): New function.
60832         (remainder_towardzero_test_data): New variable.
60833         (remainder_test_towardzero): New function.
60834         (remainder_downward_test_data): New variable.
60835         (remainder_test_downward): New function.
60836         (remainder_upward_test_data): New variable.
60837         (remainder_test_upward): New function.
60838         (main): Call the new test functions.
60839
60840         * math/libm-test.inc (struct test_f_f1_data): Remove field
60841         extra_init.
60842         (struct test_fF_f1_data): Likewise.
60843         (struct test_ffI_f1_data): Likewise.
60844         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
60845         based on value of EXTRA_EXPECTED.
60846         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
60847         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
60848         EXTRA_VAR based on value of EXTRA_EXPECTED.
60849         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
60850         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
60851         EXTRA_VAR based on value of EXTRA_EXPECTED.
60852         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
60853         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
60854         EXTRA_VAR based on value of EXTRA_EXPECTED.
60855         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
60856         * math/gen-libm-test.pl (parse_args): Don't output initializers
60857         for extra output values.
60858
60859         * math/libm-test.inc (check_int): Expect result to be exactly
60860         equal to expected value and do not handle ulps.
60861         (check_long): Likewise.
60862         (check_longlong): Likewise.
60863
60864         * math/libm-test.inc (ceil_test_data): Test for "inexact"
60865         exceptions.
60866         (cimag_test_data): Likewise.
60867         (conj_test_data): Likewise.
60868         (copysign_test_data): Likewise.
60869         (cproj_test_data): Likewise.
60870         (creal_test_data): Likewise.
60871         (fabs_test_data): Likewise.
60872         (fdim_test_data): Likewise.
60873         (finite_test_data): Likewise.
60874         (floor_test_data): Likewise.
60875         (fmax_test_data): Likewise.
60876         (fmin_test_data): Likewise.
60877         (fmod_test_data): Likewise.
60878         (fpclassify_test_data): Likewise.
60879         (frexp_test_data): Likewise.
60880         (ilogb_test_data): Likewise.
60881         (isfinite_test_data): Likewise.
60882         (isgreater_test_data): Likewise.
60883         (isgreaterequal_test_data): Likewise.
60884         (isinf_test_data): Likewise.
60885         (isless_test_data): Likewise.
60886         (islessequal_test_data): Likewise.
60887         (islessgreater_test_data): Likewise.
60888         (isnan_test_data): Likewise.
60889         (isnormal_test_data): Likewise.
60890         (issignaling_test_data): Likewise.
60891         (isunordered_test_data): Likewise.
60892         (ldexp_test_data): Likewise.
60893         (lrint_test_data): Likewise.
60894         (lrint_test_data) [TEST_FLOAT]: Disable one test.
60895         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
60896         (lrint_tonearest_test_data): Test for "inexact" exceptions.
60897         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
60898         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
60899         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
60900         test input.
60901         (lrint_towardzero_test_data): Test for "inexact" exceptions.
60902         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
60903         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
60904         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
60905         that test input.
60906         (lrint_downward_test_data): Test for "inexact" exceptions.
60907         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
60908         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
60909         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
60910         test input.
60911         (lrint_upward_test_data): Test for "inexact" exceptions.
60912         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
60913         test input.
60914         (llrint_test_data): Test for "inexact" exceptions.
60915         (llrint_test_data) [TEST_FLOAT]: Disable one test.
60916         (llrint_tonearest_test_data): Test for "inexact" exceptions.
60917         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
60918         (llrint_towardzero_test_data): Test for "inexact" exceptions.
60919         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
60920         (llrint_downward_test_data): Test for "inexact" exceptions.
60921         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
60922         (llrint_upward_test_data): Test for "inexact" exceptions.
60923         (logb_test_data): Likewise.
60924         (logb_downward_test_data): Likewise.
60925         (nextafter_test_data): Likewise.
60926         (nexttoward_test_data): Likewise.
60927         (remainder_test_data): Likewise.
60928         (remquo_test_data): Likewise.
60929         (scalbn_test_data): Likewise.
60930         (scalbln_test_data): Likewise.
60931         (signbit_test_data): Likewise.
60932         (sqrt_test_data): Likewise.
60933         (significand_test_data): Likewise.
60934
60935 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
60936
60937         [BZ #15424]
60938         * benchtests/bench-modf.c (struct args): Mark arg0 as
60939         volatile.
60940         * scripts/bench.pl: Mark members of struct args as volatile.
60941
60942 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60943
60944         [BZ # 15497]
60945         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
60946         negative infinity on POWER6 or lower.
60947         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
60948
60949 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
60950
60951         [BZ #15442]
60952         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
60953         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
60954         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
60955         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
60956         (_FP_SETQNAN): New macro.
60957         (_FP_SETQNAN_SEMIRAW): Likewise.
60958         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
60959         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
60960         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
60961         (FP_EXTEND): Use _FP_FRAC_SNANP.
60962         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
60963         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
60964         into account.
60965         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
60966         New macro.
60967         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
60968         Likewise.
60969
60970 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
60971
60972         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
60973         with DIVIDE_BY_ZERO_EXCEPTION.
60974         (gamma_test_data): Likewise.
60975         (lgamma_test_data): Likewise.
60976         (log_test_data): Likewise.
60977         (log10_test_data): Likewise.
60978         (log2_test_data): Likewise.
60979         (tgamma_test_data): Likewise.
60980
60981         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
60982         (acos_test_tonearest): Likewise.
60983         (acos_test_towardzero): Likewise.
60984         (acos_test_downward): Likewise.
60985         (acos_test_upward): Likewise.
60986         (acosh_test): Likewise.
60987         (asin_test): Likewise.
60988         (asin_test_tonearest): Likewise.
60989         (asin_test_towardzero): Likewise.
60990         (asin_test_downward): Likewise.
60991         (asin_test_upward): Likewise.
60992         (asinh_test): Likewise.
60993         (atan_test): Likewise.
60994         (atanh_test): Likewise.
60995         (atan2_test): Likewise.
60996         (cabs_test): Likewise.
60997         (cacos_test): Likewise.
60998         (cacosh_test): Likewise.
60999         (casin_test): Likewise.
61000         (casinh_test): Likewise.
61001         (catan_test): Likewise.
61002         (catanh_test): Likewise.
61003         (cbrt_test): Likewise.
61004         (ccos_test): Likewise.
61005         (ccosh_test): Likewise.
61006         (cexp_test): Likewise.
61007         (clog_test): Likewise.
61008         (clog10_test): Likewise.
61009         (cos_test): Likewise.
61010         (cos_test_tonearest): Likewise.
61011         (cos_test_towardzero): Likewise.
61012         (cos_test_downward): Likewise.
61013         (cos_test_upward): Likewise.
61014         (cosh_test): Likewise.
61015         (cosh_test_tonearest): Likewise.
61016         (cosh_test_towardzero): Likewise.
61017         (cosh_test_downward): Likewise.
61018         (cosh_test_upward): Likewise.
61019         (cpow_test): Likewise.
61020         (csin_test): Likewise.
61021         (csinh_test): Likewise.
61022         (csqrt_test): Likewise.
61023         (ctan_test): Likewise.
61024         (ctan_test_tonearest): Likewise.
61025         (ctan_test_towardzero): Likewise.
61026         (ctan_test_downward): Likewise.
61027         (ctan_test_upward): Likewise.
61028         (ctanh_test): Likewise.
61029         (ctanh_test_tonearest): Likewise.
61030         (ctanh_test_towardzero): Likewise.
61031         (ctanh_test_downward): Likewise.
61032         (ctanh_test_upward): Likewise.
61033         (erf_test): Likewise.
61034         (erfc_test): Likewise.
61035         (exp_test): Likewise.
61036         (exp_test_tonearest): Likewise.
61037         (exp_test_towardzero): Likewise.
61038         (exp_test_downward): Likewise.
61039         (exp_test_upward): Likewise.
61040         (exp10_test): Likewise.
61041         (exp2_test): Likewise.
61042         (expm1_test): Likewise.
61043         (fmod_test): Likewise.
61044         (gamma_test): Likewise.
61045         (hypot_test): Likewise.
61046         (j0_test): Likewise.
61047         (j1_test): Likewise.
61048         (jn_test): Likewise.
61049         (lgamma_test): Likewise.
61050         (log_test): Likewise.
61051         (log10_test): Likewise.
61052         (log1p_test): Likewise.
61053         (log2_test): Likewise.
61054         (logb_test_downward): Likewise.
61055         (pow_test): Likewise.
61056         (pow_test_tonearest): Likewise.
61057         (pow_test_towardzero): Likewise.
61058         (pow_test_downward): Likewise.
61059         (pow_test_upward): Likewise.
61060         (remainder_test): Likewise.
61061         (remquo_test): Likewise.
61062         (sin_test): Likewise.
61063         (sin_test_tonearest): Likewise.
61064         (sin_test_towardzero): Likewise.
61065         (sin_test_downward): Likewise.
61066         (sin_test_upward): Likewise.
61067         (sincos_test): Likewise.
61068         (sinh_test): Likewise.
61069         (sinh_test_tonearest): Likewise.
61070         (sinh_test_towardzero): Likewise.
61071         (sinh_test_downward): Likewise.
61072         (sinh_test_upward): Likewise.
61073         (sqrt_test): Likewise.
61074         (tan_test): Likewise.
61075         (tan_test_tonearest): Likewise.
61076         (tan_test_towardzero): Likewise.
61077         (tan_test_downward): Likewise.
61078         (tan_test_upward): Likewise.
61079         (tanh_test): Likewise.
61080         (tgamma_test): Likewise.
61081         (y0_test): Likewise.
61082         (y1_test): Likewise.
61083         (yn_test): Likewise.
61084
61085         * math/gen-libm-test.pl (adjust_arg): Remove function.
61086         (special_function): Remove argument $in_func.  Only handle
61087         generating output for tables of tests, not inside functions.
61088         (parse_args): Likewise.
61089         (generate_testfile): Remove variable $in_func.  Update call to
61090         parse_args.
61091         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61092         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61093         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61094         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61095         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61096         (MAX_VALUE_INIT): Rename macro to max_value.
61097         (MIN_VALUE_INIT): Rename macro to min_value.
61098         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61099         (plus_zero): Remove variable.
61100         (minus_zero): Likewise.
61101         (plus_infty): Likewise.
61102         (minus_infty): Likewise.
61103         (qnan_value): Likewise.
61104         (max_value): Likewise.
61105         (min_value): Likewise.
61106         (min_subnorm_value): Likewise.
61107
61108 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61109
61110         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61111         uint64_t or uint32_t usage.
61112         * crypt/sha256-block.c: Likewise.
61113         * crypt/sha256-crypt.c: Likewise.
61114         * crypt/sha256.c: Likewise.
61115         * crypt/sha512-block.c: Likewise.
61116         * crypt/sha512-crypt.c: Likewise.
61117         * crypt/sha512.c: Likewise.
61118         * debug/backtrace-tst.c: Likewise.
61119         * debug/pcprofiledump.c: Likewise.
61120         * elf/cache.c: Likewise.
61121         * elf/dl-cache.c: Likewise.
61122         * elf/dl-misc.c: Likewise.
61123         * elf/dl-profile.c: Likewise.
61124         * elf/dl-support.c: Likewise.
61125         * elf/ldconfig.c: Likewise.
61126         * elf/sprof.c: Likewise.
61127         * iconv/dummy-repertoire.c: Likewise.
61128         * iconv/iconv_charmap.c: Likewise.
61129         * iconv/skeleton.c: Likewise.
61130         * iconvdata/8bit-generic.c: Likewise.
61131         * iconvdata/cp737.h: Likewise.
61132         * iconvdata/cp775.h: Likewise.
61133         * iconvdata/ibm1008.h: Likewise.
61134         * iconvdata/ibm1025.h: Likewise.
61135         * iconvdata/ibm1046.h: Likewise.
61136         * iconvdata/ibm1097.h: Likewise.
61137         * iconvdata/ibm1112.h: Likewise.
61138         * iconvdata/ibm1122.h: Likewise.
61139         * iconvdata/ibm1123.h: Likewise.
61140         * iconvdata/ibm1124.h: Likewise.
61141         * iconvdata/ibm1129.h: Likewise.
61142         * iconvdata/ibm1130.h: Likewise.
61143         * iconvdata/ibm1132.h: Likewise.
61144         * iconvdata/ibm1133.h: Likewise.
61145         * iconvdata/ibm1137.h: Likewise.
61146         * iconvdata/ibm1140.h: Likewise.
61147         * iconvdata/ibm1141.h: Likewise.
61148         * iconvdata/ibm1142.h: Likewise.
61149         * iconvdata/ibm1143.h: Likewise.
61150         * iconvdata/ibm1144.h: Likewise.
61151         * iconvdata/ibm1145.h: Likewise.
61152         * iconvdata/ibm1146.h: Likewise.
61153         * iconvdata/ibm1147.h: Likewise.
61154         * iconvdata/ibm1148.h: Likewise.
61155         * iconvdata/ibm1149.h: Likewise.
61156         * iconvdata/ibm1153.h: Likewise.
61157         * iconvdata/ibm1154.h: Likewise.
61158         * iconvdata/ibm1155.h: Likewise.
61159         * iconvdata/ibm1156.h: Likewise.
61160         * iconvdata/ibm1157.h: Likewise.
61161         * iconvdata/ibm1158.h: Likewise.
61162         * iconvdata/ibm1160.h: Likewise.
61163         * iconvdata/ibm1161.h: Likewise.
61164         * iconvdata/ibm1162.h: Likewise.
61165         * iconvdata/ibm1163.h: Likewise.
61166         * iconvdata/ibm1164.h: Likewise.
61167         * iconvdata/ibm1166.h: Likewise.
61168         * iconvdata/ibm1167.h: Likewise.
61169         * iconvdata/ibm12712.h: Likewise.
61170         * iconvdata/ibm1390.h: Likewise.
61171         * iconvdata/ibm1399.h: Likewise.
61172         * iconvdata/ibm16804.h: Likewise.
61173         * iconvdata/ibm4517.h: Likewise.
61174         * iconvdata/ibm4899.h: Likewise.
61175         * iconvdata/ibm4909.h: Likewise.
61176         * iconvdata/ibm4971.h: Likewise.
61177         * iconvdata/ibm5347.h: Likewise.
61178         * iconvdata/ibm803.h: Likewise.
61179         * iconvdata/ibm856.h: Likewise.
61180         * iconvdata/ibm901.h: Likewise.
61181         * iconvdata/ibm902.h: Likewise.
61182         * iconvdata/ibm9030.h: Likewise.
61183         * iconvdata/ibm9066.h: Likewise.
61184         * iconvdata/ibm921.h: Likewise.
61185         * iconvdata/ibm922.h: Likewise.
61186         * iconvdata/ibm9448.h: Likewise.
61187         * iconvdata/isiri-3342.h: Likewise.
61188         * iconvdata/jis0201.h: Likewise.
61189         * include/link.h: Likewise.
61190         * include/netdb.h: Likewise.
61191         * inet/check_native.c: Likewise.
61192         * inet/check_pf.c: Likewise.
61193         * inet/getipv4sourcefilter.c: Likewise.
61194         * inet/getnameinfo.c: Likewise.
61195         * inet/getsourcefilter.c: Likewise.
61196         * inet/htonl.c: Likewise.
61197         * inet/setipv4sourcefilter.c: Likewise.
61198         * inet/setsourcefilter.c: Likewise.
61199         * inet/test-inet6_opt.c: Likewise.
61200         * inet/tst-network.c: Likewise.
61201         * locale/C-collate.c: Likewise.
61202         * locale/C-ctype.c: Likewise.
61203         * locale/C-time.c: Likewise.
61204         * locale/C-translit.h: Likewise.
61205         * locale/loadarchive.c: Likewise.
61206         * locale/programs/3level.h: Likewise.
61207         * locale/programs/charmap.c: Likewise.
61208         * locale/programs/charmap.h: Likewise.
61209         * locale/programs/ld-address.c: Likewise.
61210         * locale/programs/ld-collate.c: Likewise.
61211         * locale/programs/ld-ctype.c: Likewise.
61212         * locale/programs/ld-identification.c: Likewise.
61213         * locale/programs/ld-measurement.c: Likewise.
61214         * locale/programs/ld-messages.c: Likewise.
61215         * locale/programs/ld-monetary.c: Likewise.
61216         * locale/programs/ld-name.c: Likewise.
61217         * locale/programs/ld-numeric.c: Likewise.
61218         * locale/programs/ld-paper.c: Likewise.
61219         * locale/programs/ld-telephone.c: Likewise.
61220         * locale/programs/ld-time.c: Likewise.
61221         * locale/programs/linereader.c: Likewise.
61222         * locale/programs/locale.c: Likewise.
61223         * locale/programs/locarchive.c: Likewise.
61224         * locale/programs/locfile.h: Likewise.
61225         * locale/programs/repertoire.c: Likewise.
61226         * locale/programs/simple-hash.c: Likewise.
61227         * locale/programs/simple-hash.h: Likewise.
61228         * malloc/memusage.c: Likewise.
61229         * malloc/memusagestat.c: Likewise.
61230         * nis/nis_defaults.c: Likewise.
61231         * nis/nis_hash.c: Likewise.
61232         * nis/nis_print.c: Likewise.
61233         * nis/nis_xdr.c: Likewise.
61234         * nscd/connections.c: Likewise.
61235         * nscd/hstcache.c: Likewise.
61236         * nscd/nscd_gethst_r.c: Likewise.
61237         * nscd/nscd_getserv_r.c: Likewise.
61238         * nscd/nscd_helper.c: Likewise.
61239         * nscd/servicescache.c: Likewise.
61240         * nss/makedb.c: Likewise.
61241         * nss/nss_db/db-XXX.c: Likewise.
61242         * nss/nss_db/db-initgroups.c: Likewise.
61243         * nss/nss_db/db-netgrp.c: Likewise.
61244         * nss/nss_files/files-network.c: Likewise.
61245         * nss/nss_files/files-parse.c: Likewise.
61246         * posix/bug-regex5.c: Likewise.
61247         * posix/fnmatch_loop.c: Likewise.
61248         * posix/regcomp.c: Likewise.
61249         * posix/regexec.c: Likewise.
61250         * posix/tst-rfc3484-2.c: Likewise.
61251         * posix/tst-rfc3484-3.c: Likewise.
61252         * posix/tst-rfc3484.c: Likewise.
61253         * resolv/nss_dns/dns-canon.c: Likewise.
61254         * resolv/nss_dns/dns-network.c: Likewise.
61255         * resolv/res_init.c: Likewise.
61256         * resolv/res_mkquery.c: Likewise.
61257         * resolv/tst-aton.c: Likewise.
61258         * stdlib/cxa_atexit.c: Likewise.
61259         * stdlib/cxa_finalize.c: Likewise.
61260         * stdlib/gen-fpioconst.c: Likewise.
61261         * stdlib/strtol_l.c: Likewise.
61262         * string/tst-endian.c: Likewise.
61263         * sunrpc/auth_des.c: Likewise.
61264         * sunrpc/clnt_udp.c: Likewise.
61265         * sunrpc/rtime.c: Likewise.
61266         * sunrpc/svcauth_des.c: Likewise.
61267         * sunrpc/xdr.c: Likewise.
61268         * sunrpc/xdr_intXX_t.c: Likewise.
61269         * sunrpc/xdr_rec.c: Likewise.
61270         * sysdeps/generic/ldconfig.h: Likewise.
61271         * sysdeps/generic/ldsodefs.h: Likewise.
61272         * sysdeps/generic/memusage.h: Likewise.
61273         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61274         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61275         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61276         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61277         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61278         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61279         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61280         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61281         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61282         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61283         * sysdeps/posix/getaddrinfo.c: Likewise.
61284         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61285         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61286         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61287         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61288         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61289         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61290         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61291         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61292         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61293         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61294         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61295         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61296         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61297         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61298         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61299         * sysdeps/x86_64/dl-tls.h: Likewise.
61300         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61301         * time/alt_digit.c: Likewise.
61302         * time/era.c: Likewise.
61303         * wcsmbs/tst-c16c32-1.c: Likewise.
61304
61305 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61306
61307         * math/libm-test.inc (struct test_sincos_data): New type.
61308         (RUN_TEST_LOOP_sincos): New macro.
61309         (sincos_test_data): New variable.
61310         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
61311
61312 2013-05-16  Richard Henderson  <rth@redhat.com>
61313
61314         * math/atest-exp2.c (LIMB64): New macro.
61315         (CONSTSZ): New macro.
61316         (mp_exp1, mp_exp_m1, mp_log2): New variables.
61317         (hexdig): Move ...
61318         (print_mpn_fp): ... to function scope.
61319         (read_mpn_hex): Remove.
61320         (get_log2): Remove.
61321         (exp2_mpn): Use mp_log2.
61322         (main): Use mp_exp1.
61323
61324 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61325
61326         * math/libm-test.inc: Remove comment about not testing "inexact"
61327         exceptions.
61328         (INEXACT_EXCEPTION): New macro.
61329         (NO_INEXACT_EXCEPTION): Likewise.
61330         (INVALID_EXCEPTION_OK): Update value.
61331         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61332         (OVERFLOW_EXCEPTION_OK): Likewise.
61333         (UNDERFLOW_EXCEPTION_OK): Likewise.
61334         (IGNORE_ZERO_INF_SIGN): Likewise.
61335         (ERRNO_UNCHANGED): Likewise.
61336         (ERRNO_EDOM): Likewise.
61337         (ERRNO_ERANGE): Likewise.
61338         (test_exceptions): Handle testing "inexact" exceptions.
61339         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
61340         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
61341         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
61342         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
61343         INEXACT_EXCEPTION.
61344         (rint_towardzero_test_data): Likewise.
61345         (rint_downward_test_data): Likewise.
61346         (rint_upward_test_data): Likewise.
61347
61348         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
61349         with OVERFLOW_EXCEPTION.
61350         (exp10_test_data): Likewise.
61351         (exp2_test_data): Likewise.
61352         (expm1_test_data): Likewise.
61353         (lgamma_test_data): Likewise.
61354         (pow_test_data): Likewise.
61355         (tgamma_test_data): Likewise.
61356         (yn_test_data): Remove duplicate test of overflow.
61357
61358         * math/libm-test.inc (struct test_cc_c_data): New type.
61359         (RUN_TEST_LOOP_cc_c): New macro.
61360         (cpow_test_data): New variable.
61361         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
61362
61363         * math/libm-test.inc (struct test_f_L_data): New type.
61364         (RUN_TEST_LOOP_f_L): New macro.
61365         (llrint_test_data): New variable.
61366         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
61367         (llrint_tonearest_test_data): New variable.
61368         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
61369         (llrint_towardzero_test_data): New variable.
61370         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
61371         (llrint_downward_test_data): New variable.
61372         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
61373         (llrint_upward_test_data): New variable.
61374         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
61375         (llround_test_data): New variable.
61376         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
61377
61378 2013-05-13  Peter Collingbourne  <pcc@google.com>
61379
61380         * math/atest-exp2.c (get_log2): Remove const attribute.
61381
61382 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61383
61384         * math/libm-test.inc (struct test_f_l_data): New type.
61385         (RUN_TEST_LOOP_f_l): New macro.
61386         (lrint_test_data): New variable.
61387         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
61388         (lrint_tonearest_test_data): New variable.
61389         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
61390         (lrint_towardzero_test_data): New variable.
61391         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
61392         (lrint_downward_test_data): New variable.
61393         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
61394         (lrint_upward_test_data): New variable.
61395         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
61396         (lround_test_data): New variable.
61397         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
61398
61399 2013-05-15  Peter Collingbourne  <pcc@google.com>
61400
61401         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
61402         (EXTRACT_WORDS64) Use where appropriate.
61403         (INSERT_WORDS64) Likewise.
61404
61405         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
61406         constraints with x constraints.
61407         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
61408
61409         * malloc/obstack.c (_obstack_compat): Add initializer.
61410
61411 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61412
61413         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
61414         si_trapno and add si_addr_lsb to _sifields.sigfault.
61415         (si_trapno): Remove macro.
61416         (si_addr_lsb): Define new macro.
61417         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61418
61419 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61420
61421         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
61422         instead of TEST_f_l.
61423         (llrint_test_tonearest): Likewise.
61424         (llrint_test_towardzero): Likewise.
61425         (llrint_test_downward): Likewise.
61426         (llrint_test_upward): Likewise.
61427         (llround_test): Likewise.
61428
61429         * math/libm-test.inc (struct test_f_i_data): Add comment.
61430         (RUN_TEST_LOOP_f_b): New macro.
61431         (RUN_TEST_LOOP_f_b_tg): Likewise.
61432         (finite_test_data): New variable.
61433         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
61434         (isfinite_test_data): New variable.
61435         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61436         (isinf_test_data): New variable.
61437         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61438         (isnan_test_data): New variable.
61439         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61440         (isnormal_test_data): New variable.
61441         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61442         (issignaling_test_data): New variable.
61443         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61444         (signbit_test_data): New variable.
61445         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61446
61447         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
61448         with INVALID_EXCEPTION.
61449         (acosh_test_data): Likewise.
61450         (asin_test_data): Likewise.
61451         (atanh_test_data): Likewise.
61452         (fmod_test_data): Likewise.
61453         (log_test_data): Likewise.
61454         (log10_test_data): Likewise.
61455         (log2_test_data): Likewise.
61456         (pow_test_data): Likewise.
61457         (sqrt_test_data): Likewise.
61458         (y0_test_data): Likewise.
61459         (y1_test_data): Likewise.
61460         (yn_test_data): Likewise.
61461
61462         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
61463         function contents.
61464
61465         * math/libm-test.inc (struct test_ff_i_data): New type.
61466         (RUN_TEST_LOOP_ff_i_tg): New macro.
61467         (isgreater_test_data): New variable.
61468         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61469         (isgreaterequal_test_data): New variable.
61470         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61471         (isless_test_data): New variable.
61472         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61473         (islessequal_test_data): New variable.
61474         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61475         (islessgreater_test_data): New variable.
61476         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61477         (isunordered_test_data): New variable.
61478         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61479
61480 2013-05-14  David S. Miller  <davem@davemloft.net>
61481
61482         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61483
61484 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
61485
61486         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
61487
61488         * math/libm-test.inc (struct test_fF_f1_data): Change type of
61489         extra_test to int.
61490         (struct test_f_i_data): Change type of max_ulp to int.
61491
61492         * math/libm-test.inc (test_ffI_f1_data): New type.
61493         (RUN_TEST_LOOP_ffI_f1): New macro.
61494         (remquo_test_data): New variable.
61495         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
61496
61497         * setjmp/tst-setjmp-fp.c: New file.
61498         * setjmp/Makefile (tests): Add tst-setjmp-fp.
61499         (link-libm): New variable.
61500         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
61501
61502         * math/libm-test.inc (struct test_f_i_data): New type.
61503         (RUN_TEST_LOOP_f_i): New macro.
61504         (RUN_TEST_LOOP_f_i_tg): Likewise.
61505         (fpclassify_test_data): New variable.
61506         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
61507         (ilogb_test_data): New variable.
61508         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
61509
61510         * math/libm-test.inc (scalbln_test): Correct function name in END
61511         call.
61512
61513         * math/libm-test.inc (struct test_f_f1_data): Add comment.
61514         (RUN_TEST_LOOP_fI_f1): New macro.
61515         (frexp_test_data): New variable.
61516         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
61517
61518         * math/libm-test.inc (struct test_fF_f1_data): New type.
61519         (RUN_TEST_LOOP_fF_f1): New macro.
61520         (modf_test_data): New variable.
61521         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
61522
61523         * math/libm-test.inc (struct test_f_f1_data): New type.
61524         (RUN_TEST_LOOP_f_f1): New macro.
61525         (gamma_test_data): New variable.
61526         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61527         (lgamma_test_data): New variable.
61528         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
61529
61530 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
61531
61532         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
61533         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
61534         (main): Comment "tls" pseudo-hwcap.
61535
61536 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
61537
61538         * math/libm-test.inc (struct test_fl_f_data): New type.
61539         (RUN_TEST_LOOP_fl_f): New variable.
61540         (scalbln_test_data): New variable.
61541         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
61542
61543         * math/libm-test.inc (struct test_fi_f_data): New type.
61544         (RUN_TEST_LOOP_fi_f): New macro.
61545         (ldexp_test_data): New variable.
61546         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
61547         (scalbn_test_data): New variable.
61548         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
61549
61550         * math/libm-test.inc (struct test_c_f_data): New type.
61551         (RUN_TEST_LOOP_c_f): New macro.
61552         (cabs_test_data): New variable.
61553         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
61554         (carg_test_data): New variable.
61555         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
61556         (cimag_test_data): New variable.
61557         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
61558         (creal_test_data): New variable.
61559         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
61560
61561         * math/libm-test.inc (struct test_if_f_data): New type.
61562         (RUN_TEST_LOOP_if_f): New macro.
61563         (jn_test_data): New variable.
61564         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
61565         (yn_test_data): New variable.
61566         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
61567
61568         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
61569
61570 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61571
61572         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
61573         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
61574
61575 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
61576
61577         * benchtests/Makefile (CPPFLAGS-nonlib): Add
61578         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
61579         (bench-deps): Add bench-timing.h.
61580         * benchtests-bench-skeleton.c: Include bench-timing.h.
61581         (main): Use TIMING_* macros instead of clock_gettime.
61582         * benchtests/bench-timing.h: New file.
61583
61584         [BZ #14582]
61585         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
61586         Renamed from _LIB_VERSION.
61587         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
61588
61589 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
61590
61591         * math/libm-test.inc (struct test_fff_f_data): New type.
61592         (RUN_TEST_LOOP_fff_f): New macro.
61593         (fma_test_data): New variable.
61594         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
61595         (fma_towardzero_test_data): New variable.
61596         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
61597         (fma_downward_test_data): New variable.
61598         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
61599         (fma_upward_test_data): New variable.
61600         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
61601
61602         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
61603         (struct test_c_c_data): New type.
61604         (RUN_TEST_LOOP_c_c): New macro.
61605         (cacos_test_data): New variable.
61606         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
61607         (cacosh_test_data): New variable.
61608         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
61609         (casin_test_data): New variable.
61610         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
61611         (casinh_test_data): New variable.
61612         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
61613         (catan_test_data): New variable.
61614         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
61615         (catanh_test_data): New variable.
61616         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
61617         (ccos_test_data): New variable.
61618         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
61619         (ccosh_test_data): New variable.
61620         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
61621         (cexp_test_data): New variable.
61622         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
61623         (clog_test_data): New variable.
61624         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
61625         (clog10_test_data): New variable.
61626         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
61627         (conj_test_data): New variable.
61628         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
61629         (cproj_test_data): New variable.
61630         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
61631         (csin_test_data): New variable.
61632         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
61633         (csinh_test_data): New variable.
61634         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
61635         (csqrt_test_data): New variable.
61636         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
61637         (ctan_test_data): New variable.
61638         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
61639         (ctan_tonearest_test_data): New variable.
61640         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61641         (ctan_towardzero_test_data): New variable.
61642         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61643         (ctan_downward_test_data): New variable.
61644         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61645         (ctan_upward_test_data): New variable.
61646         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61647         (ctanh_test_data): New variable.
61648         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
61649         (ctanh_tonearest_test_data): New variable.
61650         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
61651         (ctanh_towardzero_test_data): New variable.
61652         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
61653         (ctanh_downward_test_data): New variable.
61654         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
61655         (ctanh_upward_test_data): New variable.
61656         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
61657         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
61658         of BUILD_COMPLEX.
61659
61660         * math/libm-test.inc (struct test_ff_f_data): New type.
61661         (struct test_ff_f_data_nexttoward): Likewise.
61662         (RUN_TEST_LOOP_2_f): New macro.
61663         (RUN_TEST_LOOP_ff_f): Likewise.
61664         (atan2_test_data): New variable.
61665         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
61666         (copysign_test_data): New variable.
61667         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
61668         (fdim_test_data): New variable.
61669         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
61670         (fmax_test_data): New variable.
61671         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
61672         (fmin_test_data): New variable.
61673         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
61674         (fmod_test_data): New variable.
61675         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
61676         (hypot_test_data): New variable.
61677         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
61678         (nextafter_test_data): New variable.
61679         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
61680         (nexttoward_test_data): New variable.
61681         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
61682         (pow_test_data): New variable.
61683         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
61684         (pow_tonearest_test_data): New variable.
61685         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
61686         (pow_towardzero_test_data): New variable.
61687         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
61688         (pow_downward_test_data): New variable.
61689         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
61690         (pow_upward_test_data): New variable.
61691         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
61692         (remainder_test_data): New variable.
61693         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
61694         (scalb_test_data): New variable.
61695         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
61696         * sysdeps/i386/fpu/libm-test-ulps: Update.
61697
61698 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
61699
61700         * math/libm-test.inc (fma_test): Use max_value instead of local
61701         variable fltmax.
61702         (nextafter_test): Likewise.
61703
61704         * math/libm-test.inc (acos_towardzero_test_data): New variable.
61705         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61706         (acos_downward_test_data): New variable.
61707         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61708         (acos_upward_test_data): New variable.
61709         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61710         (acosh_test_data): New variable.
61711         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
61712         (asin_test_data): New variable.
61713         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
61714         (asin_tonearest_test_data): New variable.
61715         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61716         (asin_towardzero_test_data): New variable.
61717         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61718         (asin_downward_test_data): New variable.
61719         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61720         (asin_upward_test_data): New variable.
61721         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61722         (asinh_test_data): New variable.
61723         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
61724         (atan_test_data): New variable.
61725         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
61726         (atanh_test_data): New variable.
61727         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
61728         (cbrt_test_data): New variable.
61729         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
61730         (ceil_test_data): New variable.
61731         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
61732         (cos_test_data): New variable.
61733         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
61734         (cos_tonearest_test_data): New variable.
61735         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61736         (cos_towardzero_test_data): New variable.
61737         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61738         (cos_downward_test_data): New variable.
61739         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61740         (cos_upward_test_data): New variable.
61741         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61742         (cosh_test_data): New variable.
61743         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
61744         (cosh_tonearest_test_data): New variable.
61745         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61746         (cosh_towardzero_test_data): New variable.
61747         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61748         (cosh_downward_test_data): New variable.
61749         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61750         (cosh_upward_test_data): New variable.
61751         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61752         (erf_test_data): New variable.
61753         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
61754         (erfc_test_data): New variable.
61755         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
61756         (exp_test_data): New variable.
61757         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
61758         (exp_tonearest_test_data): New variable.
61759         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61760         (exp_towardzero_test_data): New variable.
61761         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61762         (exp_downward_test_data): New variable.
61763         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61764         (exp_upward_test_data): New variable.
61765         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61766         (exp10_test_data): New variable.
61767         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
61768         (exp2_test_data): New variable.
61769         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
61770         (expm1_test_data): New variable.
61771         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
61772         (fabs_test_data): New variable.
61773         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
61774         (floor_test_data): New variable.
61775         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
61776         (j0_test_data): New variable.
61777         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
61778         (j1_test_data): New variable.
61779         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
61780         (log_test_data): New variable.
61781         (log_test): Run tests with RUN_TEST_LOOP_f_f.
61782         (log10_test_data): New variable.
61783         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
61784         (log1p_test_data): New variable.
61785         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
61786         (log2_test_data): New variable.
61787         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
61788         (logb_test_data): New variable.
61789         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
61790         (logb_downward_test_data): New variable.
61791         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61792         (nearbyint_test_data): New variable.
61793         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
61794         (rint_test_data): New variable.
61795         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
61796         (rint_tonearest_test_data): New variable.
61797         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61798         (rint_towardzero_test_data): New variable.
61799         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61800         (rint_downward_test_data): New variable.
61801         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61802         (rint_upward_test_data): New variable.
61803         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61804         (round_test_data): New variable.
61805         (round_test): Run tests with RUN_TEST_LOOP_f_f.
61806         (sin_test_data): New variable.
61807         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
61808         (sin_tonearest_test_data): New variable.
61809         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61810         (sin_towardzero_test_data): New variable.
61811         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61812         (sin_downward_test_data): New variable.
61813         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61814         (sin_upward_test_data): New variable.
61815         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61816         (sinh_test_data): New variable.
61817         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
61818         (sinh_tonearest_test_data): New variable.
61819         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61820         (sinh_towardzero_test_data): New variable.
61821         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61822         (sinh_downward_test_data): New variable.
61823         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61824         (sinh_upward_test_data): New variable.
61825         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61826         (sqrt_test_data): New variable.
61827         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
61828         (tan_test_data): New variable.
61829         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
61830         (tan_tonearest_test_data): New variable.
61831         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61832         (tan_towardzero_test_data): New variable.
61833         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
61834         (tan_downward_test_data): New variable.
61835         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
61836         (tan_upward_test_data): New variable.
61837         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
61838         (tanh_test_data): New variable.
61839         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
61840         (tgamma_test_data): New variable.
61841         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
61842         (trunc_test_data): New variable.
61843         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
61844         (y0_test_data): New variable.
61845         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
61846         (y1_test_data): New variable.
61847         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
61848         (significand_test_data): New variable.
61849         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
61850
61851 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
61852
61853         [BZ #12387]
61854         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
61855
61856 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
61857
61858         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
61859
61860 2013-05-10  Andreas Jaeger  <aj@suse.de>
61861
61862         [BZ #15448]
61863         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
61864         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
61865
61866 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
61867
61868         * math/gen-libm-test.pl (adjust_arg): New function.
61869         (special_functions): Handle generating output in both functions
61870         and arrays.
61871         (parse_args): Likewise.
61872         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
61873         $in_func argument to parse_args.
61874         * math/libm-test.inc (struct test_f_f_data): New type.
61875         (IF_ROUND_INIT_): New macro.
61876         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
61877         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
61878         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
61879         (IF_ROUND_INIT_FE_UPWARD): Likewise.
61880         (ROUND_RESTORE_): Likewise.
61881         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
61882         (ROUND_RESTORE_FE_TONEAREST): Likewise.
61883         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
61884         (ROUND_RESTORE_FE_UPWARD): Likewise.
61885         (RUN_TEST_LOOP_f_f): New macro.
61886         (acos_test_data): New variable.
61887         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
61888         (acos_tonearest_test_data): New variable.
61889         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
61890
61891 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
61892
61893         * benchtests/bench-skeleton.c (startup): Fix coding style.
61894
61895 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
61896
61897         [BZ #6809]
61898         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
61899         negative infinity argument.
61900         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
61901         negative infinity argument.
61902         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
61903         negative infinity argument.
61904         * math/libm-test.inc (tgamma_test): Expect errno to be set for
61905         domain errors.
61906
61907 2013-05-10  Florian Weimer  <fweimer@redhat.com>
61908
61909         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
61910         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
61911         * iconv/iconv_prog.c (main): Likewise.
61912         * locale/programs/charmap-dir.c (charmap_readdir)
61913         (fopen_uncompressed): Likewise.
61914         * locale/programs/locfile.c (siblings_uncached)
61915         (write_locale_data): Use lstat64 instead of lstat.
61916         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
61917         stat.
61918
61919 2013-05-10  Andreas Jaeger  <aj@suse.de>
61920
61921         [BZ #15395]
61922         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
61923         localization.
61924         Include <locale.h>.
61925
61926 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
61927
61928         * elf/dl-close.c (_dl_close_worker): Add comments.
61929
61930 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
61931
61932         [BZ #15359]
61933         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
61934         high part of pi/2.
61935         (__ieee754_rem_pio2l): Update comments.
61936
61937         [BZ #15429]
61938         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
61939         high part of pi/2.
61940         (__ieee754_rem_pio2l): Update comments.
61941
61942         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
61943         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
61944
61945         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
61946         M_PI_4l.
61947
61948         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
61949         (M_PI_34_LOG10El): Likewise.
61950         (M_PI2_LOG10El): Likewise.
61951         (M_PI4_LOG10El): Likewise.
61952         (M_PI_LOG10El): Likewise.
61953
61954 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61955
61956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61957
61958 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
61959
61960         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
61961         (MINUS_ZERO_INIT): Likewise.
61962         (PLUS_INFTY_INIT): Likewise.
61963         (MINUS_INFTY_INIT): Likewise.
61964         (QNAN_VALUE_INIT): Likewise.
61965         (MAX_VALUE_INIT): Likewise.
61966         (MIN_VALUE_INIT): Likewise.
61967         (MIN_SUBNORM_VALUE_INIT): Likewise.
61968         (plus_zero): Initialize with PLUS_ZERO_INIT.
61969         (minus_zero): Initialize with MINUS_ZERO_INIT.
61970         (plus_infty): Initialize with PLUS_INFTY_INIT.
61971         (minus_infty): Initialize with MINUS_INFTY_INIT.
61972         (qnan_value): Initialize with QNAN_VALUE_INIT.
61973         (max_value): Initialize with MAX_VALUE_INIT.
61974         (min_value): Initialize with MIN_VALUE_INIT.
61975         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
61976
61977         * math/libm-test.inc (RUN_TEST_if_f): New macro.
61978         (jn_test): Use TEST_if_f instead of TEST_ff_f.
61979         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
61980         (yn_test): Use TEST_if_f instead of TEST_ff_f.
61981
61982         * math/libm-test.inc (RUN_TEST_f_f): New macro.
61983         (RUN_TEST_2_f): Likewise.
61984         (RUN_TEST_ff_f): Likewise.
61985         (RUN_TEST_fi_f): Likewise.
61986         (RUN_TEST_fl_f): Likewise.
61987         (RUN_TEST_fff_f): Likewise.
61988         (RUN_TEST_c_f): Likewise.
61989         (RUN_TEST_f_f1): Likewise.
61990         (RUN_TEST_fF_f1): Likewise.
61991         (RUN_TEST_fI_f1): Likewise.
61992         (RUN_TEST_ffI_f1): Likewise.
61993         (RUN_TEST_c_c): Likewise.
61994         (RUN_TEST_cc_c): Likewise.
61995         (RUN_TEST_f_i): Likewise.
61996         (RUN_TEST_f_i_tg): Likewise.
61997         (RUN_TEST_ff_i_tg): Likewise.
61998         (RUN_TEST_f_b): Likewise.
61999         (RUN_TEST_f_b_tg): Likewise.
62000         (RUN_TEST_f_l): Likewise.
62001         (RUN_TEST_f_L): Likewise.
62002         (RUN_TEST_sincos): Likewise.
62003         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62004         whether to show exceptions.  Do not include ");\n" in return
62005         value.
62006         (special_functions): Output call to RUN_TEST_sincos instead of
62007         check_float calls.  Update calls to new_test.
62008         (parse_args): Output call to single RUN_TEST_* macro instead of
62009         check_* calls and other assignments.  Update calls to new_test.
62010
62011         [BZ #2546]
62012         [BZ #2560]
62013         [BZ #5159]
62014         [BZ #15426]
62015         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62016         input to result for tgamma overflow.
62017         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62018         (gamma_coeff): New variable.
62019         (NCOEFF): New macro.
62020         (gamma_positive): New function.
62021         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62022         underflow here.  Use gamma_positive instead of exp (lgamma) for
62023         other arguments.
62024         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62025         (gamma_coeff): New variable.
62026         (NCOEFF): New macro.
62027         (gammaf_positive): New function.
62028         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62029         underflow here.  Use gamma_positive instead of exp (lgamma) for
62030         other arguments.
62031         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62032         (gamma_coeff): New variable.
62033         (NCOEFF): New macro.
62034         (gammal_positive): New function.
62035         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62036         underflow here.  Use gamma_positive instead of exp (lgamma) for
62037         other arguments.
62038         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62039         (gamma_coeff): New variable.
62040         (NCOEFF): New macro.
62041         (gammal_positive): New function.
62042         (__ieee754_gammal_r): Handle positive infinity, overflow and
62043         underflow here.  Handle NaN the same as positive infinity.  Remove
62044         check x < 0xffffffff for negative integers.  Use gamma_positive
62045         instead of exp (lgamma) for other arguments.
62046         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62047         (gamma_coeff): New variable.
62048         (NCOEFF): New macro.
62049         (gammal_positive): New function.
62050         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62051         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62052         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62053         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62054         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62055         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62056         * sysdeps/generic/math_private.h (__gamma_productf): New
62057         prototype.
62058         (__gamma_product): Likewise.
62059         (__gamma_productl): Likewise.
62060         * math/Makefile (libm-calls): Add gamma_product.
62061         * math/libm-test.inc (tgamma_test): Add more tests.
62062         * sysdeps/i386/fpu/libm-test-ulps: Update.
62063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62064
62065 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62066
62067         * benchtests/bench-skeleton.c (main): Preheat CPU.
62068
62069 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62070
62071         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62072
62073 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62074
62075         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62076         and _dl_skip_args_internal.
62077
62078 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62079
62080         * manual/message.texi (Message Translation): Talk about users.
62081         Message to key mapping impacts design.
62082
62083 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62084
62085         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62086
62087         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62088
62089         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62090         * sysdeps/wordsize-64/glob64.c: ... here.
62091
62092         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62093         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62094         New macros.
62095
62096         * debug/getlogin_r_chk.c: Moved to ...
62097         * login/getlogin_r_chk.c: ... here.
62098         * debug/Makefile (routines): Move getlogin_r_chk to ...
62099         * login/Makefile (routines): ... here.
62100         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62101         * login/Versions (libc: GLIBC_2.4): ... here.
62102
62103         * io/poll.c (__poll): Renamed from poll.
62104         Add libc_hidden_def.
62105         (poll): Define as weak alias.
62106
62107         * debug/ptsname_r_chk.c: Moved to ...
62108         * login/ptsname_r_chk.c: ... here.
62109         * debug/Makefile (routines): Move ptsname_r_chk to ...
62110         * login/Makefile (routines): ... here.
62111         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62112         * login/Versions (libc: GLIBC_2.4): ... here.
62113
62114         * posix/getlogin.c: Moved to ...
62115         * login/getlogin.c: ... here.
62116         * posix/getlogin_r.c: Moved to ...
62117         * login/getlogin_r.c: ... here.
62118         * posix/getlogin_r.c: Moved to ...
62119         * login/getlogin_r.c: ... here.
62120         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62121         * login/Makefile (routines): ... here.
62122         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62123         * login/Versions (libc: GLIBC_2.0): ... here.
62124
62125         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62126         (setrlimit): Define as weak alias.
62127
62128         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62129         Call __ names for open, ftruncate, and close.
62130         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62131         (truncate): Define as weak alias.
62132
62133 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62134
62135         * math/gen-libm-test.pl (parse_args): Initialize x before each
62136         test of frexp, modf and remquo.
62137
62138         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62139         test signgam value.
62140
62141 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62142
62143         [BZ #15418]
62144         [BZ #15419]
62145         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62146         internal tests.
62147         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62148
62149 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62150
62151         * elf/dl-writev.h: New file.
62152         * elf/dl-misc.c: Include it.
62153         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62154         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62155
62156 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62157
62158         * math/libm-test.inc (noXFails): Remove variable.
62159         (noXPasses): Likewise.
62160         (BUILD_COMPLEX_INT): Remove macro.
62161         (print_screen): Remove xfail argument.
62162         (print_screen_max_error): Likewise.
62163         (update_stats): Likewise.
62164         (print_max_error): Likewise.  Update calls to other affected
62165         functions.
62166         (print_complex_max_error): Likewise.
62167         (test_single_exception): Update calls to print_screen.
62168         (test_single_errno): Likewise.
62169         (check_float_internal): Remove xfail argument.  Update calls to
62170         other affected functions.
62171         (check_float): Likewise.
62172         (check_complex): Likewise.
62173         (check_int): Likewise.
62174         (check_long): Likewise.
62175         (check_bool): Likewise.
62176         (check_longlong): Likewise.
62177         (main): Don't print noXFails and noXPasses.
62178         * math/gen-libm-test.pl (top level): Don't mention expected
62179         failure handling in comment.
62180         (new_test): Don't handle expected failures.
62181         (parse_args): Don't mention expected failure handling in comment.
62182         (generate_testfile): Don't handle expected failures.
62183         (parse_ulps): Likewise.
62184         (print_ulps_file): Likewise.
62185         (get_failure): Remove function.
62186         (output_test): Don't handle expected failures.
62187         * make/README.libm-test: Don't mention expected failure handling.
62188
62189         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62190         (minus_zero): Likewise.
62191         (plus_infty): Likewise.
62192         (minus_infty): Likewise.
62193         (qnan_value): Likewise.
62194         (max_value): Likewise.
62195         (min_value): Likewise.
62196         (min_subnorm_value): Likewise.
62197         (initialize): Do not initialize those variables dynamically.
62198
62199 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62200
62201         * io/open.c (__open_2): Moved to ...
62202         * io/open_2.c: ... this new file.
62203         * io/open64.c (__open64_2): Moved to ...
62204         * io/open64_2.c: ... this new file.
62205         * io/openat.c (__openat_2): Moved to ...
62206         * io/openat_2.c: ... this new file.
62207         * io/openat64.c (__openat64_2): Moved to ...
62208         * io/openat64_2.c: ... this new file.
62209         * io/Makefile (routines): Add them.
62210         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62211         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62212         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62213         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62214         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62215         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62216         (__openat64): Add hidden_ver.
62217         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62218         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62219
62220         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62221         Separately conditionalize setting of GLRO(dl_sysinfo) so
62222         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62223         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62224
62225 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62226
62227         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62228         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62229         definition.
62230         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62231         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62232         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62233         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62234         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62235
62236 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62237
62238         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62239         test signgam value.
62240
62241         * math/libm-test.inc (hypot_test): Do not use
62242         IGNORE_ZERO_INF_SIGN.
62243
62244 2013-05-03  Andreas Jaeger  <aj@suse.de>
62245
62246         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62247         Linux 3.9.
62248         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62249         (PF_MAX): Adjust for VSOCK change.
62250
62251 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62252
62253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62254
62255 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62256
62257         [BZ #15264]
62258         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62259         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62260         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62261
62262 2013-05-02  David S. Miller  <davem@davemloft.net>
62263
62264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62265
62266 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62267
62268         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62269
62270 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62271
62272         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62273
62274 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62275
62276         [BZ #14952]
62277         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62278         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62279         Use __attribute__ ((__gnu_inline__)).
62280         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62281         Don't use __attribute__ ((__gnu_inline__)).
62282
62283 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62284
62285         [BZ #15423]
62286         * math/s_catan.c (__catan): Handle small real or imaginary part of
62287         input specially to avoid spurious underflow.
62288         * math/s_catanf.c (__catanf): Likewise.
62289         * math/s_catanh.c (__catanh): Likewise.
62290         * math/s_catanhf.c (__catanhf): Likewise.
62291         * math/s_catanhl.c (__catanhl): Likewise.
62292         * math/s_catanl.c (__catanl): Likewise.
62293         * math/libm-test.inc (catan_test): Add more tests.
62294         (catanh_test): Likewise.
62295         * sysdeps/i386/fpu/libm-test-ulps: Update.
62296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62297
62298 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62299
62300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62301
62302 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62303
62304         [BZ #15416]
62305         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62306         accurately for denominator in atan2.
62307         * math/s_catanf.c (__catanf): Likewise.
62308         * math/s_catanh.c (__catanh): Likewise.
62309         * math/s_catanhf.c (__catanhf): Likewise.
62310         * math/s_catanhl.c (__catanhl): Likewise.
62311         * math/s_catanl.c (__catanl): Likewise.
62312         * math/libm-test.inc (catan_test): Add more tests.
62313         (catanh_test): Likewise.
62314         * sysdeps/i386/fpu/libm-test-ulps: Update.
62315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62316
62317 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
62318
62319         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
62320
62321         * benchtests/Makefile (bench): Remove slow benchmarks.
62322         * benchtests/atan-inputs: Add slow benchmark inputs.
62323         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62324         (BENCH_FUNC): Accept variant offset.
62325         (VARIANT): Define.
62326         * benchtests/bench-skeleton.c (main): Run benchmark for each
62327         variant.
62328         * benchtests/cos-inputs: Add slow benchmark inputs.
62329         * benchtests/exp-inputs: Likewise.
62330         * benchtests/pow-inputs: Likewise.
62331         * benchtests/sin-inputs: Likewise.
62332         * benchtests/slowatan-inputs: Remove.
62333         * benchtests/slowatan.c: Remove.
62334         * benchtests/slowcos-inputs: Remove.
62335         * benchtests/slowcos.c: Remove.
62336         * benchtests/slowexp-inputs: Remove.
62337         * benchtests/slowexp.c: Remove.
62338         * benchtests/slowpow-inputs: Remove.
62339         * benchtests/slowpow.c: Remove.
62340         * benchtests/slowsin-inputs: Remove.
62341         * benchtests/slowsin.c: Remove.
62342         * benchtests/slowtan-inputs: Remove.
62343         * benchtests/slowtan.c: Remove.
62344         * benchtests/tan-inputs: Add slow benchmark inputs.
62345         * scripts/bench.pl: Parse comments and directives.
62346
62347         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
62348         in CPPFLAGS.
62349         ($(objpfx)bench-%.c): Remove *-ITER.
62350         * benchtests/bench-modf.c: Remove definition of ITER.
62351         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
62352         (main): Loop for DURATION seconds instead of fixed number of
62353         iterations.
62354         * scripts/bench.pl: Don't expect iterations in parameters.
62355
62356 2013-04-29  Roland McGrath  <roland@hack.frob.com>
62357
62358         * io/fchdir.c (__fchdir): Renamed from fchdir.
62359         (fchdir): Define as weak alias.
62360
62361 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62362
62363         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
62364         (ERRNO_EDOM): Likewise.
62365         (ERRNO_ERANGE): Likewise.
62366         (noErrnoTests): New variable.
62367         (init_max_error): Set errno to 0.
62368         (test_single_errno): New function.
62369         (test_errno): Likewise.
62370         (check_float_internal): Call test_errno.  Set errno to 0.
62371         (check_complex): Refer to errno tests in comment.
62372         (check_int): Call test_errno.  Set errno to 0.
62373         (check_long): Likewise.
62374         (check_bool): Likewise.
62375         (check_longlong): Likewise.
62376         (cos_test): Use ERRNO_* flags for errno tests instead of
62377         check_int.
62378         (expm1_test): Likewise.
62379         (fmod_test): Likewise.
62380         (ilogb_test): Likewise.
62381         (lgamma_test): Likewise.
62382         (pow_test): Likewise.
62383         (remainder_test): Likewise.
62384         (sin_test): Likewise.
62385         (tan_test): Likewise.
62386         (yn_test): Likewise.
62387         (initialize): Set errno to 0.
62388         (main): Print number of errno tests.
62389         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
62390
62391 2013-04-29  Andreas Jaeger  <aj@suse.de>
62392
62393         [BZ #15084]
62394         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
62395         and RES_USEVC.
62396
62397         [BZ #15085]
62398         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
62399         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
62400         unimplemented.
62401
62402         [BZ #15380]
62403         * stdlib/random.c (__initstate): Return NULL if
62404         __initstate fails.
62405
62406         [BZ #15086]
62407         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
62408         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
62409         RES_SNGLKUPREOP.
62410
62411 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62412
62413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62414
62415 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62416
62417         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
62418         of individual tests.
62419         (casin_test): Likewise.
62420         (casinh_test): Likewise.
62421
62422 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
62423
62424         [BZ #15409]
62425         * math/s_catan.c (__catan): Handle arguments with large real or
62426         imaginary part separately without squaring.
62427         * math/s_catanf.c (__catanf): Likewise.
62428         * math/s_catanh.c (__catanh): Likewise.
62429         * math/s_catanhf.c (__catanhf): Likewise.
62430         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62431         and redefine.
62432         (__catanhl): Handle arguments with large real or imaginary part
62433         separately without squaring.
62434         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62435         and redefine.
62436         (__catanl): Handle arguments with large real or imaginary part
62437         separately without squaring.
62438         * math/libm-test.inc (catan_test): Add more tests.
62439         (catanh_test): Likewise.
62440         * sysdeps/i386/fpu/libm-test-ulps: Update.
62441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62442
62443 2013-04-27  Andreas Jaeger  <aj@suse.de>
62444
62445         [BZ #15007]
62446         * stdlib/stdlib.h: Update guards for qecvt.
62447         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
62448         <stdlib.h>.
62449
62450 2013-04-27  Allan McRae  <allan@archlinux.org>
62451
62452         * sysdeps/i386/fpu/libm-test-ulps: Update.
62453
62454 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
62455
62456         [BZ #15406]
62457         * math/s_catan.c: Include <float.h>.
62458         (__catan): Ensure underflow exception occurs for underflowed
62459         result.
62460         * math/s_catanf.c: Include <float.h>.
62461         (__catanf): Ensure underflow exception occurs for underflowed
62462         result.
62463         * math/s_catanh.c: Include <float.h>.
62464         (__catanh): Ensure underflow exception occurs for underflowed
62465         result.
62466         * math/s_catanhf.c: Include <float.h>.
62467         (__catanhf): Ensure underflow exception occurs for underflowed
62468         result.
62469         * math/s_catanhl.c: Include <float.h>.
62470         (__catanhl): Ensure underflow exception occurs for underflowed
62471         result.
62472         * math/s_catanl.c: Include <float.h>.
62473         (__catanl): Ensure underflow exception occurs for underflowed
62474         result.
62475         * math/libm-test.inc (catan_test): Add more tests.
62476         (catanh_test): Likewise.
62477
62478         [BZ #15405]
62479         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
62480         underflowed result.
62481         * math/s_ccoshf.c (__ccoshf): Likewise.
62482         * math/s_ccoshl.c (__ccoshl): Likewise.
62483         * math/s_csin.c (__csin): Likewise.
62484         * math/s_csinf.c (__csinf): Likewise.
62485         * math/s_csinh.c (__csinh): Likewise.
62486         * math/s_csinhf.c (__csinhf): Likewise.
62487         * math/s_csinhl.c (__csinhl): Likewise.
62488         * math/s_csinl.c (__csinl): Likewise.
62489         * math/libm-test.inc (ccos_test): Add more tests.
62490         (ccosh_test): Likewise.
62491         (csin_test): Likewise.
62492         (csinh_test): Likewise.
62493
62494 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62495
62496         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
62497         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
62498         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
62499         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
62500         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
62501         powerpc/power5+/fpu folders.
62502         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
62503
62504
62505 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
62506
62507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62508
62509 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
62510
62511         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
62512         additions to variable.
62513         [$(config-machine) = x86_64] (modules-names): Likewise.
62514         ($(objpfx)tst-audit3): Remove dependency.
62515         ($(objpfx)tst-audit3.out): Likewise.
62516         ($(objpfx)tst-audit4): Likewise.
62517         ($(objpfx)tst-audit4.out): Likewise.
62518         ($(objpfx)tst-audit5): Likewise.
62519         ($(objpfx)tst-audit5.out): Likewise.
62520         ($(objpfx)tst-audit6): Likewise.
62521         ($(objpfx)tst-audit6.out): Likewise.
62522         ($(objpfx)tst-audit7): Likewise.
62523         ($(objpfx)tst-audit7.out): Likewise.
62524         (tst-audit3-ENV): Remove variable.
62525         (tst-audit4-ENV): Likewise.
62526         (tst-audit5-ENV): Likewise.
62527         (tst-audit6-ENV): Likewise.
62528         (tst-audit7-ENV): Likewise.
62529         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
62530         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
62531         addition to variable.
62532         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
62533         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
62534         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
62535         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
62536         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
62537         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
62538         tst-audit3, tst-audit4 and tst-audit5.
62539         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
62540         tst-audit6 and tst-audit7.
62541         [$(subdir) = elf] (modules-names): Add audit modules for those
62542         tests.
62543         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
62544         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
62545         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
62546         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
62547         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
62548         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
62549         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
62550         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
62551         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
62552         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
62553         [$(subdir) = elf] (tst-audit3-ENV): New variable.
62554         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
62555         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
62556         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
62557         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
62558         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
62559         Likewise.
62560         [$(subdir) = elf && $(config-cflags-avx) = yes]
62561         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
62562         [$(subdir) = elf && $(config-cflags-avx) = yes]
62563         (CFLAGS-tst-auditmod4a.c): Likewise.
62564         [$(subdir) = elf && $(config-cflags-avx) = yes]
62565         (CFLAGS-tst-auditmod4b.c): Likewise.
62566         [$(subdir) = elf && $(config-cflags-avx) = yes]
62567         (CFLAGS-tst-auditmod6b.c): Likewise.
62568         [$(subdir) = elf && $(config-cflags-avx) = yes]
62569         (CFLAGS-tst-auditmod6c.c): Likewise.
62570         [$(subdir) = elf && $(config-cflags-avx) = yes]
62571         (CFLAGS-tst-auditmod7b.c): Likewise.
62572         * elf/tst-audit3.c: Move to ...
62573         * sysdeps/x86_64/tst-audit3.c: ... here.
62574         * elf/tst-audit4.c: Move to ...
62575         * sysdeps/x86_64/tst-audit4.c: ... here.
62576         * elf/tst-audit5.c: Move to ...
62577         * sysdeps/x86_64/tst-audit5.c: ... here.
62578         * elf/tst-audit6.c: Move to ...
62579         * sysdeps/x86_64/tst-audit6.c: ... here.
62580         * elf/tst-audit7.c: Move to ...
62581         * sysdeps/x86_64/tst-audit7.c: ... here.
62582         * elf/tst-auditmod3a.c: Move to ...
62583         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
62584         * elf/tst-auditmod3b.c: Move to ...
62585         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
62586         * elf/tst-auditmod4a.c: Move to ...
62587         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
62588         * elf/tst-auditmod4b.c: Move to ...
62589         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
62590         * elf/tst-auditmod5a.c: Move to ...
62591         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
62592         * elf/tst-auditmod5b.c: Move to ...
62593         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
62594         * elf/tst-auditmod6a.c: Move to ...
62595         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
62596         * elf/tst-auditmod6b.c: Move to ...
62597         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
62598         * elf/tst-auditmod6c.c: Move to ...
62599         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
62600         * elf/tst-auditmod7a.c: Move to ...
62601         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
62602         * elf/tst-auditmod7b.c: Move to ...
62603         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
62604
62605 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
62606
62607         [BZ #15366]
62608         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
62609         define unconditionally.
62610         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
62611         define unconditionally.
62612         (INT8_C, INT16_C, etc.): Likewise.
62613
62614 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
62615
62616         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
62617         __ehdr_start with hidden visibility.
62618
62619         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
62620
62621 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
62622
62623         * math/libm-test.inc (cos_test): Use accurate hex constants.
62624         (sincost_test): Likewise.
62625
62626 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
62627
62628         * math/libm-test.inc (catan_test): Add more tests.
62629         (catanh_test): Likewise.
62630
62631         * math/s_catanf.c (__catanf): Use suffixed floating-point
62632         constants.
62633         * math/s_catanhf.c (__catanhf): Likewise.
62634         * math/s_catanhl.c (__catanhl): Likewise.
62635         * math/s_catanl.c (__catanl): Likewise.
62636
62637         [BZ #15394]
62638         * math/s_catan.c (__catan): Calculate imaginary part of result
62639         with log1p not log unless computing log of number close to 0.
62640         * math/s_catanf.c (__catanf): Likewise.
62641         * math/s_catanl.c (__catanl): Likewise.
62642         * math/s_catanh.c (__catanh): Calculate real part of result with
62643         log1p not log unless computing log of number close to 0.
62644         * math/s_catanhf.c (__catanhf): Likewise.
62645         * math/s_catanhl.c (__catanhl): Likewise.
62646         * math/libm-test.inc (catan_test): Add more tests.
62647         (catanh_test): Likewise.
62648         * sysdeps/i386/fpu/libm-test-ulps: Update.
62649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62650
62651 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
62652
62653         * benchtests/Makefile: Mention files in which fast and slow
62654         paths of math functions are implemented.
62655
62656 2013-04-23  Roland McGrath  <roland@hack.frob.com>
62657
62658         * sysdeps/posix/timespec_get.c: New file.
62659
62660 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62661
62662         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
62663         POWER.
62664         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
62665         for POWER.
62666         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
62667         powerpc/power5/fpu folders.
62668         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
62669         * benchtests/Makefile: Add modf testcase.
62670         * benchtests/bench-modf.c: New file: Benchmark test for mo
62671
62672 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
62673
62674         [BZ #14888]
62675         * time/Makefile (tests): Add tst-strptime-whitespace.
62676         * time/strptime_l.c (get_number): Use ISSPACE.
62677         (__strptime_internal): Likewise.
62678         * time/tst-strptime-whitespace.c: New test case.
62679
62680 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
62681
62682         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
62683         member.
62684         (_nss_files_init): Set it here.
62685
62686 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
62687
62688         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
62689         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
62690         unsigned.
62691
62692 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
62693
62694         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
62695
62696 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
62697
62698         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
62699         size just once.
62700
62701 2013-04-21  David S. Miller  <davem@davemloft.net>
62702
62703         * po/ru.po: Update Russion translation from translation project.
62704
62705 2013-04-17  Adam Conrad  <adconrad@0c3.net>
62706
62707         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
62708         and setfsgid.
62709
62710 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
62711
62712         * configure.in: Remove i386 configure warning. Remove i386 case.
62713         * configure: Regenerate.
62714         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
62715         Add example to error message.
62716         * sysdeps/i386/configure: Regenerate.
62717
62718 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
62719
62720         * benchtests/Makefile (bench): Add cos, tan, slowcos and
62721         slowtan.
62722         * benchtests/cos-inputs: New file.
62723         * benchtests/slowcos-inputs: New file.
62724         * benchtests/slowcos.c: New file.
62725         * benchtests/slowtan-inputs: New file.
62726         * benchtests/slowtan.c: New file.
62727         * benchtests/tan-inputs: New file.
62728
62729 2013-04-16  Roland McGrath  <roland@hack.frob.com>
62730
62731         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
62732         considered kosher.
62733
62734 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
62735
62736         * benchtests/Makefile: Include cppflags-iterator.mk to add
62737         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
62738
62739         * Makefile.in (bench-clean): New target.
62740         * benchtests/Makefile (bench-clean): Likewise.
62741
62742 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
62743
62744         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
62745
62746 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
62747
62748         * stdio-common/tstdiomisc.c: Fix coding-style violation.
62749
62750 2013-04-15  Andreas Schwab  <schwab@suse.de>
62751
62752         * nscd/grpcache.c (cache_addgr): Properly check for short write.
62753         * nscd/initgrcache.c (addinitgroupsX): Likewise.
62754         * nscd/pwdcache.c (cache_addpw): Likewise.
62755         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
62756         more than recsize.
62757
62758 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62759
62760         * benchtests/Makefile (bench): Write all output to
62761         bench-out.tmp together.
62762
62763 2013-04-15  Andreas Schwab  <schwab@suse.de>
62764
62765         * nscd/nscd.c (main): Don't fork again after closing files.
62766
62767 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
62768
62769         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
62770
62771         * benchtests/Rules (bench-deps): Collect dependencies into a
62772         single variable.  Add Makefile to dependencies.
62773         ($(objpfx)bench-%.c): Depend on bench-deps.
62774
62775 2013-04-12  Roland McGrath  <roland@hack.frob.com>
62776             Xavier Roche  <roche+kml2@exalead.com>
62777
62778         [BZ #15361]
62779         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
62780         just that it's a file descriptor.
62781         * manual/llio.texi (Synchronizing AIO Operations): Update description
62782         for EBADF error from aio_fsync.
62783
62784 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
62785
62786         * Rules (bench): Move target definition...
62787         * benchtests/Makefile: ... here.
62788
62789 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
62790
62791         * math/libm-test.inc (cos_test): Fix PI/2 test.
62792         (sincos_test): Likewise.
62793         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
62794         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
62795
62796 2013-04-11  Andreas Schwab  <schwab@suse.de>
62797
62798         [BZ #13988]
62799         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
62800         accept exponent character only when digits were seen.
62801         * stdio-common/Makefile (tests): Add bug26.
62802         * stdio-common/bug26.c: New file.
62803
62804         [BZ #14293]
62805         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
62806         non-freeable.
62807
62808 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
62809
62810         * Makeconfig (rtld-prefix): Define built linker prefix.
62811         * Rules (run-bench): Use it.
62812         * math/Makefile (run-regen-ulps): Likewise.
62813
62814         * Rules (bench): Remove eval.
62815
62816 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62817             Roland McGrath  <roland@hack.frob.com>
62818             Ondrej Bilka  <neleai@seznam.cz>
62819
62820         [BZ #15346]
62821         * time/getdate.c: Include ctype.h and alloca.h.
62822         (__getdate_r): Trim leading and trailing spaces of input.
62823         * time/tst-getdate.c (tests): Add tests with leading and
62824         trailing spaces.
62825
62826 2013-04-08  Roland McGrath  <roland@hack.frob.com>
62827
62828         [BZ #14280]
62829         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
62830         when computing value.
62831
62832 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62833
62834         * math/README.libm-test (How can I generate "libm-test-ulps"?):
62835         Use testrun.sh to run libm tests.
62836
62837         [BZ #15309]
62838         * elf/dl-open.c (dl_open_worker): memset all of seen array.
62839
62840 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
62841
62842         [BZ #15264]
62843         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
62844
62845 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62846
62847         * Makefile.in (regen-ulps): New target.
62848         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
62849         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
62850         [ifneq (no,$(PERL)] (regen-ulps): New target.
62851         [ifeq (no,$(PERL)] (regen-ulps): New target.
62852         * math/libm-test.inc (ulps_file_name): Define.
62853         (output_dir): New variable.
62854         (options): Add "output-dir" option.
62855         (parse_opt): Handle 'o' case.
62856         (main): If output_dir is non-NULL use it as a prefix
62857         otherwise use "".
62858         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
62859
62860 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62861
62862         [BZ #10060, #10062]
62863         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
62864         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
62865         fail configure if __sync_val_compare_and_swap is not inlined.
62866         * sysdeps/i386/configure: Regenerate.
62867         * configure.in: Build for i686 when configured for i386.
62868         * configure: Regenerate.
62869         * README: Remove i386 reference.
62870
62871 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
62872
62873         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
62874         * sysdeps/s390/s390-64/sysdep.h: Likewise.
62875
62876 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
62877
62878         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
62879         (lmsnanval): New variables.
62880         (F): Add conversion tests.
62881         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
62882         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
62883
62884         * stdio-common/tstdiomisc.c (F): Properly collect individual
62885         tests' results.
62886
62887         [BZ #14686, #15336]
62888         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
62889         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
62890         Instead, use input NaN values or generate a qNaN by arithmetic
62891         operation.  Also fix bugs to comply with the standard.
62892         * math/libm-test.inc (remainder_test): Add more tests.
62893
62894         [BZ #15335, #15342]
62895         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
62896         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
62897         input NaN values or generate a qNaN by arithmetic operation.
62898
62899         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
62900         unreachable code.
62901
62902         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
62903         definitions.
62904
62905 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
62906
62907         [BZ #14478]
62908         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
62909         underflowed result.
62910         * math/s_cexpf.c (__cexpf): Likewise.
62911         * math/s_cexpl.c (__cexpl): Likewise.
62912         * math/libm-test.inc (cexp_test): Add more tests.
62913
62914 2013-04-03  Andreas Schwab  <schwab@suse.de>
62915
62916         [BZ #15330]
62917         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
62918         order arrays from heap if bigger than alloca cutoff.
62919
62920 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
62921
62922         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
62923         (SNAN_TESTS_double): Refer to GCC PR56831.
62924         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
62925         GCC PR56828.
62926
62927 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
62928
62929         * Rules (bench): Move bench.out after the run is complete.
62930
62931         * Rules (bench): Echo currently running benchmark.
62932
62933         * benchtests/Makefile (bench): Add atan and slowatan.
62934         * benchtests/atan-inputs: New file.
62935         * benchtests/slowatan-inputs: New file.
62936         * benchtests/slowatan.c: New file.
62937
62938         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
62939         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
62940         its value.
62941
62942         [BZ #15305]
62943         * sysdeps/unix/sysv/linux/kernel-features.h
62944         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
62945         __ASSUME_XFS_RESTRICTED_CHOWN.
62946         * sysdeps/unix/sysv/linux/pathconf.c
62947         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
62948         Save and restore errno.
62949
62950 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
62951
62952         [BZ #15327]
62953         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
62954         arguments using __kernel_casinh.
62955         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
62956         arguments using __kernel_casinhf.
62957         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
62958         arguments using __kernel_casinhl.
62959         * math/libm-test.inc (cacosh_test): Add more tests.
62960         * sysdeps/i386/fpu/libm-test-ulps: Update.
62961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62962
62963 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
62964
62965         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
62966         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
62967
62968         * bench/Makefile (bench): Add sin and slowsin.
62969         * benchtests/sin-inputs: New file.
62970         * benchtests/slowsin-inputs: New file.
62971         * benchtests/slowsin.c: New file.
62972
62973         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
62974         (bench): Add slowexp and slowpow.
62975         (exp-ITER): Increase iterations.
62976         (pow-ITER): Likewise.
62977         * benchtests/exp-inputs: Change input.
62978         * benchtests/pow-inputs: Likewise.
62979         * benchtests/slowexp-inputs: New file.
62980         * benchtests/slowexp.c: New file.
62981         * benchtests/slowpow-inputs: New file.
62982         * benchtests/slowpow.c: New file.
62983
62984 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62985
62986         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
62987         instructions.
62988         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
62989         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
62990         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
62991         * benchtests/Makefile: Add rint benchtest.
62992         * benchtests/rint-inputs: Input for rint benchtest.
62993
62994 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
62995
62996         * Versions.def (libm): Add GLIBC_2.18.
62997         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
62998         hidden libm prototypes.
62999         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63000         * math/Makefile (libm-calls): Add s_issignaling.
63001         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63002         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63003         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63004         declaration.
63005         * math/math.h [__USE_GNU] (issignaling): New macro.
63006         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63007         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63008         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63009         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63010         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63011         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63012         * manual/arith.texi (issignaling): New section.
63013         * manual/libm-err-tab.pl (@all_functions): Update comment.
63014         * math/gen-libm-test.pl (parse_args): Apply special handling for
63015         issignaling.
63016         * math/libm-test.inc (print_float, issignaling_test): New
63017         functions.
63018         (check_float_internal): Add issignaling checks.
63019         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63020         default definition.
63021         * sysdeps/powerpc/math-tests.h: New file.
63022         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63023         tests.
63024         * math/test-snan.c (TEST_FUNC): Likewise.
63025
63026 2013-03-30  David S. Miller  <davem@davemloft.net>
63027
63028         * po/de.po: Update from translation team.
63029
63030 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63031
63032         [BZ #10357]
63033         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63034         imaginary part less than 1.0 and real part less than 0.5
63035         specially.
63036         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63037         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63038         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63039         (cacos_test): Add more tests.
63040         (casin_test): Likewise.
63041         (casinh_test): Likewise.
63042         * sysdeps/i386/fpu/libm-test-ulps: Update.
63043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63044
63045 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63046
63047         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63048         ONE with its value.
63049
63050         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63051         (__pow_mp): Replace ONE and MONE with their values.
63052         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63053         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63054         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63055         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63056         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63057         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63058
63059         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63060
63061         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63062         (__pow_mp): Replace ZERO and MZERO with their values.
63063         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63064         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63065         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63066         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63067         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63068         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63069         (__sqr): Likewise.
63070
63071         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63072
63073         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63074
63075 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63076
63077         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63078         Declare with __attribute__ ((weak)).
63079         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63080         Call __call_tls_dtors only if it's not NULL.
63081
63082 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63083
63084         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63085         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63086         magic __ehdr_start linker symbol if it's defined.
63087         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63088         them up here if it was already done.
63089
63090         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63091         (_dl_aux_init): Use const in cast when setting it.
63092         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63093         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63094         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63095
63096         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63097         Declare them here.
63098         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63099         * csu/libc-tls.c: Nor here.
63100         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63101
63102         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63103         (__libc_message): Never call vsyslog.
63104
63105 2013-03-28  Alan Modra  <amodra@gmail.com>
63106
63107         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63108         Define as empty.
63109         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63110         Likewise.
63111
63112 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63113
63114         [BZ #15214]
63115         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63116         underflow.
63117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63118
63119 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63120
63121         [BZ #15304]
63122         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63123         Don't add gid passed as argument.
63124
63125         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63126
63127 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63128
63129         [BZ #15307]
63130         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63131         imaginary part between 1.0 and 1.5 and real part less than 0.5
63132         specially.
63133         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63134         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63135         * math/libm-test.inc (cacos_test): Add more tests.
63136         (casin_test): Likewise.
63137         (casinh_test): Likewise.
63138         * sysdeps/i386/fpu/libm-test-ulps: Update.
63139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63140
63141 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63142
63143         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63144         constants.
63145         (norm): Likewise.
63146         (denorm): Likewise.
63147         (__dbl_mp): Likewise.
63148         (add_magnitudes): Likewise.
63149         (sub_magnitudes): Likewise.
63150         (__add): Likewise.
63151         (__sub): Likewise.
63152         (__mul): Likewise.
63153         (__sqr): Likewise.
63154         (__inv): Likewise.
63155         (__dvd): Likewise.
63156
63157         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63158         commented code.
63159         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63160         (__dubcos): Likewise.
63161         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63162         (__ieee754_acos): Likewise.
63163         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63164         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63165         (__exp1): Likewise.
63166         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63167         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63168         (log1): Likewise.
63169         (my_log2): Likewise.
63170         (checkint): Likewise.
63171         * sysdeps/ieee754/dbl-64/e_remainder.c
63172         (__ieee754_remainder): Likewise.
63173         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63174         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63175         (bsloww): Likewise.
63176         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63177
63178         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63179         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63180         MANTISSA_STORE_T to store computations on mantissa.  Use
63181         macros for rounding and division.
63182         (denorm): Likewise.
63183         (__dbl_mp): Likewise.
63184         (add_magnitudes): Likewise.
63185         (sub_magnitudes): Likewise.
63186         (__mul): Likewise.
63187         (__sqr): Likewise.
63188         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63189         powers of two in terms of TWOPOW macro.
63190         (mp_no): Make type of mantissa as MANTISSA_T.
63191         [!RADIXI]: Define RADIXI.
63192         [!TWO52]: Define TWO52.
63193         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63194
63195 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63196
63197         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63198         llroundl symbol when building for PPC32.
63199
63200 2013-03-24  Mark H Weaver  <mhw@netris.org>
63201
63202         * manual/arith.texi (Normalization Functions): Fix prototypes for
63203         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63204
63205 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63206
63207         [BZ #13889]
63208         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63209         high value to check if expl overflow.
63210         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63211         to check for underflow and overflow.
63212         * math/libm-test.inc: Add exp test.
63213
63214 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63215
63216         [BZ #11120]
63217         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63218         with NOT_IN_libc.
63219
63220 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63221
63222         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63223         symbol.
63224
63225 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63226
63227         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63228         wrap blocks consisting of several statements.
63229
63230         * sysdeps/generic/math-tests.h: New file.
63231         * sysdeps/i386/fpu/math-tests.h: Likewise.
63232         * math/test-snan.c: Include it.
63233         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63234
63235 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63236
63237         [BZ #15285]
63238         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63239         (__ieee754_j0l): Do not improve calculations using cos of twice
63240         input for inputs above LDBL_MAX / 2.0L.
63241         (__ieee754_y0l): Likewise.
63242         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63243         (__ieee754_j1l): Do not improve calculations using cos of twice
63244         input for inputs above LDBL_MAX / 2.0L.
63245         (__ieee754_y1l): Likewise.
63246         * math/libm-test.inc (j0_test): Add another test.
63247         (j1_test): Likewise.
63248         (y0_test): Likewise.
63249         (y1_test): Likewise.
63250         * sysdeps/i386/fpu/libm-test-ulps: Update.
63251
63252 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63253
63254         * Rules ($(objpfx)bench-%.c): Include code from a C source
63255         file.
63256
63257 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63258
63259         [BZ #15287]
63260         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63261         imaginary part 1.0 and real part less than 0.5 specially.
63262         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63263         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63264         * math/libm-test.inc (cacos_test): Add more tests.
63265         (casin_test): Likewise.
63266         (casinh_test): Likewise.
63267         * sysdeps/i386/fpu/libm-test-ulps: Update.
63268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63269
63270 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63271
63272         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63273         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63274
63275 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63276
63277         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63278         * config.make.in (config-cflags-sse4): Remove variable.
63279         (config-cflags-avx): Likewise.
63280         (config-cflags-sse2avx): Likewise.
63281         (config-cflags-novzeroupper): Likewise.
63282         (config-asflags-i686): Likewise.
63283         (have-mfma4): Likewise.
63284         (have-as-vis3): Likewise.
63285         (MIG): Likewise.
63286         * configure.in (MIG): Do not AC_SUBST.
63287         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63288         (libc_cv_cc_sse4): Do not AC_SUBST.
63289         (libc_cv_cc_avx): Likewise.
63290         (libc_cv_cc_sse2avx): Likewise.
63291         (libc_cv_cc_novzeroupper): Likewise.
63292         (libc_cv_cc_fma4): Likewise.
63293         (libc_cv_as_i686): Likewise.
63294         (libc_cv_sparc_as_vis3): Likewise.
63295         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63296         LIBC_CONFIG_VAR.
63297         (config-asflags-i686): Likewise.
63298         (config-cflags-avx): Likewise.
63299         (config-cflags-sse2avx): Likewise.
63300         (have-mfma4): Likewise.
63301         (config-cflags-novzeroupper): Likewise.
63302         * sysdeps/mach/configure.in (MIG): Likewise.
63303         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63304         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63305         LIBC_CONFIG_VAR.
63306         (config-cflags-avx): Likewise.
63307         (config-cflags-sse2avx): Likewise.
63308         (have-mfma4): Likewise.
63309         (config-cflags-novzeroupper): Likewise.
63310         * configure: Regenerated.
63311         * sysdeps/i386/configure: Likewise.
63312         * sysdeps/mach/configure: Likewise.
63313         * sysdeps/sparc/configure: Likewise.
63314         * sysdeps/x86_64/configure: Likewise.
63315
63316 2013-03-20  Roland McGrath  <roland@hack.frob.com>
63317
63318         [BZ #14812]
63319         * locale/programs/localedef.c (options): Put N_ translation marker
63320         on argument names, not just descriptions.
63321
63322 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
63323
63324         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
63325
63326 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
63327
63328         [BZ #14176]
63329         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
63330
63331 2013-03-19  Roland McGrath  <roland@hack.frob.com>
63332
63333         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
63334         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
63335         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
63336         [!BEFORE_ABORT] (before_abort): New function.
63337         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
63338         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
63339         (writev_for_fatal): New function.
63340         (WRITEV_FOR_FATAL): New macro; call that.
63341         (backtrace_and_maps): New function.
63342         (BEFORE_ABORT): New macro; call that.
63343         (struct str_list): Type removed.
63344         (__libc_message, __libc_fatal): Functions removed.
63345         Include <sysdeps/posix/libc_fatal.c> instead.
63346
63347 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
63348
63349         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
63350         constants.
63351         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
63352         double constants.
63353
63354 2013-03-19  Andreas Schwab  <schwab@suse.de>
63355
63356         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
63357         * sysdeps/gnu/configure: Regenerate.
63358
63359         * configure.in: Substitute libc_cv_rtlddir.
63360         * configure: Regenerate.
63361         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
63362         * Makeconfig (rtlddir, inst_rtlddir): New variables.
63363         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
63364         * elf/Makefile (install-others, CFLAGS-interp.c)
63365         (ldso_install, common-ldd-rewrite): Likewise.
63366         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
63367         $(inst_slibdir)/$(rtld-installed-name).
63368         * scripts/rellns-sh: Add -p option.
63369         * Makerules (make-shlib-link): Use rellns-sh to get relative name
63370         for source.
63371
63372 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
63373
63374         * manual/nptl.texi: Renamed to ...
63375         * manual/threads.texi: ... this.
63376         * manual/Makefile (chapters): Update.
63377
63378 2013-03-18  Roland McGrath  <roland@hack.frob.com>
63379
63380         [BZ #14812]
63381         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
63382         on argument names, not just descriptions.
63383         * malloc/memusagestat.c (options): Likewise.
63384         * nss/getent.c (options): Likewise.
63385
63386 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
63387
63388         [BZ #14812]
63389         * iconv/iconv_prog.c (options): Put N_ translation marker
63390         on argument names, not just descriptions.
63391         * iconv/iconvconfig.c (options): Likewise.
63392
63393 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
63394
63395         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
63396         implementation which is faster on all x86_64 architectures.
63397         Tested on AMD, Intel Nehalem, SNB, IVB.
63398         * sysdeps/x86_64/strnlen.S: Likewise.
63399
63400         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
63401         Remove all multiarch strlen and strnlen versions.
63402         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
63403         Remove strlen and strnlen related parts.
63404
63405         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
63406         Inline strlen part.
63407         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
63408
63409         * sysdeps/x86_64/multiarch/strlen.S: Remove.
63410         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
63411         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
63412         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
63413         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63414         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
63415
63416 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
63417
63418         * manual/memory.texi (Malloc Tunable Parameters):
63419         Sort parameters alphabetically. Add comments for missing entries.
63420
63421 2013-03-17  David S. Miller  <davem@davemloft.net>
63422
63423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63424
63425 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
63426
63427         [BZ #15283]
63428         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
63429         for arguments at most half maximum finite value.
63430         * math/libm-test.inc (j0_test): Add more tests.
63431         (j1_test): Likewise.
63432         (y0_test): Likewise.
63433         (y1_test): Likewise.
63434         * sysdeps/i386/fpu/libm-test-ulps: Update.
63435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63436
63437         [BZ #14155]
63438         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
63439         1 / x and functions P and Q for arguments above 0x1p256L.
63440         (__ieee754_y0l): Likewise.
63441         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
63442         (__ieee754_y1l): Likewise.
63443         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
63444         (j1_test): Likewise.
63445         (y0_test): Likewise.
63446         (y1_test): Likewise.
63447
63448 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
63449
63450         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
63451         variable.
63452
63453 2013-03-15  Roland McGrath  <roland@hack.frob.com>
63454
63455         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
63456         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
63457         zero since it's initialized to EXEC_PAGESIZE.
63458
63459         * sysdeps/unix/sysv/linux/ldsodefs.h
63460         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
63461         * sysdeps/generic/ldsodefs.h: ... here.
63462
63463 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
63464
63465         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
63466
63467         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
63468         math/test-snan.c.
63469         * math/test-snan.c: Renamed from
63470         sysdeps/powerpc/fpu/test-powerpc-snan.c.
63471         * math/Makefile (tests): Add test-snan.
63472         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
63473         test-powerpc-snan.
63474
63475         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
63476         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
63477         functions.
63478         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
63479         __builtin_nan family of functions.
63480         * math/libm-test.inc (initialize): Initialize qnan_value with
63481         __builtin_nan family of functions.
63482         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
63483         Remove variables.
63484         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
63485         Remove functions.
63486         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
63487         storage class.  Initialize qNaN_var and sNaN_var with
63488         __builtin_nan and __builtin_nans families of functions,
63489         respectively.
63490
63491         * math/libm-test.inc (acosh_test): Also test with qNaN input.
63492         (sqrt_test): Remove duplicate test with qNaN input.
63493         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
63494         (round_test, signbit_test, significand_test): Note missing +/-Inf
63495         as well as qNaN tests.
63496
63497         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
63498         qNaN_var.  Fix a few strings, too.
63499         * math/libm-test.inc (nan_value): Rename to qnan_value.
63500         * math/gen-libm-test.pl (%beautify): Adjust to that.
63501         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
63502         * math/test-misc.c (main): Likewise.
63503         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
63504         to __qnan_bytes, and __qnan_union, respectively.
63505         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
63506         Likewise.
63507         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
63508         and lqnanval, respectively.
63509         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
63510         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
63511         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
63512         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
63513
63514         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
63515         * math/test-misc.c (main) [__x86_64__]: Enable test for long
63516         doubles.
63517
63518         * math/test-misc.c (main): Fix copy'n'pastos.
63519         * misc/tst-efgcvt.c (special): Likewise.
63520
63521         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
63522         Remove declarations.
63523
63524 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63525
63526         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
63527         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
63528         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
63529         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
63530
63531 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63532
63533         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
63534         macro to return vdso values correctly in IFUNC implementations.
63535         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
63536         Optimization by using IFUNC.
63537
63538 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63539             Richard Henderson  <rth@redhat.com>
63540             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63541
63542         * Makefile.in (bench): New target.
63543         * NEWS: Mention the benchmark framework.
63544         * Rules (bench): Likewise.
63545         (binaries-bench): Generate binaries for functions to
63546         benchmark.
63547         * benchtests/Makefile: New makefile for benchmark tests.
63548         * benchtests/bench-skeleton.c: New skeleton file for benchmark
63549         programs.
63550         * benchtests/exp-inputs: New input file for EXP function.
63551         * benchtests/pow-inputs: New input file for POW function.
63552         * scripts/bench.pl: New script to generate source files for
63553         benchmark programs.
63554
63555 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63556
63557         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63558         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
63559         computations on mantissa.  Use macros for rounding and
63560         division.
63561         (denorm): Likewise.
63562         (__dbl_mp): Likewise.
63563         (add_magnitudes): Likewise.
63564         (sub_magnitudes): Likewise.
63565         (__mul): Likewise.
63566         (__sqr): Likewise.
63567         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63568         powers of two in terms of TWOPOW macro.
63569         (mp_no): Make type of mantissa as MANTISSA_T.
63570         [!RADIXI]: Define RADIXI.
63571         [!TWO52]: Define TWO52.
63572         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63573
63574         * manual/nptl.texi (cindex): Modify threads to pthreads.
63575
63576 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
63577
63578         * sysdeps/x86_64/preconfigure: Regenerated.
63579
63580 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
63581
63582         [BZ #14155]
63583         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
63584         0x1p28 and above.
63585         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
63586         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
63587         0x1p28 and above.
63588         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
63589         * math/libm-test.inc (j0_test): Do not allow one spurious
63590         underflow exception.
63591         (y1_test): Likewise.
63592
63593 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
63594
63595         * manual/Makefile (chapters): Add nptl.
63596         * manual/debug.texi (Debugging Support): Add link to Threads
63597         chapter.
63598         * manual/nptl.texi: New file.
63599
63600         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
63601
63602 2013-03-14  Petr Baudis  <pasky@ucw.cz>
63603
63604         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
63605         for non-NULL pointer before the memory validity test. Pointed
63606         out by Holger Brunck <holger.brunck@keymile.com>.
63607
63608 2013-03-13  Andreas Schwab  <schwab@suse.de>
63609
63610         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
63611         instead of .os.
63612
63613 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
63614
63615         * timezone/zic.c: Update from tzcode 2013b.
63616
63617 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
63618
63619         * manual/install.texi (Configuring and compiling):
63620         Mention i686 and i586.
63621         * INSTALL: Regenerate.
63622
63623 2013-03-12  Roland McGrath  <roland@hack.frob.com>
63624
63625         * sysdeps/init_array/elf-init.c: New file.
63626         * csu/elf-init.c
63627         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
63628         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
63629
63630         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
63631         __gmon_start__ as global, but as static with a .preinit_array pointer.
63632         * sysdeps/init_array/gmon-start.c: New file.  Use that.
63633         * sysdeps/init_array/crti.S: New file, empty except for comments.
63634         * sysdeps/init_array/crtn.S: Likewise.
63635
63636 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
63637
63638         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
63639         definining bcopy.
63640         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63641         Remove Prefer_SSE_for_memop.
63642         * sysdeps/x86_64/multiarch/init-arch.h: Remove
63643         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
63644         HAS_PREFER_SSE_FOR_MEMOP.
63645         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
63646         memset-x86-64.
63647         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
63648         Remove bzero, memset ifunc support.
63649         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
63650         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
63651         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63652         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63653
63654 2013-03-11  Andreas Schwab  <schwab@suse.de>
63655
63656         [BZ #15234]
63657         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
63658         by SHLIB_COMPAT.
63659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
63660         (GLIBC_2.16): Remove pthread_atfork.
63661
63662 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
63663
63664         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
63665         (ptestcases.h): Likewise.
63666
63667 2013-03-08  Roland McGrath  <roland@hack.frob.com>
63668
63669         * Makeconfig ($(common-objpfx)config.status): Depend on
63670         sysdeps/*/preconfigure{,.in} too.
63671
63672 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
63673
63674         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
63675         (__free_hook): Use void * instead of __malloc_ptr_t.
63676         (__malloc_hook): Likewise.
63677         (__realloc_hook): Likewise.
63678         (__memalign_hook): Likewise.
63679         (__after_morecore_hook): Likewise.
63680         * malloc/arena.c (save_malloc_hook): Likewise.
63681         (save_free_hook): Likewise.
63682         * malloc/hooks.c (malloc_hook_ini): Likewise.
63683         (realloc_hook_ini): Likewise.
63684         (memalign_hook_ini): Likewise.
63685         * malloc/malloc.c (malloc_hook_ini): Likewise.
63686         (realloc_hook_ini): Likewise.
63687         (memalign_hook_ini): Likewise.
63688         (__free_hook): Likewise.
63689         (__malloc_hook): Likewise.
63690         (__realloc_hook): Likewise.
63691         (__memalign_hook): Likewise.
63692         (__libc_malloc): Likewise.
63693         (__libc_free): Likewise.
63694         (__libc_realloc): Likewise.
63695         (__libc_memalign): Likewise.
63696         (__libc_valloc): Likewise.
63697         (__libc_pvalloc): Likewise.
63698         (__libc_calloc): Likewise.
63699         (__posix_memalign): Likewise.
63700         * malloc/morecore.c (__sbrk): Likewise.
63701         (__default_morecore): Likewise.
63702
63703         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
63704
63705         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
63706         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
63707         __malloc_ptrdiff_t.
63708
63709         * malloc/malloc.h (__malloc_size_t): Remove macro.
63710         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
63711         __malloc_size_t.
63712         (old_memalign_hook): Likewise.
63713         (old_realloc_hook): Likewise.
63714         (struct hdr): Likewise.
63715         (flood): Likewise.
63716         (mallochook): Likewise.
63717         (memalignhook): Likewise.
63718         (reallochook): Likewise.
63719         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
63720         (tr_old_realloc_hook): Likewise.
63721         (tr_old_memalign_hook): Likewise.
63722         (tr_mallochook): Likewise.
63723         (tr_reallochook): Likewise.
63724         (tr_memalignhook): Likewise.
63725
63726 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63727
63728         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
63729         default_ldbl_pack and using as default implementation.
63730         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
63731         implementation.
63732         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
63733         redundant definition.
63734         (ldbl_insert_mantissa): Likewise.
63735         (ldbl_canonicalize): Likewise.
63736         (ldbl_nearbyint): Likewise.
63737         (ldbl_pack): Rename to ldbl_pack_ppc.
63738         (ldbl_unpack): Rename to ldbl_unpack_ppc.
63739         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
63740         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
63741
63742 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
63743
63744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
63745         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
63746         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
63747         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
63748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
63749         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
63750         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
63751         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
63752
63753 2013-03-07  Andreas Jaeger  <aj@suse.de>
63754
63755         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
63756         bits/mman-linux.h.
63757
63758 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
63759
63760         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
63761         Include mpa.h and declare __MPEXP.
63762         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
63763         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63764         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63765         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
63766         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63767         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
63768         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
63769
63770         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
63771         (__slowpow): Use long double EXPL and LOGL functions to
63772         compute POW.
63773         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
63774         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63775         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
63776         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
63777         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
63778         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
63779
63780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
63781         intermediate variable to calculate exponent.
63782         (__sqr): Likewise.
63783         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
63784         Likewise.
63785         (__sqr): Likewise.
63786
63787         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
63788         [!NO__SQR]: Define __sqr.
63789         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
63790         and NO__SQR.  Remove all code except __mul and __sqr.  Include
63791         sysdeps/ieee754/dbl-64/mpa.c.
63792         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
63793
63794         [BZ #12723]
63795         * posix/Makefile (tests): Add tst-pathconf.
63796         * posix/tst-pathconf.c: New test case.
63797         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
63798         _PC_PIPE_BUF.
63799         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
63800
63801 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
63802
63803         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
63804
63805 2013-03-06  Andreas Jaeger  <aj@suse.de>
63806
63807         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
63808         definition via __MAP_ANONYMOUS.
63809
63810         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
63811         it's not part of Linux headers.
63812
63813         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
63814         (MAP_HUGE_MASK): Define.
63815
63816         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63817         Define.
63818         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63819         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63820         Define.
63821         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63822         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
63823         Define.
63824         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63825         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
63826         Define.
63827         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
63828
63829         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
63830         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
63831         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
63832         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
63833         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
63834         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
63835
63836         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
63837         Handle f2fs.
63838
63839         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
63840         Handle f2fs and efivarfs.
63841
63842         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
63843         f2fs.
63844
63845         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
63846         (EFIVARFS_MAGIC): Add.
63847         (F2FS_LINK_MAX): Add.
63848
63849 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
63850
63851         * stdio-common/vfprintf.c: Replace __builtin_expect with
63852         __glibc_unlikely.
63853
63854 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
63855
63856         [BZ #13550]
63857         * sysdeps/generic/bp-sym.h: Remove file.
63858         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
63859         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
63860         <bp-sym.h> and <bp-asm.h>.
63861         (__longjmp): Don't use BP_SYM.
63862         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
63863         and <bp-asm.h>.
63864         (memcpy): Don't use BP_SYM.
63865         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
63866         <bp-sym.h> and <bp-asm.h>.
63867         (memcpy): Don't use BP_SYM.
63868         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
63869         <bp-asm.h>.
63870         (memcpy): Don't use BP_SYM.
63871         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
63872         <bp-asm.h>.
63873         (memset): Don't use BP_SYM.
63874         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63875         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63876         (__bzero): Don't use BP_SYM.
63877         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63878         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63879         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
63880         <bp-sym.h> and <bp-asm.h>.
63881         (memcmp): Don't use BP_SYM.  Remove comment about bounded
63882         pointers.
63883         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
63884         <bp-sym.h> and <bp-asm.h>.
63885         (memcpy): Don't use BP_SYM.
63886         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
63887         <bp-sym.h> and <bp-asm.h>.
63888         (memset): Don't use BP_SYM.
63889         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63890         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63891         (__bzero): Don't use BP_SYM.
63892         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63893         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63894         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
63895         <bp-sym.h> and <bp-asm.h>.
63896         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63897         pointers.
63898         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
63899         <bp-sym.h> and <bp-asm.h>.
63900         (memcpy): Don't use BP_SYM.
63901         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
63902         <bp-sym.h> and <bp-asm.h>.
63903         (memset): Don't use BP_SYM.
63904         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
63905         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
63906         (__bzero): Don't use BP_SYM.
63907         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
63908         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
63909         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
63910         <bp-sym.h> and <bp-asm.h>.
63911         (__memchr): Don't use BP_SYM.
63912         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
63913         <bp-sym.h> and <bp-asm.h>.
63914         (memcmp): Don't use BP_SYM.  Remove comment about bounded
63915         pointers.
63916         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
63917         <bp-sym.h> and <bp-asm.h>.
63918         (memcpy): Don't use BP_SYM.
63919         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
63920         <bp-sym.h> and <bp-asm.h>.
63921         (__mempcpy): Don't use BP_SYM.
63922         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
63923         <bp-sym.h> and <bp-asm.h>.
63924         (__memrchr): Don't use BP_SYM.
63925         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
63926         <bp-sym.h> and <bp-asm.h>.
63927         (memset): Don't use BP_SYM.
63928         (__bzero): Likewise.
63929         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
63930         <bp-sym.h> and <bp-asm.h>.
63931         (__rawmemchr): Don't use BP_SYM.
63932         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
63933         <bp-sym.h> and <bp-asm.h>.
63934         (__STRCMP): Don't use BP_SYM.
63935         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
63936         <bp-sym.h> and <bp-asm.h>.
63937         (strchr): Don't use BP_SYM.
63938         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
63939         <bp-sym.h> and <bp-asm.h>.
63940         (__strchrnul): Don't use BP_SYM.
63941         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
63942         <bp-sym.h> and <bp-asm.h>.
63943         (strlen): Don't use BP_SYM.
63944         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
63945         <bp-sym.h> and <bp-asm.h>.
63946         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63947         pointers.
63948         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
63949         <bp-sym.h> and <bp-asm.h>.
63950         (__strnlen): Don't use BP_SYM.
63951         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
63952         <bp-sym.h> and <bp-asm.h>.
63953         (__GI__setjmp): Don't use BP_SYM.
63954         (_setjmp): Likewise.
63955         (__sigsetjmp): Likewise.
63956         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
63957         (L(start_addresses)): Don't use BP_SYM.
63958         (_start): Likewise.
63959         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
63960         <bp-asm.h>.
63961         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
63962         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
63963         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63964         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63965         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
63966         <bp-asm.h>.
63967         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
63968         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
63969         about bounded pointers.
63970         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
63971         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
63972         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
63973         <bp-asm.h>.
63974         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
63975         about bounded pointers.  Remove GKM FIXME comments.
63976         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
63977         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
63978         <bp-asm.h>.
63979         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
63980         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
63981         Remove GKM FIXME comments.
63982         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
63983         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
63984         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
63985         <bp-asm.h>.
63986         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
63987         about bounded pointers.  Remove GKM FIXME comment.
63988         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
63989         and <bp-asm.h>.
63990         (strncmp): Don't use BP_SYM.  Remove comment about bounded
63991         pointers.
63992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
63993         <bp-sym.h> and <bp-asm.h>.
63994         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
63995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
63996         <bp-sym.h> and <bp-asm.h>.
63997         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
63998         comment.
63999
64000 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64001
64002         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64003         call free(NULL).
64004
64005 2013-03-05  David S. Miller  <davem@davemloft.net>
64006
64007         * po/es.po: Update from translation team.
64008
64009 2013-03-05  Andreas Jaeger  <aj@suse.de>
64010
64011         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64012         <bits/mman-linux.h>.
64013         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64014         is fine.
64015         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64016         <bits/mman-linux.h> to end of file.
64017         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64018         is fine.
64019         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64020         <bits/mman-linux.h> to end of file.
64021         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64022         is fine.
64023         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64024         <bits/mman-linux.h> to end of file.
64025
64026         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64027         (MCL_CURRENT, MCL_FUTURE): Define here.
64028
64029 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64030
64031         [BZ #15232]
64032         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64033         attribute_hidden.
64034         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64035
64036 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64037
64038         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64039         fourth parameter needed for rt_sigprocmask syscall.
64040         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64041         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64042         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64043         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64044         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64045         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64046
64047 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64048
64049         [BZ #13550]
64050         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64051         comment about bounded pointers.
64052         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64053         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64054
64055 2013-03-04  Andreas Jaeger  <aj@suse.de>
64056
64057         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64058         common definitions.
64059
64060         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64061         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64062         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64063         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64064         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64065         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64066
64067 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64068
64069         [BZ #15055]
64070         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64071         __ieee754_sqrl instead of __sqrl.
64072
64073 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64074
64075         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64076         * sysdeps/powerpc/fpu_control.h: ... here.
64077         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64078         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64079         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64080         * sysdeps/powerpc/bits/mathinline.h: ... here.
64081
64082 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64083
64084         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64085         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64086         to just [NEED_DL_SYSINFO_DSO].
64087         * elf/dl-support.c: Likewise.
64088         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64089         * elf/rtld.c (dl_main): Likewise.
64090         * elf/setup-vdso.h (setup_vdso): Likewise.
64091         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64092         * sysdeps/unix/sysv/linux/dl-sysdep.c
64093         (_dl_discover_osversion): Likewise.
64094
64095 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64096
64097         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64098         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64099
64100 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64101
64102         * NEWS: Mention libm performance improvements and non-x86 PI
64103         futex support.
64104
64105         * csu/libc-start.c (__pthread_initialize_minimal): Change
64106         function arguments.
64107         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64108
64109 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64110
64111         [BZ #13550]
64112         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64113         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64114         <bp-sym.h> and <bp-asm.h>.
64115         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64116         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64117         and <bp-asm.h>.
64118         (memcpy): Don't use BP_SYM.
64119         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64120         <bp-asm.h>.
64121         (__mpn_add_n): Don't use BP_SYM.
64122         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64123         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64124         and <bp-asm.h>.
64125         (__mpn_addmul_1): Don't use BP_SYM.
64126         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64127         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64128         <bp-sym.h>.
64129         (_setjmp): Don't use BP_SYM.
64130         (__novmx_setjmp): Likewise.
64131         (__GI__setjmp): Likewise.
64132         (__vmx_setjmp): Likewise.
64133         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64134         <bp-sym.h>.
64135         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64136         (__bzero): Don't use BP_SYM.
64137         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64138         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64139         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64140         <bp-sym.h> and <bp-asm.h>.
64141         (memcpy): Don't use BP_SYM.
64142         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64143         <bp-sym.h> and <bp-asm.h>.
64144         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64145         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64146         <bp-sym.h> and <bp-asm.h>.
64147         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64148         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64149         <bp-asm.h>.
64150         (__mpn_lshift): Don't use BP_SYM.
64151         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64152         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64153         <bp-asm.h>.
64154         (memset): Don't use BP_SYM.
64155         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64156         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64157         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64158         <bp-asm.h>.
64159         (__mpn_mul_1): Don't use BP_SYM.
64160         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64161         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64162         <bp-sym.h> and <bp-asm.h>.
64163         (memcmp): Don't use BP_SYM.
64164         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64165         <bp-sym.h> and <bp-asm.h>.
64166         (memcpy): Don't use BP_SYM.
64167         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64168         <bp-sym.h> and <bp-asm.h>.
64169         (memset): Don't use BP_SYM.
64170         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64171         <bp-sym.h> and <bp-asm.h>.
64172         (strncmp): Don't use BP_SYM.
64173         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64174         <bp-sym.h> and <bp-asm.h>.
64175         (memcpy): Don't use BP_SYM.
64176         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64177         <bp-sym.h> and <bp-asm.h>.
64178         (memset): Don't use BP_SYM.
64179         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64180         <bp-sym.h> and <bp-asm.h>.
64181         (__memchr): Don't use BP_SYM.
64182         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64183         <bp-sym.h> and <bp-asm.h>.
64184         (memcmp): Don't use BP_SYM.
64185         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64186         <bp-sym.h> and <bp-asm.h>.
64187         (memcpy): Don't use BP_SYM.
64188         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64189         <bp-sym.h> and <bp-asm.h>.
64190         (__mempcpy): Don't use BP_SYM.
64191         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64192         <bp-sym.h> and <bp-asm.h>.
64193         (__memrchr): Don't use BP_SYM.
64194         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64195         <bp-sym.h> and <bp-asm.h>.
64196         (memset): Don't use BP_SYM.
64197         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64198         <bp-sym.h> and <bp-asm.h>.
64199         (__rawmemchr): Don't use BP_SYM.
64200         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64201         <bp-sym.h> and <bp-asm.h>.
64202         (__STRCMP): Don't use BP_SYM.
64203         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64204         <bp-sym.h> and <bp-asm.h>.
64205         (strchr): Don't use BP_SYM.
64206         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64207         <bp-sym.h> and <bp-asm.h>.
64208         (__strchrnul): Don't use BP_SYM.
64209         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64210         <bp-sym.h> and <bp-asm.h>.
64211         (strlen): Don't use BP_SYM.
64212         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64213         <bp-sym.h> and <bp-asm.h>.
64214         (strncmp): Don't use BP_SYM.
64215         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64216         <bp-sym.h> and <bp-asm.h>.
64217         (__strnlen): Don't use BP_SYM.
64218         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64219         <bp-asm.h>.
64220         (__mpn_rshift): Don't use BP_SYM.
64221         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64222         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64223         <bp-sym.h> and <bp-asm.h>.
64224         (__sigsetjmp): Don't use BP_SYM.
64225         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64226         (L(start_addresses)): Don't use BP_SYM.
64227         (_start): Likewise.
64228         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64229         <bp-asm.h>.
64230         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64231         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64232         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64233         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64234         <bp-asm.h>.
64235         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64236         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64237         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64238         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64239         <bp-asm.h>.
64240         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64241         comments.
64242         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64243         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64244         <bp-asm.h>.
64245         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64246         FIXME comments.
64247         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64248         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64249         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64250         <bp-asm.h>.
64251         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64252         comment.
64253         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64254         and <bp-asm.h>.
64255         (strncmp): Don't use BP_SYM,
64256         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64257         <bp-asm.h>.
64258         (__mpn_sub_n): Don't use BP_SYM.
64259         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64260         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64261         and <bp-asm.h>.
64262         (__mpn_submul_1): Don't use BP_SYM.
64263         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64265         <bp-sym.h> and <bp-asm.h>.
64266         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64268         <bp-sym.h> and <bp-asm.h>.
64269         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64270         comment.
64271
64272 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64273
64274         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64275         Use ZK to minimize writes to Z.
64276         (sub_magnitudes): Simplify code a bit.
64277         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64278         Use ZK to minimize writes to Z.
64279         (sub_magnitudes): Simplify code a bit.
64280
64281 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64282
64283         * csu/gmon-start.c: Add special exception to license text.
64284
64285 2013-02-27  Richard Henderson  <rth@redhat.com>
64286
64287         * scripts/config.guess: Update from config.git.
64288         * scripts/config.sub: Likewise.
64289
64290 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64291
64292         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64293
64294         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64295
64296         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64297
64298         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64299
64300         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64301
64302 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64303
64304         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64305         [$(build-shared = yes].
64306
64307 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64308
64309         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
64310         (__mul): Reduce iterations for calculating mantissa.
64311
64312         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
64313         MPTWO.
64314         (__mpranred): Likewise.
64315
64316         [BZ #15160]
64317         * malloc/memusagestat.c (main): Draw graphs for heap and stack
64318         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
64319
64320 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
64323         Define __attribute__.
64324
64325 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64326
64327         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
64328         unused.
64329         * posix/regex_internal.h (__attribute): Remove.
64330         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
64331         (re_string_context_at): Likewise.
64332         (bitset_not): Use __attribute__ and mark function as possibly
64333         unused.
64334         (bitset_merge): Likewise.
64335         (bitset_mask): Likewise.
64336         (re_string_char_size_at): Likewise.
64337         (re_string_wchar_at): Likewise.
64338         (re_string_elem_size_at): Likewise.
64339
64340 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64341
64342         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
64343         code.
64344         (cc32): Likewise.
64345
64346         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
64347         (__acr): Likewise.
64348         (__cpy): Likewise.
64349         (norm): Likewise.
64350         (denorm): Likewise.
64351         (__dbl_mp): Likewise.
64352         (add_magnitudes): Likewise.
64353         (sub_magnitudes): Likewise.
64354         (__mul): Likewise.
64355         (__inv): Likewise.
64356
64357         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
64358         style.
64359
64360         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64361         style.
64362
64363         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
64364         code.
64365
64366         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
64367         up changes with default code.
64368         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
64369         Likewise.
64370
64371 2013-02-24  Allan McRae  <allan@archlinux.org>
64372
64373         * manual/socket.texi (The Internet Namespace): Order menu items
64374         to match that in the file.
64375
64376         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
64377         node listing of the info page menu.
64378
64379 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
64380
64381         [BZ #13550]
64382         * sysdeps/i386/bp-asm.h: Remove file.
64383         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64384         (PARMS): Do not use macros from bp-asm.h.
64385         (S1): Likewise.
64386         (S2): Likewise.
64387         (SIZE): Likewise.
64388         (__mpn_add_n): Do not use BP_SYM
64389         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
64390         "bp-asm.h".
64391         (PARMS): Do not use macros from bp-asm.h.
64392         (S1): Likewise.
64393         (SIZE): Likewise.
64394         (__mpn_addmul_1): Do not use BP_SYM
64395         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
64396         "bp-asm.h".
64397         (PARMS): Do not use macros from bp-asm.h.
64398         (SIGMSK): Likewise.
64399         (_setjmp): Likewise.  Do not use BP_SYM.
64400         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
64401         "bp-asm.h".
64402         (PARMS): Do not use macros from bp-asm.h.
64403         (SIGMSK): Likewise.
64404         (setjmp): Likewise.  Do not use BP_SYM.
64405         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
64406         "bp-asm.h".
64407         (PARMS): Do not use macros from bp-asm.h.
64408         (__frexp): Do not use BP_SYM.
64409         (frexp): Likewise.
64410         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
64411         "bp-asm.h".
64412         (PARMS): Do not use macros from bp-asm.h.
64413         (__frexpf): Do not use BP_SYM.
64414         (frexpf): Likewise.
64415         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
64416         "bp-asm.h".
64417         (PARMS): Do not use macros from bp-asm.h.
64418         (__frexpl): Do not use BP_SYM.
64419         (frexpl): Likewise.
64420         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
64421         "bp-asm.h".
64422         (PARMS): Do not use macros from bp-asm.h.
64423         (__remquo): Do not use BP_SYM.
64424         (remquo): Likewise.
64425         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
64426         "bp-asm.h".
64427         (PARMS): Do not use macros from bp-asm.h.
64428         (__remquof): Do not use BP_SYM.
64429         (remquof): Likewise.
64430         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
64431         "bp-asm.h".
64432         (PARMS): Do not use macros from bp-asm.h.
64433         (__remquol): Do not use BP_SYM.
64434         (remquol): Likewise.
64435         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
64436         "bp-asm.h".
64437         (PARMS): Do not use macros from bp-asm.h.
64438         (DEST): Likewise.
64439         (SRC): Likewise.
64440         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
64441         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
64442         "bp-asm.h".
64443         (PARMS): Do not use macros from bp-asm.h.
64444         (strlen): Do not use BP_SYM.
64445         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
64446         "bp-asm.h".
64447         (PARMS): Do not use macros from bp-asm.h.
64448         (S1): Likewise.
64449         (S2): Likewise.
64450         (SIZE): Likewise.
64451         (__mpn_add_n): Do not use BP_SYM.
64452         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
64453         "bp-asm.h".
64454         (PARMS): Do not use macros from bp-asm.h.
64455         (S1): Likewise.
64456         (SIZE): Likewise.
64457         (__mpn_addmul_1): Do not use BP_SYM.
64458         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
64459         weak_alias.
64460         (bzero): Likewise.
64461         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
64462         "bp-asm.h".
64463         (PARMS): Do not use macros from bp-asm.h.
64464         (S): Likewise.
64465         (SIZE): Likewise.
64466         (__mpn_lshift): Do not use BP_SYM.
64467         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
64468         "bp-asm.h".
64469         (PARMS): Do not use macros from bp-asm.h.
64470         (DEST): Likewise.
64471         (SRC): Likewise.
64472         (LEN): Likewise.
64473         (memcpy): Likewise.  Do not use BP_SYM.
64474         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
64475         libc_hidden_def and weak_alias.
64476         (mempcpy): Do not use BP_SYM in weak_alias.
64477         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
64478         "bp-asm.h".
64479         (PARMS): Do not use macros from bp-asm.h.
64480         (DEST): Likewise.
64481         (LEN): Likewise.
64482         [!BZERO_P] (CHR): Likewise.
64483         (memset): Likewise.  Do not use BP_SYM.
64484         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
64485         "bp-asm.h".
64486         (PARMS): Do not use macros from bp-asm.h.
64487         (S1): Likewise.
64488         (SIZE): Likewise.
64489         (__mpn_mul_1): Do not use BP_SYM.
64490         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
64491         "bp-asm.h".
64492         (PARMS): Do not use macros from bp-asm.h.
64493         (S): Likewise.
64494         (SIZE): Likewise.
64495         (__mpn_rshift): Do not use BP_SYM.
64496         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
64497         "bp-asm.h".
64498         (PARMS): Do not use macros from bp-asm.h.
64499         (STR): Likewise.
64500         (CHR): Likewise.
64501         (strchr): Likewise.  Do not use BP_SYM.
64502         (index): Do not use BP_SYM in weak_alias.
64503         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
64504         "bp-asm.h".
64505         (PARMS): Do not use macros from bp-asm.h.
64506         (DEST): Likewise.
64507         (SRC): Likewise.
64508         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
64509         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
64510         "bp-asm.h".
64511         (PARMS): Do not use macros from bp-asm.h.
64512         (strlen): Do not use BP_SYM.
64513         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
64514         "bp-asm.h".
64515         (PARMS): Do not use macros from bp-asm.h.
64516         (S1): Likewise.
64517         (S2): Likewise.
64518         (SIZE): Likewise.
64519         (__mpn_sub_n): Do not use BP_SYM.
64520         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
64521         "bp-asm.h".
64522         (PARMS): Do not use macros from bp-asm.h.
64523         (S1): Likewise.
64524         (SIZE): Likewise.
64525         (__mpn_submul_1): Do not use BP_SYM.
64526         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
64527         "bp-asm.h".
64528         (PARMS): Do not use macros from bp-asm.h.
64529         (S1): Likewise.
64530         (S2): Likewise.
64531         (SIZE): Likewise.
64532         (__mpn_add_n): Do not use BP_SYM.
64533         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
64534         weak_alias.
64535         (bzero): Likewise.
64536         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
64537         "bp-asm.h".
64538         (PARMS): Do not use macros from bp-asm.h.
64539         (BLK2): Likewise.
64540         (LEN): Likewise.
64541         (memcmp): Do not use BP_SYM.
64542         (bcmp): Do not use BP_SYM in weak_alias.
64543         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
64544         "bp-asm.h".
64545         (PARMS): Do not use macros from bp-asm.h.
64546         (DEST): Likewise.
64547         (SRC): Likewise.
64548         (LEN): Likewise.
64549         (memcpy): Likewise.  Do not use BP_SYM.
64550         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
64551         "bp-asm.h".
64552         (PARMS): Do not use macros from bp-asm.h.
64553         (DEST): Likewise.
64554         (SRC): Likewise.
64555         (LEN): Likewise.
64556         (memmove): Likewise.  Do not use BP_SYM.
64557         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
64558         "bp-asm.h".
64559         (PARMS): Do not use macros from bp-asm.h.
64560         (DEST): Likewise.
64561         (SRC): Likewise.
64562         (LEN): Likewise.
64563         (__mempcpy): Likewise.  Do not use BP_SYM.
64564         (mempcpy): Do not use BP_SYM in weak_alias.
64565         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
64566         "bp-asm.h".
64567         (PARMS): Do not use macros from bp-asm.h.
64568         (DEST): Likewise.
64569         (LEN): Likewise.
64570         [!BZERO_P] (CHR): Likewise.
64571         (memset): Likewise.  Do not use BP_SYM.
64572         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
64573         "bp-asm.h".
64574         (PARMS): Do not use macros from bp-asm.h.
64575         (STR2): Likewise.
64576         (strcmp): Do not use BP_SYM.
64577         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
64578         "bp-asm.h".
64579         (PARMS): Do not use macros from bp-asm.h.
64580         (STR): Likewise.
64581         (DELIM): Likewise.
64582         [USE_AS_STRTOK_R] (SAVE): Likewise.
64583         (FUNCTION): Likewise.  Do not use BP_SYM.
64584         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
64585         aliases.
64586         (strtok_r): Likewise.
64587         (__GI___strtok_r): Likewise.
64588         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64589         (PARMS): Do not use macros from bp-asm.h.
64590         (S): Likewise.
64591         (SIZE): Likewise.
64592         (__mpn_lshift): Do not use BP_SYM.
64593         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64594         (PARMS): Do not use macros from bp-asm.h.
64595         (STR): Likewise.
64596         (CHR): Likewise.
64597         (__memchr): Do not use BP_SYM.
64598         (memchr): Do not use BP_SYM in weak_alias.
64599         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64600         (PARMS): Do not use macros from bp-asm.h.
64601         (BLK2): Likewise.
64602         (LEN): Likewise.
64603         (memcmp): Do not use BP_SYM.
64604         (bcmp): Do not use BP_SYM in weak_alias.
64605         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
64606         (PARMS): Do not use macros from bp-asm.h.
64607         (S1): Likewise.
64608         (SIZE): Likewise.
64609         (__mpn_mul_1): Do not use BP_SYM.
64610         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
64611         "bp-asm.h".
64612         (PARMS): Do not use macros from bp-asm.h.
64613         (STR): Likewise.
64614         (CHR): Likewise.
64615         (__rawmemchr): Do not use BP_SYM.
64616         (rawmemchr): Do not use BP_SYM in weak_alias.
64617         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
64618         (PARMS): Do not use macros from bp-asm.h.
64619         (S): Likewise.
64620         (SIZE): Likewise.
64621         (__mpn_rshift): Do not use BP_SYM.
64622         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
64623         (PARMS): Do not use macros from bp-asm.h.
64624         (SIGMSK): Likewise.
64625         (__sigsetjmp): Likewise.  Do not use BP_SYM.
64626         * sysdeps/i386/start.S: Do not include "bp-sym.h".
64627         (_start): Do not use BP_SYM.
64628         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
64629         (PARMS): Do not use macros from bp-asm.h.
64630         (DEST): Likewise.
64631         (SRC): Likewise.
64632         (__stpcpy): Likewise.  Do not use BP_SYM.
64633         (stpcpy): Do not use BP_SYM in weak_alias.
64634         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
64635         "bp-asm.h".
64636         (PARMS): Do not use macros from bp-asm.h.
64637         (DEST): Likewise.
64638         (SRC): Likewise.
64639         (LEN): Likewise.
64640         (__stpncpy): Likewise.  Do not use BP_SYM.
64641         (stpncpy): Do not use BP_SYM in weak_alias.
64642         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
64643         (PARMS): Do not use macros from bp-asm.h.
64644         (STR): Likewise.
64645         (CHR): Likewise.
64646         (strchr): Likewise.  Do not use BP_SYM.
64647         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
64648         "bp-asm.h".
64649         (PARMS): Do not use macros from bp-asm.h.
64650         (STR): Likewise.
64651         (CHR): Likewise.
64652         (__strchrnul): Likewise.  Do not use BP_SYM.
64653         (strchrnul): Do not use BP_SYM in weak_alias.
64654         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
64655         "bp-asm.h".
64656         (PARMS): Do not use macros from bp-asm.h.
64657         (STOP): Likewise.
64658         (strcspn): Do not use BP_SYM.
64659         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
64660         "bp-asm.h".
64661         (PARMS): Do not use macros from bp-asm.h.
64662         (STR): Likewise.
64663         (STOP): Likewise.
64664         (strpbrk): Likewise.  Do not use BP_SYM.
64665         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
64666         "bp-asm.h".
64667         (PARMS): Do not use macros from bp-asm.h.
64668         (STR): Likewise.
64669         (CHR): Likewise.
64670         (strrchr): Likewise.  Do not use BP_SYM.
64671         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
64672         (PARMS): Do not use macros from bp-asm.h.
64673         (SKIP): Likewise.
64674         (strspn): Do not use BP_SYM.
64675         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
64676         (PARMS): Do not use macros from bp-asm.h.
64677         (STR): Likewise.
64678         (DELIM): Likewise.
64679         (SAVE): Likewise.
64680         (FUNCTION): Likewise.  Do not use BP_SYM.
64681         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
64682         aliases.
64683         (strtok_r): Likewise.
64684         (__GI___strtok_r): Likewise.
64685         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64686         (PARMS): Do not use macros from bp-asm.h.
64687         (S1): Likewise.
64688         (S2): Likewise.
64689         (SIZE): Likewise.
64690         (__mpn_sub_n): Do not use BP_SYM.
64691         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
64692         "bp-asm.h".
64693         (PARMS): Do not use macros from bp-asm.h.
64694         (S1): Likewise.
64695         (SIZE): Likewise.
64696         (__mpn_submul_1): Do not use BP_SYM.
64697         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
64698         <bp-sym.h>.
64699         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
64700         and <bp-asm.h>.
64701         (PARMS): Do not use macros from bp-asm.h.
64702         (FLAGS): Likewise.
64703         (PTID): Likewise.
64704         (TLS): Likewise.
64705         (CTID): Likewise.
64706         (__clone): Do not use BP_SYM.
64707         (clone): Do not use BP_SYM in weak_alias.
64708         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
64709         and <bp-asm.h>.
64710         (PARMS): Do not use macros from bp-asm.h.
64711         (LEN): Likewise.
64712         (__mmap64): Do not use BP_SYM.
64713         (mmap64): Do not use BP_SYM in weak_alias.
64714         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64715         <bp-sym.h> and <bp-asm.h>.
64716         (PARMS): Do not use macros from bp-asm.h.
64717         (__posix_fadvise64_l64): Do not use BP_SYM.
64718         * sysdeps/unix/sysv/linux/i386/semtimedop.S
64719         (PARMS): Do not use macros from bp-asm.h.
64720         (NSOPS): Likewise.
64721         (semtimedop): Do not use BP_SYM.
64722         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
64723         and <bp-asm.h>.
64724
64725 2013-02-21  Allan McRae  <allan@archlinux.org>
64726
64727         * manual/message.texi (Charset conversion in gettext):
64728         Move @end statement to beginning of line.
64729
64730 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64731
64732         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
64733         static.
64734         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
64735         Likewise.
64736
64737         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
64738         (denorm): Likewise.
64739         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
64740         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
64741
64742 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64743
64744         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
64745         tail-call to the resolved function if pltexit isn't needed.
64746
64747 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
64748
64749         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
64750         or Y being zero as being unlikely.
64751         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64752         Likewise.
64753
64754 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
64755
64756         * manual/nss.texi (System Databases and Name Service Switch):
64757         Remove frobnicate @pxref.
64758
64759 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64760
64761         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64762         __attribute__ ((unused)) to __attribute__ ((__unused__)).
64763
64764 2013-02-20  Petr Machata  <pmachata@redhat.com>
64765
64766         * elf/elf.h (R_ARM_TARGET1): New macro.
64767         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
64768         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
64769         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
64770         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
64771         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
64772         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
64773         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
64774         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
64775         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
64776         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
64777         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
64778         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
64779         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
64780         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
64781         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
64782         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
64783         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
64784         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
64785         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
64786         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
64787         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
64788         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
64789         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
64790         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
64791         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
64792         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
64793         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
64794         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
64795         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
64796         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
64797         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
64798         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
64799         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
64800         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
64801         (R_ARM_THM_GOT_BREL12): Likewise.
64802         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
64803         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
64804         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
64805         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
64806         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
64807         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
64808         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
64809         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
64810         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
64811
64812 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
64813
64814         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
64815         __attribute_used__ to __attribute__ ((unused)).
64816
64817 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
64818
64819         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
64820         powerpc mpa.c.
64821         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
64822         comment formatting.
64823         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
64824
64825 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
64826
64827         [BZ #13550]
64828         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
64829         Remove macro.
64830         (ENTER): Remove both macro definitions.
64831         (LEAVE): Likewise.
64832         (CHECK_BOUNDS_LOW): Likewise.
64833         (CHECK_BOUNDS_HIGH): Likewise.
64834         (CHECK_BOUNDS_BOTH): Likewise.
64835         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
64836         (RETURN_BOUNDED_POINTER): Likewise.
64837         (RETURN_NULL_BOUNDED_POINTER): Likewise.
64838         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
64839         (POP_ERRNO_LOCATION_RETURN): Likewise.
64840         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
64841         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64842         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
64843         macros.
64844         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64845         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
64846         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
64847         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
64848         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
64849         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
64850         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
64851         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
64852         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
64853         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
64854         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
64855         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
64856         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64857         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
64858         removed macros.
64859         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64860         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
64861         macros.
64862         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64863         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
64864         * sysdeps/i386/i586/memset.S (memset): Likewise.
64865         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
64866         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64867         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
64868         macros.
64869         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64870         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
64871         Change uses of L(2) to L(out).
64872         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
64873         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
64874         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
64875         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64876         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
64877         removed macros.
64878         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64879         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
64880         macros.
64881         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64882         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
64883         (RETURN): Do not use macro LEAVE.
64884         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
64885         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
64886         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
64887         * sysdeps/i386/i686/memset.S (memset): Likewise.
64888         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
64889         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
64890         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64891         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
64892         Likewise.
64893         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64894         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
64895         L(1_2) and L(1_3) into L(1).
64896         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
64897         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
64898         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64899         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
64900         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64901         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
64902         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
64903         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64904         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
64905         macros.
64906         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
64907         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64908         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
64909         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
64910         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
64911         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64912         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
64913         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
64914         * sysdeps/i386/strcspn.S (strcspn): Likewise.
64915         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
64916         * sysdeps/i386/strrchr.S (strrchr): Likewise.
64917         * sysdeps/i386/strspn.S (strspn): Likewise.
64918         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
64919         conditional code.
64920         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64921         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
64922         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
64923         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
64924         L(1_3) into L(1_1).
64925         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
64926         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64927         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
64928         macros.
64929         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64930
64931 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
64932
64933         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
64934         macro.
64935
64936 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
64937
64938         * math/atest-exp.c (exp_mpn): Remove ROUND.
64939         * math/atest-exp2.c (exp_mpn): Likewise.
64940         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
64941
64942         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
64943         * stdlib/tst-tls-atexit-lib.c: Likewise.
64944         * stdlib/tst-tls-atexit.c: Likewise.
64945
64946 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64947
64948         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
64949         and __attribute_alloc_size__.
64950
64951 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64952
64953         * include/programs/xmalloc.h: Change __attribute_alloc_size to
64954         __attribute_alloc_size__.
64955         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
64956         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
64957
64958 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
64959
64960         * include/programs/xmalloc.h: New file.
64961         * catgets/gencat.c: Include it.
64962         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
64963         * elf/pldd.c: Likewise.
64964         * iconv/iconv_charmap.c: Likewise.
64965         * iconv/iconvconfig.c: Likewise.
64966         * iconv/strtab.c: Likewise.
64967         * locale/programs/locale.c: Likewise.
64968         * locale/programs/localedef.h: Likewise.
64969         * locale/programs/simple-hash.c: Likewise.
64970         * nscd/nscd.h: Likewise.
64971         * nss/makedb.c: Likewise.
64972         * sysdeps/generic/ldconfig.h: Likewise.
64973
64974 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
64975
64976         * Versions.def: Add GLIBC_2.18.
64977         * include/link.h (struct link_map): New member l_tls_dtor_count.
64978         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
64979         (__call_tls_dtors): Likewise.
64980         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
64981         __cxa_thread_atexit_impl.
64982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64983         Likewise.
64984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64985         Likewise.
64986         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
64987         Likewise.
64988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
64989         Likewise.
64990         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
64991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
64992         Likewise.
64993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
64994         Likewise.
64995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
64996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
64997         Likewise.
64998         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
64999         (tests): Add test case tst-tls-atexit.
65000         (modules-names): Add shared library for tst-tls-atexit.
65001         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65002         (GLIBC_PRIVATE): Add __call_tls_dtors.
65003         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65004         for libstdc++.
65005         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65006         * stdlib/tst-tls-atexit.c: New test case.
65007         * stdlib/tst-tls-atexit-lib.c: New test case.
65008
65009         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65010
65011         * elf/Versions (ld): Add _dl_find_dso_for_object.
65012         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65013         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65014         (dl_open_worker): Use _dl_find_dso_for_object.
65015         * elf/dl-sym.c (do_sym): Likewise.
65016         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65017
65018 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65019
65020         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65021         Syntactic changes only.
65022         (_dl_runtime_profile): Do a tail-call to the resolved function.
65023
65024 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65025
65026         [BZ #13550]
65027         * sysdeps/x86_64/bp-asm.h: Remove file.
65028         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65029         <bp-sym.h> and <bp-asm.h>.
65030         (__clone): Do not use BP_SYM.
65031         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65032         <bp-sym.h> and <bp-asm.h>.
65033         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65034         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65035         "bp-asm.h".
65036         (_setjmp): Do not use BP_SYM.
65037         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65038         "bp-asm.h".
65039         (setjmp): Do not use BP_SYM.
65040         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65041         libc_hidden_def.
65042         (mempcpy): Do not use BP_SYM in weak_alias.
65043         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65044         "bp-asm.h".
65045         (strchr): Do not use BP_SYM.
65046         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65047         "bp-asm.h".
65048         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65049         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65050         (_start): Do not use BP_SYM.
65051         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65052         "bp-asm.h".
65053         (strcat): Do not use BP_SYM.
65054         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65055         "bp-asm.h".
65056         (STRCMP): Do not use BP_SYM.
65057         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65058         "bp-asm.h".
65059         (STRCPY): Do not use BP_SYM.
65060         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65061         "bp-asm.h".
65062         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65063         "bp-asm.h".
65064         (FUNCTION): Do not use BP_SYM.
65065         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65066         weak_alias.
65067         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65068
65069 2013-02-17  Andreas Jaeger  <aj@suse.de>
65070
65071         * time/Versions: Sort entries.
65072         * string/Versions: Likewise.
65073         * resolv/Versions: Likewise.
65074         * posix/Versions: Likewise.
65075         * iconv/Versions: Likewise.
65076         * elf/Versions: Likewise.
65077         * wcsmbs/Versions: Likewise.
65078
65079 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65080
65081         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65082         loop termination condition.
65083
65084         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65085         variable to calculate EZ.
65086         (__sqr): Likewise.
65087
65088         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65089         the lower precision input.
65090
65091 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65092
65093         [BZ #13550]
65094         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65095         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65096         (run-via-rtld-prefix): Do not handle %-bp tests.
65097         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65098         (all-object-suffixes): Remove .ob.
65099         (bppfx): Remove variable.
65100         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65101         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65102         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65103         [$(build-bounded) = yes] (libtype.ob): Likewise.
65104         * Makerules (elide-routines.ob): Remove variable.
65105         (do-tests-clean): Do not handle *-bp.out.
65106         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65107         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65108         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65109         (tests): Do not include $(tests-bp.out).
65110         (xtests): Do not include $(xtests-bp.out).
65111         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65112         [$(build-bounded) = yes] ($(addprefix
65113         $(objpfx),$(binaries-bounded))): Remove rule.
65114         ($(objpfx)%-bp.out): Remove rule.
65115         * config.make.in (build-bounded): Remove variable.
65116         * crypt/Makefile [$(build-bounded) = yes]
65117         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65118         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65119         append to variable.
65120         [$(build-bounded) = yes] (install-lib): Likewise.
65121         [$(build-bounded) = yes] (generated): Likewise.
65122         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65123         Remove rule.
65124         * intl/Makefile [$(build-bounded) = yes]
65125         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65126         * math/Makefile [$(build-bounded) = yes]
65127         ($(tests:%=$(objpfx)%-bp): Likewise.
65128         * misc/Makefile [$(build-bounded) = yes]
65129         ($(objpfx)tst-tsearch-bp): Likewise.
65130         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65131         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65132         Remove dependency.
65133         * string/Makefile (o-objects.ob): Remove variable.
65134         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65135         (CFLAGS-.ob): Remove variable.
65136         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65137         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65138         both definitions of variable.
65139         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65140         (ASFLAGS-.ob): Remove variable.
65141
65142 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65143
65144         [BZ #13550]
65145         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65146         Remove __BOUNDED_POINTERS__ from condition.
65147         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65148         * string/bits/string2.h [!__NO_STRING_INLINES &&
65149         !__BOUNDED_POINTERS__]: Likewise.
65150         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65151         Likewise.
65152         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65153         Remove conditional code.
65154         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65155         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65156         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65157         condition.
65158
65159         [BZ #13550]
65160         * csu/libc-start.c: Do not include <bp-sym.h>.
65161         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65162         * elf/dl-open.c: Do not include <bp-sym.h>.
65163         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65164         * math/fegetenv.c: Do not include <bp-sym.h>.
65165         (fegetenv): Do not use BP_SYM in versioned symbols.
65166         * nptl/sysdeps/pthread/bits/libc-lockP.h
65167         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65168         <bp-sym.h>.
65169         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65170         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65171         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65172         (__pthread_mutex_destroy): Likewise.
65173         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65174         (__pthread_mutex_lock): Likewise.
65175         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65176         (__pthread_mutex_trylock): Likewise.
65177         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65178         (__pthread_mutex_unlock): Likewise.
65179         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65180         (__pthread_mutexattr_init): Likewise.
65181         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65182         (__pthread_mutexattr_destroy): Likewise.
65183         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65184         (__pthread_mutexattr_settype): Likewise.
65185         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65186         (__pthread_rwlock_init): Likewise.
65187         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65188         (__pthread_rwlock_destroy): Likewise.
65189         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65190         (__pthread_rwlock_rdlock): Likewise.
65191         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65192         (__pthread_rwlock_tryrdlock): Likewise.
65193         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65194         (__pthread_rwlock_wrlock): Likewise.
65195         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65196         (__pthread_rwlock_trywrlock): Likewise.
65197         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65198         (__pthread_rwlock_unlock): Likewise.
65199         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65200         (__pthread_key_create): Likewise.
65201         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65202         (__pthread_setspecific): Likewise.
65203         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65204         (__pthread_getspecific): Likewise.
65205         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65206         Likewise.
65207         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65208         (_pthread_cleanup_push_defer): Likewise.
65209         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65210         (_pthread_cleanup_pop_restore): Likewise.
65211         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65212         (pthread_setcancelstate): Likewise.
65213         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65214         <bp-sym.h>.
65215         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65216         (memchr): Do not use BP_SYM in weak_alias.
65217         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65218         (fegetenv): Do not use BP_SYM in versioned symbols.
65219         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65220         (fesetenv): Do not use BP_SYM in versioned symbols.
65221         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65222         (feupdateenv): Do not use BP_SYM in versioned symbols.
65223         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65224         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65225         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65226         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65227         (open64): Do not use BP_SYM in weak_alias.
65228         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65229         (fegetenv): Do not use BP_SYM in versioned symbols.
65230         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65231         (fesetenv): Do not use BP_SYM in versioned symbols.
65232         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65233         (feupdateenv): Do not use BP_SYM in versioned symbols.
65234         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65235         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65236         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65237         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65238         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65239         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65240         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65241         <bp-sym.h>.
65242         (__libc_start_main): Do not use BP_SYM.
65243
65244 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65245
65246         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65247         redundant return line.
65248         (norm): Likewise.
65249         (denorm): Likewise.
65250         (dbl_mp): Likewise.
65251         (sub_magnitudes): Likewise.
65252         (__add): Likewise.
65253         (__sub): Likewise.
65254         (__mul): Likewise.
65255         (__inv): Likewise.
65256         (__dvd): Likewise.
65257         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65258         (norm): Likewise.
65259         (denorm): Likewise.
65260         (dbl_mp): Likewise.
65261         (sub_magnitudes): Likewise.
65262         (__add): Likewise.
65263         (__sub): Likewise.
65264         (__mul): Likewise.
65265         (__inv): Likewise.
65266         (__dvd): Likewise.
65267
65268         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65269         instead of __mul.
65270         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65271         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65272         (cc32): Likewise.
65273
65274         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65275         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65276         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65277         of __mul for squares.
65278         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65279         function
65280         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65281         Likewise.
65282         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65283         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65284
65285 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65286
65287         [BZ #13550]
65288         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65289         code.
65290         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65291         prototype or function definition.  Rename ubp_* variables and
65292         parameters.  Remove argv definitions conditional on
65293         [__BOUNDED_POINTERS__].
65294         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65295         * elf/dl-runtime.c (_dl_fixup): Likewise.
65296         * include/set-hooks.h (RUN_HOOK): Likewise.
65297         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65298         definition.
65299         * string/strcpy.c (strcpy): Do not use __unbounded.
65300         * sysdeps/generic/frame.h (struct layout): Likewise.
65301         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65302         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65303         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65304         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65305         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65306         (__backtrace): Likewise.
65307         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
65308         use __ptrvalue.
65309         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
65310         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
65311         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
65312         Likewise.
65313         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
65314         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
65315         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
65316         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65317         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
65318         Do not use __unbounded.
65319         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
65320         Rename __unboundedrlimits parameter to rlimits in prototype.
65321         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
65322         Do not use __unbounded.
65323         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
65324         not use __ptrvalue.
65325         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65326         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
65327         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65328         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
65329         __ptrvalue or __unbounded.
65330         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
65331         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
65332         use __unbounded.
65333         (__new_msgctl): Do not use __ptrvalue.
65334         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
65335         __unbounded.
65336         (__libc_msgrcv): Do not use __ptrvalue.
65337         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
65338         startup_info): Do not use __unbounded.
65339         (__libc_start_main): Likewise.  Rename ubp_* variables and
65340         parameters.  Remove argv definitions conditional on
65341         [__BOUNDED_POINTERS__].
65342         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
65343         __ptrvalue.
65344         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
65345         use __unbounded.
65346         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
65347         or __ptrvalue.
65348         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
65349         use __unbounded.
65350         (__new_shmctl): Do not use __ptrvalue.
65351         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
65352         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
65353         Likewise.
65354         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
65355         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
65356         (__libc_sigaction): Likewise.
65357         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
65358         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
65359         Likewise.
65360         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65361
65362 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
65363
65364         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
65365
65366         * string/mempcpy.c: Implement by calling memcpy.
65367
65368 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65369
65370         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
65371
65372         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
65373         evaluation.
65374
65375         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
65376         values in the mantissa.
65377
65378         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
65379         minimize writes to Z.
65380         (sub_magnitudes): Simplify code a bit.
65381
65382 2013-02-12  Roland McGrath  <roland@hack.frob.com>
65383
65384         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
65385         from the message.  The linker prefixes all warnings with that already.
65386
65387 2013-02-12  Andreas Schwab  <schwab@suse.de>
65388
65389         [BZ #15078]
65390         * posix/regexec.c (extend_buffers): Add parameter min_len.
65391         (check_matching): Pass minimum needed length.
65392         (clean_state_log_if_needed): Likewise.
65393         (get_subexp): Likewise.
65394         * posix/Makefile (tests): Add bug-regex34.
65395         (bug-regex34-ENV): Define.
65396         * posix/bug-regex34.c: New file.
65397
65398         [BZ #11561]
65399         * posix/regcomp.c (parse_bracket_exp): When looking up collating
65400         elements compare against the byte sequence of it, not its name.
65401         * posix/Makefile (tests): Add bug-regex35.
65402         (bug-regex35-ENV): Define.
65403         * posix/bug-regex35.c: New file.
65404
65405 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65406
65407         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
65408         comment.
65409         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
65410         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
65411         (CHECK_EOL): Add undef.
65412
65413 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
65414
65415         * bits/stdlib-bsearch.h: New file.
65416         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
65417         * stdlib/stdlib.h: Likewise.
65418
65419 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65420
65421         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
65422         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
65423         declaration.
65424         * manual/search.texi (Array Search Function): Add missing const in
65425         lfind prototype.
65426         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
65427         declaration to use rlim_t.
65428         (Basic Scheduling Functions): Remove erroneous const from
65429         sched_getparam prototype.  Remove erroneous * from
65430         sched_get_priority_max and sched_get_priority_min prototypes.
65431         (Resource Usage): Fix summary @comment on vtimes to refer to
65432         sys/vtimes.h rather than vtimes.h.
65433         Add missing *s in vtimes prototype.
65434         (Limits on Resources): Fix ulimit prototype to return long int.
65435         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
65436         prototypes to use long int rather than double.
65437         (BSD Random): Fix initstate and setstate to use char *, not void *.
65438         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
65439         prototype to make second argument 'struct aiocb64 *const[]'.
65440         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
65441         (Status of AIO Operations): Remove erroneous const in aio_return and
65442         aio_return64 prototypes.
65443         (Synchronizing I/O): Fix sync prototype to return void.
65444         * manual/startup.texi (Suboptions): Remove an erroneous const in
65445         getsubopt prototype.
65446         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
65447         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
65448         use size_t rather than int.
65449         (Scanning All Users): Likewise for getpwent_r.
65450         (Setting Groups): Add missing const to setgroups prototype.
65451         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
65452         * manual/socket.texi (Host Names): Fix gethostbyaddr and
65453         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
65454         'const void *' rather than 'const char *'.
65455         (Host Address Functions): Likewise for inet_ntop.
65456         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
65457         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
65458         ssize_t for return value.
65459         (Sending Data): Likewise for send, sendto, sendmsg.
65460         (Socket Option Functions): Add a missing const in setsockopt prototype.
65461         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
65462         use wchar_t for the argument.
65463         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
65464         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
65465         take no arguments.
65466         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
65467         double/float/long double for second argument.
65468         Fix return types of significand, significandf, significandl.
65469         * manual/filesys.texi (Setting Permissions): Use mode_t for second
65470         argument in fchmod prototype.
65471         (File Owner): Use uid_t and gid_t in fchown prototype.
65472         (File Times): Add const to utimes, futimes, and lutimes prototypes.
65473         (Making Special Files): Use mode_t and dev_t in mknod prototype.
65474         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
65475         use 'const struct dirent **' as argument types to CMP function pointer
65476         argument.
65477         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
65478         (File Times): Fix summary magic @comment for struct utimbuf and utime
65479         to refer to utime.h, not time.h.
65480         * manual/string.texi (Argz Functions): Add missing const in
65481         argz_extract and argz_next prototypes.
65482         (Finding Tokens in a String): Likewise for basename.
65483         (String/Array Comparison): Fix typo in wcscasecmp prototype.
65484         (Copying and Concatenation): Fix typo in wmemmove prototype.
65485         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
65486         (Signal Stack): Remove erroneous const in sigstack prototype.
65487         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
65488         prototype.
65489         (Simple Calendar Time): Likewise for stime.
65490         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
65491         prototype.
65492         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
65493         say sys/sysctl.h instead.
65494         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
65495         and vsyslog prototypes.
65496
65497 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65498
65499         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
65500         Remove.
65501
65502 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65503
65504         * misc/sys/mman.h: Fix typo in mremap comment.
65505
65506 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65507
65508         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
65509         the '\0' terminator.
65510
65511 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65512
65513         [BZ #13550]
65514         * debug/segfault.c: Don't include <bp-checks.h>.
65515         * sysdeps/generic/bp-checks.h: Remove file.
65516         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
65517         (__GETDENTS): Don't use CHECK_N.
65518         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
65519         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
65520         (__getgroups): Don't use CHECK_N.
65521         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
65522         (setgroups): Don't use CHECK_N.
65523         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
65524         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
65525         (__libc_msgrcv): Don't use CHECK_N.
65526         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
65527         (__libc_msgsnd): Don't use CHECK_N.
65528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
65529         <bp-checks.h>.
65530         (__libc_pread): Don't use CHECK_N.
65531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
65532         include <bp-checks.h>.
65533         (__libc_pread64): Don't use CHECK_N.
65534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
65535         include <bp-checks.h>.
65536         (__libc_pwrite): Don't use CHECK_N.
65537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
65538         include <bp-checks.h>.
65539         (__libc_pwrite64): Don't use CHECK_N.
65540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
65541         <bp-checks.h>.
65542         (__libc_pread): Don't use CHECK_N.
65543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
65544         include <bp-checks.h>.
65545         (__libc_pread64): Don't use CHECK_N.
65546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
65547         include <bp-checks.h>.
65548         (__libc_pwrite): Don't use CHECK_N.
65549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
65550         include <bp-checks.h>.
65551         (__libc_pwrite64): Don't use CHECK_N.
65552         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
65553         (do_pread): Don't use CHECK_N.
65554         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
65555         (do_pread64): Don't use CHECK_N.
65556         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
65557         (do_pwrite): Don't use CHECK_N.
65558         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
65559         (do_pwrite64): Don't use CHECK_N.
65560         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
65561         (__libc_readv): Don't use CHECK_N.
65562         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
65563         (semop): Don't use CHECK_N.
65564         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
65565         <bp-checks.h>.
65566         (semtimedop): Don't use CHECK_N.
65567         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
65568         (__libc_pread): Don't use CHECK_N.
65569         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
65570         <bp-checks.h>.
65571         (__libc_pread64): Don't use CHECK_N.
65572         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
65573         <bp-checks.h>.
65574         (__libc_pwrite): Don't use CHECK_N.
65575         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
65576         <bp-checks.h>.
65577         (__libc_pwrite64): Don't use CHECK_N.
65578         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
65579         <bp-checks.h>.
65580         (__libc_msgrcv): Don't use CHECK_N.
65581         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
65582         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
65583         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
65584         (__libc_writev): Don't use CHECK_N.
65585
65586 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65587
65588         * string/strcpy.c: Removed unused variable.
65589
65590         * Makeconfig (+sysdep-includes): Define with := rather than =.
65591         Use an existing include/ subdir of each sysdeps dir before it.
65592
65593 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65594
65595         * nscd/connection.c (register_traced_file): Comment function.
65596         [HAVE_INOTIFY] (union __inev): Define.
65597         [HAVE_INOTIFY] (inotify_check_files): New function.
65598         [HAVE_INOTIFY] (clear_db_cache): Likewise.
65599         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
65600         clear_db_cache.
65601         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
65602
65603 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65604
65605         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
65606         loaded if not already and that a failure is permanent.
65607
65608 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
65609
65610         [BZ #15006]
65611         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
65612         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
65613
65614 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65615
65616         [BZ #13550]
65617         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
65618         (CHECK_1_NULL_OK): Likewise.
65619         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
65620         (__fxstat): Do not use CHECK_1.
65621         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
65622         <bp-checks.h>.
65623         (___fxstat64): Do not use CHECK_1.
65624         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
65625         <bp-checks.h>.
65626         (__fxstatat): Do not use CHECK_1.
65627         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
65628         <bp-checks.h>.
65629         (__fxstatat64): Do not use CHECK_1.
65630         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
65631         <bp-checks.h>.
65632         (__fxstat): Do not use CHECK_1.
65633         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
65634         <bp-checks.h>.
65635         (__fxstatat): Do not use CHECK_1.
65636         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
65637         <bp-checks.h>.
65638         (__getresgid): Do not use CHECK_1.
65639         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
65640         <bp-checks.h>.
65641         (__getresuid): Do not use CHECK_1.
65642         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
65643         <bp-checks.h>.
65644         (__lxstat): Do not use CHECK_1.
65645         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
65646         <bp-checks.h>.
65647         (__old_msgctl): Do not use CHECK_1.
65648         (__new_msgctl): Likewise.
65649         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
65650         <bp-checks.h>.
65651         (__new_setrlimit): Do not use CHECK_1.
65652         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
65653         <bp-checks.h>.
65654         (__old_shmctl): Do not use CHECK_1.
65655         (__new_shmctl): Likewise.
65656         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
65657         <bp-checks.h>.
65658         (__xstat): Do not use CHECK_1.
65659         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
65660         (__lxstat): Do not use CHECK_1.
65661         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
65662         <bp-checks.h>.
65663         (___lxstat64): Do not use CHECK_1.
65664         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
65665         (__old_msgctl): Do not use CHECK_1.
65666         (__new_msgctl): Likewise.
65667         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
65668         <bp-checks.h>.
65669         (__gettimeofday): Do not use CHECK_1.
65670         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
65671         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
65672         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
65673         <bp-checks.h>.
65674         (__gettimeofday): Do not use CHECK_1.
65675         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
65676         (__old_shmctl): Do not use CHECK_1_NULL_OK.
65677         (__new_shmctl): Do not use CHECK_1.
65678         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
65679         <bp-checks.h>.
65680         (do_sigtimedwait): Do not use CHECK_1.
65681         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
65682         <bp-checks.h>.
65683         (do_sigwaitinfo): Do not use CHECK_1.
65684         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
65685         <bp-checks.h>.
65686         (msgctl): Do not use CHECK_1.
65687         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
65688         <bp-checks.h>.
65689         (shmctl): Do not use CHECK_1.
65690         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
65691         (ustat): Do not use CHECK_1.
65692         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
65693         <bp-checks.h>.
65694         (__fxstat): Do not use CHECK_1.
65695         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
65696         <bp-checks.h>.
65697         (__fxstatat): Do not use CHECK_1.
65698         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
65699         <bp-checks.h>.
65700         (__lxstat): Do not use CHECK_1.
65701         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
65702         <bp-checks.h>.
65703         (__xstat): Do not use CHECK_1.
65704         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
65705         (__xstat): Do not use CHECK_1.
65706         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
65707         (___xstat64): Do not use CHECK_1.
65708
65709         [BZ #13550]
65710         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
65711         definitions.
65712         (CHECK_BOUNDS_HIGH): Likewise.
65713         * string/strcpy.c: Do not include <bp-checks.h>.
65714         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
65715
65716 2013-02-07  Roland McGrath  <roland@hack.frob.com>
65717
65718         * nscd/nscd-client.h (__nscd_drop_map_ref):
65719         Add __attribute__ ((unused)).
65720         * nis/nss-nisplus.h (niserr2nss): Likewise.
65721
65722         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
65723         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
65724
65725         * csu/libc-tls.c (init_static_tls, init_slotinfo):
65726         Remove inline keyword.
65727         * include/rounding-mode.h (round_away): Likewise.
65728         * libio/wfileops.c (adjust_wide_data): Likewise.
65729         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
65730         (__m128i_strloadu_tolower): Likewise.
65731         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
65732         (__m128i_strloadu_tolower): Likewise.
65733         * time/mktime.c (ydhms_diff): Likewise.
65734         * locale/elem-hash.h (elem_hash): Likewise.
65735         * locale/setlocale.c (setdata): Likewise.
65736         * posix/regex_internal.h (re_string_char_size_at): Likewise.
65737         (re_string_wchar_at): Likewise.
65738         (bitset_not, bitset_merge, bitset_mask): Likewise.
65739         [!(__GNUC__ > 3)] (inline): Remove macro.
65740         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
65741         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
65742         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
65743         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
65744         * string/memcmp.c (memcmp_bytes): Likewise.
65745         * locale/programs/locarchive.c (compute_hashval): Likewise.
65746         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
65747         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
65748         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
65749         * nss/getent.c (print_rpc, print_protocols): Likewise.
65750         (print_passwd, print_group, print_aliases): Likewise.
65751         * nis/nss-nisplus.h (niserr2nss): Likewise.
65752         * nscd/connections.c (restart_p): Likewise.
65753         Change return type to bool.
65754
65755 2013-02-05  Roland McGrath  <roland@hack.frob.com>
65756
65757         * Makeconfig (all-Depend-files): Add existing
65758         $(sorted-subdirs:=/Depend) files.
65759         (all-subdirs): Remove nss.
65760         * sysdeps/unix/inet/Subdirs: Add it here instead.
65761         * hesiod/Depend: New file.
65762
65763         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
65764         instead of calling alloca.
65765
65766         * io/lseek.c (__lseek): Rename to __libc_lseek.
65767         Define __lseek as an alias.
65768
65769         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
65770
65771 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
65772
65773         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
65774         else clause and remove check for non-standard endianness.
65775
65776 2013-02-04  David S. Miller  <davem@davemloft.net>
65777
65778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65779
65780 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
65781
65782         [BZ #13550]
65783         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
65784         (__ubp_memchr): Remove prototype.
65785         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
65786         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65787         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
65788         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
65789         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
65790         Remove alias.
65791         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
65792         (__ubp_memchr): Likewise.
65793         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
65794         (__ubp_memchr): Likewise.
65795         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
65796         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
65797         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
65798         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
65799         CHECK_STRING.
65800         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
65801         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
65802         (__getcwd): Do not use CHECK_STRING.
65803         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
65804         <bp-checks.h>.
65805         (__real_chown): Do not use CHECK_STRING.
65806         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
65807         <bp-checks.h>.
65808         (fchownat): Do not use CHECK_STRING.
65809         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
65810         CHECK_STRING.
65811         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
65812         <bp-checks.h>.
65813         (__lchown): Do not use CHECK_STRING.
65814         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65815         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65816         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65817         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
65818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
65819         include <bp-checks.h>.
65820         (truncate64): Do not use CHECK_STRING.
65821         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
65822         <bp-checks.h>.
65823         (__real_chown): Do not use CHECK_STRING.
65824         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
65825         <bp-checks.h>.
65826         (__lchown): Do not use CHECK_STRING.
65827         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
65828         <bp-checks.h>.
65829         (__chown): Do not use CHECK_STRING.
65830         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
65831         <bp-checks.h>.
65832         (truncate64): Do not use CHECK_STRING.
65833         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
65834         Likewise.
65835         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
65836         (__xmknod): Do not use CHECK_STRING.
65837         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
65838         <bp-checks.h>.
65839         (__xmknodat): Do not use CHECK_STRING.
65840         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65841         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
65842
65843 2013-02-04  Andreas Schwab  <schwab@suse.de>
65844
65845         [BZ #14142]
65846         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
65847         * include/netdb.h: Likewise for h_errno.
65848         * elf/tst-stackguard1.c: Include <tls.h>.
65849
65850 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
65851
65852         * elf/link.h (struct link_map): Extend the l_addr comment.
65853         * include/link.h (struct link_map): Likewise.
65854
65855 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
65856
65857         [BZ #13550]
65858         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
65859         (BOUNDED_1): Remove macro.
65860         * debug/backtrace.c: Don't include <bp-checks.h>.
65861         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
65862         (__backtrace): Likewise.
65863         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
65864         <bp-checks.h>.
65865         (__backtrace): Don't use BOUNDED_1.
65866         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
65867         <bp-checks.h>.
65868         (__backtrace): Don't use BOUNDED_1.
65869         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
65870         (__backtrace): Don't use BOUNDED_1.
65871         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
65872         (shmat): Don't use BOUNDED_N.
65873
65874 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
65875
65876         [BZ #13550]
65877         * sysdeps/generic/bp-start.h: Remove file.
65878         * csu/libc-start.c: Don't include <bp-start.h>.
65879         (LIBC_START_MAIN): Set up __environ directly instead of using
65880         INIT_ARGV_and_ENVIRON.
65881         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
65882         <bp-start.h>.
65883
65884         [BZ #13550]
65885         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
65886         definitions.
65887         (CHECK_FCNTL): Likewise.
65888         (CHECK_N_PAGES): Likewise.
65889
65890         [BZ #13550]
65891         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
65892         definitions.
65893         (CHECK_SIGSET_NULL_OK): Likewise.
65894         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
65895         <bp-checks.h>.
65896         (sigpending): Don't use CHECK_SIGSET.
65897         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
65898         <bp-checks.h>.
65899         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65900         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
65901         <bp-checks.h>.
65902         (do_sigsuspend): Don't use CHECK_SIGSET.
65903         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
65904         use CHECK_SIGSET.
65905         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
65906         (do_sigwait): Don't use CHECK_SIGSET.
65907         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
65908         use CHECK_SIGSET.
65909         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
65910         include <bp-checks.h>.
65911         (sigpending): Don't use CHECK_SIGSET.
65912         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
65913         include <bp-checks.h>.
65914         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65915         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
65916         <bp-checks.h>.
65917         (sigpending): Don't use CHECK_SIGSET.
65918         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
65919         <bp-checks.h>.
65920         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
65921
65922         [BZ #13550]
65923         * sysdeps/generic/bp-semctl.h: Remove file.
65924         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
65925         <bp-checks.h> and <bp-semctl.h>.
65926         (__old_semctl): Don't use CHECK_SEMCTL.
65927         (__new_semctl): Likewise.
65928         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
65929         and <bp-semctl.h>.
65930         (__old_semctl): Don't use CHECK_SEMCTL.
65931         (__new_semctl): Likewise.
65932         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
65933         <bp-checks.h> and <bp-semctl.h>.
65934         (__old_semctl): Don't use CHECK_SEMCTL.
65935         (__new_semctl): Likewise.
65936         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
65937         <bp-checks.h> and <bp-semctl.h>.
65938         (semctl): Don't use CHECK_SEMCTL.
65939
65940         [BZ #13550]
65941         * Makerules (elide-bp-thunks): Remove variable.
65942         (elide-routines.oS): Don't use $(elide-bp-thunks).
65943         (elide-routines.os): Likewise.
65944         (elide-routines.o): Likewise.
65945         (elide-routines.op): Likewise.
65946         (elide-routines.og): Likewise.
65947         (objects): Don't use $(bp-thunks).
65948         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
65949         include.
65950         (common-generated): Do not add s-proto-bp.d.
65951         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
65952         (int): Likewise.
65953         (typ): Likewise.
65954         Do not generate makefile rules for bounded-pointer thunks.
65955         * sysdeps/generic/bp-thunks.h: Remove file.
65956         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
65957         * sysdeps/unix/s-proto-bp.S: Likewise.
65958
65959         [BZ #15062]
65960         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
65961         parts of result separately when argument is not close to line from
65962         -i to i and one part of argument is small.
65963         * math/k_casinhf.c (__kernel_casinhf): Likewise.
65964         * math/k_casinhl.c (__kernel_casinhl): Likewise.
65965         * math/libm-test.inc (cacos_test): Add more tests.
65966         (casin_test): Likewise.
65967         (casinh_test): Likewise.
65968         * sysdeps/i386/fpu/libm-test-ulps: Update.
65969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65970
65971 2013-01-31  David S. Miller  <davem@davemloft.net>
65972
65973         * po/de.po: Update from translation team.
65974
65975 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
65976
65977         * time/tzfile.c: Include stdint.h for SIZE_MAX.
65978
65979 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
65980
65981         * configure.in (_AC_PROG_CC_C89): New definition.
65982         * configure: Regenerate.
65983
65984         * configure.in (AC_PROG_CPP): New definition.
65985         * configure: Regenerate.
65986
65987 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
65988
65989         * debug/tst-backtrace.h: New file.
65990         * debug/tst-backtrace2.c: Include tst-backtrace.h.
65991         (ret): Remove variable.
65992         (x): Likewise.
65993         (FAIL): Remove macro.
65994         (NO_INLINE): Likewise.
65995         (fn1): Use match function instead of strstr.
65996         * debug/tst-backtrace3.c: Include tst-backtrace.h.
65997         (ret): Remove variable.
65998         (x): Likewise.
65999         (FAIL): Remove macro.
66000         (NO_INLINE): Likewise.
66001         (fn): Use match function instead of strstr.
66002         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66003         (ret): Remove variable.
66004         (x): Likewise.
66005         (FAIL): Remove macro.
66006         (NO_INLINE): Likewise.
66007         (handle_signal): Use match function instead of strstr.
66008         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66009         (ret): Remove variable.
66010         (x): Likewise.
66011         (FAIL): Remove macro.
66012         (NO_INLINE): Likewise.
66013         (handle_signal): Use match function instead of strstr.
66014
66015 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66016
66017         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66018
66019 2013-01-23  David S. Miller  <davem@davemloft.net>
66020
66021         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66022         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66023         argument of CAS if possible.
66024         * sysdeps/sparc/sparc64/bits/atomic.h
66025         (__arch_compare_and_exchange_val_32_acq): Likewise.
66026         (__arch_compare_and_exchange_val_64_acq): Likewise.
66027
66028 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66029
66030         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66031         * sysdeps/posix/ulimit.c: ... this.
66032         Include <limits.h>.
66033         * sysdeps/unix/bsd/ulimit.c: Remove file.
66034
66035 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66036
66037         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66038         (LDFLAGS-tst-array5): Likewise.
66039
66040 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66041
66042         [BZ #15036]
66043         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66044         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66045         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66046         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66047
66048 2013-01-21  David S. Miller  <davem@davemloft.net>
66049
66050         * sysdeps/sparc/backtrace.c: New file.
66051         * sysdeps/sparc/sparc32/backtrace.h: New file.
66052         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66053         * sysdeps/sparc/sparc64/backtrace.h: New file.
66054         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66055         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66056         -funwind-tables.
66057
66058 2013-01-21  Andreas Schwab  <schwab@suse.de>
66059
66060         [BZ #15020]
66061         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66062         closed its stdout.
66063
66064 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66065
66066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66067         "mpa2.h".
66068         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66069
66070 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66071             Mark Mitchell  <mark@codesourcery.com>
66072             Tom de Vries  <tom@codesourcery.com>
66073             Paul Pluzhnikov  <ppluzhnikov@google.com>
66074
66075         * debug/tst-backtrace2.c: New file.
66076         * debug/tst-backtrace3.c: Likewise.
66077         * debug/tst-backtrace4.c: Likewise.
66078         * debug/tst-backtrace5.c: Likewise.
66079         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66080         (CFLAGS-tst-backtrace3.c): Likewise.
66081         (CFLAGS-tst-backtrace4.c): Likewise.
66082         (CFLAGS-tst-backtrace5.c): Likewise.
66083         (LDFLAGS-tst-backtrace2): Likewise.
66084         (LDFLAGS-tst-backtrace3): Likewise.
66085         (LDFLAGS-tst-backtrace4): Likewise.
66086         (LDFLAGS-tst-backtrace5): Likewise.
66087         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66088         tst-backtrace4 and tst-backtrace5.
66089
66090 2013-01-18  Anton Blanchard  <anton@samba.org>
66091             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66092
66093         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66094         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66095         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66096         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66098         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66099         "+r" and remove output regs list as redundant.  Add explicit inline
66100         asm to specify register of return val to work around compiler codegen
66101         bug.  Remove (int) cast on return value.  Add return type parameter to
66102         use in macro so that this macro does not truncate return value for
66103         64-bit values.
66104         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66105         pass to INTERNAL_VSYSCALL_NCS.
66106         (INLINE_VSYSCALL): Add 'long int' as return type to
66107         INTERNAL_VSYSCALL_NCS macro invocation.
66108         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66109         INTERNAL_VSYSCALL_NCS macro invocation.
66110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66111
66112 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66113
66114         [BZ #14496]
66115         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66116         Fix application of SIMD FP exception mask.
66117
66118         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66119         mp_no from a power of two.
66120         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66121         __mpexp_twomm1.  Use __pow_mp.
66122
66123         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66124         multiplication.
66125
66126 2013-01-17  David S. Miller  <davem@davemloft.net>
66127
66128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66129
66130 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66131
66132         [BZ #15023]
66133         * include/complex.h: Condition contents on [!_COMPLEX_H].
66134         (__kernel_casinhf): New prototype.
66135         (__kernel_casinh): Likewise.
66136         (__kernel_casinhl): Likewise.
66137         * math/Makefile (libm_calls): Add k_casinh.
66138         * math/k_casinh.c: New file.
66139         * math/k_casinhf.c: Likewise.
66140         * math/k_casinhl.c: Likewise.
66141         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66142         finite nonzero arguments.
66143         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66144         finite nonzero arguments.
66145         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66146         finite nonzero arguments.
66147         * math/s_casinh.c: Do not include <float.h>.
66148         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66149         * math/s_casinhf.c: Do not include <float.h>.
66150         (__casinhf): Move code for finite nonzero arguments to
66151         k_casinhf.c.
66152         * math/s_casinhl.c: Do not include <float.h>.
66153         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66154         redefine.
66155         (__casinhl): Move code for finite nonzero arguments to
66156         k_casinhl.c.
66157         * math/libm-test.inc (cacos_test): Add more tests.
66158         * sysdeps/i386/fpu/libm-test-ulps: Update.
66159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66160
66161 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66162
66163         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66164         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66165         [!HAVE_MREMAP]: Remove [defined linux] case.
66166         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66167
66168 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66169
66170         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66171
66172 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66173
66174         * elf/elf.h (R_386_SIZE32): New relocation.
66175         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66176         R_386_SIZE32.
66177         (elf_machine_rela): Likewise.
66178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66179         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66180
66181 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66182
66183         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66184         (FP_FAST_FMA): Do not define.
66185         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66186         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66187         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66188         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66189         !_SOFT_FLOAT]: Likewise.
66190         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66191         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66192         value.
66193         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66194         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66195         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66196         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66197         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66198         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66199         file.
66200
66201 2013-01-16  Andreas Schwab  <schwab@suse.de>
66202
66203         [BZ #14327]
66204         * include/stdlib.h (__mktemp): Add declaration.
66205         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66206         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66207
66208 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66209
66210         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66211         definitions.
66212         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66213         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66214         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66215         definitions here.
66216         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66217         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66218         definitions.
66219         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66220         and ONE.
66221         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66222         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66223         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66224         definitions.
66225         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66226         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66227         definitions.
66228         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66229
66230         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66231
66232 2013-01-15  David S. Miller  <davem@davemloft.net>
66233
66234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66235         trunc{,f} to libm-sysdep_routes.
66236         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66238         file.
66239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66241         file.
66242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66243         file.
66244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66246         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66247         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66248         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66249         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66250         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66251         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66252
66253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66254         nearbyint{,f} to libm-sysdep_routes.
66255         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66257         New file.
66258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66259         file.
66260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66261         New file.
66262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66263         file.
66264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66266         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66267         file.
66268         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66269         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66270         file.
66271         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66272         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66273         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66274
66275         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66276         libc_feholdexcept and libc_fesetenv.
66277
66278 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66279
66280         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66281
66282 2013-01-14  David S. Miller  <davem@davemloft.net>
66283
66284         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66285         (SPARC_ASM_VIS2_IFUNC): Likewise.
66286         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66288         use of 'siam' instruction.
66289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66290         Likewise.
66291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66292         Likewise.
66293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66294         Likewise.
66295         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66296         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66297         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66298         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66300         file.
66301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66302         file.
66303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66304         file.
66305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66306         file.
66307         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
66308         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
66309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
66310         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
66311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
66312         new VIS2 routines.
66313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66316         Likewise.
66317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66318         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66319         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66320         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
66322         routines to libm-sysdep_routines.
66323         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66324
66325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66326         fdim/fdimf to libm-sysdep_routines.
66327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
66328         file.
66329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
66330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
66331         file.
66332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
66333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
66334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
66335         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
66336         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
66337         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
66338         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
66339
66340 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
66341
66342         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
66343         to optimize copies.
66344
66345         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
66346         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66348
66349         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
66350         local variable MPTWO.
66351         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
66352         Likewise.
66353
66354 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66355
66356         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
66357         GLOB_NOESCAPE.
66358
66359 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66360
66361         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
66362
66363 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66364
66365         * manual/pattern.texi (glob_t): Document gl_flags.
66366         (glob64_t): Likewise.
66367
66368 2013-01-11  David S. Miller  <davem@davemloft.net>
66369
66370         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
66371         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
66372         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
66373         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
66374         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
66375         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
66376         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
66377         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
66378         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
66379         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
66380         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
66381         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
66382         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
66383
66384         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66385         sparc V9 rather than using V8 code.
66386         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66387         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66388
66389         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66390         Move to...
66391         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
66392         Here.
66393
66394 2013-01-11  Roland McGrath  <roland@hack.frob.com>
66395
66396         [BZ #14941]
66397         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
66398         not in the main loop.
66399         * configure: Regenerated.
66400
66401 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
66402
66403         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
66404         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
66405         to just #else.
66406         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
66407         [!__GLIBC_HAVE_LONG_LONG] case.
66408         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
66409         condition to just #else.
66410         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
66411         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
66412         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
66413         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
66414         unconditional.
66415         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
66416         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66417         #elif condition to just #else.
66418         * sysdeps/unix/sysv/linux/sys/sysmacros.h
66419         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
66420         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66421         #elif condition to just #else.
66422
66423 2013-01-11  Steve Ellcey  <sellcey@mips.com>
66424
66425         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
66426         (EF_MIPS_ARCH_64): Fix value.
66427         (EF_MIPS_ARCH_32R2): New.
66428         (EF_MIPS_ARCH_64R2): New.
66429
66430 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
66431
66432         * Makeconfig (+link-pie-before-libc): New.
66433         (+link-pie-after-libc): Likewise.
66434         (+link-pie-tests): Likewise.
66435         (+link-pie): Rewritten.
66436         (link-before-libc): Remove $(config-LDFLAGS).
66437         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
66438         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
66439         (config-LDFLAGS): Renamed to ...
66440         (rtld-LDFLAGS): This.
66441         (rtld-tests-LDFLAGS): New macro.
66442         (link-libc-rpath-link): Likewise.
66443         (link-libc-tests-rpath-link): Likewise.
66444         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
66445         (link-libc): Prepand $(link-libc-rpath-link).
66446         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
66447         (test-program-prefix): New macro.
66448         (test-via-rtld-prefix): Likewise.
66449         (test-program-cmd): Likewise.
66450         (host-test-program-cmd): Likewise.
66451         * Makefile ($(common-objpfx)testrun.sh): Replace
66452         $(run-program-prefix) with $(test-program-prefix).
66453         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
66454         $(rtld-LDFLAGS).
66455         ($(common-objpfx)shlib.lds): Likewise.
66456         (build-module-helper): Likewise.
66457         ($(common-objpfx)format.lds): Likewise.
66458         * Rules (binaries-pie-tests): New.
66459         (binaries-pie-notests): Likewise.
66460         (binaries-pie): Rewritten.
66461         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
66462         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
66463         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
66464         (make-test-out): Replace $(host-built-program-cmd) with
66465         $(host-test-program-cmd).
66466         * config.make.in (build-hardcoded-path-in-tests): New variable.
66467         * configure.in (--enable-hardcoded-path-in-tests): New configure
66468         option.
66469         (hardcoded_path_in_tests): New AC_SUBST.
66470         * configure: Regenerated.
66471         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
66472         $(built-program-cmd) with $(test-program-cmd).
66473         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
66474         (test_program_cmd): This.
66475         * elf/Makefile ($(objpfx)order.out): Run test with
66476         $(test-program-prefix).
66477         ($(objpfx)order2.out): Likewise.
66478         ($(objpfx)tst-initorder.out): Likewise.
66479         ($(objpfx)tst-initorder2.out): Likewise.
66480         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
66481         $(test-program-cmd).
66482         ($(objpfx)tst-array1-static.out): Likewise.
66483         ($(objpfx)tst-array2.out): Likewise.
66484         ($(objpfx)tst-array3.out): Likewise.
66485         ($(objpfx)tst-array4.out): Likewise.
66486         ($(objpfx)tst-array5.out): Likewise.
66487         ($(objpfx)tst-array5-static.out): Likewise.
66488         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
66489         $(test-program-cmd).
66490         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
66491         $(run-program-prefix) with $(test-program-prefix).
66492         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
66493         (test_program_prefix): This.
66494         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
66495         $(run-program-prefix) with $(test-program-prefix).
66496         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
66497         (test_program_prefix): This.
66498         * iconvdata/tst-tables.sh: Likewise.
66499         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
66500         $(run-program-prefix) with $(test-program-prefix).
66501         ($(objpfx)tst-translit.out): Likewise.
66502         ($(objpfx)tst-gettext2.out): Likewise.
66503         ($(objpfx)tst-gettext4.out): Likewise.
66504         ($(objpfx)tst-gettext6.out): Likewise.
66505         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
66506         (test_program_prefix): This.
66507         * intl/tst-gettext2.sh: Likewise.
66508         * intl/tst-gettext4.sh  Likewise.
66509         * intl/tst-gettext6.sh: Likewise.
66510         * intl/tst-translit.sh: Likewise.
66511         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
66512         with $(test-program-cmd).
66513         * libio/Makefile ($(objpfx)test-freopen.out): Replace
66514         $(run-program-prefix) with $(test-program-prefix).
66515         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
66516         (test_program_prefix): This.
66517         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
66518         $(run-program-prefix) with $(test-program-prefix).
66519         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
66520         (test_program_prefix): This.
66521         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
66522         * posix/Makefile ($(objpfx)globtest.out): Replace
66523         $(run-via-rtld-prefix) and $(test-wrapper) with
66524         $(test-program-prefix) and $(test-via-rtld-prefix).
66525         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
66526         $(test-program-prefix).
66527         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
66528         $(host-test-program-cmd).
66529         (tst-spawn-ARGS): Likewise.
66530         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
66531         $(test-program-prefix).
66532         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
66533         (test_via_rtld_prefix): This.
66534         (test_wrapper): Renamed to ...
66535         (test_program_prefix): This.
66536         (run_program_prefix): Replaced by test_program_prefix.
66537         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
66538         (test_program_prefix): This.
66539         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
66540         with $(host-test-program-cmd).
66541         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
66542         $(run-program-prefix) with $(test-program-prefix).
66543         ($(objpfx)tst-printf.out): Likewise.
66544         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
66545         $(test-program-cmd).
66546         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
66547         (test_program_prefix): This.
66548         * stdio-common/tst-unbputc.sh: Likewise.
66549         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
66550         $(run-program-prefix) with $(test-program-prefix).
66551         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
66552         (test_program_prefix): This.
66553         * string/Makefile ($(objpfx)tst-svc.out):  Replace
66554         $(built-program-cmd) with $(test-program-cmd).
66555
66556 2013-01-11  Andreas Jaeger  <aj@suse.de>
66557
66558         [BZ #15003]
66559         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
66560         value. Sync with Linux 3.7.
66561
66562 2013-01-10  David S. Miller  <davem@davemloft.net>
66563
66564         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
66565         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66566         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66567
66568 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66569
66570         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
66571         never set.
66572         * configure: Regenerated.
66573
66574 2013-01-10  David S. Miller  <davem@davemloft.net>
66575
66576         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66577         sparc V9 rather than using V8 code.
66578         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66579         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66580
66581 2013-01-10  Roland McGrath  <roland@hack.frob.com>
66582
66583         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
66584         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
66585         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
66586         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
66587         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
66588         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
66589         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
66590         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
66591         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
66592         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
66593         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
66594         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
66595         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
66596         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
66597         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
66598         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
66599         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
66600         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
66601         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
66602         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
66603         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
66604         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
66605         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
66606         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
66607         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
66608         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
66609         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
66610
66611 2013-01-10  David S. Miller  <davem@davemloft.net>
66612
66613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66614
66615 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66616
66617         * posix/Makefile (tests-static): New variable.
66618         (tests): Add $(tests-static).
66619         (tst-exec-static-ARGS): New variable.
66620         (tst-spawn-static-ARGS): Likewise.
66621         * posix/tst-exec-static.c: New file.
66622         * posix/tst-spawn-static.c: Likewise.
66623         * posix/tst-exec.c: Support run directly.
66624         * posix/tst-spawn.c: Likewise.
66625
66626 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
66627
66628         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
66629         long.
66630         * math/bits/mathcalls.h (llrint): Likewise.
66631         (llround): Likewise.
66632         * stdlib/stdlib.h (struct drand48_data): Likewise.
66633         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
66634         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
66635         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
66636         Likewise.
66637         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
66638         Likewise.
66639         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
66640         (elf_greg_t): Likewise.
66641         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
66642         (__jmp_buf): Likewise.
66643         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
66644         definitions.
66645         (llrint): Likewise, for all definitions.
66646         (llrintl): Likewise.
66647
66648         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
66649         Remove [__GNUC__] condition.
66650         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
66651         condition to just [__USE_ISOC99].
66652         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
66653
66654 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
66655
66656         [BZ #14200]
66657         * sysdeps/unix/sysv/linux/x86/bits/environments.h
66658         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
66659         defined.
66660         (_POSIX_V6_ILP32_OFF32): Likewise.
66661         (_XBS5_ILP32_OFF32): Likewise.
66662         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
66663         (__ILP32_OFFBIG_LDFLAGS): Likewise.
66664
66665 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66666
66667         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
66668
66669         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
66670         doubles __mpexp_twomm1.  Adjust usage.
66671         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
66672         Remove.
66673
66674 2013-01-10  Andreas Schwab  <schwab@suse.de>
66675
66676         [BZ #14964]
66677         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
66678         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
66679
66680 2013-01-09  David S. Miller  <davem@davemloft.net>
66681
66682         [BZ #15003]
66683         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
66684         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
66685         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
66686         (TCP_FASTOPEN): Define.
66687         (tcp_repair_opt): New structure.
66688         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
66689         enum values.
66690         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
66691         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
66692         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
66693         (tcp_cookie_transactions): New structure.
66694
66695 2013-01-09  Anton Blanchard  <anton@samba.org>
66696
66697         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
66698         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
66699         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
66700         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
66701
66702 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
66703
66704         * include/features.h (__USE_ANSI): Remove.
66705
66706 2013-01-09  Roland McGrath  <roland@hack.frob.com>
66707
66708         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
66709
66710         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
66711
66712 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
66713
66714         * sysdeps/s390/fpu/libm-test-ulps: Update.
66715
66716         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66717
66718         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
66719         (__acr): Likewise.
66720         (__cpy): Likewise.
66721         (norm): Likewise.
66722         (denorm): Likewise.
66723         (__mp_dbl): Likewise.
66724         (__dbl_mp): Likewise.
66725         (add_magnitudes): Likewise.
66726         (sub_magnitudes): Likewise.
66727         (__add): Likewise.
66728         (__sub): Likewise.
66729         (__mul): Likewise.
66730         (__inv): Likewise.
66731         (__dvd): Likewise.
66732         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
66733         (__acr): Likewise.
66734         (__cpy): Likewise.
66735         (norm): Likewise.
66736         (denorm): Likewise.
66737         (__mp_dbl): Likewise.
66738         (__dbl_mp): Likewise.
66739         (add_magnitudes): Likewise.
66740         (sub_magnitudes): Likewise.
66741         (__add): Likewise.
66742         (__sub): Likewise.
66743         (__mul): Likewise.
66744         (__inv): Likewise.
66745         (__dvd): Likewise.
66746         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
66747         (__acr): Likewise.
66748         (__cpy): Likewise.
66749         (norm): Likewise.
66750         (denorm): Likewise.
66751         (__mp_dbl): Likewise.
66752         (__dbl_mp): Likewise.
66753         (add_magnitudes): Likewise.
66754         (sub_magnitudes): Likewise.
66755         (__add): Likewise.
66756         (__sub): Likewise.
66757         (__mul): Likewise.
66758         (__inv): Likewise.
66759         (__dvd): Likewise.
66760
66761 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
66762
66763         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
66764         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
66765         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
66766         2 && __USE_EXTERN_INLINES]: Likewise.
66767
66768 2013-01-08  Andreas Jaeger  <aj@suse.de>
66769
66770         [BZ #14985]
66771         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
66772         Remove.
66773         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66774         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
66775
66776 2013-01-07  Anton Blanchard  <anton@samba.org>
66777
66778         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
66779         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
66780         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
66781         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
66782         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
66783         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66784         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
66785         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
66786         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66787         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
66788         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
66789         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
66790         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66791         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
66792         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
66793         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
66794         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
66795         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
66796         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
66797         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
66798         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
66799         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
66800         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
66801         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
66802         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
66803         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
66804         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
66805         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
66806         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
66807         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66808         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
66809         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66810         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
66811         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
66812         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
66813         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
66814         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
66815         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
66816         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
66817         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
66818         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
66819         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
66820         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
66821
66822 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
66823
66824         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
66825         (__MALLOC_PMT): Likewise.
66826         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
66827         [__GNUC__], only on [_LIBC].
66828         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66829         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
66830         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
66831         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
66832         forward declaration.
66833         (realloc_hook_ini): Likewise.
66834         (memalign_hook_ini): Likewise.
66835         (__libc_memalign): Do not use __MALLOC_PMT in variable
66836         declaration.
66837         (__libc_valloc): Likewise.
66838         (__libc_pvalloc): Likewise.
66839         (__libc_calloc): Likewise.
66840         (__posix_memalign): Likewise.
66841
66842         [BZ #14996]
66843         * math/s_casinh.c: Include <float.h>.
66844         (__casinh): Do not do computation with squaring and square root
66845         for large arguments.
66846         * math/s_casinhf.c: Include <float.h>.
66847         (__casinhf): Do not do computation with squaring and square root
66848         for large arguments.
66849         * math/s_casinhl.c: Include <float.h>.
66850         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
66851         (__casinhl): Do not do computation with squaring and square root
66852         for large arguments.
66853         * math/libm-test.inc (casin_test): Add more tests.
66854         (casinh_test): Likewise.
66855         * sysdeps/i386/fpu/libm-test-ulps: Update.
66856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66857
66858 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
66859
66860         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
66861         (__x86_64_raw_data_cache_size): Likewise.
66862         (__x86_64_data_cache_size_half): Likewise.
66863         (__x86_64_raw_data_cache_size_half): Likewise.
66864         (__x86_64_shared_cache_size): Likewise.
66865         (__x86_64_raw_shared_cache_size): Likewise.
66866         (__x86_64_shared_cache_size_half): Likewise.
66867         (__x86_64_raw_shared_cache_size_half): Likewise.
66868         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
66869         to ...
66870         (__x86_data_cache_size): This.
66871         (__x86_64_raw_data_cache_size): Renamed to ...
66872         (__x86_raw_data_cache_size): This.
66873         (__x86_64_data_cache_size_half): Renamed to ...
66874         (__x86_data_cache_size_half): This.
66875         (__x86_64_raw_data_cache_size_half): Renamed to ...
66876         (__x86_raw_data_cache_size_half): This.
66877         (__x86_64_shared_cache_size): Renamed to ...
66878         (__x86_shared_cache_size): This.
66879         (__x86_64_raw_shared_cache_size): Renamed to ...
66880         (__x86_raw_shared_cache_size): This.
66881         (__x86_64_shared_cache_size_half): Renamed to ...
66882         (__x86_shared_cache_size_half): This.
66883         (__x86_64_raw_shared_cache_size_half): Renamed to ...
66884         (__x86_raw_shared_cache_size_half): This.
66885         * sysdeps/x86_64/memcpy.S: Updated.
66886         * sysdeps/x86_64/memset.S: Likewise.
66887         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
66888         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
66889         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
66890
66891 2013-01-04  David S. Miller  <davem@davemloft.net>
66892
66893         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66894
66895 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
66896
66897         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
66898         1 to avoid redefinition warning.
66899         (__USE_GNU): Don't define.
66900         (init_signaling_nan): Protoize.
66901
66902         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66903
66904 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66905
66906         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
66907         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
66908         (__cpymn): Likewise.
66909         (norm): Remove commented code.
66910         (denorm): Likewise.
66911         (__mp_dbl): Likewise.
66912         (__inv): Likewise.
66913         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
66914         (__cpymn): Likewise.
66915         (norm): Remove commented code.
66916         (denorm): Likewise.
66917         (__mp_dbl): Likewise.
66918         (__inv): Likewise.
66919
66920         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
66921         mp_no value for 1.0 and 2.0.
66922         (norm): Use RADIXI instead of radixi.d.
66923         (denorm): Likewise.
66924         (__mul): Use 0.0 instead of zero.d.
66925         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
66926         mp_no value for 1.0 and 2.0.
66927         (norm): Use RADIXI instead of radixi.d.
66928         (denorm): Likewise.
66929         (__mul): Use 0.0 instead of zero.d.
66930
66931 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
66932
66933         [BZ #14994]
66934         * math/s_casinh.c (__casinh): Reduce finite argument to first
66935         quadrant then set signs of results at the end.
66936         * math/s_casinhf.c (__casinhf): Likewise.
66937         * math/s_casinhl.c (__casinhl): Likewise.
66938         * math/libm-test.inc (casin_test): Add more tests.
66939         (casinh_test): Likewise.
66940         * sysdeps/i386/fpu/libm-test-ulps: Update.
66941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66942
66943 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66944
66945         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
66946
66947         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
66948
66949         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
66950         declarations.
66951         (denorm): Likewise.
66952         (__mp_dbl): Likewise.
66953         (__inv): Likewise.
66954
66955         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
66956         and adjust the header comment.
66957
66958         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
66959         variable name from declaration.
66960
66961 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
66962
66963         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
66964         Initialize COMMON_CPUID_INDEX_7 element.
66965         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
66966         (CPUID_RTM): Likewise.
66967         (HAS_RTM): Likewise.
66968         (COMMON_CPUID_INDEX_7): New enum.
66969
66970 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
66971
66972         [BZ #14981]
66973         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
66974         size is zero, record memory as freed.
66975
66976 2013-01-03  Andreas Jaeger  <aj@suse.de>
66977
66978         * po/ia.po: Add new Interlingua translation.
66979
66980 2012-01-03  Allan McRae  <allan@archlinux.org>
66981
66982         * locale/programs/localedef.c: Fix description of '--posix' flag.
66983
66984 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
66985
66986         * NEWS: Update dates in second copyright notice.
66987         * README: Update copyright dates in example.
66988         * manual/libc.texinfo: Update copyright dates.
66989         * scripts/test-installation.pl: Update copyright date in --version
66990         output.
66991
66992         * hurd/ctty-input.c: Fix copyright notice formatting.
66993         * hurd/ctty-output.c: Likewise.
66994         * hurd/dtable.c: Likewise.
66995         * hurd/hurd-raise.c: Likewise.
66996         * hurd/hurdprio.c: Likewise.
66997         * hurd/msgportdemux.c: Likewise.
66998         * misc/sys/file.h: Likewise.
66999         * misc/sys/ioctl.h: Likewise.
67000         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67001         * sysdeps/mach/hurd/chdir.c: Likewise.
67002         * sysdeps/mach/hurd/fchdir.c: Likewise.
67003         * sysdeps/mach/hurd/rename.c: Likewise.
67004         * sysdeps/mach/hurd/rmdir.c: Likewise.
67005         * sysdeps/mach/hurd/seekdir.c: Likewise.
67006         * sysdeps/mach/hurd/setsid.c: Likewise.
67007         * sysdeps/posix/wait3.c: Likewise.
67008
67009         * All files with FSF copyright notices: Update copyright dates
67010         using scripts/update-copyrights.
67011         * intl/plural.c: Regenerated.
67012         * locale/programs/charmap-kw.h: Likewise.
67013         * locale/programs/locfile-kw.h: Likewise.
67014
67015 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67016
67017         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67018         four values.
67019
67020         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67021         calculation loop and add branch prediction.
67022
67023         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67024         check access beyond bounds of m1np.
67025
67026         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67027         MPTWO.
67028         (__inv): Remove local variable MPTWO to use the global
67029         constant.
67030         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67031         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67032         variable MPTWO.
67033         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67034         MP3HALFS static const.
67035
67036 2013-01-01  David S. Miller  <davem@davemloft.net>
67037
67038         * po/ca.po: Update from translation team.
67039
67040 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67041
67042         * scripts/update-copyrights: New file.
67043         * Makeconfig: Reformat copyright notice.
67044         * ctype/ctype.h: Likewise.
67045         * debug/swprintf_chk.c: Likewise.
67046         * elf/dl-cache.c: Likewise.
67047         * elf/dl-debug.c: Likewise.
67048         * elf/dl-object.c: Likewise.
67049         * grp/initgroups.c: Likewise.
67050         * hurd/Makefile: Likewise.
67051         * hurd/hurd/signal.h: Likewise.
67052         * hurd/hurdfault.c: Likewise.
67053         * hurd/hurdioctl.c: Likewise.
67054         * hurd/hurdlookup.c: Likewise.
67055         * hurd/intr-msg.c: Likewise.
67056         * iconv/gconv_open.c: Likewise.
67057         * libio/swprintf.c: Likewise.
67058         * locale/lc-ctype.c: Likewise.
67059         * locale/nl_langinfo.c: Likewise.
67060         * mach/Machrules: Likewise.
67061         * mach/Makefile: Likewise.
67062         * malloc/obstack.h: Likewise.
67063         * manual/Makefile: Likewise.
67064         * manual/tsort.awk: Likewise.
67065         * misc/bits/stab.def: Likewise.
67066         * nis/nis_print_group_entry.c: Likewise.
67067         * nis/nis_table.c: Likewise.
67068         * nis/nss_compat/compat-pwd.c: Likewise.
67069         * nis/nss_compat/compat-spwd.c: Likewise.
67070         * po/Makefile: Likewise.
67071         * posix/fnmatch.c: Likewise.
67072         * posix/regex.h: Likewise.
67073         * resolv/Makefile: Likewise.
67074         * resolv/nss_dns/dns-network.c: Likewise.
67075         * resolv/res_hconf.c: Likewise.
67076         * scripts/gen-sorted.awk: Likewise.
67077         * soft-fp/soft-fp.h: Likewise.
67078         * stdio-common/printf.h: Likewise.
67079         * stdlib/monetary.h: Likewise.
67080         * stdlib/random.c: Likewise.
67081         * stdlib/random_r.c: Likewise.
67082         * sysdeps/generic/Makefile: Likewise.
67083         * sysdeps/gnu/Makefile: Likewise.
67084         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67085         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67086         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67087         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67088         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67089         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67090         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67091         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67092         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67093         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67094         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67095         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67096         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67097         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67098         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67099         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67100         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67101         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67102         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67103         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67104         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67105         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67106         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67107         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67108         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67109         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67110         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67111         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67112         * sysdeps/mach/hurd/errnos.awk: Likewise.
67113         * sysdeps/mach/hurd/fork.c: Likewise.
67114         * sysdeps/mach/hurd/getcwd.c: Likewise.
67115         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67116         * sysdeps/mach/hurd/mmap.c: Likewise.
67117         * sysdeps/mach/hurd/utimes.c: Likewise.
67118         * sysdeps/mach/hurd/xmknod.c: Likewise.
67119         * sysdeps/posix/profil.c: Likewise.
67120         * sysdeps/posix/readdir_r.c: Likewise.
67121         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67122         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67123         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67124         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67125         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67126         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67127         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67128         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67130         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67131         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67132         * sysdeps/pthread/lio_listio.c: Likewise.
67133         * sysdeps/sparc/dl-procinfo.h: Likewise.
67134         * sysdeps/unix/i386/sysdep.S: Likewise.
67135         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67136         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67137         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67138         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67140         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67141         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67142         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67143         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67144         * sysdeps/wordsize-32/divdi3.c: Likewise.
67145         * time/sys/time.h: Likewise.
67146         * wcsmbs/Makefile: Likewise.
67147
67148 2013-01-01  David S. Miller  <davem@davemloft.net>
67149
67150         * po/fr.po: Update from translation team.
67151
67152         * catgets/gencat.c: Update copyright year.
67153         * csu/version.c: Likewise.
67154         * debug/catchsegv.sh: Likewise.
67155         * debug/pcprofiledump.c: Likewise.
67156         * debug/xtrace.sh: Likewise.
67157         * elf/ldconfig.c: Likewise.
67158         * elf/ldd.bash.in: Likewise.
67159         * elf/pldd.c: Likewise.
67160         * elf/sotruss.ksh: Likewise.
67161         * elf/sprof.c: Likewise.
67162         * iconv/iconv_prog.c: Likewise.
67163         * iconv/iconvconfig.c: Likewise.
67164         * locale/programs/locale.c: Likewise.
67165         * locale/programs/localedef.c: Likewise.
67166         * login/programs/pt_chown.c: Likewise.
67167         * malloc/memusage.sh: Likewise.
67168         * malloc/memusagestat.c: Likewise.
67169         * malloc/mtrace.pl: Likewise.
67170         * nscd/nscd.c: Likewise.
67171         * nss/getent.c: Likewise.
67172         * nss/makedb.c: Likewise.
67173         * posix/getconf.c: Likewise.
67174
67175 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67176
67177         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67178         numbers.
67179
67180 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67181
67182         * math/bits/mathcalls.h (modf): Use __nonnull.
67183
67184 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67185
67186         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67187         (split): Use macro CN instead of the bare value.
67188         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67189         could be used.
67190         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67191         instead of the bare value.
67192         (power1): Likewise.
67193
67194 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67195
67196         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67197         __ATAN_TWOM.
67198         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67199
67200         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67201         their values.
67202         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67203         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67204         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67205         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67206
67207 2012-12-28  Andreas Jaeger  <aj@suse.de>
67208
67209         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67210         values are from Linux 3.7.
67211
67212         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67213         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67214
67215 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67216
67217         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67218         TRUE case.
67219
67220         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67221         (norm): Likewise.
67222         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67223         variables with preprocessor constants.
67224         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67225         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67226         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67227
67228 2012-12-27  Bruno Haible  <bruno@clisp.org>
67229
67230         [BZ #14317]
67231         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67232         only if needed.
67233
67234 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67235
67236         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67237         and use variable directly.
67238         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67239
67240         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67241         MPONE.
67242         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67243         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67244         variable MPONE.
67245         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67246         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67247         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67248         include directive.  Remove local variable MPONE.
67249         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67250         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67251         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67252
67253 2012-12-25  David S. Miller  <davem@davemloft.net>
67254
67255         * version.h (RELEASE): Set to "development".
67256         (VERSION): Set to "2.17.90".
67257         * NEWS: Add 2.18 section.
67258
67259 2012-12-21  David S. Miller  <davem@davemloft.net>
67260
67261         * po/hr.po: Update from translation team.
67262
67263 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67264
67265         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67266
67267 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67268
67269         * NEWS:  Mention new memcpy for MIPS.
67270
67271 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67272
67273         * manual/contrib.texi (Contributors): Spelling correction.
67274
67275 2012-12-15  David S. Miller  <davem@davemloft.net>
67276
67277         * po/ru.po: Update from translation team.
67278
67279 2012-12-13  David S. Miller  <davem@davemloft.net>
67280
67281         * NEWS: Mention IFUNC testsuite enhancements.
67282
67283         * po/pl.po: Update from translation team.
67284         * po/bg.po: Likewise.
67285
67286         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67287         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67288
67289 2012-12-11  David S. Miller  <davem@davemloft.net>
67290
67291         * po/sv.po: Update from translation team.
67292
67293         * po/vi.po: Update from translation team.
67294
67295         * po/cs.po: Update from translation team.
67296
67297         * po/de.po: Update from translation team.
67298         * po/eo.po: Likewise.
67299         * po/nl.po: Likewise.
67300
67301 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67302
67303         [BZ #14246]
67304         * manual/argp.texi (Argp Helper Functions): Move node to follow
67305         Argp Parsing State.
67306
67307         [BZ #14872]
67308         * manual/conf.texi (Limits on File System Capacity): Mention if
67309         terminating null is included in the max size.
67310
67311 2012-12-10  Andreas Jaeger  <aj@suse.de>
67312
67313         * po/cs.po: Update from translation team.
67314
67315 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67316
67317         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
67318         void pointer and cast to uintptr_t.
67319         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
67320         path.
67321         * sysdeps/s390/s390-64/memcpy.S: Likewise.
67322         * sysdeps/s390/s390-64/memset.S: Likewise.
67323
67324 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
67325
67326         [BZ #14833]
67327         * menual/message.texi (Message Translation): Fix typos.
67328         (Helper programs for gettext): Likewise.
67329
67330 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
67331
67332         [BZ #14898]
67333         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
67334         Change to -1.
67335
67336 2012-12-07  David S. Miller  <davem@davemloft.net>
67337
67338         * po/libc.pot: Update.
67339
67340 2012-12-07  Richard Henderson  <rth@redhat.com>
67341
67342         [BZ #10114]
67343         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
67344         normal/normal case to before the switch.
67345         (_FP_DIV): Likewise.
67346
67347 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
67348             Mike Frysinger  <vapier@gentoo.org>
67349
67350         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
67351         check for __NR_fadvise64_64.
67352
67353 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
67354
67355         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
67356         0, not just to plain "0" as a statement.
67357         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
67358         with cw.
67359
67360 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
67361
67362         * NEWS: Use sourceware.org in Bugzilla URL.
67363
67364 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67365
67366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
67367         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67368
67369         * stdio-common/tst-put-error.c (do_test): Add newline to the
67370         padded test to ensure flush.
67371
67372 2012-12-05  Jeff Law  <law@redhat.com>
67373
67374         * sunrpc/etc.rpc (fedfs_admin): Add entry.
67375
67376 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
67377
67378         * README: Don't refer to ports add-on as distributed separately.
67379         Mention AArch64 in list of systems supported in the ports add-on.
67380
67381         * LICENSES: Add more non-FSF copyright and license notices.
67382
67383         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
67384         ((unused)).
67385
67386         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
67387
67388         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
67389         10000 as width of padded output.
67390
67391 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67392
67393         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
67394
67395         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
67396         variable LX with __attribute__ ((unused)).
67397         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
67398         Likewise.
67399         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
67400         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67401         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
67402         with __attribute__ ((unused)).
67403
67404 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
67405
67406         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
67407
67408 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67409
67410         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
67411         (CFLAGS-nldbl-acos.c): New variable.
67412         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
67413         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
67414         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
67415         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
67416         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
67417         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
67418         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
67419         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
67420         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
67421         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
67422         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
67423         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
67424         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
67425         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67426         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
67427         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
67428         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
67429         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
67430         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
67431         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
67432         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
67433         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
67434         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
67435         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
67436         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
67437         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
67438         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
67439         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
67440         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
67441         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
67442         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
67443         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
67444         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
67445         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
67446         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
67447         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
67448         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
67449         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
67450         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
67451         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
67452         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
67453         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
67454         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
67455         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
67456         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
67457         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
67458         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
67459         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
67460         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
67461         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
67462         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
67463         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
67464         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
67465         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
67466         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
67467         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
67468         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
67469         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
67470         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
67471         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
67472         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
67473         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
67474         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
67475         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
67476         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
67477         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
67478         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
67479         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
67480         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
67481         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
67482         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
67483         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
67484         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
67485         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
67486         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
67487         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
67488         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
67489         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
67490         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
67491         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
67492         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
67493         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
67494         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
67495         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
67496         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
67497         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
67498         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
67499         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
67500         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
67501         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
67502         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
67503         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
67504         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
67505         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
67506         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
67507         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
67508         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
67509
67510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
67511         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67512
67513         [BZ #14914]
67514         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
67515         whole low double instead of just low 47 bits when splitting values
67516         into two parts.
67517
67518 2012-12-03  Allan McRae  <allan@archlinux.org>
67519
67520         * manual/stdio.texi (Predefined Printf Handlers): Remove
67521         @hsep and @vsep usage.
67522
67523 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
67524
67525         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
67526         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
67527
67528 2012-12-03  Jeff Law  <law@redhat.com>
67529
67530         * time/sys/time.h (settimeofday): Do not mark TV argument
67531         as __nonnull.
67532
67533 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
67534
67535         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
67536         when currently writing and seek to current position when not.
67537         * libio/Makefile (tests): Remove bug-fclose1.
67538         * libio/bug-fclose1.c: Delete.
67539
67540 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
67541
67542         * manual/arith.texi (feenableexcept): Fix typo.
67543         (fedisableexcept): Likewise.
67544
67545 2012-11-30  Roland McGrath  <roland@hack.frob.com>
67546
67547         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
67548         second, differently-typed declaration, rather than a cast.
67549
67550 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
67551
67552         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
67553         * include/rpc/svc.h: ... here.
67554
67555 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
67556
67557         [BZ #13013]
67558         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
67559         depending n and resplen2 to catch cases where answer
67560         equals answerp2.
67561
67562 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
67563
67564         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
67565         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
67566
67567 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
67568
67569         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
67570
67571 2012-11-29  Roland McGrath  <roland@hack.frob.com>
67572
67573         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
67574
67575 2012-11-28  Jeff Law  <law@redhat.com>
67576
67577         [BZ #13761]
67578         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
67579         dataset_temporary.  Track alloca usage into alloca_used.
67580         If dataset is large allocate and release it via malloc/free.
67581
67582 2012-06-04  Florian Weimer  <fweimer@redhat.com>
67583
67584         [BZ #14197]
67585         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
67586
67587 2012-11-28  David S. Miller  <davem@davemloft.net>
67588
67589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67590
67591 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67592
67593         [BZ #14803]
67594         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
67595         of pi/2 rounded to nearest to 64 bits.
67596         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
67597         nearest to 64 bits.
67598         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
67599         bits.
67600
67601 2012-11-28  Jeff Law <law@redhat.com>
67602             Martin Osvald <mosvald@redhat.com>
67603
67604         [BZ #14889]
67605         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
67606         * sunrpc/svc.c: Include time.h.
67607         (__svc_accept_failed): New function.
67608         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
67609         any reason other than EINTR, call __svc_accept_failed.
67610         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
67611         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
67612
67613 2012-11-28  Andreas Schwab  <schwab@suse.de>
67614
67615         * scripts/abilist.awk: Also handle indirect functions in .opd
67616         section.
67617
67618 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
67619
67620         [BZ #13881]
67621         * sysdeps/x86/fpu/powl_helper.c: New file.
67622         * sysdeps/x86/fpu/Makefile: Likewise.
67623         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
67624         (p3): New object.
67625         (__ieee754_powl): Use __powl_helper for finite arguments except
67626         integer exponents below 8.
67627         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
67628         (p3): New object.
67629         (__ieee754_powl): Use __powl_helper for finite arguments except
67630         integer exponents below 8.
67631         * math/libm-test.inc (pow_test): Add more tests and enable some
67632         previously disabled tests.
67633         * sysdeps/i386/fpu/libm-test-ulps: Update.
67634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67635
67636 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67637             Carlos O'Donell  <carlos_odonell@mentor.com>
67638
67639         * nss/makedb.c (is_prime): Assert that input is odd and greater
67640         than 4.  Note that fact in a comment too.
67641         (next_prime): Add 4 to input.
67642
67643 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67644
67645         [BZ #11741]
67646         * libio/Makefile (tests): Add test case tst-fwrite-error.
67647         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
67648         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
67649         * libio/tst-fwrite-error.c: New test case.
67650
67651 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
67652
67653         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
67654         before casting to void *.
67655         * include/libc-internal.h (__pointer_type): New macro.
67656         (__integer_if_pointer_type_sub): Likewise.
67657         (__integer_if_pointer_type): Likewise.
67658         (cast_to_integer): Likewise.
67659         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
67660         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
67661         before casting to atomic64_t.
67662         (atomic_exchange_acq): Likewise.
67663         (__arch_exchange_and_add_body): Likewise.
67664         (__arch_add_body): Likewise.
67665         (atomic_add_negative): Likewise.
67666         (atomic_add_zero): Likewise.
67667
67668 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
67669
67670         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
67671         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
67672         (add_fdes): Likewise.
67673         (linear_search_fdes): Likewise.
67674         (binary_search_unencoded_fdes): Likewise.
67675
67676 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
67677
67678         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
67679
67680 2012-11-24  Adam Conrad  <adconrad@0c3.net>
67681
67682         * configure.in: Autodetect C++ header directories.
67683         * configure: Regenerated.
67684
67685 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
67686
67687         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
67688
67689 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
67690
67691         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67692
67693 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
67694
67695         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
67696         LDBL_MANT_DIG == 106]: Disable some tests.
67697         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67698         Likewise.
67699         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
67700         Likewise.
67701
67702         [BZ #14871]
67703         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
67704         input for small inputs.  Return +/- pi/2 for large inputs.
67705         * math/libm-test.inc (atan_test): Add more tests.
67706
67707         * sysdeps/generic/unwind-dw2-fde-glibc.c
67708         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
67709         __attribute__ ((unused)).
67710
67711         [BZ #14645]
67712         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
67713         x * y if x and y are nonzero and z is zero.
67714
67715         [BZ #14811]
67716         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
67717         nonzero exponents with absolute value below 0x1p-117 to +/-
67718         0x1p-117.
67719
67720         [BZ #14869]
67721         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
67722         up arguments below 2**-450, not just those below 2**-500.
67723         * math/libm-test.inc (hypot_test): Add another test.
67724
67725         [BZ #14868]
67726         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
67727         Return a+b for ratio over 2**120, not 2**60.
67728         * math/libm-test.inc (hypot_test): Add another test.
67729
67730         * math/libm-test.inc (clog_test): Use
67731         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
67732         (clog10_test): Likewise.
67733
67734         [BZ #6778]
67735         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
67736
67737 2012-11-22  Andreas Schwab  <schwab@suse.de>
67738
67739         * sysdeps/i386/fpu/libm-test-ulps: Update.
67740
67741 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
67742
67743         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
67744         printf output with newline.
67745
67746 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
67747
67748         [BZ #14865]
67749         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
67750         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
67751         -z nodlopen, -z initfirst and -z execstack support.
67752         * configure: Regenerated.
67753
67754         * elf/elf.h (DF_1_NODIRECT): New macro.
67755         (DF_1_IGNMULDEF): Likewise.
67756         (DF_1_NOKSYMS): Likewise.
67757         (DF_1_NOHDR): Likewise.
67758         (DF_1_EDITED): Likewise.
67759         (DF_1_NORELOC): Likewise.
67760         (DF_1_SYMINTPOSE): Likewise.
67761         (DF_1_GLOBAUDIT): Likewise.
67762         (DF_1_SINGLETON): Likewise.
67763         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
67764         DT_1_SUPPORTED_MASK bits.
67765         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
67766
67767 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
67768
67769         * sysdeps/unix/make-syscalls.sh: Document prefixes.
67770
67771 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
67772
67773         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
67774         macro.
67775
67776         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
67777         (sendmmsg): Move declarations...
67778         * socket/sys/socket.h: ... here.
67779         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
67780         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
67781         include it from...
67782         * socket/recvmmsg.c: ... this new file.
67783         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
67784         (sendmmsg): Rename to __sendmmsg, create weak alias and make
67785         definition of __sendmmsg hidden.
67786         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
67787         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
67788         Move ENOSYS stub into and include it from...
67789         * socket/sendmmsg.c: ... this new file.
67790         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
67791         (sysdep_routines): Move recvmmsg and sendmmsg...
67792         * socket/Makefile (routines): ... here.
67793         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
67794         (GLIBC_PRIVATE): Add __sendmmsg.
67795         * include/sys/socket.h (__sendmmsg): Add declarations.
67796         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
67797         sendmmsg.
67798
67799 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
67800
67801         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
67802         variable I1 with __attribute__ ((unused)).
67803         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67804
67805 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67806
67807         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
67808         DUMMY variables with __attribute__ ((unused)).
67809
67810         * bits/byteswap.h: Include <bits/types.h>.
67811         (__bswap_64): Use __uint64_t instead of unsigned long long int.
67812
67813 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
67814
67815         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
67816         string_t.  Do not manually set errno.
67817         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
67818         length with __strnlen.  Make sure to both set errno and return it on
67819         failure.
67820
67821 2012-11-19  David S. Miller  <davem@davemloft.net>
67822
67823         With help from Joseph Myers.
67824         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
67825         very large arguments properly.
67826         * math/libm-test.inc (atan_test): New tests.
67827         (atan2_test): New tests.
67828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67829         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
67830
67831 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
67832
67833         [BZ #14856]
67834         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
67835         Define to 3.
67836
67837         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
67838         [POSIX] (EADDRNOTAVAIL): Likewise.
67839         [POSIX] (EAFNOSUPPORT): Likewise.
67840         [POSIX] (EALREADY): Likewise.
67841         [POSIX] (ECONNABORTED): Likewise.
67842         [POSIX] (ECONNREFUSED): Likewise.
67843         [POSIX] (ECONNRESET): Likewise.
67844         [POSIX] (EDESTADDRREQ): Likewise.
67845         [POSIX] (EDQUOT): Likewise.
67846         [POSIX] (EHOSTUNREACH): Likewise.
67847         [POSIX] (EIDRM): Likewise.
67848         [POSIX] (EISCONN): Likewise.
67849         [POSIX] (ELOOP): Likewise.
67850         [POSIX] (EMULTIHOP): Likewise.
67851         [POSIX] (ENETDOWN): Likewise.
67852         [POSIX] (ENETUNREACH): Likewise.
67853         [POSIX] (ENOBUFS): Likewise.
67854         [POSIX] (ENODATA): Likewise.
67855         [POSIX] (ENOLINK): Likewise.
67856         [POSIX] (ENOMSG): Likewise.
67857         [POSIX] (ENOPROTOOPT): Likewise.
67858         [POSIX] (ENOSR): Likewise.
67859         [POSIX] (ENOSTR): Likewise.
67860         [POSIX] (ENOTCONN): Likewise.
67861         [POSIX] (ENOTSOCK): Likewise.
67862         [POSIX] (EOPNOTSUPP): Likewise.
67863         [POSIX] (EOVERFLOW): Likewise.
67864         [POSIX] (EPROTO): Likewise.
67865         [POSIX] (EPROTONOSUPPORT): Likewise.
67866         [POSIX] (EPROTOTYPE): Likewise.
67867         [POSIX] (ESTALE): Likewise.
67868         [POSIX] (ETIME): Likewise.
67869         [POSIX] (ETXTBSY): Likewise.
67870         [POSIX] (EWOULDBLOCK): Likewise.
67871         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
67872         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
67873         [POSIX] (SEEK_CUR): Likewise.
67874         [POSIX] (SEEK_END): Likewise.
67875         [POSIX || UNIX98] (mode_t): Do not require.
67876         [POSIX] (off_t): Likewise.
67877         [POSIX] (pid_t): Likewise.
67878         [POSIX] (sys/stat.h): Do not allow header.
67879         [POSIX] (unistd.h): Likewise.
67880         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
67881         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
67882         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
67883         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
67884         require.
67885         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
67886         sigevent): Specify elements.
67887         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
67888         entry.
67889         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
67890         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
67891
67892         * conform/data/cpio.h-data [POSIX]: Disable whole file.
67893         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
67894         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
67895         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
67896         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
67897         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
67898         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
67899         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
67900         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
67901         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
67902         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
67903         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
67904         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
67905         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
67906         Likewise.
67907         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
67908         Likewise.
67909         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
67910         Likewise.
67911         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
67912         Likewise.
67913         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
67914         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
67915         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
67916         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
67917         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
67918         Specify lower bound on value.
67919         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
67920         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
67921         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
67922         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
67923         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
67924         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
67925         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
67926         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
67927         value.
67928         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
67929         as optional.
67930         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
67931         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
67932         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
67933         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
67934         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
67935         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
67936         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
67937         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
67938         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
67939         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
67940         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
67941         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
67942         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
67943         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
67944         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
67945         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
67946         entry.
67947         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
67948         optional.
67949         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
67950         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
67951         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
67952         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
67953         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
67954         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
67955         Likewise.
67956         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
67957         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
67958         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
67959         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
67960         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
67961         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
67962         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
67963         as optional.
67964         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
67965         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
67966         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
67967         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
67968         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
67969         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
67970         specify as optional.
67971         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
67972         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
67973         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
67974         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
67975         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
67976         [XPG3] (NL_LANGMAX): Likewise.
67977         [POSIX || XPG3] (NL_MSGMAX): Likewise.
67978         [POSIX || XPG3] (NL_NMAX): Likewise.
67979         [POSIX || XPG3] (NL_SETMAX): Likewise.
67980         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
67981         [XPG3] (NZERO): Likewise.
67982         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
67983         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
67984         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
67985         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
67986         (REG_ERANGE): Expect.
67987         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
67988         optional-constant.
67989         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
67990         Use (void) in prototype.
67991         [POSIX] (*_t): Allow.
67992         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
67993         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
67994         (WRDE_BADVAL): Expect.
67995
67996         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
67997         expect.
67998         [XPG3 || XPG4] (O_RSYNC): Likewise.
67999         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68000         Likewise.
68001         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68002         [XPG3 || XPG4] (sigqueue): Likewise.
68003         [XPG3 || XPG4] (sigtimedwait): Likewise.
68004         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68005         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68006         [XPG3 || XPG4] (vsnprintf): Likewise.
68007         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68008         Likewise.
68009         [XPG3 || XPG4] (blksize_t): Likewise.
68010         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68011         Likewise.
68012         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68013         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68014         [XPG3 || XPG4] (struct itimerspec): Likewise.
68015         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68016         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68017         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68018         [XPG3 || XPG4] (clockid_t): Likewise.
68019         [XPG3 || XPG4] (timer_t): Likewise.
68020         [XPG3 || XPG4] (clock_getres): Likewise.
68021         [XPG3 || XPG4] (clock_gettime): Likewise.
68022         [XPG3 || XPG4] (clock_settime): Likewise.
68023         [XPG3 || XPG4] (nanosleep): Likewise.
68024         [XPG3 || XPG4] (timer_create): Likewise.
68025         [XPG3 || XPG4] (timer_delete): Likewise.
68026         [XPG3 || XPG4] (timer_gettime): Likewise.
68027         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68028         [XPG3 || XPG4] (timer_settime): Likewise.
68029         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68030         [XPG3 || XPG4] (getlogin_r): Likewise.
68031         [XPG3 || XPG4] (pread): Likewise.
68032         [XPG3 || XPG4] (pthread_atfork): Likewise.
68033         [XPG3 || XPG4] (pwrite): Likewise.
68034
68035         [BZ #14835]
68036         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68037         <bits/siginfo.h>.
68038
68039 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68040
68041         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68042         finalizing MALLSTREAM.
68043
68044         * sysdeps/mach/hurd/syncfs.c: New file.
68045
68046 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68047
68048         [BZ #14719]
68049         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68050         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68051         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68052         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68053         (_nss_dns_gethostbyname4_r): Likewise.
68054         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68055         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68056
68057 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68058
68059         [BZ #13763]
68060         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68061
68062 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68063
68064         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68065         * elf/cache.c (print_entry): Print ",AArch64" for
68066         FLAG_AARCH64_LIB64
68067
68068         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68069         * elf/cache.c (print_entry): Print ",hard-float" for
68070         FLAG_ARM_LIBHF.
68071
68072 2012-11-18  David S. Miller  <davem@davemloft.net>
68073
68074         With help from Joseph Myers.
68075         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68076         cutoff to 2**-13.
68077         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68078         cutoff to 2**-25.
68079         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68080         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68081         small.
68082         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68083         * math/libm-test.inc (y0_test): New tests.
68084         (y1_test): New tests.
68085         * sysdeps/i386/fpu/libm-test-ulps: Update.
68086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68087         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68088
68089 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68090
68091         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68092         64-bit targets.
68093         * configure: Regenerated.
68094
68095 2012-11-17  David S. Miller  <davem@davemloft.net>
68096
68097         [BZ #14811]
68098         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68099         nonzero exponents with absolute value below 0x1p-128 to +/-
68100         0x1p-128.
68101
68102 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68103
68104         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68105
68106         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68107
68108         * posix/getconf-speclist.c: New file.
68109         * posix/posix-envs.def: Likewise.
68110         * posix/confstr.c (START_ENV_GROUP): New macro.
68111         (END_ENV_GROUP): Likewise.
68112         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68113         (KNOWN_PRESENT_ENV_STRING): Likewise.
68114         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68115         (UNKNOWN_ENVIRONMENT): Likewise.
68116         (confstr): Include posix-envs.def instead of handling
68117         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68118         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68119         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68120         (END_ENV_GROUP): Likewise.
68121         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68122         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68123         (UNKNOWN_ENVIRONMENT): Likewise.
68124         (__sysconf): Include posix-envs.def instead of handling associated
68125         cases directly here.
68126         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68127         preprocessing getconf-speclist.c rather than running getconf or
68128         generating empty file.
68129
68130 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68131
68132         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68133
68134 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68135
68136         [BZ #14672]
68137         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68138
68139 2012-11-16  David S. Miller  <davem@davemloft.net>
68140
68141         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68142         smaller than LDBL_EPSILON/2.0L, just return xm1.
68143
68144 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68145
68146         * elf/tst-array1.c (init): Set constructor priority to 1000.
68147         (fini): Set destructor priority to 1000.
68148         * elf/tst-array2dep.c: Likewise.
68149
68150 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68151
68152         [BZ #11741]
68153         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68154         (_IO_new_file_xsputn): Also return EOF if none of the input
68155         data was written when overflow failed.
68156         * libio/iopadn.c (_IO_padn): Likewise.
68157         * libio/iowpadn.c (_IO_wpadn): Likewise.
68158         * stdio-common/tst-put-error.c: Add copyright notice.
68159         (do_test): Add case for printing padded string.
68160         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68161         _IO_padn returned error.
68162         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68163         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68164         return EOF.
68165
68166 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68167
68168         * libio/libioP.h: Add comment note that the references to C++
68169         bits are now obsolete.
68170
68171 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68172
68173         * math/libm-test.inc (check_complex): Use asprintf.
68174
68175 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68176
68177         * debug/pcprofiledump.c (print_version): Update copyright year.
68178         * malloc/memusagestat.c (print_version): Likewise.
68179
68180 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68181
68182         [BZ #14831]
68183         * elf/Makefile (tests): Add tst-audit8.
68184         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68185         ($(objpfx)tst-audit8.out): New target.
68186         (tst-audit8-ENV): New variable.
68187         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68188         audit if l_reloc_result is NULL.
68189         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68190         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68191         * elf/tst-audit8.c: New file.
68192
68193 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68194
68195         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68196         * misc/Makefile (CFLAGS-select.c): Define.
68197         * posix/Makefile (CFLAGS-pause.c): Define.
68198
68199 2012-11-13  David S. Miller  <davem@davemloft.net>
68200
68201         * crypt/Makefile: Move test targets after toplevel Rules
68202         inclusion.  Grab any necessary sysdep routines when linking.
68203         * crypt/md5.c (md5_process_block): Remove define, we will always
68204         name it __md5_process_block.
68205         (md5_finish_ctx): Update md5_process_block call.
68206         (md5_stream): Likewise.
68207         (md5_process_bytes): Likewise.
68208         (md5_process_block): Rename to __md5_process_block and move to ...
68209         * crypt/md5-block.c: ... here.
68210         * crypt/sha256.c (sha256_process_block): Move to ...
68211         * crypt/sha256-block.c: ... here.
68212         * crypt/sha512.c (sha512_process_block): Move to ...
68213         * crypt/sha512-block.c: ... here.
68214         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68215         path.
68216         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68217         * sysdeps/sparc/sparc64/multiarch/Makefile
68218         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68219         crypt subdir.
68220         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68221         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68222         multiarch changes.
68223         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68224         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68225         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68226         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68227         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68228         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68229         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68230         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68231         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68232         file.
68233         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68234         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68235         file.
68236         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68237
68238 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68239
68240         * timezone/tzselect.ksh: Update from tzcode git revision
68241         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68242         * timezone/zdump.c: Likewise.
68243         * timezone/zic.c: Likewise.
68244         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68245         in TZVERSION setting, not $(PKGVERSION).
68246         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68247         REPORT_BUGS_TO settings.
68248
68249         [BZ #14838]
68250         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68251         macro.
68252
68253 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68254
68255         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68256         detection to immediately after _FP_ROUND().
68257         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68258         bits are 0.
68259
68260 2012-11-11  David S. Miller  <davem@davemloft.net>
68261
68262         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68263         inttypes.h
68264         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68265         __close rather than their public counterparts.
68266
68267 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68268
68269         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68270         file.
68271         [UNIX98] (sem_timedwait): Do not expect.
68272         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68273         [XPG4 || UNIX98] (sockatmark): Do not expect.
68274         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68275         (clock_getcpuclockid): Do not expect.
68276         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68277         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68278         Do not expect.
68279         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68280         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68281         [UNIX98] (vwscanf): Likewise.
68282         [UNIX98] (vswscanf): Likewise.
68283
68284 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68285
68286         * timezone/version.h: Remove file.
68287         * timezone/README: Do not refer to version.h.
68288         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68289         $(objpfx)version.h.
68290         ($(objpfx)zdump.o): Likewise.
68291         ($(objpfx)version.h): New target.
68292
68293         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68294         2012i.
68295         * timezone/README: Don't mention modification to tzselect.ksh.
68296         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68297         work on unmodified tzselect.ksh.  Substitute version numbers in
68298         tzselect.ksh.
68299
68300         * Makefile (format-me): Remove.
68301         (INSTALL): Adjust indentation.  Use commands directly instead of
68302         using $(format-me).
68303
68304         * aclocal.m4 (ACX_PKGVERSION): New macro.
68305         (ACX_BUGURL): Likewise.
68306         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
68307         (PKGVERSION): New AC_DEFINE_UNQUOTED.
68308         (REPORT_BUGS_TO): Likewise.
68309         * configure: Regenerated.
68310         * config.h.in (PKGVERSION): New macro.
68311         (REPORT_BUGS_TO): Likewise.
68312         * config.make.in (PKGVERSION): New variable.
68313         (PKGVERSION_TEXI): Likewise.
68314         (REPORT_BUGS_TO): Likewise.
68315         (REPORT_BUGS_TEXI): Likewise.
68316         * Makefile (format-me): Use -I$(common-objpfx)manual.
68317         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
68318         ($(common-objpfx)manual/%): New target.
68319         (manual/%): Remove target.
68320         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
68321         (print_version): Use PKGVERSION.
68322         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
68323         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
68324         and REPORT_BUGS_TO.
68325         ($(objpfx)xtrace): Likewise.
68326         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
68327         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
68328         (print_version): Use PKGVERSION.
68329         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
68330         (do_version): Use PKGVERSION.
68331         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
68332         REPORT_BUGS_TO.
68333         (common-ldd-rewrite): Likewise.
68334         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
68335         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
68336         (print_version): Use PKGVERSION.
68337         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
68338         * elf/pldd.c (argp_program_bug_address): Remove variable.
68339         (more_help): New function.
68340         (argp): Use more_help.
68341         (print_version): Use PKGVERSION.
68342         * elf/sln.c (main): Use PKGVERSION.
68343         (usage): Use REPORT_BUGS_TO.
68344         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
68345         (top level): Use PKGVERSION.
68346         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
68347         (print_version): Use PKGVERSION.
68348         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
68349         (print_version): Use PKGVERSION.
68350         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68351         (print_version): Use PKGVERSION.
68352         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
68353         (print_version): Use PKGVERSION.
68354         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
68355         (print_version): Use PKGVERSION.
68356         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
68357         (print_version): Use PKGVERSION.
68358         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
68359         and BUGURL.
68360         ($(objpfx)memusage): Likewise.
68361         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
68362         (do_version): Use PKGVERSION.
68363         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
68364         (print_version): Use PKGVERSION.
68365         * malloc/mtrace.pl ($PACKAGE): Remove variable.
68366         ($PKGVERSION): New variable.
68367         ($REPORT_BUGS_TO): Likewise.
68368         (usage): Use $REPORT_BUGS_TO.
68369         (top level): Use $PKGVERSION.
68370         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
68371         ($(objpfx)pkgvers.texi): New rule.
68372         ($(objpfx)stamp-pkgvers): Likewise.
68373         * manual/install.texi: Include pkgvers.texi.
68374         (--with-pkgversion): Document new configure option.
68375         (--with-bugurl): Likewise.
68376         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
68377         than necessarily for this particular distribution.  Use
68378         REPORT_BUGS_TO for where to report bugs.
68379         * INSTALL: Regenerated.
68380         * manual/libc.texinfo: Include pkgvers.texi.
68381         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
68382         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
68383         (print_version): Use PKGVERSION.
68384         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
68385         (print_version): Use PKGVERSION.
68386         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
68387         (print_version): Use PKGVERSION.
68388         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
68389         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
68390         macro.
68391         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
68392         (print_version): Use PKGVERSION.
68393         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
68394         (print_version): Use PKGVERSION.
68395         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
68396         and PKGVERSION.
68397
68398         * timezone/checktab.awk: Update from tzcode 2012i.
68399         * timezone/ialloc.c: Likewise.
68400         * timezone/private.h: Likewise.
68401         * timezone/scheck.c: Likewise.
68402         * timezone/tzfile.h: Likewise.
68403         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
68404         (TZVERSION): Hardcode tzcode version number.
68405         * timezone/zdump.c: Update from tzcode 2012i.
68406         * timezone/zic.c: Likewise.
68407         * timezone/version.h: New file.
68408         * timezone/README: Describe version.h.  Update upstream location.
68409
68410         [BZ #14824]
68411         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
68412         (mktemp): Enable declaration.
68413         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
68414         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
68415         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
68416         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
68417         Likewise.
68418         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
68419         Likewise.
68420         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
68421         Likewise.
68422         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
68423         Likewise.
68424         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
68425         Likewise.
68426         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
68427         Likewise.
68428
68429         [BZ #14821]
68430         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
68431         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
68432         for copies of such integer values.
68433         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
68434         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
68435
68436 2012-11-09  Andreas Jaeger  <aj@suse.de>
68437
68438         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
68439         definitions and declarations that are provided by
68440         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
68441
68442 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68443
68444         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
68445         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
68446         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
68447         definition.
68448
68449 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68450
68451         * elf/elf.h: Update comment before AArch64 relocations.
68452
68453 2012-11-07  David S. Miller  <davem@davemloft.net>
68454
68455         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
68456         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
68457         (__start_context): Declare.
68458         (__makecontext_ret): Delete.
68459         (__makecontext): Hook up __start_context instead of
68460         __makecontext_ret.
68461         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
68462         (sysdep_routines): Add __start_context when in stdlib.
68463
68464 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68465
68466         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
68467         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
68468         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
68469         hardcoded "nm".
68470         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
68471         (READELF): New variable.  Use it instead of hardcoded "readelf".
68472
68473 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
68474
68475         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
68476         * sysdeps/x86/Makefile: Here.
68477         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
68478         * sysdeps/x86/tst-xmmymm.sh: This.
68479
68480 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68481
68482         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
68483         expectations.
68484         [UNIX98] (pthread_barrier_t): Do not expect.
68485         [UNIX98] (pthread_barrierattr_t): Likewise.
68486         [UNIX98] (pthread_spinlock_t): Likewise.
68487         [UNIX98] (pthread_barrier_destroy): Likewise.
68488         [UNIX98] (pthread_barrier_init): Likewise.
68489         [UNIX98] (pthread_barrier_wait): Likewise.
68490         [UNIX98] (pthread_barrierattr_destroy): Likewise.
68491         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
68492         [UNIX98] (pthread_barrierattr_init): Likewise.
68493         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
68494         [UNIX98] (pthread_getcpuclockid): Likewise.
68495         [UNIX98] (pthread_mutex_timedlock): Likewise.
68496         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
68497         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
68498         [UNIX98] (pthread_sigmask): Likewise.
68499         [UNIX98] (pthread_spin_destroy): Likewise.
68500         [UNIX98] (pthread_spin_init): Likewise.
68501         [UNIX98] (pthread_spin_lock): Likewise.
68502         [UNIX98] (pthread_spin_trylock): Likewise.
68503         [UNIX98] (pthread_spin_unlock): Likewise.
68504         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
68505         Do not expect.
68506         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
68507         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
68508         [XPG3 || XPG4] (pthread_cond_t): Likewise.
68509         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
68510         [XPG3 || XPG4] (pthread_key_t): Likewise.
68511         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
68512         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
68513         [XPG3 || XPG4] (pthread_once_t): Likewise.
68514         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
68515         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
68516         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
68517         [XPG3 || XPG4] (pthread_t): Likewise.
68518
68519         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
68520         not expect.
68521         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
68522
68523         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
68524         Change function return type to int.
68525
68526         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
68527         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
68528         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
68529         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
68530         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
68531         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
68532         [!POSIX] (posix_madvise): Likewise.
68533         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
68534         && !UNIX98].
68535         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
68536         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
68537         (mode_t): Likewise.
68538         (posix_mem_offset): Likewise.
68539         (posix_typed_mem_get_info): Likewise.
68540         (posix_typed_mem_open): Likewise.
68541
68542         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
68543         Change condition to [XOPEN2K8].
68544
68545         * conform/conformtest.pl: Preprocess allow-header data with -x c
68546         instead of from stdin.
68547         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
68548         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
68549         [C99-based standards] (cerfc): Likewise.
68550         [C99-based standards] (cexp2): Likewise.
68551         [C99-based standards] (cexpm1): Likewise.
68552         [C99-based standards] (clog10): Likewise.
68553         [C99-based standards] (clog1p): Likewise.
68554         [C99-based standards] (clog2): Likewise.
68555         [C99-based standards] (clgamma): Likewise.
68556         [C99-based standards] (ctgamma): Likewise.
68557         [C99-based standards] (cerff): Likewise.
68558         [C99-based standards] (cerfcf): Likewise.
68559         [C99-based standards] (cexp2f): Likewise.
68560         [C99-based standards] (cexpm1f): Likewise.
68561         [C99-based standards] (clog10f): Likewise.
68562         [C99-based standards] (clog1pf): Likewise.
68563         [C99-based standards] (clog2f): Likewise.
68564         [C99-based standards] (clgammaf): Likewise.
68565         [C99-based standards] (ctgammaf): Likewise.
68566         [C99-based standards] (cerfl): Likewise.
68567         [C99-based standards] (cerfcl): Likewise.
68568         [C99-based standards] (cexp2l): Likewise.
68569         [C99-based standards] (cexpm1l): Likewise.
68570         [C99-based standards] (clog10l): Likewise.
68571         [C99-based standards] (clog1pl): Likewise.
68572         [C99-based standards] (clog2l): Likewise.
68573         [C99-based standards] (clgammal): Likewise.
68574         [C99-based standards] (ctgammal): Likewise.
68575         * conform/data/inttypes.h-data [C99-based standards]: Include
68576         stdint.h-data.  Remove all expectations for stdint.h contents.
68577         [C99-based standards] (PRI*): Do not allow.
68578         [C99-based standards] (SCN*): Likewise.
68579         [C99-based standards] (*_t): Likewise.
68580         [C99-based-standards] (PRId8): Expect macro.
68581         [C99-based-standards] (PRIi8): Likewise.
68582         [C99-based-standards] (PRIo8): Likewise.
68583         [C99-based-standards] (PRIu8): Likewise.
68584         [C99-based-standards] (PRIx8): Likewise.
68585         [C99-based-standards] (PRIX8): Likewise.
68586         [C99-based-standards] (SCNd8): Likewise.
68587         [C99-based-standards] (SCNi8): Likewise.
68588         [C99-based-standards] (SCNo8): Likewise.
68589         [C99-based-standards] (SCNu8): Likewise.
68590         [C99-based-standards] (SCNx8): Likewise.
68591         [C99-based-standards] (PRIdLEAST8): Likewise.
68592         [C99-based-standards] (PRIiLEAST8): Likewise.
68593         [C99-based-standards] (PRIoLEAST8): Likewise.
68594         [C99-based-standards] (PRIuLEAST8): Likewise.
68595         [C99-based-standards] (PRIxLEAST8): Likewise.
68596         [C99-based-standards] (PRIXLEAST8): Likewise.
68597         [C99-based-standards] (SCNdLEAST8): Likewise.
68598         [C99-based-standards] (SCNiLEAST8): Likewise.
68599         [C99-based-standards] (SCNoLEAST8): Likewise.
68600         [C99-based-standards] (SCNuLEAST8): Likewise.
68601         [C99-based-standards] (SCNxLEAST8): Likewise.
68602         [C99-based-standards] (PRIdFAST8): Likewise.
68603         [C99-based-standards] (PRIiFAST8): Likewise.
68604         [C99-based-standards] (PRIoFAST8): Likewise.
68605         [C99-based-standards] (PRIuFAST8): Likewise.
68606         [C99-based-standards] (PRIxFAST8): Likewise.
68607         [C99-based-standards] (PRIXFAST8): Likewise.
68608         [C99-based-standards] (SCNdFAST8): Likewise.
68609         [C99-based-standards] (SCNiFAST8): Likewise.
68610         [C99-based-standards] (SCNoFAST8): Likewise.
68611         [C99-based-standards] (SCNuFAST8): Likewise.
68612         [C99-based-standards] (SCNxFAST8): Likewise.
68613         [C99-based-standards] (PRId16): Likewise.
68614         [C99-based-standards] (PRIi16): Likewise.
68615         [C99-based-standards] (PRIo16): Likewise.
68616         [C99-based-standards] (PRIu16): Likewise.
68617         [C99-based-standards] (PRIx16): Likewise.
68618         [C99-based-standards] (PRIX16): Likewise.
68619         [C99-based-standards] (SCNd16): Likewise.
68620         [C99-based-standards] (SCNi16): Likewise.
68621         [C99-based-standards] (SCNo16): Likewise.
68622         [C99-based-standards] (SCNu16): Likewise.
68623         [C99-based-standards] (SCNx16): Likewise.
68624         [C99-based-standards] (PRIdLEAST16): Likewise.
68625         [C99-based-standards] (PRIiLEAST16): Likewise.
68626         [C99-based-standards] (PRIoLEAST16): Likewise.
68627         [C99-based-standards] (PRIuLEAST16): Likewise.
68628         [C99-based-standards] (PRIxLEAST16): Likewise.
68629         [C99-based-standards] (PRIXLEAST16): Likewise.
68630         [C99-based-standards] (SCNdLEAST16): Likewise.
68631         [C99-based-standards] (SCNiLEAST16): Likewise.
68632         [C99-based-standards] (SCNoLEAST16): Likewise.
68633         [C99-based-standards] (SCNuLEAST16): Likewise.
68634         [C99-based-standards] (SCNxLEAST16): Likewise.
68635         [C99-based-standards] (PRIdFAST16): Likewise.
68636         [C99-based-standards] (PRIiFAST16): Likewise.
68637         [C99-based-standards] (PRIoFAST16): Likewise.
68638         [C99-based-standards] (PRIuFAST16): Likewise.
68639         [C99-based-standards] (PRIxFAST16): Likewise.
68640         [C99-based-standards] (PRIXFAST16): Likewise.
68641         [C99-based-standards] (SCNdFAST16): Likewise.
68642         [C99-based-standards] (SCNiFAST16): Likewise.
68643         [C99-based-standards] (SCNoFAST16): Likewise.
68644         [C99-based-standards] (SCNuFAST16): Likewise.
68645         [C99-based-standards] (SCNxFAST16): Likewise.
68646         [C99-based-standards] (PRId32): Likewise.
68647         [C99-based-standards] (PRIi32): Likewise.
68648         [C99-based-standards] (PRIo32): Likewise.
68649         [C99-based-standards] (PRIu32): Likewise.
68650         [C99-based-standards] (PRIx32): Likewise.
68651         [C99-based-standards] (PRIX32): Likewise.
68652         [C99-based-standards] (SCNd32): Likewise.
68653         [C99-based-standards] (SCNi32): Likewise.
68654         [C99-based-standards] (SCNo32): Likewise.
68655         [C99-based-standards] (SCNu32): Likewise.
68656         [C99-based-standards] (SCNx32): Likewise.
68657         [C99-based-standards] (PRIdLEAST32): Likewise.
68658         [C99-based-standards] (PRIiLEAST32): Likewise.
68659         [C99-based-standards] (PRIoLEAST32): Likewise.
68660         [C99-based-standards] (PRIuLEAST32): Likewise.
68661         [C99-based-standards] (PRIxLEAST32): Likewise.
68662         [C99-based-standards] (PRIXLEAST32): Likewise.
68663         [C99-based-standards] (SCNdLEAST32): Likewise.
68664         [C99-based-standards] (SCNiLEAST32): Likewise.
68665         [C99-based-standards] (SCNoLEAST32): Likewise.
68666         [C99-based-standards] (SCNuLEAST32): Likewise.
68667         [C99-based-standards] (SCNxLEAST32): Likewise.
68668         [C99-based-standards] (PRIdFAST32): Likewise.
68669         [C99-based-standards] (PRIiFAST32): Likewise.
68670         [C99-based-standards] (PRIoFAST32): Likewise.
68671         [C99-based-standards] (PRIuFAST32): Likewise.
68672         [C99-based-standards] (PRIxFAST32): Likewise.
68673         [C99-based-standards] (PRIXFAST32): Likewise.
68674         [C99-based-standards] (SCNdFAST32): Likewise.
68675         [C99-based-standards] (SCNiFAST32): Likewise.
68676         [C99-based-standards] (SCNoFAST32): Likewise.
68677         [C99-based-standards] (SCNuFAST32): Likewise.
68678         [C99-based-standards] (SCNxFAST32): Likewise.
68679         [C99-based-standards] (PRId64): Likewise.
68680         [C99-based-standards] (PRIi64): Likewise.
68681         [C99-based-standards] (PRIo64): Likewise.
68682         [C99-based-standards] (PRIu64): Likewise.
68683         [C99-based-standards] (PRIx64): Likewise.
68684         [C99-based-standards] (PRIX64): Likewise.
68685         [C99-based-standards] (SCNd64): Likewise.
68686         [C99-based-standards] (SCNi64): Likewise.
68687         [C99-based-standards] (SCNo64): Likewise.
68688         [C99-based-standards] (SCNu64): Likewise.
68689         [C99-based-standards] (SCNx64): Likewise.
68690         [C99-based-standards] (PRIdLEAST64): Likewise.
68691         [C99-based-standards] (PRIiLEAST64): Likewise.
68692         [C99-based-standards] (PRIoLEAST64): Likewise.
68693         [C99-based-standards] (PRIuLEAST64): Likewise.
68694         [C99-based-standards] (PRIxLEAST64): Likewise.
68695         [C99-based-standards] (PRIXLEAST64): Likewise.
68696         [C99-based-standards] (SCNdLEAST64): Likewise.
68697         [C99-based-standards] (SCNiLEAST64): Likewise.
68698         [C99-based-standards] (SCNoLEAST64): Likewise.
68699         [C99-based-standards] (SCNuLEAST64): Likewise.
68700         [C99-based-standards] (SCNxLEAST64): Likewise.
68701         [C99-based-standards] (PRIdFAST64): Likewise.
68702         [C99-based-standards] (PRIiFAST64): Likewise.
68703         [C99-based-standards] (PRIoFAST64): Likewise.
68704         [C99-based-standards] (PRIuFAST64): Likewise.
68705         [C99-based-standards] (PRIxFAST64): Likewise.
68706         [C99-based-standards] (PRIXFAST64): Likewise.
68707         [C99-based-standards] (SCNdFAST64): Likewise.
68708         [C99-based-standards] (SCNiFAST64): Likewise.
68709         [C99-based-standards] (SCNoFAST64): Likewise.
68710         [C99-based-standards] (SCNuFAST64): Likewise.
68711         [C99-based-standards] (SCNxFAST64): Likewise.
68712         [C99-based-standards] (PRIdMAX): Likewise.
68713         [C99-based-standards] (PRIiMAX): Likewise.
68714         [C99-based-standards] (PRIoMAX): Likewise.
68715         [C99-based-standards] (PRIuMAX): Likewise.
68716         [C99-based-standards] (PRIxMAX): Likewise.
68717         [C99-based-standards] (PRIXMAX): Likewise.
68718         [C99-based-standards] (SCNdMAX): Likewise.
68719         [C99-based-standards] (SCNiMAX): Likewise.
68720         [C99-based-standards] (SCNoMAX): Likewise.
68721         [C99-based-standards] (SCNuMAX): Likewise.
68722         [C99-based-standards] (SCNxMAX): Likewise.
68723         [C99-based-standards] (PRIdPTR): Likewise.
68724         [C99-based-standards] (PRIiPTR): Likewise.
68725         [C99-based-standards] (PRIoPTR): Likewise.
68726         [C99-based-standards] (PRIuPTR): Likewise.
68727         [C99-based-standards] (PRIxPTR): Likewise.
68728         [C99-based-standards] (PRIXPTR): Likewise.
68729         [C99-based-standards] (SCNdPTR): Likewise.
68730         [C99-based-standards] (SCNiPTR): Likewise.
68731         [C99-based-standards] (SCNoPTR): Likewise.
68732         [C99-based-standards] (SCNuPTR): Likewise.
68733         [C99-based-standards] (SCNxPTR): Likewise.
68734         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
68735         allow.
68736         * conform/data/stdint.h-data: Update comments to clarify
68737         requirements.
68738         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
68739         type.
68740         [C99-based standards] (INT8_MAX): Likewise.
68741         [C99-based standards] (INT16_MIN): Likewise.
68742         [C99-based standards] (INT16_MAX): Likewise.
68743         [C99-based standards] (INT32_MIN): Likewise.
68744         [C99-based standards] (INT32_MAX): Likewise.
68745         [C99-based standards] (INT64_MIN): Likewise.
68746         [C99-based standards] (INT64_MAX): Likewise.
68747         [C99-based standards] (UINT8_MAX): Likewise.
68748         [C99-based standards] (UINT16_MAX): Likewise.
68749         [C99-based standards] (UINT32_MAX): Likewise.
68750         [C99-based standards] (UINT64_MAX): Likewise.
68751         [C99-based standards] (INT_LEAST8_MIN): Likewise.
68752         [C99-based standards] (INT_LEAST8_MAX): Likewise.
68753         [C99-based standards] (INT_LEAST16_MIN): Likewise.
68754         [C99-based standards] (INT_LEAST16_MAX): Likewise.
68755         [C99-based standards] (INT_LEAST32_MIN): Likewise.
68756         [C99-based standards] (INT_LEAST32_MAX): Likewise.
68757         [C99-based standards] (INT_LEAST64_MIN): Likewise.
68758         [C99-based standards] (INT_LEAST64_MAX): Likewise.
68759         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
68760         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
68761         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
68762         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
68763         [C99-based standards] (INT_FAST8_MIN): Likewise.
68764         [C99-based standards] (INT_FAST8_MAX): Likewise.
68765         [C99-based standards] (INT_FAST16_MIN): Likewise.
68766         [C99-based standards] (INT_FAST16_MAX): Likewise.
68767         [C99-based standards] (INT_FAST32_MIN): Likewise.
68768         [C99-based standards] (INT_FAST32_MAX): Likewise.
68769         [C99-based standards] (INT_FAST64_MIN): Likewise.
68770         [C99-based standards] (INT_FAST64_MAX): Likewise.
68771         [C99-based standards] (UINT_FAST8_MAX): Likewise.
68772         [C99-based standards] (UINT_FAST16_MAX): Likewise.
68773         [C99-based standards] (UINT_FAST32_MAX): Likewise.
68774         [C99-based standards] (UINT_FAST64_MAX): Likewise.
68775         [C99-based standards] (INTPTR_MIN): Likewise.
68776         [C99-based standards] (INTPTR_MAX): Likewise.
68777         [C99-based standards] (UINTPTR_MAX): Likewise.
68778         [C99-based standards] (INTMAX_MIN): Likewise.
68779         [C99-based standards] (INTMAX_MAX): Likewise.
68780         [C99-based standards] (UINTMAX_MAX): Likewise.
68781         [C99-based standards] (PTRDIFF_MIN): Likewise.
68782         [C99-based standards] (PTRDIFF_MAX): Likewise.
68783         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
68784         [C99-based standards] (SIZE_MAX): Likewise.
68785         [C99-based standards] (WCHAR_MAX): Likewise.
68786         [C99-based standards] (WINT_MAX): Likewise.
68787         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
68788         constraint on value.
68789         [C99-based standards] (WCHAR_MIN): Likewise.
68790         [C99-based standards] (WINT_MIN): Likewise.
68791         [C99-based standards] (*_t): Allow.
68792         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
68793         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
68794         Include math.h-data and complex.h-data.  Remove all expectations
68795         of math.h and complex.h contents.
68796         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
68797         at end of line.
68798         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
68799         (struct tm): Expect tag.
68800         [C99-based-standards] (wcstof): Expect function.
68801         [C99-based-standards] (wcstold): Likewise.
68802         [C99-based-standards] (wcstoll): Likewise.
68803         [C99-based-standards] (wcstoull): Likewise.
68804         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
68805         macro-int-constant.  Specify type.
68806         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
68807         constraint on value.
68808         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68809         Specify type.
68810         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
68811         Specify value.
68812         [ISO C standards]: Do not allow headers.
68813         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
68814         wcs[abcdefghijklmnopqrstuvwxyz]*.
68815         [ISO C standards] (*_t): Do not allow.
68816         * conform/data/wctype.h-data [C99-based standards] (iswblank):
68817         Expect function.
68818         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
68819         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
68820         Specify type.
68821         [ISO C standards]: Do not allow headers.
68822         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
68823         is[abcdefghijklmnopqrstuvwxyz]*.
68824         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
68825         to[abcdefghijklmnopqrstuvwxyz]*.
68826         [ISO C standards] (*_t): Do not allow.
68827         * conform/data/stdalign.h-data: New file.
68828         * conform/data/stdbool.h-data: Likewise.
68829         * conform/data/stdnoreturn.h-data: Likewise.
68830
68831 2012-11-07  Roland McGrath  <roland@hack.frob.com>
68832
68833         [BZ #14815]
68834         * manual/filesys.texi (Directory Entries): Typo fix.
68835         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
68836
68837 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68838
68839         * elf/elf.h (EM_AARCH64): New macro.
68840         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
68841         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
68842         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
68843         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
68844         (R_AARCH64_TLSDESC): Likewise.
68845         (NT_ARM_TLS): Likewise.
68846         (NT_ARM_HW_BREAK): Likewise.
68847         (NT_ARM_HW_WATCH): Likewise.
68848
68849 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68850
68851         [BZ #14811]
68852         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
68853         (__ieee754_powl): Saturate nonzero exponents with absolute value
68854         below 0x1p-79 to +/- 0x1p-79.
68855         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
68856         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
68857         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
68858         nonzero exponents with absolute value below 0x1p-32 to +/-
68859         0x1p-32.
68860         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
68861         (__ieee754_powl): Saturate nonzero exponents with absolute value
68862         below 0x1p-79 to +/- 0x1p-79.
68863         * math/libm-test.inc (pow_test): Add more tests.
68864
68865 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68866
68867         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
68868         _dl_s390_cap_flags with kernel. Increase string length.
68869         (_dl_s390_platforms): Add z196 and zEC12.
68870
68871 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68872
68873         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
68874         Change XOPEN21K to XOPEN2K.
68875
68876 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
68877
68878         * string/memmove.c: Use memcpy when possible.
68879
68880 2012-11-06  Andreas Jaeger  <aj@suse.de>
68881
68882         * po/eo.po: Update from translation team.
68883
68884 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
68885
68886         [BZ #14793]
68887         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
68888         exponent and small x and y exponents, scale x or y up.  Increase
68889         by 2 the exponent used in scaling up.
68890         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68891         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68892         * math/libm-test.inc (fma_test): Add more tests.
68893         (fma_test_towardzero): Likewise.
68894         (fma_test_downward): Likewise.
68895         (fma_test_upward): Likewise.
68896
68897 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
68898
68899         [BZ #14805]
68900         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
68901         fenv_t *.
68902
68903         [BZ #14801]
68904         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
68905         namespace for names of struct fields.
68906         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
68907         fenv_t fields.
68908         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
68909         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
68910
68911 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
68912
68913         [BZ #3665]
68914         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
68915
68916 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
68917
68918         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
68919         PTR_DEMANGLE.
68920
68921         [BZ #5246]
68922         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
68923         PTR_DEMANGLE.
68924
68925 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
68926
68927         [BZ #14797]
68928         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
68929         definitely overflow as x * y not x * y + z.
68930         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
68931         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
68932         * math/libm-test.inc (fma_test): Add more tests.
68933         (fma_test_towardzero): Likewise.
68934         (fma_test_downward): Likewise.
68935         (fma_test_upward): Likewise.
68936
68937 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
68938
68939         [BZ #157]
68940
68941         * include/stub-tag.h: Remove file.
68942         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
68943         '#include' of it.
68944         * manual/maint.texi (Porting): Don't reference it.
68945         * Makerules ($(objpfx)stubs): Likewise.
68946         * dirent/closedir.c: Don't include <stub-tag.h>.
68947         * dirent/dirfd.c: Likewise.
68948         * dirent/fdopendir.c: Likewise.
68949         * dirent/getdents.c: Likewise.
68950         * dirent/getdents64.c: Likewise.
68951         * dirent/opendir.c: Likewise.
68952         * dirent/readdir.c: Likewise.
68953         * dirent/readdir64.c: Likewise.
68954         * dirent/readdir64_r.c: Likewise.
68955         * dirent/readdir_r.c: Likewise.
68956         * dirent/rewinddir.c: Likewise.
68957         * dirent/seekdir.c: Likewise.
68958         * dirent/telldir.c: Likewise.
68959         * gmon/profil.c: Likewise.
68960         * grp/setgroups.c: Likewise.
68961         * inet/if_index.c: Likewise.
68962         * io/access.c: Likewise.
68963         * io/chdir.c: Likewise.
68964         * io/chmod.c: Likewise.
68965         * io/chown.c: Likewise.
68966         * io/close.c: Likewise.
68967         * io/dup.c: Likewise.
68968         * io/dup2.c: Likewise.
68969         * io/dup3.c: Likewise.
68970         * io/euidaccess.c: Likewise.
68971         * io/faccessat.c: Likewise.
68972         * io/fchdir.c: Likewise.
68973         * io/fchmod.c: Likewise.
68974         * io/fchmodat.c: Likewise.
68975         * io/fchown.c: Likewise.
68976         * io/fchownat.c: Likewise.
68977         * io/fcntl.c: Likewise.
68978         * io/flock.c: Likewise.
68979         * io/fstatfs.c: Likewise.
68980         * io/fstatfs64.c: Likewise.
68981         * io/fstatvfs.c: Likewise.
68982         * io/fstatvfs64.c: Likewise.
68983         * io/futimens.c: Likewise.
68984         * io/fxstat.c: Likewise.
68985         * io/fxstat64.c: Likewise.
68986         * io/fxstatat.c: Likewise.
68987         * io/fxstatat64.c: Likewise.
68988         * io/getcwd.c: Likewise.
68989         * io/isatty.c: Likewise.
68990         * io/lchmod.c: Likewise.
68991         * io/lchown.c: Likewise.
68992         * io/link.c: Likewise.
68993         * io/linkat.c: Likewise.
68994         * io/lseek.c: Likewise.
68995         * io/lseek64.c: Likewise.
68996         * io/lxstat64.c: Likewise.
68997         * io/mkdir.c: Likewise.
68998         * io/mkdirat.c: Likewise.
68999         * io/mkfifo.c: Likewise.
69000         * io/mkfifoat.c: Likewise.
69001         * io/open.c: Likewise.
69002         * io/open64.c: Likewise.
69003         * io/openat.c: Likewise.
69004         * io/openat64.c: Likewise.
69005         * io/pipe.c: Likewise.
69006         * io/pipe2.c: Likewise.
69007         * io/poll.c: Likewise.
69008         * io/posix_fadvise.c: Likewise.
69009         * io/posix_fadvise64.c: Likewise.
69010         * io/posix_fallocate.c: Likewise.
69011         * io/posix_fallocate64.c: Likewise.
69012         * io/read.c: Likewise.
69013         * io/readlink.c: Likewise.
69014         * io/readlinkat.c: Likewise.
69015         * io/rmdir.c: Likewise.
69016         * io/sendfile.c: Likewise.
69017         * io/sendfile64.c: Likewise.
69018         * io/statfs.c: Likewise.
69019         * io/statfs64.c: Likewise.
69020         * io/statvfs.c: Likewise.
69021         * io/statvfs64.c: Likewise.
69022         * io/symlink.c: Likewise.
69023         * io/symlinkat.c: Likewise.
69024         * io/ttyname.c: Likewise.
69025         * io/ttyname_r.c: Likewise.
69026         * io/umask.c: Likewise.
69027         * io/unlink.c: Likewise.
69028         * io/unlinkat.c: Likewise.
69029         * io/utime.c: Likewise.
69030         * io/utimensat.c: Likewise.
69031         * io/write.c: Likewise.
69032         * io/xmknod.c: Likewise.
69033         * io/xmknodat.c: Likewise.
69034         * io/xstat.c: Likewise.
69035         * io/xstat64.c: Likewise.
69036         * login/getpt.c: Likewise.
69037         * login/grantpt.c: Likewise.
69038         * login/unlockpt.c: Likewise.
69039         * math/e_acoshl.c: Likewise.
69040         * math/e_acosl.c: Likewise.
69041         * math/e_asinl.c: Likewise.
69042         * math/e_atan2l.c: Likewise.
69043         * math/e_atanhl.c: Likewise.
69044         * math/e_coshl.c: Likewise.
69045         * math/e_expl.c: Likewise.
69046         * math/e_fmodl.c: Likewise.
69047         * math/e_gammal_r.c: Likewise.
69048         * math/e_hypotl.c: Likewise.
69049         * math/e_j0l.c: Likewise.
69050         * math/e_j1l.c: Likewise.
69051         * math/e_jnl.c: Likewise.
69052         * math/e_lgammal_r.c: Likewise.
69053         * math/e_log10l.c: Likewise.
69054         * math/e_log2l.c: Likewise.
69055         * math/e_logl.c: Likewise.
69056         * math/e_powl.c: Likewise.
69057         * math/e_rem_pio2l.c: Likewise.
69058         * math/e_sinhl.c: Likewise.
69059         * math/e_sqrtl.c: Likewise.
69060         * math/fclrexcpt.c: Likewise.
69061         * math/fedisblxcpt.c: Likewise.
69062         * math/feenablxcpt.c: Likewise.
69063         * math/fegetenv.c: Likewise.
69064         * math/fegetexcept.c: Likewise.
69065         * math/fegetround.c: Likewise.
69066         * math/feholdexcpt.c: Likewise.
69067         * math/fesetenv.c: Likewise.
69068         * math/fesetround.c: Likewise.
69069         * math/feupdateenv.c: Likewise.
69070         * math/fgetexcptflg.c: Likewise.
69071         * math/fraiseexcpt.c: Likewise.
69072         * math/fsetexcptflg.c: Likewise.
69073         * math/ftestexcept.c: Likewise.
69074         * math/k_cosl.c: Likewise.
69075         * math/k_rem_pio2l.c: Likewise.
69076         * math/k_sinl.c: Likewise.
69077         * math/k_tanl.c: Likewise.
69078         * math/s_asinhl.c: Likewise.
69079         * math/s_atanl.c: Likewise.
69080         * math/s_cbrtl.c: Likewise.
69081         * math/s_erfl.c: Likewise.
69082         * math/s_expm1l.c: Likewise.
69083         * math/s_log1pl.c: Likewise.
69084         * math/s_tanhl.c: Likewise.
69085         * misc/acct.c: Likewise.
69086         * misc/brk.c: Likewise.
69087         * misc/chflags.c: Likewise.
69088         * misc/chroot.c: Likewise.
69089         * misc/fchflags.c: Likewise.
69090         * misc/fgetxattr.c: Likewise.
69091         * misc/flistxattr.c: Likewise.
69092         * misc/fremovexattr.c: Likewise.
69093         * misc/fsetxattr.c: Likewise.
69094         * misc/fsync.c: Likewise.
69095         * misc/ftruncate.c: Likewise.
69096         * misc/futimes.c: Likewise.
69097         * misc/futimesat.c: Likewise.
69098         * misc/getdomain.c: Likewise.
69099         * misc/getdtsz.c: Likewise.
69100         * misc/gethostid.c: Likewise.
69101         * misc/gethostname.c: Likewise.
69102         * misc/getloadavg.c: Likewise.
69103         * misc/getpagesize.c: Likewise.
69104         * misc/getsysstats.c: Likewise.
69105         * misc/getxattr.c: Likewise.
69106         * misc/gtty.c: Likewise.
69107         * misc/ioctl.c: Likewise.
69108         * misc/lgetxattr.c: Likewise.
69109         * misc/listxattr.c: Likewise.
69110         * misc/llistxattr.c: Likewise.
69111         * misc/lremovexattr.c: Likewise.
69112         * misc/lsetxattr.c: Likewise.
69113         * misc/lutimes.c: Likewise.
69114         * misc/madvise.c: Likewise.
69115         * misc/mincore.c: Likewise.
69116         * misc/mlock.c: Likewise.
69117         * misc/mlockall.c: Likewise.
69118         * misc/mmap.c: Likewise.
69119         * misc/mprotect.c: Likewise.
69120         * misc/msync.c: Likewise.
69121         * misc/munlock.c: Likewise.
69122         * misc/munlockall.c: Likewise.
69123         * misc/munmap.c: Likewise.
69124         * misc/preadv.c: Likewise.
69125         * misc/preadv64.c: Likewise.
69126         * misc/ptrace.c: Likewise.
69127         * misc/pwritev.c: Likewise.
69128         * misc/pwritev64.c: Likewise.
69129         * misc/readv.c: Likewise.
69130         * misc/reboot.c: Likewise.
69131         * misc/remap_file_pages.c: Likewise.
69132         * misc/removexattr.c: Likewise.
69133         * misc/revoke.c: Likewise.
69134         * misc/select.c: Likewise.
69135         * misc/setdomain.c: Likewise.
69136         * misc/setegid.c: Likewise.
69137         * misc/seteuid.c: Likewise.
69138         * misc/sethostid.c: Likewise.
69139         * misc/sethostname.c: Likewise.
69140         * misc/setregid.c: Likewise.
69141         * misc/setreuid.c: Likewise.
69142         * misc/setxattr.c: Likewise.
69143         * misc/sstk.c: Likewise.
69144         * misc/stty.c: Likewise.
69145         * misc/swapoff.c: Likewise.
69146         * misc/swapon.c: Likewise.
69147         * misc/sync.c: Likewise.
69148         * misc/syncfs.c: Likewise.
69149         * misc/syscall.c: Likewise.
69150         * misc/truncate.c: Likewise.
69151         * misc/ualarm.c: Likewise.
69152         * misc/usleep.c: Likewise.
69153         * misc/ustat.c: Likewise.
69154         * misc/utimes.c: Likewise.
69155         * misc/vhangup.c: Likewise.
69156         * misc/writev.c: Likewise.
69157         * posix/_exit.c: Likewise.
69158         * posix/alarm.c: Likewise.
69159         * posix/execve.c: Likewise.
69160         * posix/fexecve.c: Likewise.
69161         * posix/fork.c: Likewise.
69162         * posix/fpathconf.c: Likewise.
69163         * posix/getaddrinfo.c: Likewise.
69164         * posix/getegid.c: Likewise.
69165         * posix/geteuid.c: Likewise.
69166         * posix/getgid.c: Likewise.
69167         * posix/getgroups.c: Likewise.
69168         * posix/getlogin.c: Likewise.
69169         * posix/getlogin_r.c: Likewise.
69170         * posix/getpgid.c: Likewise.
69171         * posix/getpid.c: Likewise.
69172         * posix/getppid.c: Likewise.
69173         * posix/getresgid.c: Likewise.
69174         * posix/getresuid.c: Likewise.
69175         * posix/getsid.c: Likewise.
69176         * posix/getuid.c: Likewise.
69177         * posix/glob64.c: Likewise.
69178         * posix/nanosleep.c: Likewise.
69179         * posix/pathconf.c: Likewise.
69180         * posix/pause.c: Likewise.
69181         * posix/posix_madvise.c: Likewise.
69182         * posix/pread.c: Likewise.
69183         * posix/pread64.c: Likewise.
69184         * posix/pwrite.c: Likewise.
69185         * posix/pwrite64.c: Likewise.
69186         * posix/sched_getaffinity.c: Likewise.
69187         * posix/sched_getp.c: Likewise.
69188         * posix/sched_gets.c: Likewise.
69189         * posix/sched_primax.c: Likewise.
69190         * posix/sched_primin.c: Likewise.
69191         * posix/sched_rr_gi.c: Likewise.
69192         * posix/sched_setaffinity.c: Likewise.
69193         * posix/sched_setp.c: Likewise.
69194         * posix/sched_sets.c: Likewise.
69195         * posix/sched_yield.c: Likewise.
69196         * posix/setgid.c: Likewise.
69197         * posix/setlogin.c: Likewise.
69198         * posix/setpgid.c: Likewise.
69199         * posix/setresgid.c: Likewise.
69200         * posix/setresuid.c: Likewise.
69201         * posix/setsid.c: Likewise.
69202         * posix/setuid.c: Likewise.
69203         * posix/sleep.c: Likewise.
69204         * posix/spawni.c: Likewise.
69205         * posix/sysconf.c: Likewise.
69206         * posix/times.c: Likewise.
69207         * posix/wait.c: Likewise.
69208         * posix/wait3.c: Likewise.
69209         * posix/wait4.c: Likewise.
69210         * posix/waitpid.c: Likewise.
69211         * resolv/gai_sigqueue.c: Likewise.
69212         * resource/getpriority.c: Likewise.
69213         * resource/getrlimit.c: Likewise.
69214         * resource/getrusage.c: Likewise.
69215         * resource/nice.c: Likewise.
69216         * resource/setpriority.c: Likewise.
69217         * resource/setrlimit.c: Likewise.
69218         * resource/ulimit.c: Likewise.
69219         * rt/aio_cancel.c: Likewise.
69220         * rt/aio_fsync.c: Likewise.
69221         * rt/aio_read.c: Likewise.
69222         * rt/aio_sigqueue.c: Likewise.
69223         * rt/aio_suspend.c: Likewise.
69224         * rt/aio_write.c: Likewise.
69225         * rt/clock_getres.c: Likewise.
69226         * rt/clock_gettime.c: Likewise.
69227         * rt/clock_nanosleep.c: Likewise.
69228         * rt/clock_settime.c: Likewise.
69229         * rt/lio_listio.c: Likewise.
69230         * rt/mq_close.c: Likewise.
69231         * rt/mq_getattr.c: Likewise.
69232         * rt/mq_notify.c: Likewise.
69233         * rt/mq_open.c: Likewise.
69234         * rt/mq_receive.c: Likewise.
69235         * rt/mq_send.c: Likewise.
69236         * rt/mq_setattr.c: Likewise.
69237         * rt/mq_timedreceive.c: Likewise.
69238         * rt/mq_timedsend.c: Likewise.
69239         * rt/mq_unlink.c: Likewise.
69240         * rt/shm_open.c: Likewise.
69241         * rt/shm_unlink.c: Likewise.
69242         * rt/timer_create.c: Likewise.
69243         * rt/timer_delete.c: Likewise.
69244         * rt/timer_getoverr.c: Likewise.
69245         * rt/timer_gettime.c: Likewise.
69246         * rt/timer_settime.c: Likewise.
69247         * setjmp/__longjmp.c: Likewise.
69248         * setjmp/setjmp.c: Likewise.
69249         * signal/kill.c: Likewise.
69250         * signal/killpg.c: Likewise.
69251         * signal/raise.c: Likewise.
69252         * signal/sigaction.c: Likewise.
69253         * signal/sigaltstack.c: Likewise.
69254         * signal/sigblock.c: Likewise.
69255         * signal/sigignore.c: Likewise.
69256         * signal/sigintr.c: Likewise.
69257         * signal/signal.c: Likewise.
69258         * signal/sigpause.c: Likewise.
69259         * signal/sigpending.c: Likewise.
69260         * signal/sigqueue.c: Likewise.
69261         * signal/sigreturn.c: Likewise.
69262         * signal/sigset.c: Likewise.
69263         * signal/sigsetmask.c: Likewise.
69264         * signal/sigstack.c: Likewise.
69265         * signal/sigsuspend.c: Likewise.
69266         * signal/sigtimedwait.c: Likewise.
69267         * signal/sigvec.c: Likewise.
69268         * signal/sigwait.c: Likewise.
69269         * signal/sigwaitinfo.c: Likewise.
69270         * signal/sysv_signal.c: Likewise.
69271         * socket/accept.c: Likewise.
69272         * socket/accept4.c: Likewise.
69273         * socket/bind.c: Likewise.
69274         * socket/connect.c: Likewise.
69275         * socket/getpeername.c: Likewise.
69276         * socket/getsockname.c: Likewise.
69277         * socket/getsockopt.c: Likewise.
69278         * socket/isfdtype.c: Likewise.
69279         * socket/listen.c: Likewise.
69280         * socket/recv.c: Likewise.
69281         * socket/recvfrom.c: Likewise.
69282         * socket/recvmsg.c: Likewise.
69283         * socket/send.c: Likewise.
69284         * socket/sendmsg.c: Likewise.
69285         * socket/sendto.c: Likewise.
69286         * socket/setsockopt.c: Likewise.
69287         * socket/shutdown.c: Likewise.
69288         * socket/sockatmark.c: Likewise.
69289         * socket/socket.c: Likewise.
69290         * socket/socketpair.c: Likewise.
69291         * stdio-common/ctermid.c: Likewise.
69292         * stdio-common/cuserid.c: Likewise.
69293         * stdio-common/remove.c: Likewise.
69294         * stdio-common/rename.c: Likewise.
69295         * stdio-common/renameat.c: Likewise.
69296         * stdio-common/tempname.c: Likewise.
69297         * stdlib/getcontext.c: Likewise.
69298         * stdlib/makecontext.c: Likewise.
69299         * stdlib/setcontext.c: Likewise.
69300         * stdlib/swapcontext.c: Likewise.
69301         * stdlib/system.c: Likewise.
69302         * streams/fattach.c: Likewise.
69303         * streams/fdetach.c: Likewise.
69304         * streams/getmsg.c: Likewise.
69305         * streams/getpmsg.c: Likewise.
69306         * streams/putmsg.c: Likewise.
69307         * streams/putpmsg.c: Likewise.
69308         * sysdeps/unix/bsd/getpt.c: Likewise.
69309         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
69310         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
69311         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
69312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
69313         Likewise.
69314         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
69315         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
69316         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
69317         * sysvipc/msgctl.c: Likewise.
69318         * sysvipc/msgget.c: Likewise.
69319         * sysvipc/msgrcv.c: Likewise.
69320         * sysvipc/msgsnd.c: Likewise.
69321         * sysvipc/semctl.c: Likewise.
69322         * sysvipc/semget.c: Likewise.
69323         * sysvipc/semop.c: Likewise.
69324         * sysvipc/semtimedop.c: Likewise.
69325         * sysvipc/shmat.c: Likewise.
69326         * sysvipc/shmctl.c: Likewise.
69327         * sysvipc/shmdt.c: Likewise.
69328         * sysvipc/shmget.c: Likewise.
69329         * termios/tcdrain.c: Likewise.
69330         * termios/tcflow.c: Likewise.
69331         * termios/tcflush.c: Likewise.
69332         * termios/tcgetattr.c: Likewise.
69333         * termios/tcgetpgrp.c: Likewise.
69334         * termios/tcsendbrk.c: Likewise.
69335         * termios/tcsetattr.c: Likewise.
69336         * termios/tcsetpgrp.c: Likewise.
69337         * time/adjtime.c: Likewise.
69338         * time/clock.c: Likewise.
69339         * time/getitimer.c: Likewise.
69340         * time/gettimeofday.c: Likewise.
69341         * time/setitimer.c: Likewise.
69342         * time/settimeofday.c: Likewise.
69343         * time/stime.c: Likewise.
69344         * time/time.c: Likewise.
69345
69346 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
69347
69348         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
69349         /usr/old/bin.
69350
69351         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
69352         instead of spaces.
69353         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
69354
69355 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
69356
69357         [BZ #14796]
69358         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
69359         FE_TONEAREST before applying Dekker multiplication and Knuth
69360         addition.  Clear inexact exceptions and check for exact zero
69361         results afterwards.
69362         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69363         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
69364         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69365         * math/libm-test.inc (fma_test): Add more tests.
69366         (fma_test_towardzero): Likewise.
69367         (fma_test_downward): Likewise.
69368         (fma_test_upward): Likewise.
69369         * sysdeps/generic/math_private.h (default_libc_fesetround): New
69370         function.
69371         (libc_fesetround): New macro.
69372         (libc_fesetroundf): Likewise.
69373         (libc_fesetroundl): Likewise.
69374         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
69375         function.
69376         (libc_fesetround_387): Likewise.
69377         (libc_fesetroundf): New macro.
69378         (libc_fesetround): Likewise.
69379         (libc_fesetroundl): Likewise.
69380         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
69381         function.
69382         (libc_fesetroundf): New macro.
69383         (libc_fesetround): Likewise.
69384         (libc_fesetroundl): Likewise.
69385         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
69386         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
69387         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
69388         libm_hidden_ver.
69389         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
69390         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
69391         libm_hidden_def.
69392         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
69393         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
69394         libm_hidden_ver.
69395         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
69396         libm_hidden_def.
69397
69398         [BZ #3439]
69399         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
69400         integer constant usable in #if and use that to give value to enum
69401         constant.
69402         (FE_DIVBYZERO): Likewise.
69403         (FE_UNDERFLOW): Likewise.
69404         (FE_OVERFLOW): Likewise.
69405         (FE_INVALID): Likewise.
69406         (FE_INVALID_SNAN): Likewise.
69407         (FE_INVALID_ISI): Likewise.
69408         (FE_INVALID_IDI): Likewise.
69409         (FE_INVALID_ZDZ): Likewise.
69410         (FE_INVALID_IMZ): Likewise.
69411         (FE_INVALID_COMPARE): Likewise.
69412         (FE_INVALID_SOFTWARE): Likewise.
69413         (FE_INVALID_SQRT): Likewise.
69414         (FE_INVALID_INTEGER_CONVERSION): Likewise.
69415         (FE_TONEAREST): Likewise.
69416         (FE_TOWARDZERO): Likewise.
69417         (FE_UPWARD): Likewise.
69418         (FE_DOWNWARD): Likewise.
69419         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
69420         (FE_DIVBYZERO): Likewise.
69421         (FE_OVERFLOW): Likewise.
69422         (FE_UNDERFLOW): Likewise.
69423         (FE_INEXACT): Likewise.
69424         (FE_TONEAREST): Likewise.
69425         (FE_DOWNWARD): Likewise.
69426         (FE_UPWARD): Likewise.
69427         (FE_TOWARDZERO): Likewise.
69428         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
69429         (FE_UNDERFLOW): Likewise.
69430         (FE_OVERFLOW): Likewise.
69431         (FE_DIVBYZERO): Likewise.
69432         (FE_INVALID): Likewise.
69433         (FE_TONEAREST): Likewise.
69434         (FE_TOWARDZERO): Likewise.
69435         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
69436         (FE_OVERFLOW): Likewise.
69437         (FE_UNDERFLOW): Likewise.
69438         (FE_DIVBYZERO): Likewise.
69439         (FE_INEXACT): Likewise.
69440         (FE_TONEAREST): Likewise.
69441         (FE_TOWARDZERO): Likewise.
69442         (FE_UPWARD): Likewise.
69443         (FE_DOWNWARD): Likewise.
69444         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
69445         (FE_DIVBYZERO): Likewise.
69446         (FE_OVERFLOW): Likewise.
69447         (FE_UNDERFLOW): Likewise.
69448         (FE_INEXACT): Likewise.
69449         (FE_TONEAREST): Likewise.
69450         (FE_DOWNWARD): Likewise.
69451         (FE_UPWARD): Likewise.
69452         (FE_TOWARDZERO): Likewise.
69453
69454 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
69455
69456         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
69457
69458 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
69459
69460         * scripts/cross-test-ssh.sh (command): Use newlines to separate
69461         commands.  Quote $PWD.
69462         (blacklist_exports): Don't use remove_newlines.  Replace "declare
69463         -x" by "export".
69464         (remove_newlines): Remove.
69465
69466 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
69467
69468         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
69469         * stdlib/stdlib.h (atof): Moved to ...
69470         * include/bits/stdlib-float.h: Here.  New file.
69471         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
69472         * stdlib/bits/stdlib-float.h: New file.
69473         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
69474         -mno-sse -mno-mmx.
69475         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
69476         <xmmintrin.h>.
69477
69478 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69479
69480         * conform/conformtest.pl (@headers): Add fenv.h.
69481         * conform/data/fenv.h-data: New file.
69482         * include/fenv.h [_ISOMAC]: Disable all contents of file except
69483         include of <math/fenv.h>.
69484
69485         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
69486         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
69487         && !UNIX98].  Enables tests for XOPEN2K8.
69488         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
69489         POSIX2008]: Likewise.
69490
69491         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
69492         (struct rusage): Do not expect type or its members.
69493
69494         [BZ #3439]
69495         * math/math.h (FP_NAN): Define macro to integer constant usable in
69496         #if and use that to give value to enum constant.
69497         (FP_INFINITE): Likewise.
69498         (FP_ZERO): Likewise.
69499         (FP_SUBNORMAL): Likewise.
69500         (FP_NORMAL): Likewise.
69501
69502 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
69503
69504         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
69505         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
69506         arguments.
69507
69508 2012-11-02  Roland McGrath  <roland@hack.frob.com>
69509
69510         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
69511         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
69512         autoconf-time if not.
69513         * configure.in: Remove AC_PREREQ.
69514
69515 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69516
69517         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
69518         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
69519         of the internal implementation.
69520
69521 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69522
69523         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
69524         except include of <misc/sys/syslog.h>.
69525
69526 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69527
69528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
69529         function returns with a NULL context exit with zero.
69530
69531 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69532
69533         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
69534
69535 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
69536
69537         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
69538         (run_program_cmd): This.
69539         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
69540         (tst_langinfo): New variable.  Use it.
69541
69542 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
69543
69544         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
69545         floating point opcodes.
69546
69547 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69548
69549         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
69550         variable.
69551
69552         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
69553
69554         * sysdeps/mach/hurd/powerpc: Remove directory.
69555         * sysdeps/mach/powerpc: Likewise.
69556
69557 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
69558
69559         * scripts/check-local-headers.sh: Ignore c++ headers.
69560
69561 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69562
69563         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
69564         __libc_cleanup_region_start argument.
69565
69566 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
69567
69568         [BZ #14784]
69569         [BZ #14785]
69570         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
69571         x * y using scaling, not as x * y + z.
69572         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69573         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69574         * math/libm-test.inc (fma_test): Add more tests.
69575         (fma_test_towardzero): Likewise.
69576         (fma_test_downward): Likewise.
69577         (fma_test_upward): Likewise.
69578
69579 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
69580
69581         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
69582
69583 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69584
69585         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
69586         New variable.
69587
69588 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
69589
69590         * rt/tst-shm.c (worker): Correct checking for mmap failure.
69591
69592 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69593
69594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69595         Fix sort order.
69596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69597         Likewise.
69598
69599 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
69600
69601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69602         Fix the order of the list for glibc 2.17.
69603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69604         Likewise.
69605
69606 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
69607
69608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
69609
69610 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
69611
69612         [BZ #14610]
69613         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
69614         for low part of x being zero before using __atanl (y).
69615         * math/libm-test.inc (atan2_test): Add another test.
69616
69617         * manual/install.texi (Configuring and compiling): Document
69618         general use of test-wrapper and test-wrapper-env.
69619         * INSTALL: Regenerated.
69620
69621         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
69622         (__fma): Do not extract and scale down low bits on after-rounding
69623         systems when result rounded to normal precision would have normal
69624         exponent.
69625         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
69626         (__fmal): Do not extract and scale down low bits on after-rounding
69627         systems when result rounded to normal precision would have normal
69628         exponent.
69629         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
69630         (__fmal): Do not extract and scale down low bits on after-rounding
69631         systems when result rounded to normal precision would have normal
69632         exponent.
69633         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
69634         macro.
69635         (fma_test): Add more tests.
69636         (fma_test_towardzero): Likewise.
69637         (fma_test_downward): Likewise.
69638         (fma_test_upward): Likewise.
69639
69640 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
69641
69642         * sysdeps/i386/tininess.h: Renamed to ...
69643         * sysdeps/x86/tininess.h: This.
69644         * sysdeps/x86_64/tininess.h: Removed.
69645
69646 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69647
69648         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
69649         input.  Use $(build-program-cmd).
69650         ($(objpfx)tst-array1-static.out): Likewise.
69651         ($(objpfx)tst-array2.out): Likewise.
69652         ($(objpfx)tst-array3.out): Likewise.
69653         ($(objpfx)tst-array4.out): Likewise.
69654         ($(objpfx)tst-array5.out): Likewise.
69655         ($(objpfx)tst-array5-static.out): Likewise.
69656
69657 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
69658
69659         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69660         if defined.
69661
69662         * nss/nsswitch.h (nss_interface_function): Provide new
69663         macro for use with NSS functions.
69664         * grp/initgroups.c: Use new macro.
69665         * nss/getXXbyYY.c: Likewise.
69666         * nss/getXXbyYY_r.c: Likewise.
69667         * nss/getXXent.c: Likewise.
69668         * nss/getXXent_r.c: Likewise.
69669         * sysdeps/posix/getaddrinfo.c: Likewise.
69670
69671 2012-10-30  Andreas Jaeger  <aj@suse.de>
69672
69673         * po/ru.po: Update Russion translation from translation project.
69674
69675 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69676
69677         [BZ #14152]
69678         [BZ #14783]
69679         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
69680         result and shift together with sticky bit instead of replicating
69681         round-to-nearest rounding.
69682         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69683         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69684         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
69685         missing underflow exceptions.
69686         (fma_test_towardzero): Add more tests.
69687         (fma_test_downward): Likewise.
69688         (fma_test_upward): Likewise.
69689
69690         [BZ #14047]
69691         * sysdeps/generic/tininess.h: New file.
69692         * sysdeps/i386/tininess.h: Likewise.
69693         * sysdeps/sh/tininess.h: Likewise.
69694         * sysdeps/x86_64/tininess.h: Likewise.
69695         * stdlib/tst-strtod-underflow.c: Likewise.
69696         * stdlib/tst-tininess.c: Likewise.
69697         * stdlib/strtod_l.c: Include <tininess.h>.
69698         (round_and_return): Do not set errno for exact underflow cases.
69699         Force an underflow exception when setting errno for underflow.
69700         Determine underflow based on rounding to normal precision if
69701         TININESS_AFTER_ROUNDING.
69702         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
69703         ERANGE for exact underflow cases.
69704         * stdlib/Makefile (tests): Add tst-tininess and
69705         tst-strtod-underflow.
69706         ($(objpfx)tst-tininess): Use $(link-libm).
69707         ($(objpfx)tst-strtod-underflow): Likewise.
69708
69709 2012-10-30  Andreas Jaeger  <aj@suse.de>
69710
69711         [BZ #14767]
69712         * elf/Makefile (tests): Remove conditional for have-initfini-array
69713         since this is now always required and the variable does not exist
69714         anymore.
69715         (tests-static): Likewise.
69716         (modules-names): Likewise.
69717
69718         * po/eo.po: Add Esperanto translation from translation project.
69719
69720         * elf/tst-array1.c (fini_array): Make writeable so that it can be
69721         merged with constructor/destructor.
69722         (init_array): Likewise.
69723         * elf/tst-array2dep.c (fini_array): Likewise.
69724         (init_array): Likewise.
69725
69726 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
69727
69728         * manual/message.texi: Delete @cartouche tags.
69729
69730 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
69731
69732         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
69733         EOPNOTSUPP.
69734         * sysdeps/mach/hurd/fsync.c: Likewise.
69735
69736         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
69737         [_POSIX_REALTIME_SIGNALS]: Change condition to
69738         [_POSIX_REALTIME_SIGNALS > 0].
69739
69740 2012-10-27  Andreas Jaeger  <aj@suse.de>
69741
69742         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
69743         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
69744         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
69745         [__WORDSIZE != 64]: Likewise.
69746
69747 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
69748
69749         *  iconvdata/tst-table.sh: Remove ${SHELL}.
69750         *  iconvdata/tst-tables.sh: Likewise.
69751
69752 2012-10-25  David S. Miller  <davem@davemloft.net>
69753
69754         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69755         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
69756         of strtoull.
69757
69758         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
69759         ifunc-impl-list.c
69760         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69761         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
69762         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
69763         file.
69764
69765 2012-10-25  Roland McGrath  <roland@hack.frob.com>
69766
69767         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69768         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
69769         __getdirentries.
69770
69771 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69772             Jim Blandy  <jimb@codesourcery.com>
69773
69774         * scripts/cross-test-ssh.sh: New file.
69775         * manual/install.texi (Configuring and compiling): Document use of
69776         cross-test-ssh.sh.
69777         * INSTALL: Regenerated.
69778
69779 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
69780
69781         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
69782         EOPNOTSUPP.
69783
69784 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
69785
69786         * Makeconfig (run-program-prefix): Fix comment.
69787
69788 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69789             Jim Blandy  <jimb@codesourcery.com>
69790
69791         * Makeconfig (test-wrapper): New variable,
69792         (test-wrapper-env): Likewise.
69793         [$(cross-compiling) = yes && $(test-wrapper) != ""]
69794         (run-built-tests): Define to yes.
69795         (run-program-prefix): Use $(test-wrapper).
69796         (built-program-cmd): Likewise.
69797         * Rules (make-test-out): Use $(test-wrapper-env) and
69798         $(host-built-program-cmd).
69799         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
69800         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
69801         tst-pathopt.sh.
69802         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
69803         $(test-wrapper-env) to tst-rtld-load-self.sh.
69804         ($(objpfx)order2.out): Use $(test-wrapper).
69805         ($(objpfx)tst-initorder.out): Likewise.
69806         ($(objpfx)tst-initorder2.out): Likewise.
69807         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
69808         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
69809         (test_wrapper_env): New variable.  Use it to run ld.so.
69810         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
69811         Use it to run ld.so.
69812         (test_wrapper_env): Likewise.
69813         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
69814         $(test-wrapper) to run-iconv-test.sh.
69815         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
69816         (ICONV): Use $test_wrapper.
69817         * posix/Makefile ($(objpfx)globtest.out): Pass
69818         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
69819         globtest.sh, not $(run-program-prefix).
69820         * posix/globtest.sh (run_via_rtld_prefix): New variable.
69821         (test_wrapper): Likewise.
69822         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
69823         set together with run_via_rtld_prefix.
69824         (run_program_prefix): Define in terms of test_wrapper and
69825         run_via_rtld_prefix.
69826
69827 2012-10-24  Roland McGrath  <roland@hack.frob.com>
69828
69829         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
69830         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
69831         Targets removed.
69832
69833         [BZ #14743]
69834         * include/time.h: Remove librt_hidden_proto (clock_gettime).
69835         Declare __clock_getres, __clock_gettime, __clock_settime,
69836         __clock_nanosleep, and __clock_getcpuclockid.
69837         * rt/clock_gettime.c: Define __clock_gettime as an alias.
69838         Remove librt_hidden_def (clock_gettime).
69839         * sysdeps/unix/clock_gettime.c: Likewise.
69840         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
69841         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
69842         * rt/clock_getres.c: Define __clock_getres as an alias.
69843         * sysdeps/posix/clock_getres.c: Likewise.
69844         * rt/clock_settime.c: Define __clock_settime as an alias.
69845         * sysdeps/unix/clock_settime.c: Likewise.
69846         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
69847         * sysdeps/unix/clock_nanosleep.c: Likewise.
69848         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
69849         * rt/clock-compat.c: New file.
69850         * rt/Makefile (librt-routines): Add clock-compat and move
69851         $(clock-routines) to ...
69852         (routines): ... here, new variable.
69853         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
69854         Don't add get_clockfreq here.
69855         * rt/Versions (libc: GLIBC_2.17): New version set.
69856         Add clock_* symbols here.
69857         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
69858         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
69859         (GLIBC_2.17): Add clock_* symbols.
69860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
69861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
69862         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
69863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
69864         Likewise.
69865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
69866         Likewise.
69867         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
69868         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
69869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
69870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
69871         * NEWS: Mention the move.
69872
69873         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
69874         Use __open, __read, __close rather than their public counterparts.
69875         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
69876         (__get_clockfreq_via_cpuinfo): Likewise.
69877         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
69878         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
69879
69880         * config.h.in (HAVE_IFUNC): New #undef.
69881         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
69882         was successful.
69883         * configure: Regenerated.
69884
69885 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
69886
69887         * configure.in: Move READELF check to start of file.
69888         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
69889         libc_cv_asm_gnu_indirect_function in the process.
69890         * configure: Regenerated.
69891
69892 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
69893
69894         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
69895         send the output to /dev/null.
69896         (libc_cv_cc_with_libunwind): Likewise.
69897         (libc_cv_as_noexecstack): Likewise.
69898         * configure: Regenerate.
69899
69900 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
69901
69902         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
69903
69904         * posix/globtest.sh (TMPDIR): Do not set.
69905         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
69906         (testout): Likewise.
69907
69908 2012-10-24  Andreas Jaeger  <aj@suse.de>
69909
69910         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
69911         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
69912         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
69913         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
69914         posix_fadvise64, posix_fallocate64.
69915
69916         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
69917         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
69918         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
69919         Likewise.
69920         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
69921         Likewise.
69922         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
69923
69924         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
69925         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
69926         <bits/fcntl-linux.h>.
69927         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
69928
69929         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
69930         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
69931         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
69932         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
69933         [__WORDSIZE != 64]: Likewise.
69934
69935 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
69936
69937         * Makeconfig (run-built-tests): New variable.
69938         * Rules [$(cross-compiling) = yes]: Change condition to
69939         [$(run-built-tests) = no].
69940         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
69941         to [$(run-built-tests) = yes].
69942         * elf/Makefile [$(cross-compiling) = no]: Likewise.
69943         * grp/Makefile [$(cross-compiling) = no]: Likewise.
69944         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
69945         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
69946         * intl/Makefile [$(cross-compiling) = no]: Likewise.
69947         * io/Makefile [$(cross-compiling) = no]: Likewise.
69948         * libio/Makefile [$(cross-compiling) = no]: Likewise.
69949         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
69950         * misc/Makefile [$(cross-compiling) = no]: Likewise.
69951         * posix/Makefile [$(cross-compiling) = no]: Likewise.
69952         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
69953         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
69954         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
69955         * string/Makefile [$(cross-compiling) = no]: Likewise.
69956
69957         * posix/Makefile ($(objpfx)globtest.out): Pass
69958         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
69959         $(rtld-installed-name).
69960         * posix/globtest.sh (elf_objpfx): Remove variable.
69961         (rtld_installed_name): Likewise.
69962         (library_path): Likewise.
69963         (run_program_prefix): New variable.  Use for running globtest
69964         binary.
69965
69966 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
69967             Joseph Myers  <joseph@codesourcery.com>
69968
69969         * Makeconfig (host-built-program-cmd): New variable.
69970         * elf/Makefile (tst-stackguard1-ARGS): Use
69971         $(host-built-program-cmd).
69972         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
69973         (tst-spawn-ARGS): Likewise.
69974         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
69975
69976 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
69977             Jim Blandy  <jimb@codesourcery.com>
69978
69979         * Makeconfig (run-via-rtld-prefix): New variable.
69980         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
69981         (built-program-cmd): Likewise.
69982
69983 2012-10-22  Andreas Jaeger  <aj@suse.de>
69984
69985         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
69986         __O_RSYNC if it exists, otherwise to O_SYNC.
69987
69988 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
69989             Joseph Myers  <joseph@codesourcery.com>
69990
69991         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
69992         /dev/null.
69993         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
69994         from /dev/null
69995         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
69996         /dev/null.
69997
69998 2012-10-22  Andreas Jaeger  <aj@suse.de>
69999
70000         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70001         Define always.
70002         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70003
70004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70005         bits/fcntl-linux.h.
70006
70007         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70008         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70009
70010         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70011         to __O_LARGEFILE.
70012         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70013         to __O_LARGEFILE.
70014
70015 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70016             Joseph Myers  <joseph@codesourcery.com>
70017
70018         * config.make.in (NM): New variable.
70019
70020 2012-10-21  Andreas Jaeger  <aj@suse.de>
70021
70022         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70023         definitions and declarations that are provided by
70024         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70025
70026 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70027
70028         [BZ #14683]
70029         * elf/Makefile (tests-static): Add tst-leaks1-static.
70030         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70031         ($(objpfx)tst-leaks1-static): New rule.
70032         ($(objpfx)tst-leaks1-static-mem): Likewise.
70033         (tst-leaks1-static-ENV): New macro.
70034         * elf/dl-open.c (dl_open_worker): Check the main application
70035         only if SHARED is defined.
70036         * elf/tst-leaks1-static.c: New file.
70037
70038 2012-10-20  Andreas Jaeger  <aj@suse.de>
70039
70040         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70041         generic values for Linux.
70042         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70043         and declarations that are provided by <bits/fcntl-linux.h> and
70044         include <bits/fcntl-linux.h>.
70045         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70046         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70047
70048 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70049
70050         * io/fcntl.h: Move include of <bits/types.h> to the top and
70051         include it unconditionally.
70052
70053 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70054
70055         * wcsmbs/Makefile (tests-ifunc): New variable.
70056         (tests): Add $(tests-ifunc).
70057         * wcsmbs/test-wcschr-ifunc.c: New file.
70058         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70059         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70060         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70061         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70062         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70063
70064         * string/Makefile (tests-ifunc): New variable.
70065         (tests): Add $(tests-ifunc).
70066         * string/test-memccpy.c (TEST_NAME): New macro.
70067         * string/test-memchr.c (TEST_NAME): Likewise.
70068         * string/test-memcmp.c (TEST_NAME): Likewise.
70069         * string/test-memcpy.c (TEST_NAME): Likewise.
70070         * string/test-memmem.c (TEST_NAME): Likewise.
70071         * string/test-memmove.c (TEST_NAME): Likewise.
70072         * string/test-memset.c (TEST_NAME): Likewise.
70073         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70074         * string/test-stpcpy.c (TEST_NAME): Likewise.
70075         * string/test-stpncpy.c (TEST_NAME): Likewise.
70076         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70077         * string/test-strcasestr.c (TEST_NAME): Likewise.
70078         * string/test-strcat.c (TEST_NAME): Likewise.
70079         * string/test-strchr.c (TEST_NAME): Likewise.
70080         * string/test-strcmp.c(TEST_NAME): Likewise.
70081         * string/test-strcpy.c (TEST_NAME): Likewise.
70082         * string/test-strcspn.c (TEST_NAME): Likewise.
70083         * string/test-strlen.c (TEST_NAME): Likewise.
70084         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70085         * string/test-strncmp.c (TEST_NAME): Likewise.
70086         * string/test-strncpy.c (TEST_NAME): Likewise.
70087         * string/test-strnlen.c (TEST_NAME): Likewise.
70088         * string/test-strpbrk.c (TEST_NAME): Likewise.
70089         * string/test-strrchr.c (TEST_NAME): Likewise.
70090         * string/test-strspn.c (TEST_NAME): Likewise.
70091         * string/test-strstr.c (TEST_NAME): Likewise.
70092         * string/test-bcopy-ifunc.c: New file.
70093         * string/test-bzero-ifunc.c: Likewise.
70094         * string/test-memccpy-ifunc.c: Likewise.
70095         * string/test-memchr-ifunc.c: Likewise.
70096         * string/test-memcmp-ifunc.c: Likewise.
70097         * string/test-memcpy-ifunc.c: Likewise.
70098         * string/test-memmem-ifunc.c: Likewise.
70099         * string/test-memmove-ifunc.c: Likewise.
70100         * string/test-mempcpy-ifunc.c: Likewise.
70101         * string/test-memset-ifunc.c: Likewise.
70102         * string/test-rawmemchr-ifunc.c: Likewise.
70103         * string/test-stpcpy-ifunc.c: Likewise.
70104         * string/test-stpncpy-ifunc.c: Likewise.
70105         * string/test-strcasecmp-ifunc.c: Likewise.
70106         * string/test-strcasestr-ifunc.c: Likewise.
70107         * string/test-strcat-ifunc.c: Likewise.
70108         * string/test-strchr-ifunc.c: Likewise.
70109         * string/test-strchrnul-ifunc.c: Likewise.
70110         * string/test-strcmp-ifunc.c: Likewise.
70111         * string/test-strcpy-ifunc.c: Likewise.
70112         * string/test-strcspn-ifunc.c: Likewise.
70113         * string/test-strlen-ifunc.c: Likewise.
70114         * string/test-strncasecmp-ifunc.c: Likewise.
70115         * string/test-strncat-ifunc.c: Likewise.
70116         * string/test-strncmp-ifunc.c: Likewise.
70117         * string/test-strncpy-ifunc.c: Likewise.
70118         * string/test-strnlen-ifunc.c: Likewise.
70119         * string/test-strpbrk-ifunc.c: Likewise.
70120         * string/test-strrchr-ifunc.c: Likewise.
70121         * string/test-strspn-ifunc.c: Likewise.
70122         * string/test-strstr-ifunc.c: Likewise.
70123
70124         * debug/Makefile (tests-ifunc): New variable.
70125         (tests): Add $(tests-ifunc).
70126         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70127         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70128         * debug/test-stpcpy_chk-ifunc.c: New file.
70129         * debug/test-strcpy_chk-ifunc.c: Likewise.
70130
70131 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70132
70133         [BZ #13601]
70134         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70135         header is not read in.
70136
70137 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70138
70139         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70140         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70141         directly.  Pass built executable to script as
70142         $(built-program-cmd).
70143         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70144         $testprogram without using LD_LIBRARY_PATH and $ldso.
70145
70146         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70147         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70148         $(rtld-installed-name).
70149         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70150         (rtld_installed_name): Likewise.
70151         (library_path): Likewise.
70152         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70153         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70154         $(run-program-prefix) to tst-tables.sh.
70155         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70156         it to run tst-table-from and tst-table-to.
70157         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70158         Pass it to tst-table.sh.
70159         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70160         $(run-program-prefix) to tst-gettext.sh.
70161         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70162         tst-translit.sh.
70163         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70164         tst-gettext2.sh.
70165         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70166         to run tst-gettext.
70167         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70168         to run tst-gettext2.
70169         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70170         to run tst-translit.
70171         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70172         $(run-program-prefix) to tst-mtrace.sh.
70173         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70174         to run tst-mtrace.
70175         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70176         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70177         $(rtld-installed-name).
70178         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70179         (rtld_installed_name): Likewise.
70180         (run_program_prefix): New variable.  Use it to run wordexp-test.
70181
70182         * Makeconfig (ARCH): Remove all definitions.
70183         (machine): Likewise.
70184         [ARCH]: Remove conditional code.
70185         [!objdir]: Give error.
70186         [!objdir] (objpfx): Remove.
70187         [!objdir] (common-objpfx): Likewise.
70188         [!objdir] (common-objdir): Likewise.
70189         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70190         AC_CONFIG_FILES call.
70191         * configure: Regenerated.
70192
70193         [BZ #13888]
70194         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70195         or TMPDIR.
70196         (testout): Likewise.
70197
70198         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70199         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70200         $(rtld-installed-name).
70201         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70202         (rtld_installed_name): Likewise.
70203         (runit): Remove function.
70204         (run_getconf): New variable,  Use it for running getconf binary.
70205
70206 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70207
70208         [BZ #14716]
70209         * string/test-memmem.c (check_result): New function.
70210         (do_one_test): Use it.
70211         (check1): New function.
70212         (test_main): Use it.
70213
70214 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70215
70216         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70217
70218 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70219
70220         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70221         (_G_LSEEK64): Likewise.
70222         (_G_MMAP64): Likewise.
70223         (_G_FSTAT64): Likewise.
70224         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70225         (_G_LSEEK64): Likewise.
70226         (_G_MMAP64): Likewise.
70227         (_G_FSTAT64): Likewise.
70228         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70229         unconditional.  Call __mmap64 directly.
70230         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70231         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70232         __lseek64 directly.
70233         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70234         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70235         __mmap64 directly.
70236         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70237         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70238         __lseek64 directly.
70239         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70240         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70241         __lseek64 directly.
70242         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70243         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70244         __lseek64 directly.
70245         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70246         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70247         __fxstat64 directly.
70248         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70249         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70250         unconditional.
70251         (freopen64) [!_G_OPEN64]: Remove conditional code.
70252         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70253         unconditional.
70254         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70255         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70256         unconditional.
70257         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70258         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70259         unconditional.
70260         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70261         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70262         unconditional.
70263         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70264         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70265         unconditional.
70266         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70267         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70268         unconditional.
70269         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70270         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70271         unconditional.
70272         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70273
70274 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70275
70276         [BZ #12140]
70277         * manual/memory.texi (Malloc Tunable Parameters): Add note
70278         about free list pointers overwriting some perturb bytes.
70279         Wording suggested by Roland McGrath.
70280
70281 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70282
70283         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70284         (lgamma_test): Likewise.
70285         (tgamma_test): Likewise.
70286
70287 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70288
70289         [BZ #14700]
70290         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70291         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70292
70293 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70294
70295         * NEWS: Mention BZ #14716.
70296         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70297         when removing AVAILABLE1_USES_J macro.
70298
70299 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70300
70301         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70302         (__bswap_64): __uint64_t for unsigned 64-bit int.
70303
70304 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70305
70306         * include/string.h (memmem): Declare libc hidden alias.
70307         * string/memmem.c (memmem): Define libc hidden alias.
70308         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
70309         __read, __close instead of open, read, close.
70310
70311 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
70312
70313         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
70314         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
70315         global and hidden.
70316         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
70317         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
70318         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
70319         Likewise.
70320         (__rawmemchr_sse2): Likewise.
70321         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
70322         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
70323         (__strchr_sse2): Likewise.
70324         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
70325         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
70326         (__strcasecmp_sse2): Likewise.
70327         (__strncasecmp_sse2): Likewise.
70328         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
70329         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
70330         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
70331         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
70332         (__strrchr_sse2): Likewise.
70333         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
70334         ifunc-impl-list.c.
70335         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
70336         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
70337         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
70338         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
70339         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
70340         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
70341         * sysdeps/x86_64/multiarch/memset.S: Likewise.
70342         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
70343         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
70344         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
70345         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
70346         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
70347         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
70348         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
70349         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70350         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
70351         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
70352         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
70353         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
70354         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
70355         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
70356         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
70357         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
70358         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
70359         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
70360         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
70361         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
70362         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
70363         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
70364         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
70365
70366         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
70367         global and hidden.
70368         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
70369         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
70370         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
70371         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
70372         Likewise.
70373         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
70374         Likewise.
70375         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
70376         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
70377         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
70378         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
70379         ifunc-impl-list.c.
70380         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
70381         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
70382         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
70383         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
70384         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
70385         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
70386         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
70387         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
70388         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
70389         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
70390         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
70391         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
70392         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
70393         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
70394         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
70395         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
70396         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
70397         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
70398         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
70399         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
70400         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70401         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
70402         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
70403         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
70404         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70405         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
70406         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
70407         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
70408         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
70409         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
70410         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
70411         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
70412         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
70413         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
70414         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
70415         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
70416         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
70417         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
70418         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
70419         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
70420         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
70421
70422         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
70423         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
70424         * include/ifunc-impl-list.h: New file.
70425         * misc/ifunc-impl-list.c: Likewise.
70426         * misc/Makefile (routines): Add ifunc-impl-list.
70427         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
70428         * string/test-string.h: Include <ifunc-impl-list.h>.
70429         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
70430         TEST_NAME]: New variables.
70431         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
70432         are defined.
70433         (test_init): Call __libc_ifunc_impl_list to initialize
70434         func_list if TEST_IFUNC and TEST_NAME are defined.
70435
70436         * string/Makefile (strop-tests): Add bcopy and bzero.
70437         * string/test-bcopy.c: New file.
70438         * string/test-bzero.c: Likewise.
70439         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
70440         defined.
70441         * string/test-memset.c: Support bzero test if TEST_BZERO is
70442         defined.
70443         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
70444         __libc_memmove.
70445         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
70446         __libc_memset.
70447         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
70448         of memset.
70449
70450 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
70451
70452         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
70453         * configure: Regenerated.
70454
70455         * Makeconfig (+link-static-before-libc): Don't include
70456         $(link-static-libc).
70457
70458         * libio/libio.h (_IO_pos_t): Remove.
70459
70460 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70461
70462         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
70463         McGrath.
70464
70465 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70466
70467         * crypt/crypt-entry.c: Include fips-private.h.
70468         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
70469         * crypt/md5c-test.c (main): Tolerate disabled MD5.
70470         * sysdeps/unix/sysv/linux/fips-private.h: New file.
70471         * sysdeps/generic/fips-private.h: New file, dummy fallback.
70472
70473 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70474
70475         * crypt/crypt-private.h: Include stdbool.h.
70476         (_ufc_setup_salt_r): Return bool.
70477         * crypt/crypt-entry.c: Include errno.h.
70478         (__crypt_r): Return NULL with EINVAL for bad salt.
70479         * crypt/crypt_util.c (bad_for_salt): New.
70480         (_ufc_setup_salt_r): Check that salt is long enough and within
70481         the specified alphabet.
70482         * crypt/badsalttest.c: New file.
70483         * crypt/Makefile (tests): Add it.
70484         ($(objpfx)badsalttest): New.
70485
70486 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
70487
70488         * NEWS: Add entry for BZ #14602.
70489
70490 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70491
70492         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
70493         type-generic.
70494         * math/libm-test.inc: Update comment listing what functions and
70495         macros are tested.
70496         (isgreater_test): New function.
70497         (isgreaterequal_test): Likewise.
70498         (isless_test): Likewise.
70499         (islessequal_test): Likewise.
70500         (islessgreater_test): Likewise.
70501         (isunordered_test): Likewise.
70502         (main): Call the new functions.
70503
70504 2012-10-09  Roland McGrath  <roland@hack.frob.com>
70505
70506         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
70507         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
70508         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
70509         * sysdeps/i386/configure: Regenerated.
70510         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
70511         * sysdeps/mach/configure: Regenerated.
70512         * sysdeps/mach/hurd/configure: Regenerated.
70513         * sysdeps/powerpc/configure: Regenerated.
70514         * sysdeps/powerpc/powerpc32/configure: Regenerated.
70515         * sysdeps/powerpc/powerpc64/configure: Regenerated.
70516         * sysdeps/s390/s390-32/configure: Regenerated.
70517         * sysdeps/s390/s390-64/configure: Regenerated.
70518         * sysdeps/sh/configure: Regenerated.
70519         * sysdeps/sparc/configure: Regenerated.
70520         * sysdeps/unix/sysv/linux/configure: Regenerated.
70521         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
70522         * sysdeps/x86_64/configure: Regenerated.
70523
70524         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
70525         defined.  Don't check if MAP is NULL.
70526
70527 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70528
70529         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
70530         (_G_stat64): Likewise.
70531         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
70532         (_G_stat64): Likewise.
70533         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
70534         instead of struct _G_stat64.
70535         * libio/fileops.c (mmap_remap_check): Likewise.
70536         (decide_maybe_mmap): Likewise.
70537         (_IO_new_file_seekoff): Likewise.
70538         (_IO_file_stat): Likewise.
70539         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
70540         _G_off64_t.
70541         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
70542         instead of struct _G_stat64.
70543         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70544
70545 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
70546
70547         [BZ #14602]
70548         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70549         Replace with ...
70550         (CHECK_EOL): New macro.
70551         (two_way_short_needle): Check beginning of haystack for EOL.  Use
70552         CHECK_EOL.
70553         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70554         Replace with CHECK_EOL.
70555         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
70556         Replace with CHECK_EOL.
70557
70558 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
70559
70560         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
70561         type-generic.
70562         * math/libm-test.inc: Update comment listing what functions and
70563         macros are tested.
70564         (finite_test): New function.
70565         (isinf_test): Likewise.
70566         (isnan_test): Likewise.
70567         (fpclassify_test): Test subnormal input.
70568         (isfinite_test): Likewise.
70569         (isnormal_test): Likewise.
70570         (main): Call the new functions.
70571
70572 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
70573
70574         [BZ #14660]
70575         * Makerules (%.dynsym): Force C locale when running
70576         $(OBJDUMP) --dynamic-syms.
70577
70578 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
70579
70580         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
70581         <stdint.h>.
70582
70583 2012-10-06  David S. Miller  <davem@davemloft.net>
70584
70585         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
70586         upper 32-bits of the length value in %o2 since we use branch-on-register
70587         tests which consider the entire 64-bit register.
70588
70589 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
70590
70591         * string/test-strstr.c (check2): Add a test for page boundary.
70592
70593 2012-10-05  David S. Miller  <davem@davemloft.net>
70594
70595         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
70596         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
70597         file.
70598         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70599         sysdep_routines.
70600         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70601         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
70602         and bzero when HWCAP_SPARC_CRYPTO is present.
70603
70604 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
70605
70606         [BZ #14602]
70607         * string/test-strstr.c (check2): New function.
70608         (test_main): Call check2.
70609
70610         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
70611         and bug-strchr1.
70612         * string/bug-strcasestr1.c (do_test): Moved to ...
70613         * string/test-strcasestr.c (check1): Here.  New function.
70614         (do_one_test): Break out result checking code into ...
70615         (check_result): This.  New function.
70616         (do_one_test): Call check_result.
70617         (test_main): Call check1.
70618         * string/bug-strchr1.c (do_test): Moved to ...
70619         * string/test-strchr.c (check1): Here.  New function.
70620         (do_one_test): Break out result checking code into ...
70621         (check_result): This.  New function.
70622         (do_one_test): Call check_result.
70623         (test_main): Call check1.
70624         * string/bug-strstr1.c (main): Moved to ...
70625         * string/test-strstr.c (check1): Here.  New function.
70626         (do_one_test): Break out result checking code into ...
70627         (check_result): This.  New function.
70628         (do_one_test): Call check_result.
70629         (test_main): Call check1.
70630         * string/bug-strcasestr1.c: Removed.
70631         * string/bug-strchr1.c: Likewise.
70632         * string/bug-strstr1.c: Likewise.
70633
70634         * elf/Makefile (dl-routines): Add hwcaps.
70635         * elf/dl-support.c (_dl_important_hwcaps): Removed.
70636         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
70637         (_dl_important_hwcaps): Moved to ...
70638         * elf/dl-hwcaps.c: Here.  New file.
70639         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
70640
70641         [BZ #14557]
70642         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
70643         if IS_IN_rtld isn't defined.
70644
70645         * elf/dl-support.c (_dl_sysinfo_map): New.
70646         Include "get-dynamic-info.h" and "setup-vdso.h".
70647         (_dl_non_dynamic_init): Call setup_vdso.
70648         * elf/dynamic-link.h: Don't include <assert.h>.
70649         (elf_get_dynamic_info): Moved to ...
70650         * elf/get-dynamic-info.h: Here.  New file.
70651         * elf/dynamic-link.h: Include "get-dynamic-info.h".
70652         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
70653         * elf/setup-vdso.h: Here.  New file.
70654         * elf/rtld.c: Include "setup-vdso.h".
70655         (dl_main): Call setup_vdso.
70656
70657 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
70658
70659         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
70660         creal in comment listing functions tested.  List finite, isinf,
70661         isnan, isless, islessequal, isgreater, isgreaterequal,
70662         islessgreater, isunordered, lgamma_r and pow10 as functions and
70663         macros not tested.  Mention which functions not tested are aliases
70664         for other functions.  Fix typo.  Note that signs of NaNs are not
70665         tested.
70666
70667         * scripts/config.guess: Update from config.git.
70668         * scripts/config.sub: Likewise.
70669
70670 2012-10-04  Roland McGrath  <roland@hack.frob.com>
70671
70672         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
70673         * misc/madvise.c (madvise): Renamed to __madvise.
70674         Make madvise a weak alias.
70675         * include/sys/mman.h: Declare __madvise.
70676         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
70677         * sysdeps/unix/syscalls.list
70678         (madvise): Make __madvise the strong name, and madvise a weak alias.
70679         * sysdeps/unix/sysv/linux/syscalls.list
70680         (madvise, mmap): Remove redundant entries.
70681         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
70682         * malloc/malloc.c (mtrim): Likewise.
70683         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
70684
70685 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70686
70687         * sysdeps/mach/hurd/dl-cache.c: File removed.
70688         * config.h.in (USE_LDCONFIG): New #undef.
70689         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
70690         * configure: Regenerated.
70691         * elf/Makefile (dl-routines): Add dl-cache only under
70692         [$(use-ldconfig) = yes].
70693         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
70694         cache on [USE_LDCONFIG].
70695         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
70696         [USE_LDCONFIG].
70697         * elf/rtld.c (dl_main): Likewise.
70698
70699 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
70700
70701         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
70702         _SC_LEVEL4_CACHE_LINESIZE.
70703
70704 2012-10-03  Roland McGrath  <roland@hack.frob.com>
70705
70706         * sysdeps/unix/bsd/confstr.h: File removed.
70707
70708 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
70709
70710         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
70711         sys/sdt-config.h.
70712
70713 2012-10-02  Roland McGrath  <roland@hack.frob.com>
70714
70715         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
70716         Make 'mapoff' field ElfW(Off) rather than off_t.
70717
70718 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70719
70720         * nscd/Makefile: Remove nscd-cflags and all its users.
70721         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
70722         (CFLAGS-nonlib): Add compiler flags for nscd modules.
70723
70724         [BZ #10631]
70725         * malloc.c (malloc_printerr): Clarify error message.
70726
70727 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
70728
70729         [BZ #14648]
70730         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
70731         Set bit_FMA_Usable if FMA is supported.
70732         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
70733         macro.
70734         (bit_FMA4_Usable): Updated.
70735         (index_FMA_Usable): New macro.
70736         (CPUID_FMA): Likewise.
70737         (HAS_FMA): Defined with bit_FMA_Usable.
70738
70739 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70740
70741         * bits/types.h (__swblk_t): Type removed.
70742         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
70743         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
70744         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
70745         (__SWBLK_T_TYPE): Likewise.
70746         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
70747         (__SWBLK_T_TYPE): Likewise.
70748         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
70749         (__SWBLK_T_TYPE): Likewise.
70750         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
70751         (__SWBLK_T_TYPE): Likewise.
70752
70753 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
70754             Honza Horak <hhorak@redhat.com>
70755
70756         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
70757         (xdr_mapname): Use YPMAXMAP as maxsize.
70758         (xdr_peername): Use YPMAXPEER as maxsize.
70759         (xdr_keydat): Use YPAXRECORD as maxsize.
70760         (xdr_valdat): Use YPMAXRECORD as maxsize.
70761
70762 2012-10-01  Roland McGrath  <roland@hack.frob.com>
70763
70764         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
70765
70766         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
70767         * csu/init-first.c: ... here.
70768         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
70769         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
70770         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
70771         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
70772         * sysdeps/i386/init-first.c: File removed.
70773         * sysdeps/sh/init-first.c: File removed.
70774
70775 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
70776
70777         [BZ #14645]
70778         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
70779         if x * y might underflow to zero and z is zero.
70780         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70781         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70782         * math/libm-test.inc (min_subnorm_value): New variable.
70783         (fma_test): Add more tests.
70784         (fma_test_towardzero): Likewise.
70785         (fma_test_downward): Likewise.
70786         (fma_test_upward): Likewise.
70787         (initialize): Set min_subnorm_value.
70788
70789 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
70790
70791         [BZ #14638]
70792         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
70793         0 + 0.
70794         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
70795         mode for addition resulting in exact zero.
70796         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
70797         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
70798         exact 0 + 0.
70799         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
70800         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70801         * math/libm-test.inc (fma_test): Add more tests.
70802         (fma_test_towardzero): New function.
70803         (fma_test_downward): Likewise.
70804         (fma_test_upward): Likewise.
70805         (main): Call the new functions.
70806
70807 2012-09-28  David S. Miller  <davem@davemloft.net>
70808
70809         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
70810
70811 2012-09-28  Roland McGrath  <roland@hack.frob.com>
70812
70813         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
70814         instead of SIGALRM.
70815
70816         * sysdeps/gnu/_G_config.h: Moved to ...
70817         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
70818         * sysdeps/mach/hurd/_G_config.h: Moved to ...
70819         * sysdeps/generic/_G_config.h: ... here.
70820
70821         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
70822
70823         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
70824
70825         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
70826         Conditionalize target on [libnss_test1.so-version].
70827
70828         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
70829
70830         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
70831         (elfobjdir): Move out of conditionals.
70832
70833         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
70834         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
70835         (__nss_lookup_function): Conditionalize label remove_from_tree on
70836         [!DO_STATIC_NSS || SHARED], matching its only use.
70837
70838 2012-09-28  David S. Miller  <davem@davemloft.net>
70839
70840         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
70841         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
70842         file.
70843         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
70844         sysdep_routines.
70845         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
70846         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
70847         when HWCAP_SPARC_CRYPTO is present.
70848
70849 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70850
70851         * io/tst-mknodat.c: Create a FIFO instead of a socket.
70852
70853 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
70854
70855         [BZ #6530]
70856         * stdio-common/vfprintf.c (process_string_arg): Revert
70857         2000-07-22 change.
70858
70859 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
70860
70861         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
70862         for testcase.
70863         * stdio-common/tst-sprintf.c: Include <locale.h>
70864         (main): Test sprintf's handling of incomplete multibyte
70865         characters.
70866
70867 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
70868
70869         * elf/dl-runtime.c (VERSYMIDX): Removed.
70870         * elf/dl-version.c (VERSYMIDX): Likewise.
70871         * elf/do-rel.h (VERSYMIDX): Likewise.
70872         (VALIDX): Likewise.
70873         * elf/dynamic-link.h (VERSYMIDX): Likewise.
70874         * elf/rtld.c (VALIDX): Likewise.
70875         (ADDRIDX): Likewise.
70876         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
70877         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
70878         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
70879         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
70880         (VALIDX): Likewise.
70881         (ADDRIDX): Likewise.
70882
70883 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70884
70885         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
70886
70887 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
70888
70889         [BZ #11438]
70890         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
70891         to global scope.
70892         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
70893         addresses are in the same scope as 192.0.2/24.
70894         * posix/gai.conf: Document new scope table defaults.
70895
70896 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70897
70898         [BZ #5298]
70899         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
70900         for ftell.  Compute offsets from write pointers instead.
70901         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
70902
70903 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
70904
70905         [BZ #14543]
70906         * libio/Makefile (tests): New test case tst-fseek.
70907         * libio/tst-fseek.c: New test case to verify that fseek/ftell
70908         combination works in wide mode.
70909         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
70910         state when the external buffer state changes.
70911
70912 2012-09-27  David S. Miller  <davem@davemloft.net>
70913
70914         [BZ #14376]
70915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
70916         pass reloc->r_addend in as the 'high' argument to
70917         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
70918
70919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70920
70921 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
70922
70923         * rt/tst-aio2.c: Include <pthread.h>.
70924         * rt/tst-aio3.c: Likewise.
70925
70926 2012-09-27  Steve Ellcey  <sellcey@mips.com>
70927
70928         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
70929
70930 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
70931
70932         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
70933         contents on [SHARED].
70934
70935 2012-09-26  Marek Polacek  <polacek@redhat.com>
70936
70937         [BZ #14530]
70938         [BZ #13741]
70939         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
70940         for C++ and GCC <4.3 as well as for non GCC compilers.
70941
70942 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
70943
70944         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70945
70946 2012-09-25  Roland McGrath  <roland@hack.frob.com>
70947
70948         * Makefile.in (all, install): Declare with .PHONY.
70949         Reported by Michael Hope <michael.hope@linaro.org>.
70950
70951 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70952
70953         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
70954         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
70955         system header.
70956         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
70957         Likewise.
70958         (sydep_routines): Add the new and the internal functions.
70959         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
70960         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
70961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
70962         (GLIBC_2.17): Add the new function.
70963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
70964         (GLIBC_2.17): Likewise.
70965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
70966         (GLIBC_2.17): Likewise.
70967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
70968         (GLIBC_2.17): Likewise.
70969         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
70970
70971 2012-09-25  Alan Modra  <amodra@gmail.com>
70972
70973         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
70974         Add release barrier before setting once_control to say
70975         initialisation is done.  Add hints on lwarx.  Use macro in
70976         place of isync.
70977         (clear_once_control): Add release barrier.
70978
70979 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
70980
70981         [BZ #13629]
70982         * math/s_clog.c (__clog): Handle more values close to |z| = 1
70983         specially.
70984         * math/s_clog10.c (__clog10): Likewise.
70985         * math/s_clog10f.c (__clog10f): Likewise.
70986         * math/s_clog10l.c (__clog10l): Likewise.
70987         * math/s_clogf.c (__clogf): Likewise.
70988         * math/s_clogl.c (__clogl): Likewise.
70989         * math/Makefile (libm-calls): Add x2y2m1.
70990         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
70991         (__x2y2m1): Likewise.
70992         (__x2y2m1l): Likewise.
70993         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
70994         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
70995         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
70996         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
70997         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
70998         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
70999         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71000         * sysdeps/i386/fpu/libm-test-ulps: Update.
71001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71002
71003         [BZ #14621]
71004         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71005         int as type of variable DEPTH.
71006         (glob): Use size_t instead of int as type of variables NEWCOUNT
71007         and OLD_PATHC.
71008
71009 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71010
71011         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71012         Add s_sincosf-sse2.
71013         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71014         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71015         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71016         macros for using routine as __sincosf_ia32.
71017         Use macro for function declaration and weak_alias.
71018         * sysdeps/i386/fpu/libm-test-ulps: Update.
71019
71020         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71021         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71022
71023         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71024         subnormal argument.
71025         * math/s_cexpf.c (__cexpf): Likewise.
71026         * math/s_csinf.c (__csinf): Likewise.
71027         * math/s_csinhf.c (__csinhf): Likewise.
71028         * math/s_ctanf.c (__ctanf): Likewise.
71029         * math/s_ctanhf.c (__ctanhf): Likewise.
71030         * math/s_ccosh.c (__ccoshf): Likewise.
71031         * math/s_cexp.c (__cexpl): Likewise.
71032         * math/s_csin.c (__csin): Likewise.
71033         * math/s_csinh.c (__csinh): Likewise.
71034         * math/s_ctan.c (__ctan): Likewise.
71035         * math/s_ctanh.c (ctanh): Likewise.
71036         * math/s_ccoshl.c (__ccoshl): Likewise.
71037         * math/s_cexpl.c (__cexpl): Likewise.
71038         * math/s_csinl.c (__csinl): Likewise.
71039         * math/s_csinhl.c (__csinhl): Likewise.
71040         * math/s_ctanl.c (__ctanl): Likewise.
71041         * math/s_ctanhl.c (__ctanhl): Likewise.
71042
71043 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71044
71045         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71046         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71047         (_IO_off_t): Define to __off_t, not _G_off_t.
71048         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71049         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71050         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71051         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71052         type of __dummy and __dummy2 fields.
71053         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71054         (_G_ssize_t): Likewise.
71055         (_G_off_t): Likewise.
71056         (_G_pid_t): Likewise.
71057         (_G_uid_t): Likewise.
71058         (_G_wchar_t): Likewise.
71059         (_G_wint_t): Likewise.
71060         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71061         (_G_ssize_t): Likewise.
71062         (_G_off_t): Likewise.
71063         (_G_pid_t): Likewise.
71064         (_G_uid_t): Likewise.
71065         (_G_wchar_t): Likewise.
71066         (_G_wint_t): Likewise.
71067         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71068         (_G_ssize_t): Likewise.
71069         (_G_off_t): Likewise.
71070         (_G_pid_t): Likewise.
71071         (_G_uid_t): Likewise.
71072         (_G_wchar_t): Likewise.
71073         (_G_wint_t): Likewise.
71074
71075 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71076
71077         * malloc/arena.c: Include malloc-sysdep.h.
71078         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71079         is sufficient to shrink the heap or an unmap is needed.
71080         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71081         new function check_may_shrink_heap.
71082         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71083         new function check_may_shrink_heap.
71084
71085 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71086
71087         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71088         comments.
71089
71090 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71091
71092         * catgets/test-gencat.sh: Add "set -e".
71093         * elf/tst-pathopt.sh: Likewise.
71094         * grp/tst_fgetgrent.sh: Likewise.
71095         * iconvdata/run-iconv-test.sh: Likewise.
71096         * intl/tst-gettext.sh: Likewise.
71097         * intl/tst-gettext2.sh: Likewise.
71098         * intl/tst-gettext4.sh: Likewise.
71099         * intl/tst-gettext6.sh: Likewise.
71100         * intl/tst-translit.sh: Likewise.
71101         * io/ftwtest-sh: Likewise.
71102         * libio/test-freopen.sh: Likewise.
71103         * malloc/tst-mtrace.sh: Likewise.
71104         * posix/globtest.sh: Likewise.
71105         * posix/tst-getconf.sh: Likewise.
71106         * posix/wordexp-tst.sh: Likewise.
71107         * stdio-common/tst-printf.sh: Likewise.
71108         * stdio-common/tst-unbputc.sh: Likewise.
71109         * stdlib/tst-fmtmsg.sh: Likewise.
71110         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71111         * catgets/Makefile: Do not specify -e option when running
71112         testsuite shell scripts.
71113         * elf/Makefile: Likewise.
71114         * grp/Makefile: Likewise.
71115         * iconvdata/Makefile: Likewise.
71116         * intl/Makefile: Likewise.
71117         * io/Makefile: Likewise.
71118         * libio/Makefile: Likewise.
71119         * malloc/Makefile: Likewise.
71120         * posix/Makefile: Likewise.
71121         * stdio-common/Makefile: Likewise.
71122         * stdlib/Makefile: Likewise.
71123         * sysdeps/x86_64/Makefile: Likewise.
71124
71125         * io/ftwtest-sh: Add copyright header.
71126         * posix/globtest.sh: Likewise.
71127         * posix/tst-getconf.sh: Likewise.
71128         * posix/wordexp-tst.sh: Likewise.
71129         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71130
71131 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71132
71133         [BZ #13679]
71134         * Makeconfig (+link): Defined as $(+link-static) if
71135         $(build-shared) isn't yes.
71136         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71137         isn't yes.
71138         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71139
71140         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71141
71142         [BZ #14562]
71143         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71144         new chunk size with MALLOC_ALIGN_MASK.
71145
71146 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71147
71148         [BZ #5044]
71149         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71150         <rounding-mode.h>.
71151         (__printf_fphex): Determine rounding using get_rounding_mode and
71152         round_away.
71153         * stdio-common/tst-printf-round.c (struct hex_test): New
71154         structure.
71155         (hex_tests): New variable.
71156         (test_hex_in_one_mode): New function.
71157         (do_test): Also run tests for hex float output.
71158
71159 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71160
71161         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71162         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71163         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71164         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71165         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71166         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71167         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71168         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71169
71170 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71171
71172         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71173         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71174         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71175         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71176
71177 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71178
71179         [BZ #14579]
71180         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71181         mode only.
71182         * elf/tst-rtld-load-self.sh: New test.
71183         * elf/Makefile: Run it.
71184
71185 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71186
71187         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71188         (tst-writev-ENV): Remove.
71189         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71190
71191 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71192
71193         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71194
71195 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71196
71197         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71198         unconditional.
71199         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71200         Likewise.
71201         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71202         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71203         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71204         Likewise.
71205
71206 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71207
71208         [BZ #14587]
71209         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71210         * config.make.in (have-cpp-asm-debuginfo): Removed.
71211         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71212         * configure: Regenerated.
71213
71214 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71215
71216         [BZ #5044]
71217         * stdio-common/printf_fp.c: Include <stdbool.h> and
71218         <rounding-mode.h>.
71219         (___printf_fp): Determine rounding using get_rounding_mode and
71220         round_away.
71221         * stdio-common/tst-printf-round.c: New file.
71222         * stdio-common/Makefile (tests): Add tst-printf-round.
71223         (link-libm): New variable.
71224         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71225
71226 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71227
71228         [BZ #14576]
71229         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71230         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71231         Likewise.
71232         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71233         Likewise.
71234
71235 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71236
71237         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71238         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71239         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71240         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71241
71242 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71243
71244         [BZ #14518]
71245         * include/rounding-mode.h: New file.
71246         * sysdeps/generic/get-rounding-mode.h: Likewise.
71247         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71248         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71249         (MAX_VALUE): New macro.
71250         (MIN_VALUE): Likewise.
71251         (overflow_value): New function.
71252         (underflow_value): Likewise.
71253         (round_and_return): Use overflow_value and underflow_value to
71254         determine return values in overflow and underflow cases.  Use
71255         round_away to determine rounding depending on rounding mode.
71256         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71257         determine return values in overflow and underflow cases.
71258         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71259         (struct test_results): New structure.
71260         (struct test): Use struct test_results to store expected results
71261         for all rounding modes.
71262         (TEST): Include expected results for all rounding modes.
71263         (test_in_one_mode): New function.
71264         (do_test): Use test_in_one_mode to compute and check results.
71265         Check results for all rounding modes.
71266         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71267         $(link-libm).
71268
71269 2012-12-09  Allan McRae  <allan@archlinux.org>
71270
71271         * sysdeps/i386/fpu/libm-test-ulps: Update
71272
71273 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71274
71275         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71276         (_G_int32_t): Likewise.
71277         (_G_uint16_t): Likewise.
71278         (_G_uint32_t): Likewise.
71279         (_G_HAVE_BOOL): Likewise.
71280         (_G_HAVE_ATEXIT): Likewise.
71281         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71282         (_G_HAVE_IO_FILE_OPEN): Likewise.
71283         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71284         (_G_int32_t): Likewise.
71285         (_G_uint16_t): Likewise.
71286         (_G_uint32_t): Likewise.
71287         (_G_HAVE_BOOL): Likewise.
71288         (_G_HAVE_ATEXIT): Likewise.
71289         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71290         (_G_HAVE_IO_FILE_OPEN): Likewise.
71291         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71292         (_G_int32_t): Likewise.
71293         (_G_uint16_t): Likewise.
71294         (_G_uint32_t): Likewise.
71295         (_G_HAVE_BOOL): Likewise.
71296         (_G_HAVE_ATEXIT): Likewise.
71297         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71298         (_G_HAVE_IO_FILE_OPEN): Likewise.
71299
71300 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71301
71302         * csu/libc-tls.c: Update copyright years.
71303
71304 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71305
71306         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
71307         [!_G_USING_THUNKS]: Remove conditional code.
71308         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
71309         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
71310
71311         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71312         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
71313         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71314         (_G_VTABLE_LABEL_PREFIX): Likewise.
71315         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71316         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71317         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71318         (_G_VTABLE_LABEL_PREFIX): Likewise.
71319         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71320         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71321         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71322         (_G_VTABLE_LABEL_PREFIX): Likewise.
71323         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71324
71325 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
71326
71327         * libio/Makefile: Include ../Makeconfig before tests.
71328         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
71329         only if $(build-shared) is yes.
71330
71331         * iconv/gconv_db.c: Update copyright years.
71332
71333 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71334
71335         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
71336         unwind info if defined PIC. Fix special cases description.
71337         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71338
71339         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
71340         DP_HI_MASK entry.
71341         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
71342
71343 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
71344
71345         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
71346
71347         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
71348         is NULL.
71349
71350         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
71351         (LDLIBS-tst-chk4): This.
71352         (LDFLAGS-tst-chk5): Renamed to ...
71353         (LDLIBS-tst-chk5): This.
71354         (LDFLAGS-tst-chk6): Renamed to ...
71355         (LDLIBS-tst-chk6): This.
71356         (LDFLAGS-tst-lfschk4): Renamed to ...
71357         (LDLIBS-tst-lfschk4): This.
71358         (LDFLAGS-tst-lfschk5): Renamed to ...
71359         (LDLIBS-tst-lfschk5): This.
71360         (LDFLAGS-tst-lfschk6): Renamed to ...
71361         (LDLIBS-tst-lfschk6): This.
71362
71363         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
71364         on $(common-objpfx)soversions.mk.
71365
71366 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
71367
71368         [BZ #10014]
71369         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
71370         example host name.
71371
71372 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
71373
71374         * malloc/arena.c (arena_get_retry): New function that gets
71375         another arena for the caller to try its request on.
71376         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
71377         current arena cannot fulfill the request.
71378         (__libc_memalign): Likewise.
71379         (__libc_memalign): Likewise.
71380         (__libc_pvalloc): Likewise.
71381         (__libc_calloc): Likewise.
71382
71383 2012-09-05  John Tobey  <john.tobey@gmail.com>
71384
71385         [BZ #13542]
71386         * manual/arith.texi (Operations on Complex): Fix description
71387         of carg branch cut.
71388
71389 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71390
71391         [BZ #10014]
71392         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
71393         host name.
71394
71395         [BZ #10038]
71396         * manual/memory.texi (Memory): Make order of menu items match
71397         order of sections.
71398
71399 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71400
71401         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
71402         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71403         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
71404
71405 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71406
71407         * csu/libc-tls.c (static_dtv): Renamed to ...
71408         (_dl_static_dtv): This.  Make it global.
71409         (_dl_initial_dtv): Removed.
71410         (__libc_setup_tls): Updated.
71411         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
71412         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71413         DL_INITIAL_DTV.
71414
71415 2012-09-06  Petr Machata  <pmachata@redhat.com>
71416
71417         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
71418         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
71419         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
71420         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
71421
71422 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71423
71424         [BZ #14545]
71425         * csu/libc-tls.c (_dl_initial_dtv): New variable.
71426         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
71427         freeing dtv[-1].
71428
71429 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71430
71431         [BZ #14544]
71432         * Makeconfig (link-static-before-libc): Replace $(+prector)
71433         with $(+prectorT).
71434         (link-static-after-libc): Replace $(+postctor) with
71435         $(+postctorT).
71436         (link-bounded): Replace $(+prector)/$(+postctor) with
71437         $(+prectorT)/$(+postctorT).
71438         (+prectorT): New macro.
71439         (+postctorT): Likewise.
71440
71441 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71442
71443         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
71444         (round_str): Handle values above the maximum for IBM long double
71445         as inexact.
71446         * stdlib/tst-strtod-round.c (tests): Regenerated.
71447
71448 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71449
71450         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
71451         assembler flag.
71452         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
71453         zarch_nohighgprs around the zarch optimized routines.
71454         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
71455         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
71456         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
71457         for zarch.
71458
71459 2012-09-05  David S. Miller  <davem@davemloft.net>
71460
71461         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71462
71463         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
71464         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
71465         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
71466         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
71467         entries.
71468
71469 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71470
71471         * malloc/arena.c: Fold copyright years.
71472         * malloc/mcheck.c, malloc/memusage.c: Likewise.
71473
71474 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71475
71476         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
71477
71478 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71479
71480         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
71481
71482 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71483
71484         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
71485         change internal state upon failure.
71486
71487 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71488
71489         * malloc/mcheck.c (mcheck_check_all): Fix typo.
71490         * malloc/memusage.c (mmap): Likewise.
71491         (mmap64, mremap): Likewise.  Adjust name in comment.
71492
71493 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71494
71495         * libio/fileops.c: Fix typos in comments.
71496         * libio/oldfileops.c: Likewise.
71497         * libio/wfileops.c: Likewise.
71498
71499 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71500
71501         [BZ #1349]
71502         * malloc/Makefile (tests): Add tst-malloc-usable test case.
71503         (tst-malloc-usable-ENV): Set environment for test case.
71504         * malloc/hooks.c (malloc_check_get_size): New function to get
71505         requested size.
71506         * malloc/malloc.c (musable): Use malloc_check_get_size.
71507         * malloc/tst-malloc-usable.c: New test case.
71508
71509 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71510
71511         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
71512
71513 2012-09-05  Allan McRae  <allan@archlinux.org>
71514
71515         [BZ #13966]
71516         * configure.in (CXX_SYSINCLUDES): Use compiler output to
71517         determine header location.
71518         * configure: Regenerated.
71519
71520 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71521
71522         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
71523         float format.
71524         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
71525         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
71526         format.
71527         (test): Regenerate.
71528
71529 2012-09-04  David S. Miller  <davem@davemloft.net>
71530
71531         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
71532         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
71533         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
71534
71535 2012-09-04  Florian Weimer  <fweimer@redhat.com>
71536
71537         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
71538         failures.
71539
71540         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
71541
71542 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
71543
71544         [BZ #9914]
71545         * libio/iogetdelim.c: Include <limits.h>.
71546         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
71547         + len + 1 would overflow.
71548
71549 2012-09-03  Andreas Jaeger  <aj@suse.de>
71550
71551         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71552         * sysdeps/i386/fpu/libm-test-ulps: Update.
71553
71554 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71555
71556         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71557         Add s_sinf-sse2, s_conf-sse2.
71558
71559         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
71560         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
71561         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
71562         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
71563
71564         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
71565         for using routine as __sinf_ia32.
71566         Use macro for function declaration and weak_alias.
71567         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
71568         for using routine as __cosf_ia32.
71569         Use macro for function declaration and weak_alias.
71570
71571         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
71572         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
71573
71574         * sysdeps/x86_64/fpu/s_sinf.S: New file.
71575         * sysdeps/x86_64/fpu/s_cosf.S: New file.
71576         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71577
71578         * math/libm-test.inc (cos_test): Add more test cases.
71579         (sin_test): Likewise.
71580         (sincos_test): Likewise.
71581
71582 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71583
71584         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
71585         (IFUNC_RESOLVE): Make pointers to the specialized implementations
71586         hidden.
71587         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
71588
71589 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
71590
71591         [BZ #14538]
71592         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
71593         first element of the GOT.
71594         (elf_machine_load_address): Return the difference between
71595         the runtime address of _DYNAMIC and elf_machine_dynamic ().
71596
71597 2012-09-01  Allan McRae  <allan@archlinux.org>
71598
71599         [BZ #13412]
71600         * configure.in (AWK): Require gawk version 3.0 or later.
71601         * configure: Regenerated.
71602
71603 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
71604
71605         * sysdeps/unix/sysv/linux/kernel-features.h
71606         (__ASSUME_POSIX_CPU_TIMERS): Remove.
71607         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
71608         [__NR_clock_getres]: Make code unconditional.
71609         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
71610         (clock_getcpuclockid): Remove code left unreachable by removal of
71611         conditionals.
71612         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
71613         code unconditional.
71614         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71615         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71616         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
71617         Make code unconditional.
71618         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
71619         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71620         * sysdeps/unix/sysv/linux/clock_settime.c
71621         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
71622         conditional code.
71623         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
71624         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
71625
71626 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
71627
71628         [BZ #14476]
71629         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
71630         scripts/test-installation.pl.
71631
71632         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
71633         and $ld_so_version if it is set.
71634
71635 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
71636
71637         [BZ #14516]
71638         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
71639         failure if reading from procfs failed.
71640         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
71641
71642 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71643
71644         * sysdeps/unix/sysv/linux/kernel-features.h
71645         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
71646         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71647         Remove conditional code.
71648         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71649         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
71650         Remove conditional code.
71651         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71652         * sysdeps/unix/sysv/linux/i386/fxstat.c
71653         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71654         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71655         * sysdeps/unix/sysv/linux/i386/fxstatat.c
71656         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71657         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71658         * sysdeps/unix/sysv/linux/i386/lxstat.c
71659         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
71660         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71661         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
71662         Remove conditional code.
71663         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71664         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
71665         Remove conditional code.
71666         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71667         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
71668         <kernel-features.h>.
71669         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
71670         Remove.
71671         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
71672         Remove conditional code.
71673         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
71674         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
71675         Remove conditional.
71676
71677 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
71678
71679         [BZ #5400]
71680         * NEWS: Add fixed bug number.
71681
71682 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
71683
71684         [BZ #14519]
71685         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
71686         underflowing exponent in case of negative sign.
71687         * stdlib/tst-strtod-round-data: Add more tests.
71688         * stdlib/tst-strtod-round.c (tests): Regenerated.
71689
71690         [BZ #3479]
71691         * stdlib/strtod_l.c (NDIG): Remove.
71692         (HEXNDIG): Likewise.
71693         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
71694         smallest representable value.
71695         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
71696         lie within an exact representation of 1/2 ulp of the result.
71697         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
71698         unconditionally.
71699         (TENS_P9_IDX): Define unconditionally.
71700         (TENS_P9_SIZE): Likewise.
71701         (TENS_P10_IDX): Likewise.
71702         (TENS_P10_SIZE): Likewise.
71703         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
71704         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
71705         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
71706         entries for 10^2^13 and 10^2^14.
71707         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
71708         (TENS_P13_IDX): Define.
71709         (TENS_P13_SIZE): Likewise.
71710         (TENS_P14_IDX): Likewise.
71711         (TENS_P14_SIZE): Likewise.
71712         (_fpioconst_pow10): Change array size to
71713         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
71714         unconditional.
71715         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
71716         1024]: Add entries for 10^2^13 and 10^2^14.
71717         [LAST_POW10 > _LAST_POW10]: Remove #error.
71718         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
71719         (_fpioconst_pow10): Change array size to
71720         FPIOCONST_POW10_ARRAY_SIZE.
71721         * stdlib/gen-fpioconst.c: New file.
71722         * stdlib/gen-tst-strtod-round.c: Likewise.
71723         * stdlib/tst-strtod-round-data: Likewise.
71724         * stdlib/tst-strtod-round.c: Likewise.
71725         * stdlib/Makefile (tests): Add tst-strtod-round.
71726
71727         [BZ #14459]
71728         * stdlib/strtod_l.c: Include <stdint.h>.
71729         (NDEBUG): Do not define.
71730         (round_and_return): Change EXPONENT parameter to type intmax_t.
71731         Rearrange calculations to avoid internal overflow possibilities.
71732         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
71733         Rearrange calculations to avoid internal overflow possibilities.
71734         Assert that number fits inside MPNSIZE limbs.
71735         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
71736         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
71737         calculations and add assertions to avoid internal overflow
71738         possibilities.  Add casts to avoid signed/unsigned operations.
71739         * stdlib/tst-strtod-overflow.c: New file.
71740         * stdlib/Makefile (tests): Add tst-strtod-overflow.
71741
71742 2012-08-25  Marek Polacek  <polacek@redhat.com>
71743
71744         * time/time.h: Fix some typos in comments.
71745
71746 2012-08-23  Roland McGrath  <roland@hack.frob.com>
71747
71748         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
71749         * posix/tst-rfc3484-2.c: Likewise.
71750         * posix/tst-rfc3484-3.c: Likewise.
71751
71752 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
71753
71754         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
71755         (EF_ARM_ABI_FLOAT_HARD): Likewise.
71756
71757 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
71758
71759         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
71760         #include of fxstatat64.c.
71761
71762 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71763
71764         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
71765         * shadow/getspent_r.c: Likewise.
71766         * shadow/getspnam.c: Likewise.
71767         * shadow/getspnam_r.c: Likewise.
71768         * gshadow/getsgent.c: Likewise.
71769         * gshadow/getsgent_r.c: Likewise.
71770         * gshadow/getsgnam.c: Likewise.
71771         * gshadow/getsgnam_r.c: Likewise.
71772         * inet/getnetbyad.c: Likewise.
71773         * inet/getnetbyad_r.c: Likewise.
71774         * inet/getnetbynm.c: Likewise.
71775         * inet/getnetbynm_r.c: Likewise.
71776         * inet/getnetent.c: Likewise.
71777         * inet/getnetent_r.c: Likewise.
71778         * inet/getproto.c: Likewise.
71779         * inet/getproto_r.c: Likewise.
71780         * inet/getprtent.c: Likewise.
71781         * inet/getprtent_r.c: Likewise.
71782         * inet/getprtname.c: Likewise.
71783         * inet/getprtname_r.c: Likewise.
71784         * inet/getrpcbyname.c: Likewise.
71785         * inet/getrpcbyname_r.c: Likewise.
71786         * inet/getrpcbynumber.c: Likewise.
71787         * inet/getrpcbynumber_r.c: Likewise.
71788         * inet/getrpcent.c: Likewise.
71789         * inet/getrpcent_r.c: Likewise.
71790         * inet/getaliasent.c: Likewise.
71791         * inet/getaliasent_r.c: Likewise.
71792         * inet/getaliasname.c: Likewise.
71793         * inet/getaliasname_r.c: Likewise.
71794         * nscd/getgrgid_r.c: Likewise.
71795         * nscd/getgrnam_r.c: Likewise.
71796         * nscd/gethstbyad_r.c: Likewise.
71797         * nscd/gethstbynm3_r.c: Likewise.
71798         * nscd/getpwnam_r.c: Likewise.
71799         * nscd/getpwuid_r.c: Likewise.
71800         * nscd/getsrvbynm_r.c: Likewise.
71801         * nscd/getsrvbypt_r.c: Likewise.
71802         * nscd/gai.c: Likewise.
71803
71804         * configure.in (build_nscd): New substituted variable, set
71805         by --disable-build-nscd and defaults to $use_nscd.
71806         * configure: Regenerated.
71807         * config.make.in (build-nscd): New substituted variable.
71808         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
71809         Change conditional to require [$(build-nscd) = yes] as well.
71810         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
71811
71812         [BZ #13696]
71813         * configure.in (use_nscd): New substituted variable, set by
71814         --disable-nscd.  If enabled, define USE_NSCD.
71815         * configure: Regenerated.
71816         * config.h.in: Add USE_NSCD.
71817         * config.make.in (use-nscd): New substituted variable.
71818         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
71819         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
71820         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
71821         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
71822         (CFLAGS-getgrnam_r.c): Likewise.
71823         (CFLAGS-initgroups.c): Likewise.
71824         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
71825         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
71826         Variables removed.
71827         * inet/getnetgrent_r.c
71828         (nscd_setnetgrent): New function, broken out of ...
71829         (setnetgrent): ... here.  Call it.
71830         (innetgr): Conditionalize nscd bits on [USE_NSCD].
71831         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
71832         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
71833         * nscd/Makefile (routines, aux): Move definitions after include of
71834         Makeconfig.  Conditionalize on [$(use-nscd) != no].
71835         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
71836         Conditionalize on [USE_NSCD].
71837         (is_nscd, nscd_init_cb): Likewise.
71838         (nss_load_library): Conditionalize init callback on [USE_NSCD].
71839         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
71840         * nss/nss_db/db-init.c: Likewise.
71841         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
71842         [USE_NSCD].
71843         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
71844         (make_request): Use it.
71845         (cache_valid_p): New function.
71846         (__check_pf): Use it.
71847         * NEWS: Add item for --disable-nscd.
71848
71849 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
71850
71851         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
71852         to support sed >= 4.2.1-20-ga9bf076.
71853         * configure: Regenerated.
71854
71855 2012-08-22  Roland McGrath  <roland@hack.frob.com>
71856
71857         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
71858         Conditionalize whole body on [IREL].
71859
71860 2012-08-22  Jeff Law <law@redhat.com>
71861
71862         [BZ #14505]
71863         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
71864         if the family is PF_UNSPEC.
71865
71866 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
71867
71868         * Makerules (lib-version): Rename from V.
71869         (install-lib-nosubdir): Change V to lib-version.
71870
71871 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
71872
71873         [BZ #14252]
71874         * powerpc32/power6/wcschr.c: New file.
71875         * powerpc32/power6/wcscpy.c: New file.
71876         * powerpc32/power6/wcsrchr.c: New file.
71877         * powerpc64/power6/wcschr.c: New file.
71878         * powerpc64/power6/wcscpy.c: New file.
71879         * powerpc64/power6/wcsrchr.c: New file.
71880
71881 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
71882
71883         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
71884         (two_way_short_needle): Use it.
71885         * string/strstr.c (AVAILABLE1_USES_J): Define.
71886         * string/strcasestr.c: Likewise.
71887
71888         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
71889         array references.
71890         * string/strcasestr.c (TOLOWER): Make side-effect safe.
71891
71892         [BZ #11607]
71893         * NEWS: Add an entry.
71894         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
71895         define their defaults.
71896         (two_way_short_needle): Detect end-of-string on-the-fly.
71897         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
71898         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
71899         * string/bug-strcasestr1.c: New test.
71900         * string/Makefile: Run it.
71901
71902 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
71903
71904         [BZ #11607]
71905         * string/str-two-way.h (two_way_short_needle): Optimize matching of
71906         the first character.
71907
71908 2012-08-21  Roland McGrath  <roland@hack.frob.com>
71909
71910         * csu/elf-init.c (__libc_csu_irel): Function removed.
71911         * csu/libc-start.c (apply_irel): New function.
71912         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
71913
71914 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
71915
71916         * sysdeps/unix/sysv/linux/kernel-features.h
71917         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
71918         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
71919         <kernel-features.h>.
71920         [__NR_fadvise64_64]: Make code unconditional.
71921         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
71922         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
71923         !__NR_fadvise64_64)]: Likewise.
71924         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
71925         !__NR_fadvise64_64))]: Likewise.
71926         [__NR_fadvise64]: Make code unconditional.
71927         [!__NR_fadvise64]: Remove conditional code.
71928         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
71929         <kernel-features.h>.
71930         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71931         unconditional.
71932         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71933         conditional code.
71934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
71935         not include <kernel-features.h>.
71936         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71937         unconditional.
71938         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71939         conditional code.
71940         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
71941         include <kernel-features.h>.
71942         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
71943         unconditional.
71944         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
71945         conditional code.
71946
71947 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
71948
71949         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
71950         slight instruction rearrangements per scrollpipe analysis.
71951         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
71952
71953 2012-08-20  Roland McGrath  <roland@hack.frob.com>
71954
71955         * manual/syslog.texi (syslog; vsyslog, closelog):
71956         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
71957         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
71958
71959         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
71960         DSOCAPS to match condition on defining it.
71961
71962 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
71963
71964         * sysdeps/unix/sysv/linux/kernel-features.h
71965         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
71966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
71967         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71968         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
71970         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71971         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
71973         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
71974         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
71975
71976         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
71977         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
71978
71979         * sysdeps/unix/sysv/linux/kernel-features.h
71980         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
71981         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
71982         unconditional.
71983         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71984         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
71985         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
71986         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71987         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
71988         Make code unconditional.
71989         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71990         (__mmap64) [!__NR_mmap2]: Likewise.
71991         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
71992         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
71993         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71994         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
71995         [__NR_mmap2]: Make code unconditional.
71996         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
71997         (__mmap64) [!__NR_mmap2]: Likewise.
71998
71999 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72000
72001         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72002
72003 2012-08-18  Andreas Jaeger  <aj@suse.de>
72004
72005         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72006
72007 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72008
72009         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72010         * include/unistd.h (__have_sock_cloexec): Likewise.
72011         (__have_pipe2): Likewise.
72012         (__have_dup3): Likewise.
72013
72014 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72015
72016         [BZ #9685]
72017         * include/unistd.h (__have_pipe2): Change define into an extern int.
72018         (__have_dup3): Likewise.
72019         * socket/have_sock_cloexec.c: Include fcntl.h.
72020         (__have_pipe2): New variable.
72021         (__have_dup3): Likewise.
72022
72023 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72024
72025         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72026
72027 2012-08-17  Marek Polacek  <polacek@redhat.com>
72028
72029         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72030         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72031
72032 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72033
72034         * configure.in: Add AC_SUBST for sysheaders.
72035         * configure: Regenerated.
72036         * config.make.in (sysheaders): New substituted variable.
72037
72038         * sysdeps/unix/mkfifo.c: Moved ...
72039         * sysdeps/posix/mkfifo.c: ... here.
72040         * sysdeps/unix/mkfifoat.c: Moved ...
72041         * sysdeps/posix/mkfifoat.c: ... here.
72042
72043         * sysdeps/unix/utime.c: Moved ...
72044         * sysdeps/posix/utime.c: ... here.
72045
72046         * sysdeps/unix/time.c: Moved ...
72047         * sysdeps/posix/time.c: ... here.
72048         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72049         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72050
72051         * sysdeps/unix/nice.c: Moved ...
72052         * sysdeps/posix/nice.c: ... here.
72053
72054         * sysdeps/unix/alarm.c: Moved ...
72055         * sysdeps/posix/alarm.c: ... here.
72056
72057         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72058
72059 2012-08-17  Jeff Law <law@redhat.com>
72060
72061         * intl/Makefile (codeset_mo): New variable.
72062         ($(codeset_mo)): New target.
72063         (tst-codeset.out): Depend on that.  Remove explicit rule.
72064         (tst-gettext3.out, tst-gettext5.out): Likewise.
72065         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72066         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72067         * intl/tst-codeset.sh: Remove.
72068         * intl/tst-gettext3.sh: Likewise.
72069         * intl/tst-gettext5.sh: Likewise.
72070
72071 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72072
72073         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72074         * sysdeps/unix/syscalls.list: ... here.
72075
72076         * sysdeps/posix/getaddrinfo.c
72077         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72078         (gaiconf_init, gaiconf_reload): Use them.
72079         [!_STATBUF_ST_NSEC]
72080         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72081         Define using time_t rather than struct timespec.
72082
72083         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72084         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72085         Macros removed.
72086         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72087         [!NO_THREADS].
72088         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72089         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72090         Likewise.
72091
72092         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72093         __libc_cleanup_push argument.
72094
72095         * bits/param.h: New file.
72096         * misc/sys/param.h: New file.
72097         * include/sys/param.h: New file.
72098         * misc/Makefile (headers): Add bits/param.h.
72099         * sysdeps/generic/sys/param.h: File removed.
72100         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72101         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72102         * sysdeps/mach/hurd/bits/param.h: New file.
72103         * sysdeps/mach/hurd/sys/param.h: File removed.
72104
72105         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72106         last change.
72107
72108         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72109         [_IO_MTSAFE_IO].
72110         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72111         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72112         New macros.
72113
72114         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72115         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72116         rather than -D_IO_MTSAFE_IO conditionally.
72117         * stdio-common/Makefile (CPPFLAGS): Likewise.
72118         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72119         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72120         Use $(libio-mtsafe).
72121         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72122         of -D_IO_MTSAFE_IO.
72123         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72124         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72125         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72126         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72127         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72128         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72129         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72130         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72131         (CFLAGS-fread_u_chk.c): Likewise.
72132         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72133         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72134         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72135         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72136         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72137         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72138         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72139         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72140         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72141
72142         * libio/Makefile: Test [$(libc-reentrant) = yes]
72143         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72144
72145         * Makeconfig
72146         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72147         * sysdeps/pthread/configure: File removed.
72148         * sysdeps/pthread/Makeconfig: New file.
72149         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72150         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72151
72152 2012-08-16  Gary Benson  <gbenson@redhat.com>
72153
72154         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72155         unmapping the first object in a namespace.
72156
72157 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72158
72159         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72160         (__internal_setnetgrent): ... this.  Add internal_function to
72161         definition.  Add libc_hidden_def.
72162         (setnetgrent): Update caller.
72163         (internal_endnetgrent): Renamed to ...
72164         (__internal_endnetgrent): ... this.  Add internal_function to
72165         definition.  Add libc_hidden_def.
72166         (endnetgrent): Update caller.
72167         (internal_getnetgrent_r): Renamed to ...
72168         (__internal_getnetgrent_r): ... this.  Add internal_function to
72169         definition.  Add libc_hidden_def.
72170         (__getnetgrent_r): Update caller.
72171         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72172
72173 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72174
72175         * stdlib/longlong.h: Update from GCC.
72176
72177 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72178
72179         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72180         on _QL, which is set by umul_ppmm but never used.
72181         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72182         variables, which are set by GMP macros but never used.
72183         * stdio-common/_itowa.c (_itowa): Likewise.
72184         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72185         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72186
72187 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72188
72189         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72190         struct La_sh_regs is not constant.
72191         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72192         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72193         and struct La_sparc64_regs are not constant.
72194
72195 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72196
72197         * sysdeps/unix/sysv/linux/kernel-features.h
72198         (__ASSUME_POSIX_TIMERS): Remove.
72199         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72200         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72201         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72202         Make code unconditional.
72203         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72204         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72205         Make code unconditional.
72206         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72207         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72208         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72209         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72210         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72211         Make code unconditional.
72212         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72213         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72214         (__libc_missing_posix_timers): Remove.
72215
72216 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72217
72218         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72219         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72220
72221         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72222
72223         * elf/dl-sym.c: Include <stdlib.h>.
72224
72225         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72226         constants, which avoids warnings in 32-bit builds.
72227
72228         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72229         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72230
72231         * misc/lseek.c: File moved to ...
72232         * io/lseek.c: ... here.
72233
72234         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72235
72236         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72237         shifting LEN more than 31 bits at once.
72238
72239 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72240
72241         [BZ #14195]
72242         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72243         segmentation fault for a case of two empty input strings.
72244         * string/test-strncasecmp.c (check1): Renamed to...
72245         (bz12205): ...this.
72246         (bz14195): Add new testcase for two empty input strings and N > 0.
72247         (test_main): Call new testcase, adapt for renamed function.
72248
72249 2012-08-15  Andreas Jaeger  <aj@suse.de>
72250
72251         [BZ #14090]
72252         * crypt/md5test2.c: New test, based on test supplied by Serge
72253         Belyshev <belyshev@depni.sinp.msu.ru>.
72254         * crypt/Makefile (xtests): Add md5test-giant..
72255         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72256
72257 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         [BZ #14090]
72260         * crypt/md5.c (md5_process_block): Don't assume the buffer
72261         length is less than 2**32.
72262         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72263         length is less than 2**64.
72264
72265 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72266
72267         * string/str-two-way.h: Include <sys/param.h>.
72268         (MAX): Macro removed.
72269
72270         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72271         Move #define and #undef of memmove to just before and after
72272         including <string.h>.
72273
72274         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72275         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72276         and after including <string.h>.  Move declarations of
72277         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72278         to before #include "string/memmove.c".
72279
72280         * include/dirent.h: Declare __getdirentries.
72281
72282         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72283         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72284
72285 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72286
72287         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72288         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72289         * sysdeps/i386/configure: Regenerated.
72290         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72291         STABS_CURRENT_FILE, and STABS_FUN.
72292         (END): Remove call to STABS_FUN_END.
72293         (STABS_CURRENT_FILE1): Delete.
72294         (STABS_CURRENT_FILE): Likewise.
72295         (STABS_FUN): Likewise.
72296         (STABS_FUN_END): Likewise.
72297         (STABS_FUN2): Likewise.
72298         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72299         * sysdeps/x86_64/configure: Regenerated.
72300
72301 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72302
72303         * elf/dl-open.c: Include <atomic.h>.
72304         * elf/dl-lookup.c: Likewise.
72305
72306 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
72307
72308         * sysdeps/unix/sysv/linux/kernel-features.h
72309         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
72310         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
72311         unconditionally.
72312         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
72313         unconditionally.
72314         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
72315         condition on __ASSUME_CLONE_THREAD_FLAGS.
72316
72317 2012-08-14  Andreas Jaeger  <aj@suse.de>
72318
72319         * sysdeps/i386/fpu/libm-test-ulps: Update.
72320
72321 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
72322
72323         * include/atomic.h (atomic_exchange_and_add): Split into ...
72324         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
72325         New atomic macros.
72326
72327 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
72328
72329         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72330
72331 2012-08-13  Jeff Law <law@redhat.com>
72332
72333         * manual/stdio.texi (snprintf): Clarify handling of the trailing
72334         null byte in the output string.
72335
72336 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
72337
72338         * sysdeps/unix/sysv/linux/kernel-features.h
72339         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
72340         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
72341         (__ASSUME_ARG_MAX_STACK_BASED): Define.
72342         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
72343         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
72344         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
72345         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
72346
72347 2012-08-09  Jeff Law <law@redhat.com>
72348
72349         [BZ #13939]
72350         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
72351         When avoid_arena is set, don't retry in the that arena.  Pick the
72352         next one, whatever it might be.
72353         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
72354         (arena_lock): Pass in new parameter to arena_get2.
72355         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
72356         arena_get2.
72357         (__libc_malloc): Unify retrying after main arena failure with
72358         __libc_memalign version.
72359         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
72360
72361 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
72362
72363         [BZ #14166]
72364         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
72365         to __redirect_strstr.
72366         (__strstr_sse42): Use typeof __redirect_strstr.
72367         (__strstr_ia32): Likewise.
72368         (__libc_strstr): New prototype.
72369         (strstr): Renamed to ...
72370         (__libc_strstr): This.
72371         (strstr): New strong alias of __libc_strstr.
72372         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
72373         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
72374         __redirect_time.
72375         Include <time.h>.
72376         (__libc_time): New prototype.
72377         (time_ifunc): Replace time with __libc_time.
72378         (time): New strong alias and hidden definition of __libc_time.
72379         (__GI_time): Remove strong alias.
72380         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
72381         Include <stddef.h>.
72382         (memmove): Redefined to __redirect_memmove.
72383         (__memmove_sse2): Use typeof __redirect_memmove.
72384         (__memmove_ssse3): Likewise.
72385         (__memmove_ssse3_back): Likewise.
72386         (__libc_memmove): New prototype.
72387         (memmove): Renamed to ...
72388         (__libc_memmove): This.
72389         (memmove): New strong alias of __libc_memmove.
72390
72391 2012-08-08  Mark Salter  <msalter@redhat.com>
72392
72393         * elf/elf.h
72394         (R_MN10300_TLS_GD): Define.
72395         (R_MN10300_TLS_LD): Likewise.
72396         (R_MN10300_TLS_LDO): Likewise.
72397         (R_MN10300_TLS_GOTIE): Likewise.
72398         (R_MN10300_TLS_IE): Likewise.
72399         (R_MN10300_TLS_LE): Likewise.
72400         (R_MN10300_TLS_DTPMOD): Likewise.
72401         (R_MN10300_TLS_DTPOFF): Likewise.
72402         (R_MN10300_TLS_TPOFF): Likewise.
72403         (R_MN10300_SYM_DIFF): Likewise.
72404         (R_MN10300_ALIGN): Likewise.
72405         (R_MN10300_NUM): Update.
72406
72407 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
72408
72409         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
72410         Remove.
72411
72412 2012-08-08  Roland McGrath  <roland@hack.frob.com>
72413
72414         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
72415
72416         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
72417         sysdeps/unix -> sysdeps/posix move.
72418         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
72419
72420 2012-08-07      Allan McRae     <allan@archlinux.org>
72421
72422         [BZ #14303]
72423         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
72424         (SUNOS_CPP): Likewise.
72425         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
72426         not found.
72427         (open_input): Call CPP using execvp.
72428
72429 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72430
72431         * sysdeps/unix/sysv/linux/kernel-features.h
72432         (__ASSUME_PROT_GROWSUPDOWN): Remove.
72433         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72434         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72435         (__ASSUME_WAITID_SYSCALL): Likewise.
72436         * sysdeps/unix/sysv/linux/dl-execstack.c
72437         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
72438         code unconditional.
72439         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
72440         conditional code.
72441         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
72442         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
72443         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
72444         code.
72445         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
72446         unconditional.
72447         [__ASSUME_WAITID_SYSCALL]: Likewise.
72448         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
72449
72450 2012-08-07  Roland McGrath  <roland@hack.frob.com>
72451
72452         * sysdeps/unix/closedir.c: Renamed to ...
72453         * sysdeps/posix/closedir.c: ... here.
72454         * sysdeps/unix/dirfd.c: Renamed to ...
72455         * sysdeps/posix/dirfd.c: ... here.
72456         * sysdeps/unix/dirstream.h: Renamed to ...
72457         * sysdeps/posix/dirstream.h: ... here.
72458         * sysdeps/unix/fdopendir.c: Renamed to ...
72459         * sysdeps/posix/fdopendir.c: ... here.
72460         * sysdeps/unix/opendir.c: Renamed to ...
72461         * sysdeps/posix/opendir.c: ... here.
72462         * sysdeps/unix/readdir.c: Renamed to ...
72463         * sysdeps/posix/readdir.c: ... here.
72464         * sysdeps/unix/readdir_r.c: Renamed to ...
72465         * sysdeps/posix/readdir_r.c: ... here.
72466         * sysdeps/unix/rewinddir.c: Renamed to ...
72467         * sysdeps/posix/rewinddir.c: ... here.
72468         * sysdeps/unix/seekdir.c: Renamed to ...
72469         * sysdeps/posix/seekdir.c: ... here.
72470         * sysdeps/unix/telldir.c: Renamed to ...
72471         * sysdeps/posix/telldir.c: ... here.
72472         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
72473         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
72474         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
72475         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
72476
72477         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
72478         * bits/fcntl.h: ... here.
72479
72480         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
72481         not 0.
72482         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
72483         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
72484         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
72485         (struct flock): Move l_start, l_len to the beginning.
72486         Use __pid_t for l_pid.
72487         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
72488         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
72489         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
72490         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
72491         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
72492         [__USE_LARGEFILE64] (struct flock64): New type.
72493         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
72494
72495         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
72496         * bits/dirent.h: ... here.
72497
72498         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
72499         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
72500
72501 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72502
72503         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72504         Change from 2.6.0 to 2.6.16.
72505         * sysdeps/unix/sysv/linux/configure: Regenerated.
72506         * sysdeps/unix/sysv/linux/kernel-features.h
72507         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
72508         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
72509         version.
72510         (__ASSUME_UTIMES): Likewise.
72511         (__ASSUME_CLONE_STOPPED): Remove.
72512         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
72513         architectures, not kernel version.
72514         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
72515         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72516         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72517         (__ASSUME_WAITID_SYSCALL): Likewise.
72518         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
72519         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
72520         * README: State 2.6.16 as minimum Linux kernel version.  Do not
72521         refer to older versions.
72522
72523 2012-08-06  Roland McGrath  <roland@hack.frob.com>
72524
72525         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
72526         Define alphasort64 as an alias.
72527         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
72528         Define versionsort64 as an alias.
72529         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
72530         Define scandir64 as an alias.
72531         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
72532         Define scandirat64 as an alias.
72533         * dirent/alphasort64.c (alphasort64):
72534         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
72535         * dirent/versionsort64.c: Likewise.
72536         * dirent/scandir64.c: Likewise.
72537         * dirent/scandirat64.c: Likewise.
72538         * sysdeps/wordsize-64/alphasort.c: File removed.
72539         * sysdeps/wordsize-64/alphasort64.c: File removed.
72540         * sysdeps/wordsize-64/scandir.c: File removed.
72541         * sysdeps/wordsize-64/scandir64.c: File removed.
72542         * sysdeps/wordsize-64/scandirat.c: File removed.
72543         * sysdeps/wordsize-64/scandirat64.c: File removed.
72544         * sysdeps/wordsize-64/versionsort.c: File removed.
72545         * sysdeps/wordsize-64/versionsort64.c: File removed.
72546         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
72547         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
72548         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
72549         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
72550         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
72551         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
72552         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
72553         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
72554
72555         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
72556         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72557         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
72558         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72559         [defined __arch64__ || defined __sparcv9]
72560         (__INO_T_MATCHES_INO64_T): New macro.
72561         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72562         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
72563         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
72564         * sysdeps/unix/sysv/linux/bits/dirent.h
72565         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
72566         (_DIRENT_MATCHES_DIRENT64): New macro.
72567
72568         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
72569         Define lockf64 as an alias.
72570         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
72571         Define fseeko64 as an alias.
72572         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
72573         Define ftello64 as an alias.
72574         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
72575         Define _IO_fgetpos64 and fgetpos64 as aliases.
72576         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
72577         Define _IO_fsetpos64 and fsetpos64 as aliases.
72578         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
72579         Conditionalize body on this.
72580         * libio/fseeko64.c: Likewise.
72581         * libio/ftello64.c: Likewise.
72582         * libio/iofgetpos64.c: Likewise.
72583         * libio/iofsetpos64.c: Likewise.
72584         * sysdeps/wordsize-64/lockf.c: File removed.
72585         * sysdeps/wordsize-64/lockf64.c: File removed.
72586         * sysdeps/wordsize-64/fseeko.c: File removed.
72587         * sysdeps/wordsize-64/fseeko64.c: File removed.
72588         * sysdeps/wordsize-64/ftello.c: File removed.
72589         * sysdeps/wordsize-64/ftello64.c: File removed.
72590         * sysdeps/wordsize-64/iofgetpos.c: File removed.
72591         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
72592         * sysdeps/wordsize-64/iofsetpos.c: File removed.
72593         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
72594         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
72595         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
72596         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
72597         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
72598         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
72599         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
72600         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
72601         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
72602         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
72603         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
72604
72605         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72606         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
72607         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
72608         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
72609         [defined __arch64__ || defined __sparcv9]
72610         (__OFF_T_MATCHES_OFF64_T): New macro.
72611         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
72612         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
72613         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
72614         (__OFF_T_MATCHES_OFF64_T): New macro.
72615
72616 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72617
72618         * stdlib/secure-getenv.c (__secure_getenv): Replace
72619         GLIBC_2_16 with GLIBC_2_17.
72620
72621 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
72622
72623         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
72624         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
72625
72626 2012-08-03  David S. Miller  <davem@davemloft.net>
72627
72628         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72629
72630 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72631
72632         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
72633         Remove.
72634         (__ASSUME_CORRECT_SI_PID): Likewise.
72635         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
72636         (__ASSUME_TMPFS_NAME): Likewise.
72637         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
72638         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
72639         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
72640         (HAVE_AUX_SECURE): Make definition unconditional.
72641         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
72642         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
72643
72644 2012-08-03  Roland McGrath  <roland@hack.frob.com>
72645
72646         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
72647         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
72648         * sysdeps/mach/hurd/eloop-threshold.h: New file.
72649         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
72650         __eloop_threshold instead of SYMLOOP_MAX.
72651
72652         * sysdeps/generic/eloop-threshold.h: New file.
72653         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
72654         of MAXSYMLINKS.
72655         * elf/chroot_canon.c (chroot_canon): Likewise.
72656
72657 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
72658
72659         [BZ #13717]
72660         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72661         Change to 2.6.0 everywhere.
72662         * sysdeps/unix/sysv/linux/configure: Regenerated.
72663         * sysdeps/unix/sysv/linux/kernel-features.h
72664         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
72665         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
72666         kernel versions.
72667         (__ASSUME_POSIX_TIMERS): Define unconditionally.
72668         (__ASSUME_FUTEX_REQUEUE): Remove.
72669         (__ASSUME_STATFS64): Define unconditionally.
72670         (__ASSUME_AT_SECURE): Likewise.
72671         (__ASSUME_CORRECT_SI_PID): Likewise.
72672         (__ASSUME_TGKILL): Define without depending on kernel version for
72673         i386.
72674         (__ASSUME_UTIMES): Likewise.
72675         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
72676         kernel version.
72677         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
72678         (__ASSUME_TMPFS_NAME): Likewise.
72679         * README: Update reference to Linux kernel versions.
72680
72681 2012-08-02  Marek Polacek  <polacek@redhat.com>
72682
72683         [BZ #14150]
72684         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
72685         libc_cv_asm_type_prefix with %.
72686         * configure: Regenerated.
72687         * include/libc-symbols.h: Remove comment about
72688         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72689         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
72690         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
72691         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
72692         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
72693         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
72694         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
72695         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
72696         * elf/tst-unique2mod1.c: Likewise.
72697         * elf/tst-unique1mod2.c: Likewise.
72698         * elf/tst-unique1mod1.c: Likewise.
72699         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
72700         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
72701         Replace ASM_TYPE_DIRECTIVE with .type.
72702         * sysdeps/s390/s390-64/sysdep.h: Likewise.
72703         * sysdeps/i386/sysdep.h: Likewise.
72704         * sysdeps/x86_64/sysdep.h: Likewise.
72705         * sysdeps/sh/sysdep.h: Likewise.
72706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
72707         Do not define ASM_TYPE_DIRECTIVE.
72708         * sysdeps/powerpc/sysdep.h: Likewise.
72709         * sysdeps/powerpc/powerpc32/sysdep.h:
72710         Replace ASM_TYPE_DIRECTIVE with .type.
72711         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
72712         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
72713         * sysdeps/i386/fpu/e_powf.S: Likewise.
72714         * sysdeps/i386/fpu/e_expl.S: Likewise.
72715         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72716         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72717         * sysdeps/i386/fpu/e_pow.S: Likewise.
72718         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
72719         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72720         * sysdeps/i386/fpu/s_expm1.S: Likewise.
72721         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
72722         * sysdeps/i386/fpu/e_log2.S: Likewise.
72723         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72724         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72725         * sysdeps/i386/fpu/e_powl.S: Likewise.
72726         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72727         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
72728         * sysdeps/i386/fpu/e_logl.S: Likewise.
72729         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
72730         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
72731         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
72732         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72733         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72734         * sysdeps/i386/fpu/e_log.S: Likewise.
72735         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72736         * sysdeps/i386/fpu/e_logf.S: Likewise.
72737         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72738         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72739         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
72740         * sysdeps/i386/fpu/e_log10.S: Likewise.
72741         * sysdeps/i386/fpu/s_frexp.S: Likewise.
72742         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72743         * sysdeps/i386/fpu/s_asinh.S: Likewise.
72744         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
72745         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72746         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
72747         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
72748         * sysdeps/i386/i686/strtok.S: Likewise.
72749         * sysdeps/i386/i386-mcount.S: Likewise.
72750         * sysdeps/i386/strtok.S: Likewise.
72751         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
72752         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72753         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72754         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72755         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
72756         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72757         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
72758         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
72759         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72760         * sysdeps/x86_64/_mcount.S: Likewise.
72761         * sysdeps/x86_64/strtok.S: Likewise.
72762         * sysdeps/sh/_mcount.S: Likewise.
72763
72764 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72765
72766         * libio/iofopen.c: Include <fcntl.h>.
72767         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
72768         (_IO_fopen64, fopen64): Define as aliases.
72769         * libio/iofopen64.c: Include <fcntl.h>.
72770         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
72771         Conditionalize body on this.
72772         * sysdeps/wordsize-64/iofopen.c: File removed.
72773         * sysdeps/wordsize-64/iofopen64.c: File removed.
72774
72775 2012-08-01  Marek Polacek  <polacek@redhat.com>
72776
72777         * libc/Makeconfig: Use elf in place of binfmt-subdir.
72778         Use dlfcn directly instead of a variable.
72779         (binfmt-subdir): Do not define.
72780         (dlfcn): Likewise.
72781
72782 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
72783
72784         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
72785         Remove all definitions.
72786         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
72787         <kernel-features.h>.
72788         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72789         (miss_F_GETOWN_EX): Remove all definitions.
72790         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
72791         macro definition.
72792         [!__ASSUME_FCNTL64]: Remove conditional code.
72793         [__ASSUME_FCNTL64]: Make code unconditional.
72794         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
72795         <kernel-features.h>.
72796         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
72797         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
72798         (lockf64) [__NR_fcntl64]: Make code unconditional.
72799         (lockf64) [__ASSUME_FCNTL64]: Likewise.
72800
72801         * sysdeps/unix/sysv/linux/kernel-features.h
72802         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
72803         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
72804         Make code unconditional.
72805         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72806         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
72808         [__NR_vfork]: Make code unconditional.
72809         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72810         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
72812         [__NR_vfork]: Make code unconditional.
72813         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
72814         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
72815
72816 2012-08-01  Roland McGrath  <roland@hack.frob.com>
72817
72818         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
72819         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
72820
72821         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72822         Define mkstemp64 as an alias.
72823         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72824         Define mkstemps64 as an alias.
72825         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72826         Define mkostemp64 as an alias.
72827         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
72828         Define mkostemps64 as an alias.
72829         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
72830         Conditionalize body on this.
72831         * misc/mkostemp64.c: Likewise.
72832         * misc/mkostemps64.c: Likewise.
72833         * misc/mkstemps64.c: Likewise.
72834         * sysdeps/wordsize-64/mkstemp64.c: File removed.
72835         * sysdeps/wordsize-64/mkostemp64.c: File removed.
72836         * sysdeps/wordsize-64/mkostemp.c: File removed.
72837         * sysdeps/wordsize-64/mkstemp.c: File removed.
72838         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
72839         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
72840         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
72841         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
72842
72843         [BZ #14138]
72844         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
72845         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
72846         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
72847         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
72848
72849         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
72850         compat_symbol macros from <shlib-compat.h> rather than the underlying
72851         default_symbol_version and symbol_version macros, so that DEFAULT
72852         lines in shlib-versions are respected.
72853         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
72854
72855 2012-08-01  Florian Weimer  <fweimer@redhat.com>
72856
72857         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
72858         Declare with warn_unused_result.
72859         (setgid, setregid, setegid, setresgid): Likewise.
72860         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
72861         Likewise.
72862         * WUR-REPORT: Remove set*id functions.
72863
72864 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
72865
72866         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
72867
72868 2012-07-31  Roland McGrath  <roland@hack.frob.com>
72869
72870         [BZ #10191]
72871         * include/sys/socket.h (__libc_accept, __libc_accept4):
72872         Add attribute_hidden.
72873         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
72874
72875         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
72876         use of PTR_MANGLE.
72877         * inet/getnetgrent_r.c (setup): Likewise.
72878
72879         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
72880
72881 2012-07-31  David S. Miller  <davem@davemloft.net>
72882
72883         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72884
72885 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
72886
72887         [BZ #13629]
72888         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
72889         value between 1.0 and 2.0 and smaller part has absolute value less
72890         than 1.0.
72891         * math/s_clog10.c (__clog10): Likewise.
72892         * math/s_clog10f.c (__clog10f): Likewise.
72893         * math/s_clog10l.c (__clog10l): Likewise.
72894         * math/s_clogf.c (__clogf): Likewise.
72895         * math/s_clogl.c (__clogl): Likewise.
72896         * math/libm-test.inc (clog_test): Add more tests.
72897         (clog10_test): Likewise.
72898         * sysdeps/i386/fpu/libm-test-ulps: Update.
72899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72900
72901 2012-07-31  Florian Weimer  <fweimer@redhat.com>
72902
72903         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
72904         Exit with zero in case no suitable GID is found, and write a
72905         message to standard error.
72906
72907 2012-07-30  Roland McGrath  <roland@hack.frob.com>
72908
72909         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
72910         rather than to 1.
72911         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
72912         (MAXPATHLEN): Removed.
72913         (NOGROUP, NODEV): New macros.
72914         (setbit, clrbit, isset, isclr): New macros.
72915         (howmany, roundup, powerof2): New macros.
72916         (DEV_BSIZE): New macro.
72917
72918         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
72919         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
72920
72921         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
72922         definition on [!__NO_LONG_DOUBLE_MATH].
72923
72924         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
72925         PTR_MANGLE and PTR_DEMANGLE.
72926
72927         * socket/accept4.c (accept4): Rename to __libc_accept4.
72928         Define accept4 as a weak alias.
72929
72930         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
72931         on [_DIRENT_HAVE_D_TYPE].
72932         * io/ftw.c (ftw_dir): Likewise.
72933
72934         * io/xmknod.c (__xmknod): Don't check PATH for being null.
72935
72936         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
72937
72938         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
72939         Use the BSD numbers rather than the arbitrary ones we had.
72940         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
72941         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
72942         (SIGXCPU, SIGXFSZ): New macros.
72943         (_NSIG): Now 32.
72944
72945         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
72946         initializer on [_LIBC_REENTRANT].
72947
72948         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
72949         definitions inside [_POSIX_MAPPED_FILES].
72950
72951         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
72952
72953         * dirent/opendir.c: Include <fcntl.h>.
72954
72955         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
72956         (__libc_getspecific): Likewise.
72957         (__libc_key_create): Likewise.
72958
72959         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
72960         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
72961         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
72962         (tmpfile64): Define as alias.
72963         * sysdeps/wordsize-64/tmpfile.c: File removed.
72964         * sysdeps/wordsize-64/tmpfile64.c: File removed.
72965         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
72966         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
72967
72968         * stdio-common/vfscanf.c: Include <stdbool.h>.
72969         * nss/makedb.c: Likewise.
72970         * stdio-common/_i18n_number.h: Likewise.
72971         * argp/argp-help.c: Likewise.
72972         * posix/wordexp.c: Likewise.
72973         * sysdeps/posix/spawni.c: Likewise.
72974         * nss/nss_files/files-initgroups.c: Likewise.
72975         * stdio-common/reg-modifier.c: Include <stdlib.h>.
72976         * nss/nss_files/files-initgroups.c: Likewise.
72977         * nss/nss_db/db-netgrp.c: Likewise.
72978         * nss/nss_db/db-initgroups.c: Likewise.
72979         * io/fchmodat.c: Include <sys/stat.h>.
72980
72981         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
72982         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
72983
72984         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
72985         [HAVE_MMAP].
72986
72987         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
72988         Add multiple inclusion protection.
72989
72990 2012-07-27  David S. Miller  <davem@davemloft.net>
72991
72992         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72993
72994 2012-07-27  Gary Benson  <gbenson@redhat.com>
72995
72996         [BZ #14298]
72997         * elf/rtld.c: Include <stap-probe.h>.
72998         (dl_main): Added static probes "init_start" and "init_complete".
72999         * elf/dl-load.c: Include <stap-probe.h>.
73000         (lose): Take new parameter "nsid".
73001         Added static probe "map_failed".
73002         (_dl_map_object_from_fd): Pass namespace id to lose.
73003         Added static probe "map_start".
73004         (open_verify): Pass namespace id to lose.
73005         * elf/dl-open.c: Include <stap-probe.h>.
73006         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73007         and "reloc_complete".
73008         * elf/dl-close.c: Include <stap-probe.h>.
73009         (_dl_close_worker): Added static probes "unmap_start" and
73010         "unmap_complete".
73011         * elf/rtld-debugger-interface.txt: New file documenting the above.
73012
73013 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73014
73015         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73016         rather than a string variable.
73017         * sunrpc/rpc_main.c (h_output): Likewise.
73018         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73019
73020 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73021
73022         * inet/check_native.c: New file.
73023
73024 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73025
73026         [BZ #13629]
73027         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73028         if larger part has absolute value 1.0.
73029         * math/s_clog10.c (__clog10): Likewise.
73030         * math/s_clog10f.c (__clog10f): Likewise.
73031         * math/s_clog10l.c (__clog10l): Likewise.
73032         * math/s_clogf.c (__clogf): Likewise.
73033         * math/s_clogl.c (__clogl): Likewise.
73034         * math/libm-test.inc (clog_test): Add more tests.
73035         (clog10_test): Likewise.
73036         * sysdeps/i386/fpu/libm-test-ulps: Update.
73037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73038
73039         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73040         (pltexit): Likewise.
73041         (La_regs): Likewise.
73042         (La_retval): Likewise.
73043         (int_retval): Likewise.
73044         Update #error for removed macros to refer only to definitions in
73045         tst-audit.h.
73046         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73047         macro.
73048         (pltexit): Likewise.
73049         (La_regs): Likewise.
73050         (La_retval): Likewise.
73051         (int_retval): Likewise.
73052         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73053         macro.
73054         (pltexit): Likewise.
73055         (La_regs): Likewise.
73056         (La_retval): Likewise.
73057         (int_retval): Likewise.
73058         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73059         macro.
73060         (pltexit): Likewise.
73061         (La_regs): Likewise.
73062         (La_retval): Likewise.
73063         (int_retval): Likewise.
73064         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73065         macro.
73066         (pltexit): Likewise.
73067         (La_regs): Likewise.
73068         (La_retval): Likewise.
73069         (int_retval): Likewise.
73070         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73071         macro.
73072         (pltexit): Likewise.
73073         (La_regs): Likewise.
73074         (La_retval): Likewise.
73075         (int_retval): Likewise.
73076         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73077         macro.
73078         (pltexit): Likewise.
73079         (La_regs): Likewise.
73080         (La_retval): Likewise.
73081         (int_retval): Likewise.
73082         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73083         macro definitions in tst-audit.h.
73084         * sysdeps/i386/tst-audit.h: New file.
73085         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73086         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73087         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73088         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73089         * sysdeps/sh/tst-audit.h: Likewise.
73090         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73091         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73092         * sysdeps/x86_64/tst-audit.h: Likewise.
73093
73094 2012-07-26  Andreas Jaeger  <aj@suse.de>
73095
73096         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73097         ptrace.
73098
73099         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73100         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73101         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73102         PTRACE_O_MASK.
73103         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73104         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73105         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73106
73107         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73108         value.
73109
73110         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73111         _sigsys.
73112         (si_call_addr, si_syscall, si_arch): Define new macro.
73113         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73114         _sigsys.
73115         (si_call_addr, si_syscall, si_arch): Define new marcro.
73116         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73117         _sigsys.
73118         (si_call_addr, si_syscall, si_arch): Define new macro.
73119         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73120         _sigsys.
73121         (si_call_addr, si_syscall, si_arch): Define new macro.
73122
73123 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73124
73125         [BZ #13717]
73126         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73127         Change to 2.4.21 where previously 2.4.1.
73128         * sysdeps/unix/sysv/linux/configure: Regenerated.
73129         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73130         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73131         Linux kernel version.
73132         (__ASSUME_STD_AUXV): Remove.
73133         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73134         kernel version.
73135         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73136         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73137         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73138         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73139         (__ASSUME_NETLINK_SUPPORT): Likewise.
73140         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73141         (__no_netlink_support): Remove conditional definition.
73142         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73143         Remove.
73144         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73145         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73146         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73147         (if_nameindex_ioctl): Remove.
73148         (if_nameindex_netlink): Do not handle __no_netlink_support.
73149         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73150         code.
73151         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73152         Remove conditional code.
73153         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73154         code.
73155         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73156         unconditional.
73157         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73158         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73159         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73160         Remove.
73161         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73162         [!__ASSUME_STD_AUXV]: Remove conditional code.
73163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73164         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73165         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73167         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73168         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73169         code.
73170         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73172         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73173         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73174         conditional code.
73175         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73177         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73178         code.
73179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73180         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73181         conditional code.
73182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73183         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73184         code unconditional.
73185         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73186         conditional code.
73187         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73188         unconditional.
73189         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73190         conditional code.
73191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73192         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73193         unconditional.
73194         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73195         conditional code.
73196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73197         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73198         code unconditional.
73199         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73200         conditional code.
73201         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73202         unconditional.
73203         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73204         conditional code.
73205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73206         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73207         code unconditional.
73208         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73209         conditional code.
73210         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73211         unconditional.
73212         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73213         conditional code.
73214
73215 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73216
73217         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73218         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73219         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73220         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73221         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73222         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73223         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73224         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73225         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73226         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73227         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73228         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73229         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73230         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73231         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73232         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73233         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73234         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73235         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73236         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73237         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73238         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73239         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73240
73241 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73242
73243         * Versions.def: Add GLIBC_2.17.
73244         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73245         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73246         Introduce __libc_secure_getenv.
73247         * stdlib/Versions (2.17): Add secure_getenv
73248         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73249         * stdlib/secure-getenv.c: Rename __secure_getenv to
73250         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73251         symbol __secure_getenv for GLIBC_2.0.
73252         * stdlib/tst-secure-getenv.c: New.
73253         * stdlib/Makefile (tests): Add testcase.
73254         * manual/startup.texi (Environment Access): Document
73255         secure_getenv.
73256         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73257         __libc_secure_getenv.
73258         * inet/ruserpass.c (ruserpass): Likewise.
73259         * malloc/mtrace.c (mtrace): Likewise.
73260         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73261         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73262         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73263         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73264         HAVE_SECURE_GETENV.
73265         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73266         __secure_getenv to __libc_secure_getenv.
73267         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73269         Likewise.
73270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73271         Likewise.
73272         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73273         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73274         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73275         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73276         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73277         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73278         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73279
73280 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73281
73282         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73283         (struct La_i86_retval): Likewise.
73284         (struct La_x86_64_regs): Likewise.
73285         (struct La_x86_64_retval): Likewise.
73286         (struct La_x32_regs): Likewise.
73287         (struct La_x32_retval): Likewise.
73288         (struct La_ppc32_regs): Likewise.
73289         (struct La_ppc32_retval): Likewise.
73290         (struct La_ppc64_regs): Likewise.
73291         (struct La_ppc64_retval): Likewise.
73292         (struct La_sh_regs): Likewise.
73293         (struct La_sh_retval): Likewise.
73294         (struct La_s390_32_regs): Likewise.
73295         (struct La_s390_32_retval): Likewise.
73296         (struct La_s390_64_regs): Likewise.
73297         (struct La_s390_64_retval): Likewise.
73298         (struct La_sparc32_regs): Likewise.
73299         (struct La_sparc32_retval): Likewise.
73300         (struct La_sparc64_regs): Likewise.
73301         (struct La_sparc64_retval): Likewise.
73302         (struct audit_ifaces): Remove architecture-specific pltenter and
73303         pltexit members.
73304         * sysdeps/i386/ldsodefs.h: New file.
73305         * sysdeps/powerpc/ldsodefs.h: Likewise.
73306         * sysdeps/s390/ldsodefs.h: Likewise.
73307         * sysdeps/sh/ldsodefs.h: Likewise.
73308         * sysdeps/sparc/ldsodefs.h: Likewise.
73309         * sysdeps/x86_64/ldsodefs.h: Likewise.
73310
73311 2012-07-25  Marek Polacek  <polacek@redhat.com>
73312
73313         [BZ #6808]
73314         * math/libm-test.inc (yn_test): Add another test.
73315         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
73316         to ERANGE when the result is +-Inf.
73317         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
73318         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
73319         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
73320         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
73321
73322 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
73323
73324         * conform/data/time.h-data (NULL): Use macro-constant.  Require
73325         equal to 0.
73326         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
73327         clock_t.
73328         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
73329
73330 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
73331
73332         * configure.in <sysdeps resolving>: Correct printing
73333         Implies_before.
73334         * configure: Regenerate.
73335
73336 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
73337
73338         * math/w_ilogb.c: Include <limits.h>.
73339         * math/w_ilogbl.c: Likewise.
73340
73341 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73342
73343         * manual/lang.texi (__va_copy): Document primarily as ISO C99
73344         va_copy.  Document allowing for unavailable va_copy only as
73345         pre-C99 compatibility.
73346         * manual/string.texi (Copying and Concatenation): Use va_copy
73347         instead of __va_copy in concat example.
73348
73349 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
73350
73351         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
73352         (__sendto): Use create_address_port.  Initialize APORT and deallocate
73353         it if not null.
73354
73355         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
73356         with O_NOLINK passed to __file_name_lookup.
73357
73358         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
73359         with O_NOLINK passed to __file_name_lookup.
73360
73361         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
73362         negative N or less than NGIDS.
73363
73364         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
73365         type to string_t.  Set ERANGE as errno and return it if NAME is not big
73366         enough.  Use memcpy instead of strncpy.
73367
73368 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73369
73370         * elf/Makefile (check-data): Remove.
73371         (localplt.data): New vpath directive.
73372         ($(objpfx)check-localplt.out): Use localplt.data from vpath
73373         instead of $(check-data).
73374         * scripts/data/localplt-generic.data: Move to ...
73375         * sysdeps/generic/localplt.data: ... here.
73376         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
73377         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
73378         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
73379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
73380         ... here.
73381         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
73382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
73383         ... here.
73384         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
73385         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
73386         ... here.
73387         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
73388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
73389         ... here.
73390         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
73391         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
73392         ... here.
73393         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
73394         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
73395         ... here.
73396
73397 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73398
73399         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
73400         PPC32 and PPC64 files.
73401         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
73402         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
73403
73404 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73405
73406         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
73407         __makecontext_ret to ...
73408         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
73409         ... here and call exit if uc_link is NULL.  New file.
73410         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
73411         __makecontext_ret.S.
73412         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
73413         __makecontext_ret to ...
73414         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
73415         ... here and call exit if uc_link is NULL.  New file.
73416         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
73417         __makecontext_ret.S.
73418
73419 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73420
73421         * elf/elf.h (R_390_IRELATIVE): New definition.
73422         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
73423         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
73424         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
73425         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
73426         (elf_machine_lazy_rel): Likewise.
73427         * sysdeps/s390/dl-irel.h: New file.
73428         * sysdeps/s390/s390-64/memcpy.S: New asm code.
73429         * sysdeps/s390/s390-64/memset.S: New asm code.
73430         * sysdeps/s390/s390-64/memcmp.S: New asm code.
73431         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
73432         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
73433         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
73434         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
73435         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
73436         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
73437         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
73438         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
73439         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
73440         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
73441         * sysdeps/s390/s390-32/memcpy.S: New asm code.
73442         * sysdeps/s390/s390-32/memset.S: New asm code.
73443         * sysdeps/s390/s390-32/memcmp.S: New asm code.
73444
73445 2012-07-17  Marek Polacek  <polacek@redhat.com>
73446
73447         [BZ #14349]
73448         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
73449         * sysdeps/s390/s390-64/configure.in: Likewise.
73450         * sysdeps/sparc/configure.in: Likewise.
73451         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
73452         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
73453         * sysdeps/i386/configure.in: Likewise.
73454         * sysdeps/x86_64/configure.in: Likewise.
73455         * sysdeps/sh/configure.in: Likewise.
73456         * sysdeps/s390/s390-32/configure: Regenerated.
73457         * sysdeps/s390/s390-64/configure: Likewise.
73458         * sysdeps/x86_64/configure: Likewise.
73459         * sysdeps/sh/configure: Likewise.
73460         * sysdeps/powerpc/powerpc64/configure: Likewise.
73461         * sysdeps/powerpc/powerpc32/configure: Likewise.
73462         * sysdeps/sparc/configure: Likewise.
73463         * sysdeps/i386/configure: Likewise.
73464
73465         * elf/dl-open.c: Comment fixes.
73466
73467 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
73468
73469         * Makefile [CXX] (check-data): Remove.
73470         [CXX] (c++-types.data): New vpath directive.
73471         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
73472         vpath.  Do not allow for C++ type data being missing.
73473         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
73474         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
73475         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
73476         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
73477         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
73478         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
73479         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
73480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
73481         ... here.
73482         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
73483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
73484         ... here.
73485         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
73486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
73487         ... here.
73488         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
73489         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
73490         ... here.
73491         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
73492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
73493         ... here.
73494         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
73495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
73496         ... here.
73497         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
73498         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
73499         ... here.
73500         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
73501         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
73502
73503         * elf/tls-macros.h (TLS_LE): Move architecture-specific
73504         definitions to architecture-specific files.
73505         (TLS_IE): Likewise.
73506         (TLS_LD): Likewise.
73507         (TLS_GD): Likewise.
73508         * sysdeps/i386/tls-macros.h: New file.
73509         * sysdeps/powerpc/tls-macros.h: Likewise.
73510         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
73511         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
73512         * sysdeps/sh/tls-macros.h: Likewise.
73513         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
73514         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
73515         * sysdeps/x86_64/tls-macros.h: Likewise.
73516
73517 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73518
73519         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
73520         zero value for regular exit case.
73521
73522         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
73523         (__start_context): Preserve zero value for regular exit case.
73524
73525 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
73526             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73527
73528         * manual/setjmp.texi (setcontext): Clarify normal process
73529         termination when uc_link is the null pointer.
73530         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
73531         exit call.
73532
73533 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
73534
73535         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
73536         preprocessor.  Test for each exception mask separately.
73537
73538 2012-07-16  Andreas Jaeger  <aj@suse.de>
73539
73540         * po/ru.po: Update from translation team.
73541
73542 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
73543
73544         * conform/data/string.h-data (NULL): Use macro-constant.  Require
73545         equal to 0.
73546         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
73547         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
73548         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
73549         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
73550         [ISO || ISO99 || ISO11] (*_t): Do not allow.
73551
73552 2012-07-13  Andreas Jaeger  <aj@suse.de>
73553
73554         * po/fr.po: Update from translation team.
73555
73556 2012-07-12  Marek Polacek  <polacek@redhat.com>
73557
73558         [BZ #14173]
73559         * math/libm-test.inc (yn_test): Add test for BZ #14173.
73560         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
73561         loop condition.
73562
73563 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
73564
73565         [BZ #13717]
73566         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73567         Change to 2.4.1 where previously 2.4.0.
73568         * sysdeps/unix/sysv/linux/configure: Regenerated.
73569         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
73570         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
73571         version.
73572         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
73573         (__ASSUME_AT_CLKTCK): Remove.
73574         (__ASSUME_AT_PAGESIZE): Likewise.
73575         (__ASSUME_AT_XID): Likewise.
73576         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
73577         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
73578         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
73579         unconditionally.
73580         (HAVE_AUX_PAGESIZE): Likewise.
73581         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
73582         [__ASSUME_AT_CLKTCK]: Make code unconditional.
73583         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
73584
73585 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
73586
73587         [BZ #14307]
73588         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
73589         the temporary buffer used to invoke __gethostbyname2_r,
73590         __gethostbyaddr_r and gethostbyname4_r to make room for struct
73591         host_data / struct gaih_addrtuple.
73592         * resolv/nss_dns/dns-host.c (global scope): Move definition of
73593         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
73594         header file nss/nsswitch.h.
73595         * nss/nsswitch.h (global scope): Add definition of implementation
73596         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
73597         resolv/nss_dns/dns-host.c).
73598
73599 2012-07-11  Andreas Jaeger  <aj@suse.de>
73600
73601         * po/fr.po: Update from translation team.
73602
73603         * po/sv.po: Update from translation team
73604         * po/fr.po: Another update from translation team.
73605
73606 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73607
73608         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
73609         for subnormals or multiply small sinh result by itself.
73610         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73611         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73612
73613 2012-07-11  David S. Miller  <davem@davemloft.net>
73614
73615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73616
73617 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
73618
73619         [BZ #14347]
73620         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
73621         (INTERNAL_MARK): Shift it here.
73622
73623 2012-07-10  Marek Polacek  <polacek@redhat.com>
73624
73625         [BZ #14151]
73626         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
73627         libc_cv_asm_global_directive with .globl.
73628         * configure: Regenerated.
73629         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
73630         with .globl.
73631         * sysdeps/i386/configure: Regenerated.
73632         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
73633         with .globl.
73634         * sysdeps/x86_64/configure: Regenerated.
73635         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
73636         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
73637         * elf/tst-unique2mod2.c: Likewise.
73638         * elf/tst-unique2mod1.c: Likewise.
73639         * elf/tst-unique1mod2.c: Likewise.
73640         * elf/tst-unique1mod1.c: Likewise.
73641         * sysdeps/s390/s390-32/sysdep.h: Likewise.
73642         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73643         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73644         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73645         * sysdeps/mach/sysdep.h: Likewise.
73646         * sysdeps/i386/sysdep.h: Likewise.
73647         * sysdeps/i386/i386-mcount.S: Likewise.
73648         * sysdeps/x86_64/_mcount.S: Likewise.
73649         * sysdeps/x86_64/sysdep.h: Likewise.
73650         * sysdeps/sh/_mcount.S: Likewise.
73651         * sysdeps/sh/sysdep.h: Likewise.
73652         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
73653         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
73654         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
73655         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
73656         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
73657         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
73658         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
73659         * locale/localeinfo.h: Likewise.
73660         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
73661         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
73662
73663 2012-07-09  Roland McGrath  <roland@hack.frob.com>
73664
73665         [BZ #14336]
73666         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
73667         system".
73668         * manual/message.texi (The Uniforum approach): Likewise.
73669         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
73670         (glibc iconv Implementation): Likewise.
73671
73672 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
73673
73674         [BZ #14337]
73675         * math/s_clog.c (__clog): Avoid scaling a value down where that
73676         could result in underflow.
73677         * math/s_clog10.c (__clog10): Likewise.
73678         * math/s_clog10f.c (__clog10f): Likewise.
73679         * math/s_clog10l.c (__clog10l): Likewise.
73680         * math/s_clogf.c (__clogf): Likewise.
73681         * math/s_clogl.c (__clogl): Likewise.
73682         * math/libm-test.inc (clog_test): Add more tests.
73683         (clog10_test): Likewise.
73684         * sysdeps/i386/fpu/libm-test-ulps: Update.
73685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73686
73687 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
73688
73689         [BZ #14283]
73690         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
73691         by 7 not 8 to examine high bit of fractional part.
73692
73693         [BZ #14042]
73694         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
73695         for call to __mcount_internal.
73696         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
73697         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
73698         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
73699
73700 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
73701
73702         [BZ #14154]
73703         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
73704         approximation for values within 0x1p-13f of an odd multiple of
73705         pi/4.
73706         * math/libm-test.inc (tan_test): Do not allow spurious underflow
73707         exception.  Add more tests.
73708         * sysdeps/i386/fpu/libm-test-ulps: Update.
73709
73710         [BZ #6778]
73711         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
73712         inputs and return -1 for them.  Do not check for +Inf in case not
73713         reachable for +Inf.
73714         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
73715         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
73716         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73717         and return -1 for them.  Do not check for +Inf in case not
73718         reachable for +Inf.
73719         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
73720         define.
73721         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
73722         and return -1 for them.  Do not check for +Inf in case not
73723         reachable for +Inf.
73724         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
73725         spurious underflow.
73726         * sysdeps/i386/fpu/libm-test-ulps: Update.
73727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73728
73729 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
73730
73731         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
73732
73733 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
73734
73735         [BZ #14157]
73736         [BZ #14331]
73737         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
73738         could result in spurious underflow.  Scale down values above
73739         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
73740         * math/s_csqrtf.c (__csqrtf): Likewise.
73741         * math/s_csqrtl.c (__csqrtl): Likewise.
73742         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
73743         spurious underflow.
73744         * sysdeps/i386/fpu/libm-test-ulps: Update.
73745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73746
73747 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
73748
73749         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
73750         xopen-msg.sed.
73751         * catgets/xopen-msg.awk: New file.
73752         * catgets/xopen-msg.sed: Removed.
73753
73754         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
73755         po2text.sed.
73756         * intl/po2test.awk: New file.
73757         * intl/po2test.sed: Removed.
73758
73759 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
73760
73761         [BZ #14328]
73762         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
73763         or multiply small sinh result by itself.
73764         * math/s_ctanf.c (__ctanf): Likewise.
73765         * math/s_ctanh.c (__ctanh): Likewise.
73766         * math/s_ctanhf.c (__ctanhf): Likewise.
73767         * math/s_ctanhl.c (__ctanhl): Likewise.
73768         * math/s_ctanl.c (__ctanl): Likewise.
73769         * math/libm-test.inc (ctan_test_tonearest): New function.
73770         (ctan_test_towardzero): Likewise.
73771         (ctan_test_downward): Likewise.
73772         (ctan_test_upward): Likewise.
73773         (ctanh_test_tonearest): Likewise.
73774         (ctanh_test_towardzero): Likewise.
73775         (ctanh_test_downward): Likewise.
73776         (ctanh_test_upward): Likewise.
73777         (main): Call these new functions.
73778         * sysdeps/i386/fpu/libm-test-ulps: Update.
73779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73780
73781 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
73782
73783         * .gitignore: Delete /ports entry.
73784
73785 2012-07-03  Andreas Jaeger  <aj@suse.de>
73786
73787         * po/bg.po: Update from translation team.
73788         * po/cs.po: Likewise.
73789         * po/de.po: Likewise.
73790         * po/hr.po: Likewise.
73791         * po/nl.pl: Likewise.
73792         * po/pl.po: Likewise.
73793         * po/vi.po: Likewise.
73794
73795 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
73796
73797         * Makeconfig [!+link] (+link-before-libc): New variable.
73798         [!+link] (+link-after-libc): Likewise.
73799         [!+link] (+link-tests): Likewise.
73800         [!+link] (+link): Define in terms of $(+link-before-libc) and
73801         $(+link-after-libc).
73802         [!+link-static] (+link-static-before-libc): New variable.
73803         [!+link-static] (+link-static-after-libc): Likewise.
73804         [!+link-static] (+link-static-tests): Likewise.
73805         [!+link-static] (+link-static): Define in terms of
73806         $(+link-static-before-libc) and $(+link-static-after-libc).
73807         [build-shared] (link-libc-before-gnulib): New variable.
73808         [build-shared] (link-libc-tests): Likewise.
73809         [build-shared] (link-libc): Define in terms of
73810         $(link-libc-before-gnulib).
73811         [!build-shared] (link-libc-tests): New variable.
73812         (link-libc-static-tests): New variable.
73813         [!gnulib] (gnulib-arch): New variable.
73814         [!gnulib] (gnulib-tests): Likewise.
73815         [!gnulib] (static-gnulib-arch): Likewise.
73816         [!gnulib] (static-gnulib-tests): Likewise.
73817         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
73818         Define with "=" instead of ":=".
73819         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
73820         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
73821         * Rules (binaries-all-notests): New variable.
73822         (binaries-all-tests): Likewise.
73823         (binaries-static-notests): Likewise.
73824         (binaries-static-tests): Likewise.
73825         (binaries-all): Define using $(binaries-all-notests) and
73826         $(binaries-all-tests).
73827         (binaries-static): Define using $(binaries-static-notests) and
73828         $(binaries-static-tests).
73829         (binaries-shared-tests): New variable.
73830         (binaries-shared-notests): Likewise.
73831         (binaries-shared): Remove variable.
73832         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
73833         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
73834         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
73835         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
73836         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
73837         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
73838         * elf/Makefile (sln-modules): New variable.
73839         (extra-objs): Add $(sln-modules:=.o).
73840         (ldconfig-modules): Add static-stubs.
73841         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
73842         * elf/static-stubs.c: New file.
73843
73844         [BZ #14283]
73845         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
73846         by 7 not 8 to examine high bit of fractional part.  Use volatile
73847         variables when splitting into final array of floats if
73848         __FLT_EVAL_METHOD__ != 0.
73849         * math/libm-test.inc (cos_test): Add another test.
73850         (sin_test): Likewise.
73851         * sysdeps/i386/fpu/libm-test-ulps: Update.
73852
73853         [BZ #14273]
73854         * math/libm-test.inc (cosh_test): Add more tests.
73855
73856         * version.h (RELEASE): Set to "development".
73857         (VERSION): Set to "2.16.90".
73858
73859 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
73860
73861         * NEWS: Update copyright. Remove last-updated date.
73862         Mention math library bug fixes and timezone data changes.
73863         * README: Mention GNU/Hurd, x32, and HPPA support status.
73864
73865 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
73866
73867         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
73868
73869 2012-06-27  Andreas Jaeger  <aj@suse.de>
73870
73871         * manual/contrib.texi (Contributors): Add Samuel Thibault.
73872
73873 2012-06-25  Andreas Jaeger  <aj@suse.de>
73874
73875         * sysdeps/s390/fpu/libm-test-ulps: Update.
73876
73877 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
73878             Thomas Schwinge  <thomas@codesourcery.com>
73879
73880         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
73881         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
73882         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
73883         fanotify_mark.
73884
73885 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
73886
73887         * sysdeps/mach/start.c: Remove file.
73888         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
73889         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
73890         * sysdeps/sh/init-first.c: Likewise.
73891
73892         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
73893         registers for frame unwinding purposes, add CFI directives.
73894         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
73895         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
73896         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
73897         Likewise.
73898
73899         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
73900         __fortify_fail returning.
73901         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
73902
73903         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
73904         sysdeps/sh/____longjmp_chk.S.
73905         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
73906         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
73907         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
73908         (gen-as-const-headers): Append sigaltstack-offsets.sym.
73909
73910         * sysdeps/sh/abort-instr.h: New file.
73911         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
73912         process in case exit returns.
73913
73914         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
73915         initialize the GOT register before use.
73916
73917         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
73918         calculation of ARGC > 4.
73919
73920         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
73921         meaningful names to some local labels.
73922
73923 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
73924             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
73925
73926         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
73927         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
73928         (__arch_compare_and_exchange_val_16_acq): Likewise.
73929         (__arch_compare_and_exchange_val_32_acq): Likewise.
73930         (atomic_exchange_and_add): Fix gUSA sequence.
73931         (atomic_add): Likewise.
73932         (atomic_add_negative): Likewise.
73933         (atomic_add_zero): Likewise.
73934         (atomic_bit_test_set): Likewise.
73935
73936 2012-06-22  Andreas Schwab  <schwab@redhat.com>
73937
73938         [BZ #13579]
73939         * include/link.h (struct link_map): Add l_free_initfini.
73940         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
73941         l_initfini.
73942         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
73943         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
73944         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
73945         set.
73946
73947 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
73948
73949         * configure.in: Use AC_LANG_SOURCE.
73950         * configure: Regenerate.
73951
73952 2012-06-22  Roland McGrath  <roland@hack.frob.com>
73953
73954         * configure.in (libc_cv_localstatedir): New substituted variable.
73955         * configure: Regenerated.
73956         * config.make.in (localstatedir): New variable, substituted from
73957         libc_cv_localstatedir.
73958         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
73959         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
73960         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
73961         * sysdeps/gnu/configure: Regenerated.
73962
73963 2012-06-21  Jeff Law  <law@redhat.com>
73964
73965         [BZ #14277]
73966         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
73967         free.  Simplify list management for _LIBC case.
73968
73969 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
73970
73971         [BZ #14273]
73972         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
73973         Clear sign bit of 64-bit integer value before comparing against
73974         overflow value.
73975
73976         * sysdeps/mach/configure: Regenerated.
73977
73978 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
73979
73980         [BZ #14278]
73981         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
73982
73983 2012-06-21  Jeff Law  <law@redhat.com>
73984
73985         [BZ #13882]
73986         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
73987         uint16_t for elements in the "seen" array to avoid char overflows.
73988         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73989         * elf/dl-open.c (dl_open_worker): Likewise.
73990
73991 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
73992
73993         * scripts/list-sources.sh: Scan PORTS for translations.
73994         * po/libc.pot: Regenerated.
73995
73996 2012-06-21  Andreas Jaeger  <aj@suse.de>
73997
73998         [BZ #12194]
73999         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74000         warning.
74001         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74002         * bits/byteswap-16.h (__bswap_16): Likewise.
74003         * bits/byteswap.h (__bswap_constant_16): Likewise.
74004
74005 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74006
74007         [BZ #14117]
74008         * sysdeps/i386/fpu_control.h: Removed.
74009         * sysdeps/x86_64/fpu_control.h: Moved to ...
74010         * sysdeps/x86/fpu_control.h: Here.
74011
74012         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74013         (_FPU_SETCW): Likewise.
74014
74015 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74016
74017         [BZ #14117]
74018         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74019         * sysdeps/x86/fpu/bits/mathinline.h: This.
74020         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74021
74022         [BZ #14050]
74023         [BZ #14117]
74024         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74025         functions if __x86_64__ is defined.
74026
74027 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74028
74029         * string/endian.h: Add !__ASSEMBLER__ condition for including
74030         conversion interfaces.
74031
74032 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74033
74034         [BZ #14241]
74035         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74036         of ABS(x) in calculating zero to negative powers other than odd
74037         integers.
74038         * math/libm-test.inc (pow_test): Add more tests.
74039
74040 2012-06-15  Andreas Jaeger  <aj@suse.de>
74041
74042         * manual/contrib.texi (Contributors): Update entry of Liubov
74043         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74044         Machado Filho.
74045
74046 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74047
74048         * string/string.h: Add __wur to GNU version of strerror_r.
74049
74050 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74051
74052         [BZ #14229]
74053         * string/Makefile (tests): Add tst-strtok_r.
74054         * string/tst-strtok_r.c: New file.
74055         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74056         RAX_LP/RDX_LP on SAVE_PTR.
74057
74058 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74059
74060         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74061
74062 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74063
74064         * libm_test.inc (csqrt_test): Allow more spurious underflow
74065         exceptions.
74066         (j0_test): Likewise.
74067         (j1_test): Likewise.
74068         (y0_test): Likewise.
74069         (y1_test): Likewise.
74070
74071 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74072
74073         * po/Makefile (libc.pot): Use UTF-8 charset.
74074
74075 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74076
74077         [BZ #14210]
74078         Suppress sign-conversion warning from FD_SET.
74079         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74080         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74081         not unsigned long int.
74082         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74083
74084 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74085
74086         [BZ #14050]
74087         [BZ #14117]
74088         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74089         __extern_always_inline instead of __extern_inline.
74090         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74091         (__signbit): Likewise.
74092         (__signbitl): Support C++ namespace.
74093         (lrintf): New inline function.
74094         (lrint): Likewise.
74095         (llrintf): Likewise.
74096         (llrint): Likewise.
74097         (fmaxf): Likewise.
74098         (fmax): Likewise.
74099         (fminf): Likewise.
74100         (fmin): Likewise.
74101         (rint): Likewise.
74102         (rintf): Likewise.
74103         (ceil): Likewise.
74104         (ceilf): Likewise.
74105         (floor): Likewise.
74106         (floorf): Likewise.
74107         (nearbyint): Likewise.
74108         (nearbyintf): Likewise.
74109
74110 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74111
74112         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74113         non-default versions.
74114
74115 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74116
74117         [BZ #14218]
74118         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74119
74120 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74121
74122         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74123         (FE_UPWARD, FE_DOWNWARD): Don't define.
74124         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74125         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74126
74127         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74128         reading it.
74129         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74130         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74131
74132 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74133
74134         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74135         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74136         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74137         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74138
74139 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74140
74141         [BZ #14117]
74142         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74143         * sysdeps/i386/fpu/Implies: New file.
74144         * sysdeps/x86_64/fpu/Implies: Likewise.
74145         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74146         * sysdeps/x86/fpu/bits/fenv.h: This.
74147
74148         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74149         __SSE_MATH__.
74150
74151 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74152
74153         [BZ #14134]
74154         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74155         character 0xffff that matches the last element of the
74156         conversion table.
74157
74158 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74159
74160         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74161         fmodl commit.
74162
74163 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74164
74165         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74166         values higher than 25.6283.
74167
74168 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74169
74170         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74171         subnormal exponent extraction and add some __builtin_expect.
74172         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74173         Fix for subnormal mantissa calculation.
74174
74175 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74176
74177         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74178         cpu2 is -1 and errno is not ENOSYS.
74179
74180 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74181
74182         [BZ #14117]
74183         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74184         * sysdeps/x86/bits/string.h: This.
74185         * sysdeps/x86_64/bits/string.h: Removed.
74186
74187         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74188         if not compiling for x86-64, but compiling for >= i486.
74189
74190         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74191         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74192
74193         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74194         New macro from Linux kernel 3.4.0.
74195         (FP_XSTATE_MAGIC2): Likewise.
74196         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74197         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74198         (struct _fpx_sw_bytes): New struct.
74199         (struct _xsave_hdr): Likewise.
74200         (struct _ymmh_state): Likewise.
74201         (struct _xstate): Likewise.
74202
74203         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74204         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74205         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74206         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74207         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74208         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74209
74210         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74211         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74212         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74213         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74214         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74215         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74216
74217 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74218
74219         [BZ #13743]
74220         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74221         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74222         (sysdep_headers): Include sys/platform/ppc.h.
74223         * sysdeps/powerpc/test-gettimebase.c: Test for
74224         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74225         * manual/Makefile (appendices): Include platform.texi.
74226         * manual/contrib.texi (Contributors): Update @node pointers.
74227         * manual/maint.texi (Maintenance): Likewise.
74228         (Platform): New node.
74229         * manual/platform.texi: New file.  Document the new features.
74230
74231 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74232             Jakub Jelinek  <jakub@redhat.com>
74233
74234         [BZ #14188]
74235         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74236         where __builtin_expect is unavailable.
74237
74238 2012-06-03  David S. Miller  <davem@davemloft.net>
74239
74240         * stdlib/longlong.h: Updated from GCC.
74241
74242 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74243
74244         [BZ #14042]
74245         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74246         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74247         __mcount_internal.
74248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74249         (GLIBC_2.16): Likewise.
74250
74251 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74252
74253         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74254
74255 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74256
74257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74258         (default-abi): New variable.
74259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74260         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74261         variable.
74262         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74263         Likewise.
74264         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74265         Likewise.
74266         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74267         Likewise.
74268
74269         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74270         definition.  Document in comment.
74271
74272 2012-06-01  David S. Miller  <davem@davemloft.net>
74273
74274         * stdlib/longlong.h: Updated from GCC.
74275
74276 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74277
74278         [BZ #14117]
74279         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74280         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74281         sys/debugreg.h sys/io.h here.
74282         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74283         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74284         sys/io.h.
74285         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74286         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74287         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74288         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74289         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74290         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74291
74292         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74293         Define only if __x86_64__ is defined.
74294
74295 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74296
74297         [BZ #14048]
74298         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74299         Use int64_t for variable i.
74300         * math/libm-test.inc (fmod_test): Add more tests.
74301
74302         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74303         z computation is not scheduled after fetestexcept.
74304         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74305         Use math_force_eval instead of asm to ensure calculation scheduled
74306         before exception test.
74307         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
74308         Ensure a1 + u.d computation is not scheduled after fetestexcept.
74309
74310 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
74311
74312         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
74313         computation is not scheduled after fetestexcept.
74314
74315 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74316
74317         [BZ #14117]
74318         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
74319         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
74320
74321 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74322
74323         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
74324         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74325
74326 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74327
74328         [BZ #14117]
74329         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
74330         <bits/wordsize.h>.
74331         (__WCHAR_MIN): Support __WORDSIZE == 64.
74332         (__WCHAR_MAX): Likewise.
74333
74334         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
74335         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
74336
74337         [BZ #14183]
74338         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
74339         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
74340
74341         [BZ #14117]
74342         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
74343         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
74344
74345         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
74346         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
74347
74348         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
74349         Defined to 1 if __x86_64__ isn't defined.
74350         (_STAT_VER_LINUX_OLD): New.
74351         (st_atime): Remove duplicate.
74352         (st_mtime): Likewise.
74353         (st_ctime): Likewise.
74354
74355 2012-05-31  David S. Miller  <davem@davemloft.net>
74356
74357         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
74358         entries.
74359
74360 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
74361
74362         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
74363         gen-libm-test.pl.
74364
74365         [BZ #14132]
74366         * elf/dl-reloc.c: Include <_itoa.h>.
74367         (_dl_reloc_bad_type): Remove use of INTUSE.
74368         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
74369         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
74370         * stdio-common/psiginfo.c (psiginfo): Likewise.
74371         * stdio-common/psignal.c (psignal): Likewise.
74372         * string/strsignal.c (strsignal): Likewise.
74373         * include/signal.h (_sys_siglist): Declare hidden proto.
74374         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
74375         INTVARDEF with libc_hidden_data_def.
74376         * stdio-common/itoa-udigits.c: Likewise.
74377         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
74378         (_itoa_lower_digits_internal): Remove declaration.
74379         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
74380         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
74381         (_sys_sigabbrev_internal): Remove aliases.
74382         (_sys_siglist): Define hidden alias.
74383
74384 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
74385
74386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74387         bits/sysctl.h.
74388
74389 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74390
74391         [BZ #14117]
74392         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
74393         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
74394
74395         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
74396         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
74397         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
74398         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
74399         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
74400         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
74401
74402         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
74403         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
74404         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
74405
74406         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
74407         with __addr.
74408         (insw): Likewise.
74409         (insl): Likewise.
74410         (outsb): Likewise.
74411         (outsw): Likewise.
74412         (outsl): Likewise.
74413
74414         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
74415         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
74416         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
74417
74418         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
74419         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
74420         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
74421         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
74422         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
74423         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
74424
74425         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
74426         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
74427
74428         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
74429         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
74430
74431         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
74432         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
74433         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
74434
74435         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
74436         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
74437         to ...
74438         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
74439
74440         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
74441         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
74442         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
74443
74444         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
74445         for x86-64.
74446         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
74447
74448 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
74449
74450         * math/math.h (M_El): Use two more decimal places.
74451         (M_LOG2El): Likewise.
74452         (M_LOG10El): Likewise.
74453         (M_LN2l): Likewise.
74454         (M_LN10l): Likewise.
74455         (M_PIl): Likewise.
74456         (M_PI_2l): Likewise.
74457         (M_PI_4l): Likewise.
74458         (M_1_PIl): Likewise.
74459         (M_2_PIl): Likewise.
74460         (M_2_SQRTPIl): Likewise.
74461         (M_SQRT2l): Likewise.
74462         (M_SQRT1_2l): Likewise.
74463
74464 2012-05-31  David S. Miller  <davem@davemloft.net>
74465
74466         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
74467         values between float registers.
74468         * sysdeps/sparc/sparc64/memset.S: Likewise.
74469         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
74470
74471 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
74472
74473         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
74474         -D_FORTIFY_SOURCE=1.
74475         (CPPFLAGS-tst-longjmp_chk.c): Define.
74476         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
74477         (CPPFLAGS-tst-longjmp_chk2.c): Define.
74478         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
74479         CFLAGS-tst-wchar-h.c.
74480
74481 2012-05-31  Marek Polacek  <polacek@redhat.com>
74482
74483         [BZ #14132]
74484         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
74485         __endmntent_internal): Remove declaration.
74486         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
74487         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
74488         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
74489
74490 2012-05-30  David S. Miller  <davem@davemloft.net>
74491
74492         * sysdeps/sparc/sparc32/soft-fp/q_util.c
74493         (___Q_simulate_exceptions): Use real FP ops rather than writing
74494         into the %fsr.
74495         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
74496         Likewise.
74497
74498 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74499
74500         [BZ #14117]
74501         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
74502         * sysdeps/x86/bits/xtitypes.h: This.
74503
74504         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
74505         * sysdeps/x86/bits/wordsize.h: This.
74506
74507         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
74508         * sysdeps/x86/bits/huge_vall.h: This.
74509
74510         * sysdeps/i386/bits/select.h: Removed.
74511         * sysdeps/x86_64/bits/select.h: Renamed to ...
74512         * sysdeps/x86/bits/select.h: This.
74513
74514         * sysdeps/i386/bits/setjmp.h: Removed.
74515         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
74516         * sysdeps/x86/bits/setjmp.h: This.
74517
74518         * sysdeps/i386/bits/mathdef.h: Removed.
74519         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
74520         * sysdeps/x86/bits/mathdef.h: This.
74521
74522 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
74523
74524         [BZ #14132]
74525         * include/sys/socket.h (__connect_internal)
74526         (__libc_sa_len_internal): Remove declaration.
74527         (__connect, __libc_sa_len): Declare hidden_proto.
74528         (SA_LEN): Remove use of INTUSE.
74529         * socket/connect.c: Add libc_hidden_def.
74530         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
74531         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
74532         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
74533         alias.
74534         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
74535         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
74536         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
74537         of adding _internal alias.
74538
74539 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74540
74541         [BZ #14117]
74542         * sysdeps/i386/bits/link.h: Removed.
74543         * sysdeps/i386/bits/linkmap.h: Likewise.
74544         * sysdeps/x86_64/bits/link.h: Renamed to ...
74545         * sysdeps/x86/bits/link.h: This.
74546         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
74547         * sysdeps/x86/bits/linkmap.h: This.
74548
74549         * sysdeps/i386/bits/endian.h: Removed.
74550         * sysdeps/x86_64/bits/endian.h: Renamed to ...
74551         * sysdeps/x86/bits/endian.h: This.
74552
74553         * sysdeps/i386/bits/byteswap.h: Removed.
74554         * sysdeps/i386/bits/byteswap-16.h: Likewise.
74555         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
74556         * sysdeps/x86/bits/byteswap.h: This.
74557         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
74558         * sysdeps/x86/bits/byteswap-16.h: This.
74559         * sysdeps/i386/Implies: Add x86.
74560         * sysdeps/x86_64/Implies: Likewise.
74561
74562 2012-05-30  David S. Miller  <davem@davemloft.net>
74563
74564         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
74565         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
74566         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
74567         (FP_TRAPPING_EXCEPTIONS): Define.
74568         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
74569         (FP_TRAPPING_EXCEPTIONS): Define.
74570         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
74571         subnormals only when inexact has been signalled or underflow
74572         exceptions are enabled.
74573         (_FP_PACK_CANONICAL): Likewise.
74574
74575 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74576
74577         [BZ #14183]
74578         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
74579         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
74580
74581 2012-05-30  Richard Henderson  <rth@twiddle.net>
74582
74583         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
74584         with #ifndef NOT_IN_libc.
74585
74586         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
74587         marked to avoid plt entry.
74588
74589 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74590
74591         [BZ #14112]
74592         * Makeconfig (default-abi): New macro.
74593         (abi-includes): Likewise.
74594         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
74595         $(abi-$(default-abi)-lib-soname) for soname if defined.
74596         ($(common-objpfx)gnu/lib-names.stmp): Generate from
74597         abi-variants.
74598         * Makefile (installed-stubs): Likewise.
74599         * include/stubs-biarch.h: Removed.
74600         * scripts/lib-names.awk: Only handle one library at a time.
74601         * scripts/soversions.awk: Remove WORDSIZE support.
74602         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
74603         entries.
74604         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
74605         Removed.
74606         (syscall-list-default-condition): Likewise.
74607         (syscall-list-default-condition): Likewise.
74608         (syscall-list-includes): Likewise.
74609         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
74610         syscall-list-* with abi-*.  Handle undefined abi-variants.
74611         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
74612         * sysdeps/unix/sysv/linux/i386/Implies: New file.
74613         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
74614         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
74615         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
74616         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
74617         Removed.
74618         (syscall-list-32-options): Likewise.
74619         (syscall-list-32-condition): Likewise.
74620         (syscall-list-64-options): Likewise.
74621         (syscall-list-64-condition): Likewise.
74622         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
74623         macro.
74624         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
74625         Renamed to ...
74626         (abi-*): This.
74627         (abi-64-ld-soname): New macro.
74628         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
74629         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
74630         Renamed to ...
74631         (abi-*): This.
74632         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
74633         * sysdeps/x86_64/x32/shlib-versions: Likewise.
74634
74635 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
74636
74637         * sysdeps/unix/sysv/linux/kernel-features.h
74638         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
74639         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
74640         include <kernel-features.h>.
74641         [!__NR_ftruncate64]: Remove conditional code.
74642         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74643         [__NR_ftruncate64]: Make code unconditional.
74644         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74645         * sysdeps/unix/sysv/linux/truncate64.c: Do not
74646         include <kernel-features.h>.
74647         [!__NR_ftruncate64]: Remove conditional code.
74648         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74649         [__NR_ftruncate64]: Make code unconditional.
74650         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
74652         include <kernel-features.h>.
74653         [!__NR_ftruncate64]: Remove conditional code.
74654         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74655         [__NR_ftruncate64]: Make code unconditional.
74656         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
74658         include <kernel-features.h>.
74659         [!__NR_ftruncate64]: Remove conditional code.
74660         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74661         [__NR_ftruncate64]: Make code unconditional.
74662         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
74663
74664         * configure.in (libc_cv_fpie): Weaken to a compile test using
74665         LIBC_TRY_CC_OPTION.
74666         * configure: Regenerated.
74667
74668 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74669
74670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
74671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
74672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
74673         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
74674         Refreshed.
74675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
74676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
74677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
74678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
74679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
74680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
74681         Refreshed.
74682
74683 2012-05-27  David S. Miller  <davem@davemloft.net>
74684
74685         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
74686         (___Q_zero): New.
74687         (__Q_simulate_exceptions): Return void.  Change to simulate
74688         exceptions by writing into the %fsr.
74689         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
74690         (__Qp_handle_exceptions): Likewise.
74691         (numbers): Delete.
74692         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
74693         __Qp_handle_exceptions.
74694         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
74695         __Qp_handle_exceptions.
74696         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74697         as unused and give dummy FP_RND_NEAREST initializer.
74698         (FP_INHIBIT_RESULTS): Define.
74699         (___Q_simulate_exceptions): Update declaration.
74700         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
74701         formatting.
74702         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
74703         as unused and give dummy FP_RND_NEAREST initializer.
74704         (__Qp_handle_exceptions): Update declaration.
74705         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
74706         formatting.
74707
74708 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
74709
74710         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
74711         the temporary FPU control word.
74712         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
74713         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
74714         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
74715         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74716         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
74717         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
74718         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
74719         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74720         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
74721         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
74722         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74723
74724 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74725
74726         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
74727         fields.
74728
74729 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
74730
74731         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
74732         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
74733         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
74734         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
74735         Likewise.
74736         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
74737         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
74738         Likewise.
74739
74740 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
74741
74742         * po/h.po: Update from translation team.
74743
74744 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
74745
74746         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
74747
74748         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
74749         handling of denormals.
74750         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
74751         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
74752         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
74753         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
74754         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
74755         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
74756         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
74757         Likewise.
74758
74759 2012-05-26  Marek Polacek  <polacek@redhat.com>
74760
74761         [BZ #14152]
74762         * math/libm-test.inc (fma_test): Don't always expect underflow
74763         exception.
74764
74765 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
74766
74767         [BZ #12416]
74768         * elf/tst-execstack.c: Include stackinfo.h.
74769         (do_test): Adjust test case to ensure that pthread_getattr_np
74770         behaviour remains the same after marking stack executable.
74771
74772 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74773
74774         * sysdeps/unix/sysv/linux/kernel-features.h
74775         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
74776         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
74777         kernel-features.h.
74778         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74779         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74780         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
74781         kernel-features.h.
74782         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
74783         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
74784
74785 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
74786
74787         * configure.in: Define the default includes to being none.
74788         * configure: Regenerated.
74789
74790 2012-05-25  Roland McGrath  <roland@hack.frob.com>
74791
74792         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
74793         * sysdeps/x86_64/setjmp.S: Likewise.
74794         * sysdeps/i386/bsd-setjmp.S: Likewise.
74795         * sysdeps/i386/bsd-_setjmp.S: Likewise.
74796         * sysdeps/i386/setjmp.S: Likewise.
74797         * sysdeps/i386/__longjmp.S: Likewise.
74798         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
74799         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
74800
74801         * include/stap-probe.h: New file.
74802         * configure.in: Handle --enable-systemtap.
74803         * configure: Regenerated.
74804         * config.h.in (USE_STAP_PROBE): New #undef.
74805         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
74806         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
74807         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
74808
74809 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
74810
74811         [BZ #13717]
74812         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
74813         to 2.4.0 where earlier.
74814         * sysdeps/unix/sysv/linux/configure: Regenerated.
74815         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
74816         <kernel-features.h>.
74817         [__ASSUME_32BITUIDS]: Make code unconditional.
74818         [!__ASSUME_32BITUIDS]: Remove conditional code.
74819         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
74820         <kernel-features.h>.
74821         [__ASSUME_32BITUIDS]: Make code unconditional.
74822         [!__ASSUME_32BITUIDS]: Remove conditional code.
74823         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
74824         [__ASSUME_32BITUIDS]: Make code unconditional.
74825         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
74826         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
74827         <kernel-features.h>.
74828         [__ASSUME_32BITUIDS]: Make code unconditional.
74829         [!__ASSUME_32BITUIDS]: Remove conditional code.
74830         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
74831         <kernel-features.h>.
74832         [__ASSUME_32BITUIDS]: Make code unconditional.
74833         [!__ASSUME_32BITUIDS]: Remove conditional code.
74834         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
74835         <kernel-features.h>.
74836         [__ASSUME_32BITUIDS]: Make code unconditional.
74837         [!__ASSUME_32BITUIDS]: Remove conditional code.
74838         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
74839         <kernel-features.h>.
74840         [__ASSUME_32BITUIDS]: Make code unconditional.
74841         [!__ASSUME_32BITUIDS]: Remove conditional code.
74842         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
74843         <kernel-features.h>.
74844         [__ASSUME_32BITUIDS]: Make code unconditional.
74845         [!__ASSUME_32BITUIDS]: Remove conditional code.
74846         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
74847         <kernel-features.h>.
74848         [__ASSUME_32BITUIDS]: Make code unconditional.
74849         [!__ASSUME_32BITUIDS]: Remove conditional code.
74850         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
74851         <kernel-features.h>.
74852         [__ASSUME_32BITUIDS]: Make code unconditional.
74853         [!__ASSUME_32BITUIDS]: Remove conditional code.
74854         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
74855         <kernel-features.h>.
74856         [__ASSUME_32BITUIDS]: Make code unconditional.
74857         [!__ASSUME_32BITUIDS]: Remove conditional code.
74858         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
74859         <kernel-features.h>.
74860         [__ASSUME_32BITUIDS]: Make code unconditional.
74861         [!__ASSUME_32BITUIDS]: Remove conditional code.
74862         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
74863         <kernel-features.h>.
74864         [__ASSUME_32BITUIDS]: Make code unconditional.
74865         [!__ASSUME_32BITUIDS]: Remove conditional code.
74866         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
74867         <kernel-features.h>.
74868         [__NR_setresgid] (__setresgid): Do not declare.
74869         [__ASSUME_32BITUIDS]: Make code unconditional.
74870         [!__ASSUME_32BITUIDS]: Remove conditional code.
74871         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
74872         <kernel-features.h>.
74873         [__NR_setresuid] (__setresuid): Do not declare.
74874         [__ASSUME_32BITUIDS]: Make code unconditional.
74875         [!__ASSUME_32BITUIDS]: Remove conditional code.
74876         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
74877         <kernel-features.h>.
74878         [__ASSUME_32BITUIDS]: Make code unconditional.
74879         [!__ASSUME_32BITUIDS]: Remove conditional code.
74880         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
74881         <kernel-features.h>.
74882         [__ASSUME_32BITUIDS]: Make code unconditional.
74883         [!__ASSUME_32BITUIDS]: Remove conditional code.
74884         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
74885         <kernel-features.h>.
74886         [__ASSUME_32BITUIDS]: Make code unconditional.
74887         [!__ASSUME_32BITUIDS]: Remove conditional code.
74888         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
74889         <kernel-features.h>.
74890         [__ASSUME_32BITUIDS]: Make code unconditional.
74891         [!__ASSUME_32BITUIDS]: Remove conditional code.
74892         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
74893         <kernel-features.h>.
74894         [__ASSUME_32BITUIDS]: Make code unconditional.
74895         [!__ASSUME_32BITUIDS]: Remove conditional code.
74896         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
74897         <kernel-features.h>.
74898         [__ASSUME_32BITUIDS]: Make code unconditional.
74899         [!__ASSUME_32BITUIDS]: Remove conditional code.
74900         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
74901         <kernel-features.h>.
74902         [__ASSUME_32BITUIDS]: Make code unconditional.
74903         [!__ASSUME_32BITUIDS]: Remove conditional code.
74904         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
74905         <kernel-features.h>.
74906         [__ASSUME_32BITUIDS]: Make code unconditional.
74907         [!__ASSUME_32BITUIDS]: Remove conditional code.
74908         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
74909         <kernel-features.h>.
74910         [__ASSUME_32BITUIDS]: Make code unconditional.
74911         [!__ASSUME_32BITUIDS]: Remove conditional code.
74912         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
74913         <kernel-features.h>.
74914         [__ASSUME_32BITUIDS]: Make code unconditional.
74915         [!__ASSUME_32BITUIDS]: Remove conditional code.
74916         * sysdeps/unix/sysv/linux/kernel-features.h
74917         (__ASSUME_SETRESUID_SYSCALL): Remove.
74918         (__ASSUME_SETRESGID_SYSCALL): Likewise.
74919         (__ASSUME_32BITUIDS): Likewise.
74920         (__ASSUME_LDT_WORKS): Likewise.
74921         (__ASSUME_O_DIRECTORY): Likewise.
74922         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
74923         architecture but not kernel version.
74924         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
74925         (__ASSUME_MMAP2_SYSCALL): Likewise.
74926         (__ASSUME_STAT64_SYSCALL): Likewise.
74927         (__ASSUME_IPC64): Likewise.
74928         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
74929         <kernel-features.h>.
74930         [__ASSUME_32BITUIDS]: Make code unconditional.
74931         [!__ASSUME_32BITUIDS]: Remove conditional code.
74932         * sysdeps/unix/sysv/linux/opendir.c: Do not include
74933         <kernel-features.h>.
74934         [__ASSUME_O_DIRECTORY]: Make code unconditional.
74935         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
74936         132096]: Remove conditional code.
74937         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
74938         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
74939         <kernel-features.h>.
74940         [__ASSUME_32BITUIDS]: Make code unconditional.
74941         [!__ASSUME_32BITUIDS]: Remove conditional code.
74942         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
74943         <kernel-features.h>.
74944         [__ASSUME_32BITUIDS]: Make code unconditional.
74945         [!__ASSUME_32BITUIDS]: Remove conditional code.
74946         * sysdeps/unix/sysv/linux/setegid.c: Do not include
74947         <kernel-features.h>.
74948         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
74949         unconditional.
74950         (__setresgid): Do not declare.
74951         [__ASSUME_32BITUIDS]: Make code unconditional.
74952         [!__ASSUME_32BITUIDS]: Remove conditional code.
74953         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
74954         <kernel-features.h>.
74955         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
74956         unconditional.
74957         (__setresuid): Do not declare.
74958         [__ASSUME_32BITUIDS]: Make code unconditional.
74959         [!__ASSUME_32BITUIDS]: Remove conditional code.
74960         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
74961         <kernel-features.h>.
74962         [__ASSUME_32BITUIDS]: Make code unconditional.
74963         [!__ASSUME_32BITUIDS]: Remove conditional code.
74964         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
74965         <kernel-features.h>.
74966         [__ASSUME_32BITUIDS]: Make code unconditional.
74967         [!__ASSUME_32BITUIDS]: Remove conditional code.
74968
74969 2012-05-25  Richard Henderson  <rth@twiddle.net>
74970
74971         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
74972         dl_hwcap to ifunc resolver.
74973         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
74974         elf_ifunc_invoke.
74975         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
74976         dl_hwcap to ifunc resolver.
74977         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
74978
74979 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
74980
74981         [BZ #14153]
74982         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
74983         for |x| <= 2**-26, not 2**-57.
74984         * math/libm-test.inc (acos_test): Do not allow spurious underflow
74985         exception.
74986
74987 2012-05-24  Jeff Law  <law@redhat.com>
74988
74989         * stdio-common/Makefile (tests): Add bug25.
74990         * stdio-common/bug25.c: New test.
74991
74992 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
74993
74994         [BZ #13576]
74995         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
74996         multiple of MALLOC_ALIGNMENT in size.
74997         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
74998
74999 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75000
75001         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75002         Require >= 256.
75003         (FILENAME_MAX): Use macro-int-constant.
75004         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75005         (_IOFBF): Use macro-int-constant.
75006         (_IOLBF): Likewise.
75007         (_IONBF): Likewise.
75008         (SEEK_CUR): Likewise.
75009         (SEEK_END): Likewise.
75010         (SEEK_SET): Likewise.
75011         (TMP_MAX): Likewise.
75012         (EOF): Use macro-int-constant.  Require < 0.
75013         (NULL): Use macro-constant.  Require == 0.
75014         (stdin): Require type to be FILE *.
75015         (stdout): Likewise.
75016         (stderr): Likewise.
75017         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75018         macro-int-constant.
75019         (EXIT_SUCCESS): Likewise.
75020         (NULL): Use macro-constant.  Require == 0.
75021         (RAND_MAX): Use macro-int-constant.
75022         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75023         [C99-based standards] (strtof): Require function.
75024         [C99-based standards] (strtold): Likewise.
75025         [C99-based standards] (strtoll): Likewise.
75026         [C99-based standards] (strtoull): Likewise.
75027         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75028         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75029         [ISO || ISO99 || ISO11] (math.h): Likewise.
75030         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75031         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75032         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75033
75034 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75035
75036         [BZ #14132]
75037         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75038         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75039         * intl/dgettext.c (DCGETTEXT): Likewise.
75040         * intl/gettext.c (DCGETTEXT): Likewise.
75041         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75042         * posix/regex_internal.h (gettext): Likewise.
75043         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75044         Remove declaration.
75045         * include/argz.h (__argz_count_internal)
75046         (__argz_stringify_internal): Remove declaration.
75047         (__argz_count, __argz_stringify): Declare hidden proto.
75048         * intl/dcgettext.c: Remove use of INTDEF.
75049         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75050         * string/argz-stringify.c: Likewise.
75051         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75052         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75053         Declare hidden proto.
75054         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75055         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75056         Declare hidden proto.
75057         * include/stdio.h (__asprintf_internal): Don't declare.
75058         (__asprintf): Don't define as macro.  Declare hidden proto.
75059         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75060         (__fsetlocking): Declare hidden proto.
75061         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75062         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75063         hidden proto.
75064         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75065         (_IO_setlinebuf): Remove use of INTUSE.
75066         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75067         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75068         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75069         Remove declaration.
75070         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75071         (_IO_do_flush): Remove use of INTUSE.
75072         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75073         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75074         (_IO_adjust_column, _IO_least_wmarker)
75075         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75076         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75077         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75078         (_IO_default_doallocate, _IO_wdefault_doallocate)
75079         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75080         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75081         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75082         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75083         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75084         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75085         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75086         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75087         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75088         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75089         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75090         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75091         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75092         proto.
75093         (_IO_flush_all_internal, _IO_adjust_column_internal)
75094         (_IO_default_uflow_internal, _IO_default_finish_internal)
75095         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75096         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75097         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75098         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75099         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75100         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75101         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75102         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75103         (_IO_file_close_internal, _IO_file_close_it_internal)
75104         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75105         (_IO_file_init_internal, _IO_file_attach_internal)
75106         (_IO_file_fopen_internal, _IO_file_read_internal)
75107         (_IO_file_sync_internal, _IO_file_seek_internal)
75108         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75109         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75110         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75111         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75112         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75113         (_IO_list_all_internal, _IO_link_in_internal)
75114         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75115         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75116         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75117         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75118         (_IO_do_write_internal, _IO_padn_internal)
75119         (_IO_getline_info_internal, _IO_getline_internal)
75120         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75121         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75122         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75123         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75124         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75125         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75126         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75127         with libc_hidden_ver, remove use of INTUSE.
75128         * libio/genops.c: Likewise.
75129         * libio/freopen.c: Likewise.
75130         * libio/freopen64.c: Likewise.
75131         * libio/iofclose.c: Likewise.
75132         * libio/iofdopen.c: Likewise.
75133         * libio/iofflush.c: Likewise.
75134         * libio/iofflush_u.c: Likewise.
75135         * libio/iofgets.c: Likewise.
75136         * libio/iofgets_u.c: Likewise.
75137         * libio/iofopen.c: Likewise.
75138         * libio/iofopncook.c: Likewise.
75139         * libio/iofread.c: Likewise.
75140         * libio/iofread_u.c: Likewise.
75141         * libio/ioftell.c: Likewise.
75142         * libio/iofwrite.c: Likewise.
75143         * libio/iogetline.c: Likewise.
75144         * libio/iogets.c: Likewise.
75145         * libio/iogetwline.c: Likewise.
75146         * libio/iopadn.c: Likewise.
75147         * libio/iopopen.c: Likewise.
75148         * libio/ioseekoff.c: Likewise.
75149         * libio/ioseekpos.c: Likewise.
75150         * libio/iosetbuffer.c: Likewise.
75151         * libio/iosetvbuf.c: Likewise.
75152         * libio/ioungetc.c: Likewise.
75153         * libio/ioungetwc.c: Likewise.
75154         * libio/iovdprintf.c: Likewise.
75155         * libio/iovsprintf.c: Likewise.
75156         * libio/iovsscanf.c: Likewise.
75157         * libio/memstream.c: Likewise.
75158         * libio/obprintf.c: Likewise.
75159         * libio/oldfileops.c: Likewise.
75160         * libio/oldiofclose.c: Likewise.
75161         * libio/oldiofdopen.c: Likewise.
75162         * libio/oldiofopen.c: Likewise.
75163         * libio/oldiopopen.c: Likewise.
75164         * libio/oldstdfiles.c: Likewise.
75165         * libio/putc.c: Likewise.
75166         * libio/setbuf.c: Likewise.
75167         * libio/setlinebuf.c: Likewise.
75168         * libio/stdfiles.c: Likewise.
75169         * libio/strops.c: Likewise.
75170         * libio/vasprintf.c: Likewise.
75171         * libio/vscanf.c: Likewise.
75172         * libio/vsnprintf.c: Likewise.
75173         * libio/vswprintf.c: Likewise.
75174         * libio/wfiledoalloc.c: Likewise.
75175         * libio/wfileops.c: Likewise.
75176         * libio/wgenops.c: Likewise.
75177         * libio/wmemstream.c: Likewise.
75178         * libio/wstrops.c: Likewise.
75179         * libio/__fpurge.c: Likewise.
75180         * libio/__fsetlocking.c: Likewise.
75181         * assert/assert.c: Likewise.
75182         * debug/fgets_chk.c: Likewise.
75183         * debug/fgets_u_chk.c: Likewise.
75184         * debug/fread_chk.c: Likewise.
75185         * debug/fread_u_chk.c: Likewise.
75186         * debug/gets_chk.c: Likewise.
75187         * debug/obprintf_chk.c: Likewise.
75188         * debug/vasprintf_chk.c: Likewise.
75189         * debug/vdprintf_chk.c: Likewise.
75190         * debug/vsnprintf_chk.c: Likewise.
75191         * debug/vsprintf_chk.c: Likewise.
75192         * malloc/mtrace.c: Likewise.
75193         * misc/error.c: Likewise.
75194         * misc/syslog.c: Likewise.
75195         * stdio-common/asprintf.c: Likewise.
75196         * stdio-common/fxprintf.c: Likewise.
75197         * stdio-common/getw.c: Likewise.
75198         * stdio-common/isoc99_fscanf.c: Likewise.
75199         * stdio-common/isoc99_scanf.c: Likewise.
75200         * stdio-common/isoc99_vfscanf.c: Likewise.
75201         * stdio-common/isoc99_vscanf.c: Likewise.
75202         * stdio-common/isoc99_vsscanf.c: Likewise.
75203         * stdio-common/printf-prs.c: Likewise.
75204         * stdio-common/printf_fp.c: Likewise.
75205         * stdio-common/printf_fphex.c: Likewise.
75206         * stdio-common/printf_size.c: Likewise.
75207         * stdio-common/putw.c: Likewise.
75208         * stdio-common/scanf.c: Likewise.
75209         * stdio-common/sprintf.c: Likewise.
75210         * stdio-common/tmpfile.c: Likewise.
75211         * stdio-common/vfprintf.c: Likewise.
75212         * stdio-common/vfscanf.c: Likewise.
75213         * stdlib/strfmon_l.c: Likewise.
75214         * sunrpc/openchild.c: Likewise.
75215         * sunrpc/xdr_stdio.c: Likewise.
75216         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75217         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75218
75219 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75220
75221         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75222
75223         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75224         in the third column, to generate for the shared library an IFUNC
75225         that uses _dl_vdso_vsym.
75226         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75227         * Makeconfig (object-suffixes-noshared): New variable.
75228
75229         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75230         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75231         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75232         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75233
75234         [BZ #14132]
75235         * include/sys/time.h (__gettimeofday): Remove macro.
75236         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75237         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75238         Remove INTDEF.
75239         (__gettimeofday): Add libc_hidden_def.
75240         (gettimeofday): Add libc_hidden_weak.
75241         * sysdeps/mach/gettimeofday.c: Likewise.
75242         * sysdeps/posix/gettimeofday.c: Likewise.
75243         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75244         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75245         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75246         (__gettimeofday_internal): Remove strong_alias.
75247         (__gettimeofday): Add libc_hidden_def.
75248         (gettimeofday): Add libc_hidden_weak.
75249         * sysdeps/unix/syscalls.list (gettimeofday):
75250         Remove __gettimeofday_internal alias.
75251
75252 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75253             H.J. Lu  <hongjiu.lu@intel.com>
75254
75255         [BZ #12495]
75256         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75257         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75258         (largebin_index_32_big): New.
75259         (largebin_index): Use it for 16-byte alignment.
75260         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75261         correction with front_misalign.
75262
75263 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75264
75265         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75266         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75267         Likewise.
75268         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75269         Likewise.
75270         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75271         Likewise.
75272         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75273         Likewise.
75274         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75275         Likewise.
75276         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75277         Likewise.
75278         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75279         Likewise.
75280         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75281         Likewise.
75282         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75283         Likewise.
75284         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75285         Likewise.
75286         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75287         Likewise.
75288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75289         Likewise.
75290
75291         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75292         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75293
75294 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75295
75296         [BZ #10846]
75297         [BZ #14036]
75298         * math/libm-test.inc (exp_test): Add test from bug 14036.
75299         (pow_test): Add test from bug 10846.
75300
75301         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75302         and other flags.
75303         (special_function): Do not include flags in test name.
75304         (parse_args): Likewise.
75305         * sysdeps/i386/fpu/libm-test-ulps: Update.
75306         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75307         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
75308         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
75309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75310
75311         * math/gen-libm-test.pl (%beautify): Add entries for underflow
75312         exceptions.
75313         * math/libm-test.inc ("Philosophy"): Update comment about
75314         exception testing.
75315         (UNDERFLOW_EXCEPTION): New macro.
75316         (UNDERFLOW_EXCEPTION_OK): Likewise.
75317         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
75318         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
75319         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
75320         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
75321         (INVALID_EXCEPTION_OK): Update value.
75322         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
75323         (OVERFLOW_EXCEPTION_OK): Likewise.
75324         (IGNORE_ZERO_INF_SIGN): Likewise.
75325         (test_exceptions): Handle underflow exceptions.
75326         (acos_test): Update for underflow exception expectations.
75327         (cexp_test): Likewise.
75328         (clog_test): Likewise.
75329         (clog10_test): Likewise.
75330         (csqrt_test): Likewise.
75331         (ctan_test): Likewise.
75332         (ctanh_test): Likewise.
75333         (exp_test): Likewise.
75334         (exp10_test): Likewise.
75335         (exp2_test): Likewise.
75336         (expm1_test): Likewise.
75337         (fma_test): Likewise.
75338         (j0_test): Likewise.
75339         (jn_test): Likewise.
75340         (nexttoward_test): Likewise.
75341         (pow_test): Likewise.
75342         (scalbn_test): Likewise.
75343         (scalbln_test): Likewise.
75344         (tan_test): Likewise.
75345         (y1_test): Likewise.
75346         * sysdeps/i386/fpu/libm-test-ulps: Update.
75347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75348
75349 2012-05-23  David S. Miller  <davem@davemloft.net>
75350
75351         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75352         (__libc_sigaction): Remove unused local variables.
75353
75354 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75355
75356         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
75357
75358 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         mktime: avoid signed integer overflow
75361         * time/mktime.c (__mktime_internal): Do not mishandle the case
75362         where diff == INT_MIN.
75363
75364         mktime: simplify computation of average
75365         * time/mktime.c (ranged_convert): Use new time_t_avg function
75366         instead of rolling our own (probably-slower) code.
75367
75368         mktime: do not assume signed right shift propagates sign bit
75369         * time/mktime.c (isdst_differ): New static function.
75370         (__mktime_internal): No need to normalize tm_isdst now.
75371         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
75372         tm_isdst values.
75373
75374         mktime: merge another wrapv change from gnulib
75375         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
75376         from some compilers.
75377
75378         mktime: remove incorrect attempt at unusual arithmetics
75379         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
75380         The code didn't really work on such machines anyway.
75381         (TYPE_MINIMUM): Assume two's complement.
75382         (twos_complement_arithmetic): Verify that long_int and time_t
75383         are two's complement (or unsigned, in the latter case).
75384
75385         mktime: check signed shifts on long_int and time_t, too
75386         * time/mktime.c (SHR): Check that shifts work as desired
75387         on the types long_int and time_t too, as SHR is used on
75388         such types.
75389
75390         mktime: do not assume 'long' is wide enough
75391         * time/mktime.c (verify): Move decl up.
75392         (long_int): New type.
75393         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
75394         to remove assumption in the code that 'long' is wide enough to
75395         store year values.  This assumption is not true on x32 and on
75396         some non-glibc platforms.
75397
75398         mktime: merge wrapv change from gnulib
75399         * time/mktime.c (WRAPV): New macro.
75400         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
75401         (guess_time_tm, __mktime_internal): Do not assume that signed
75402         integer overflow wraps around; modern compilers generate code
75403         where this assumption is no longer valid.
75404
75405 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75406
75407         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75408         Replace "jmp L(pseudo_end)" with "ret".
75409         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
75410         Likewise.
75411
75412 2012-05-23  Andreas Jaeger  <aj@suse.de>
75413
75414         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
75415         * sysdeps/unix/sysv/linux/poll.c: Remove file.
75416
75417 2012-05-23  Andreas Jaeger  <aj@suse.de>
75418             Maximilian Attems  <max@stro.at>
75419
75420         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
75421         New macros.
75422
75423 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75424
75425         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
75426         code so that pseudo_end is just ret and the stack pointer is
75427         correct also for static library in error case.
75428
75429 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
75430
75431         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75432         move to syscalls.list.
75433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
75434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
75435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
75436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
75437
75438         * manual/install.texi (Running make install): Do not mention Linux
75439         kernel version for which pt_chown is not needed.
75440         (Linux): Do not mention problems with nscd with 2.0 kernels.
75441         * INSTALL: Regenerated.
75442
75443 2012-05-23  Andreas Jaeger  <aj@suse.de>
75444
75445         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
75446         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
75447         macro.
75448         * sysdeps/unix/sysv/linux/s390/bits/mman.h
75449         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75450         * sysdeps/unix/sysv/linux/sh/bits/mman.h
75451         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75452         * sysdeps/unix/sysv/linux/i386/bits/mman.h
75453         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75454         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
75455         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75456         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
75457         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75458         * sysdeps/unix/sysv/linux/bits/in.h
75459         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
75460
75461 2012-05-22  Roland McGrath  <roland@hack.frob.com>
75462
75463         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
75464         (PREPARE_VERSION): Just use assert instead, it will be elided
75465         under [NDEBUG] anyway.
75466
75467 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75468
75469         * sysdeps/unix/sysv/linux/Makefile: Include
75470         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
75471         (sysdep_routines): Remove sysctl.
75472         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
75473         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
75474         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
75475         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
75476         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
75477
75478 2012-05-22  Andreas Jaeger  <aj@suse.de>
75479
75480         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
75481         that pseudo_end is just ret and the stack pointer is correct also
75482         for static library in error case.
75483
75484 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
75485
75486         [BZ #14122]
75487         * nss/nsswitch.c (defconfig_entries): New variable.
75488         (__nss_database_lookup): Don't leak defconfig entries.
75489         (nss_parse_service_list): Don't leak on error paths.
75490         (free_database_entries): New function.
75491         (free_defconfig): New function.
75492         (free_mem): Move common code to free_database_entries.
75493
75494 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75495
75496         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
75497         Add arch_prctl.
75498         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
75499
75500         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
75501         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
75502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
75503         New macro.
75504         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
75505         (INTERNAL_SYSCALL_TYPES): Likewise.
75506         (LOAD_ARGS_TYPES_[1-6]): Likewise.
75507         (LOAD_REGS_TYPES_[1-6]): Likewise.
75508         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
75509         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
75510
75511 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75512
75513         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
75514         copysignl for GLIBC_2_0.
75515         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
75516         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
75517         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
75518         logbl for GLIBC_2_0.
75519         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
75520         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
75521
75522 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75523
75524         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
75525         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
75526
75527         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75528         Use "neg %eax".
75529
75530         * time/mktime.c: Update copyright years.
75531
75532 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         mktime: merge comment-quoting-style change from gnulib
75535         * time/mktime.c: Quote 'like this' in comments.
75536         The GNU coding standards suggest that we no longer quote `like this',
75537         as "`" and "'" are typically rendered asymmetrically nowadays.
75538         The typical gnulib style is to quote 'like this' when quoting
75539         code, and "like this" when quoting English.
75540
75541         * time/mktime.c (compile-command): Add "-I.".
75542
75543         mktime: merge mktime-internal.h change from gnulib
75544         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
75545
75546         mktime: merge time_r change from gnulib
75547         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
75548
75549         mktime: merge DEBUG change from gnulib
75550         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
75551         case system <time.h> has a #define.
75552
75553         mktime: merge <sys/types.h> change from gnulib
75554         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
75555         since <time.t> is now guaranteed to define time_t.
75556
75557         mktime: merge HAVE_CONFIG_H change from gnulib
75558         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
75559
75560 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75561
75562         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75563         Use "neg %eax".
75564
75565         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
75566         __rlim_t cast.
75567         (struct rusage): Use anonymous union to pad each field to
75568         __syscall_slong_t.
75569
75570 2012-05-21  David S. Miller  <davem@davemloft.net>
75571
75572         * Makefules (o-iterator): Remove .s cases.
75573         (compile-command.s): Delete.
75574         (COMPILE.s): Delete.
75575         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
75576
75577 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
75578
75579         * configure.in (libc_cv_predef_stack_protector): Only consider
75580         "foobar" and "__stack_chk_fail" lines in libc_undefs.
75581         * configure: Regenerated.
75582
75583 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75584
75585         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
75586         New macro.  Use R*LP on int and pointer.
75587         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
75588         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
75589         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
75590         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
75591
75592         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
75593         [__WORDSIZE_TIME64_COMPAT32] instead of
75594         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
75595         (struct utmp): Likewise.
75596         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
75597         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
75598         Renamed to ...
75599         (__WORDSIZE_TIME64_COMPAT32): This.
75600         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
75601         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
75602         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
75603         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
75604         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
75605         (__WORDSIZE_TIME64_COMPAT32): New macro.
75606
75607 2012-05-21  Andreas Jaeger  <aj@suse.de>
75608
75609         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
75610         only if [SHARED]. Add prototype for __wcschr_ia32.
75611
75612 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75613
75614         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
75615         of %rbp unmolested in the jmp_buf while mangling the low bits.
75616         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
75617         unmolested high bits of %rbp while demangling the low bits.
75618         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75619
75620 2012-05-21  Andreas Jaeger  <aj@suse.de>
75621
75622         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
75623         * sunrpc/svc_simple.c: Use it for registerrpc.
75624         * sunrpc/xcrypt.c: Use it for passwd2des.
75625
75626         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
75627
75628 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75629
75630         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
75631         Don't define if [__SYSCALL_WORDSIZE != 32].
75632         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
75633         New macro.
75634
75635 2012-05-21  Bruno Haible  <bruno@clisp.org>
75636             Andreas Jaeger  <aj@suse.de>
75637
75638         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
75639         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
75640         inptr and inend for must_buffer_ch.
75641         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
75642         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
75643         * stdio-common/Makefile (tests): Remove bug15.
75644         (bug15-ENV): Remove macro.
75645         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
75646         anymore.
75647
75648 2012-05-19  Andreas Jaeger  <aj@suse.de>
75649             Roland McGrath  <roland@hack.frob.com>
75650
75651         * manual/contrib.texi: Completely rewritten. It contains now an
75652         alphabetical list of contributors and their contributions.
75653
75654 2012-05-21  Richard Henderson  <rth@twiddle.net>
75655
75656         * misc/getauxval.c (__getauxval): Use unsigned long int.
75657         * misc/sys/auxv.h: Include <sys/cdefs.h>.
75658         (getauxval): Use unsigned long int.
75659
75660 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
75661
75662         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75663
75664 2012-05-21  Roland McGrath  <roland@hack.frob.com>
75665
75666         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
75667         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
75668         __alignof__ (long double).
75669
75670 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75671
75672         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75673
75674 2012-05-20  Richard Henderson  <rth@twiddle.net>
75675
75676         * misc/getauxval.c: New file.
75677         * misc/sys/auxv.h: New file.
75678         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
75679         (routines): Add getauxval.
75680         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
75681         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
75682         * elf/dl-sysdep.c (_dl_auxv): Remove.
75683         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
75684         * elf/dl-support.c (_dl_auxv): New variable.
75685         (_dl_aux_init): Initialize it.
75686         * manual/startup.texi (Auxiliary Vector): New node.
75687         * sysdeps/generic/bits/hwcap.h: New file.
75688         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
75689         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
75690         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
75691         * sysdeps/sparc/sysdep.h: ... here.  Include it.
75692         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
75693         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
75694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
75695         Update.
75696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
75697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
75698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
75699         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
75700         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75701         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
75702         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
75703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
75704
75705 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75706
75707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
75708
75709 2012-05-19  David S. Miller  <davem@davemloft.net>
75710
75711         * sysdeps/sparc/fpu/libm-test-ulps: Update.
75712
75713 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75714
75715         [BZ #14123]
75716         * math/s_ccosh.c: Include <float.h>
75717         (__ccosh): Avoid internal overflow calculating sinh and cosh
75718         values before multiplying by sin and cos values.
75719         * math/s_ccoshf.c: Likewise.
75720         * math/s_ccoshl.c: Likewise.
75721         * math/s_csin.c: Likewise.
75722         * math/s_csinf.c: Likewise.
75723         * math/s_csinl.c: Likewise.
75724         * math/s_csinh.c: Likewise.
75725         * math/s_csinhf.c: Likewise.
75726         * math/s_csinhl.c: Likewise.
75727         * math/libm-test.inc (ccos_test): Add more tests.
75728         (ccosh_test): Likewise.
75729         (csin_test): Likewise.
75730         (csinh_test): Likewise.
75731         * sysdeps/i386/fpu/libm-test-ulps: Update.
75732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75733
75734 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
75735
75736         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
75737         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
75738
75739         * sysdeps/x86_64/x32/_itoa.h: Add comment.
75740
75741 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
75742
75743         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
75744         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
75745         * sysdeps/powerpc/soft-fp/Versions: Likewise.
75746         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
75747         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
75748         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
75749         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
75750         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
75751         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
75752         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
75753         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
75754         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
75755         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
75756         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
75757         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
75758         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
75759         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
75760         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
75761         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
75762         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
75763         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
75764         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
75765         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
75766         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
75767         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
75768         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
75769         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
75770         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
75771         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
75772         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
75773         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
75774
75775 2012-05-18  Andreas Jaeger  <aj@suse.de>
75776
75777         * csu/.gitignore: Delete.
75778
75779 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75780
75781         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
75782         (timex): Use __syscall_slong_t.
75783
75784 2012-05-18  Andreas Jaeger  <aj@suse.de>
75785             Carlos O'Donell  <carlos_odonell@mentor.com>
75786
75787         * manual/install.texi (Configuring and compiling): Update
75788         description about files modified in the source directory.
75789         * INSTALL: Regenerated.
75790
75791 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75792
75793         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
75794         value.  Use "or" to set return value to -1.
75795         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
75796         negate return value.
75797
75798 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
75799
75800         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
75801         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
75802         failure if the compiler has Graphite support disabled.
75803         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
75804         Likewise.
75805         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
75806         (CFLAGS-memmove.c): Likewise.
75807         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
75808         Likewise.
75809
75810 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
75811
75812         * sysdeps/x86_64/x32/_itoa.h: New file.
75813
75814         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
75815         getdents system call only if kernel and user dirents have the
75816         same d_ino and d_off.
75817
75818         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
75819         LLONG_MAX != LONG_MAX.
75820         (_itoa_word): Use _ITOA_WORD_TYPE on value.
75821         (_fitoa_word): Likewise.
75822
75823         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
75824         years.
75825         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
75826         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
75827         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
75828
75829         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
75830         include <bits/wordsize.h>.  Check __x86_64__ instead of
75831         __WORDSIZE.
75832         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
75833         if __x86_64__ is defined.  Use anonymous union on fpstate.
75834
75835         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
75836         anonymous union.
75837
75838 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
75839
75840         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
75841         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
75842         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
75843         Refer to _rtld_local_ro instead of _rtld_global_ro.
75844         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
75845         Likewise.
75846         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
75847         Likewise.
75848         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
75849         Likewise.
75850         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
75851         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
75852         of _rtld_global, and rtld_progname instead of _dl_argv[0].
75853
75854         [BZ #10882]
75855         * sysdeps/powerpc/powerpc32/dl-machine.c
75856         (__elf_machine_runtime_setup) [PROF]: Don't reference
75857         _dl_prof_resolve.
75858
75859 2012-05-18  Andreas Jaeger  <aj@suse.de>
75860
75861         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
75862         function only available for GCCs before 3.4 since GCC 3.4
75863         introduced a builtin.
75864         (lrint): Likewise.
75865         (llrintf): Likewise.
75866         (llrint): Likewise.
75867         (fmaxf): Likewise.
75868         (fmax): Likewise.
75869         (fminf): Likewise.
75870         (fmin): Likewise.
75871         (rint): Likewise.
75872         (rintf): Likewise.
75873         (nearbyint): Likewise.
75874         (nearbyintf): Likewise.
75875         (ceil): Likewise.
75876         (ceilf): Likewise.
75877         (floor): Likewise.
75878         (floorf): Likewise.
75879
75880 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75881
75882         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
75883         on both fields and cast pointer to __syscall_ulong_t.
75884
75885         * bits/types.h (__fsword_t): New type.
75886         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
75887         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
75888         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
75889         (__FSWORD_T_TYPE): Likewise.
75890         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
75891         (__FSWORD_T_TYPE): Likewise.
75892         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
75893         (__FSWORD_T_TYPE): Likewise.
75894         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
75895         (__FSWORD_T_TYPE): Likewise.
75896         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
75897         __SWORD_TYPE with __fsword_t.
75898         (statfs64): Likewise.
75899
75900 2012-05-17  David S. Miller  <davem@davemloft.net>
75901
75902         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
75903
75904 2012-05-17  Andreas Jaeger  <aj@suse.de>
75905
75906         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
75907         warning.
75908
75909 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75910
75911         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
75912
75913 2012-05-17  Andreas Jaeger  <aj@suse.de>
75914
75915         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
75916         when it is used.
75917
75918 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
75919
75920         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
75921
75922 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
75923
75924         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
75925         * sysdeps/x86_64/tst-mallocalign1.c: New file.
75926
75927 2012-05-17  Andreas Jaeger  <aj@suse.de>
75928             Carlos O'Donell  <carlos_odonell@mentor.com>
75929
75930         [BZ #14059]
75931         * sysdeps/x86_64/multiarch/init-arch.h
75932         (bit_YMM_Usable): Rename to...
75933         (bit_AVX_Usable): ... this.
75934         (bit_FMA4_Usable): New macro.
75935         (bit_XMM_state): New macro.
75936         (bit_YMM_state): New macro.
75937         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
75938         [__ASSEMBLER__] (index_AVX_Usable): ... this.
75939         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
75940         (CPUID_OSXSAVE): New macro.
75941         (CPUID_AVX): New macro.
75942         (CPUID_FMA4): New macro.
75943         (index_YMM_Usable): Rename to...
75944         (index_AVX_Usable): ... this.
75945         (HAS_AVX): Use HAS_ARCH_FEATURE.
75946         (HAS_FMA4): Likewise.
75947         (HAS_YMM_USABLE): Remove.
75948         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75949         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
75950         are present.
75951         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
75952         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
75953         * sysdeps/x86_64/multiarch/Makefile: Likewise.
75954         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
75955         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
75956
75957 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
75958
75959         * math/libm-test.c: Support platforms without multiple rounding modes.
75960         * math/bug-nextafter.c: Support platforms without FP exceptions.
75961         * math/bug-nexttoward.c: Likewise.
75962         * math/test-fenv.c: Likewise.
75963         * math/test-misc.c: Likewise.
75964         * stdlib/bug-getcontext.c: Likewise.
75965
75966 2012-05-17  Andreas Jaeger  <aj@suse.de>
75967
75968         * manual/examples/search.c (critter_cmp): Change signature to
75969         avoid warnings.
75970         * manual/string.texi (Collation Functions): Likewise.
75971
75972 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
75973
75974         * bits/types.h: Fold copyright years.
75975         * bits/typesizes.h: Likewise.
75976         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
75977         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
75978         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
75979         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
75980         * time/time.h: Likewise.
75981
75982 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
75983
75984         [BZ #208]
75985         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
75986         in instead of returning them.  Return void.
75987         (__libc_mallinfo): Accumulate over all arenas.
75988         (__malloc_stats): Adjust for change in int_mallinfo interface.
75989
75990 2012-05-16  Roland McGrath  <roland@hack.frob.com>
75991
75992         [BZ #10375]
75993         * configure.in (NM): Add AC_CHECK_TOOL for it.
75994         (libc_extra_cflags): New substituted variable.
75995         Check for -fstack-protector being used implicitly.
75996         * configure: Regenerated.
75997         * config.make.in (config-extra-cflags): New variable,
75998         gets @libc_extra_cflags@.
75999         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76000
76001         [BZ #10375]
76002         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76003         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76004         * configure: Regenerated.
76005         * config.make.in (CPPUNDEFS): New substituted variable.
76006         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76007         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76008         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76009
76010 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76011
76012         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76013         (mq_attr): Use __syscall_slong_t.
76014
76015 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76016
76017         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76018         Check __x86_64__ instead of __WORDSIZE.
76019         (_STAT_VER_LINUX): Likewise.
76020         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76021         __syscall_ulong_t and __syscall_slong_t.
76022         (stat64): Likewise.
76023
76024 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76025
76026         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76027
76028 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76029
76030         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76031
76032 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76033
76034         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76035         __syscall_ulong_t.
76036
76037         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76038         include <bits/wordsize.h>.  Check __x86_64__ instead of
76039         __WORDSIZE.
76040         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76041         defined.
76042         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76043
76044         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76045         include <bits/wordsize.h>.  Check __x86_64__ instead of
76046         __WORDSIZE.
76047         (user_regs_struct): Use "__extension__ unsigned long long"
76048         instead of "unsigned long" if __x86_64__ is defined.
76049         (user): Likewise.  Pad after pointer field if __ILP32__ is
76050         defined.
76051
76052 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76053
76054         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76055         versions 5 to 9.
76056         * configure: Regenerated.
76057         * manual/install.texi (texinfo): Increase version requirement to
76058         4.5 or later.
76059         * INSTALL: Regenerated.
76060
76061         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76062
76063 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76064
76065         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76066
76067         * sysdeps/x86_64/x32/ffs.c: New file.
76068
76069         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76070         __syscall_ulong_t.
76071         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76072         defined.  Use __syscall_ulong_t.
76073         (shminfo): Use __syscall_ulong_t.
76074         (shm_info): Likewise.
76075
76076         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76077         __syscall_ulong_t.
76078
76079         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76080         <bits/wordsize.h>.
76081         (msgqnum_t): Use __syscall_ulong_t.
76082         (msglen_t): Likewise.
76083         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76084         __syscall_ulong_t.
76085
76086         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76087         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76088
76089         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76090
76091         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76092         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76093
76094         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76095         __syscall_slong_t.
76096
76097         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76098         include <bits/wordsize.h>.  Check __x86_64__ instead of
76099         __WORDSIZE.
76100
76101         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76102         "unsigned long long int" if __x86_64__ is defined.
76103         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76104
76105         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76106         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76107         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76108
76109         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76110         <stdint.h>.
76111         (GET_PC): Cast to uintptr_t first.
76112         (GET_FRAME): Likewise.
76113         (GET_STACK): Likewise.
76114
76115         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76116         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76117         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76118         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76119         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76120         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76121         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76122         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76123         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76124         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76125         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76126         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76127         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76128         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76129         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76130         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76131         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76132         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76133         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76134         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76135         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76136         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76137         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76138         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76139         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76140         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76141         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76142         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76143         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76144
76145 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76146
76147         * Makerules (+depfiles): Also collect depfiles from .oS in
76148         $(extra-objs).
76149         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76150         .oS, $(libnldbl-routines)).
76151
76152         * Makerules (native-compile-mkdep-flags): Define.
76153         * sunrpc/Makefile (extra-objs): Add $(addprefix
76154         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76155         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76156         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76157         calling $(make-target-directory).
76158
76159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76160
76161         * bits/types.h (__snseconds_t): Removed.
76162         * time/time.h (struct timespec): Replace __snseconds_t with
76163         __syscall_slong_t.
76164         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76165         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76166         Likewise.
76167         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76168         (__SNSECONDS_T_TYPE): Likewise.
76169         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76170         (__SNSECONDS_T_TYPE): Likewise.
76171         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76172         (__SNSECONDS_T_TYPE): Likewise.
76173
76174 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76175
76176         * sysdeps/mach/hurd/bits/typesizes.h
76177         (__SYSCALL_SLONG_TYPE): New macro.
76178         (__SYSCALL_ULONG_TYPE): Likewise.
76179
76180 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76181
76182         * bits/types.h (__syscall_slong_t): New type.
76183         (__syscall_ulong_t): Likewise.
76184
76185         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76186         (__SYSCALL_ULONG_TYPE): Likewise.
76187         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76188         (__SYSCALL_SLONG_TYPE): Likewise.
76189         (__SYSCALL_ULONG_TYPE): Likewise.
76190         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76191         (__SYSCALL_SLONG_TYPE): Likewise.
76192         (__SYSCALL_ULONG_TYPE): Likewise.
76193         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76194         (__SYSCALL_SLONG_TYPE): Likewise.
76195         (__SYSCALL_ULONG_TYPE): Likewise.
76196
76197 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76198
76199         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76200         Add sigaltstack-offsets.sym.
76201         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76202         <sigaltstack-offsets.h>.
76203         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76204         longjmp_msg pointer.
76205         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76206         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76207         signal stack.
76208         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76209
76210 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76211
76212         * elf/stackguard-macros.h: Remove file.
76213         * sysdeps/generic/stackguard-macros.h: New file.
76214         * sysdeps/i386/stackguard-macros.h: Likewise.
76215         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76216         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76217         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76218         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76219         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76220         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76221         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76222         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76223         <elf/stackguard-macros.h>.
76224
76225         [BZ #14109]
76226         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76227         __aligned__ in attribute.
76228         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76229         (gregset_t): Likewise.
76230
76231 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76232
76233         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76234         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76235         * sysdeps/x86_64/x32/Implies-after: New file.
76236
76237 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76238
76239         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76240         and access return value for _dl_profile_fixup.  Use R10_LP to
76241         load frame size.
76242
76243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76244
76245         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76246
76247 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76248
76249         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76250         * sysdeps/x86_64/x32/sysdep.h: New file.
76251
76252 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76253
76254         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76255         * sysdeps/x86_64/setjmp.S: Likewise.
76256
76257 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76258
76259         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76260         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76261         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76262         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76263         remove unused global constant.
76264
76265 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76266
76267         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76268         include of <not-cancel.h>.
76269
76270 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76271
76272         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76273
76274 2012-05-15  Jeff Law  <law@redhat.com>
76275             Andreas Jaeger  <aj@suse.de>
76276
76277         [BZ #13594]
76278         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76279         out from...
76280         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76281         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76282         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76283         code changing __hst_map_handle.map.
76284
76285 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76286
76287         * configure.in (sysnames): Look for Implies-before and Implies-after
76288         files.
76289         * configure: Regenerated.
76290
76291 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76292
76293         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76294         8-byte data alignment with LP_SIZE alignment.
76295
76296 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76297
76298         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76299         into R10_LP.
76300
76301 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76302
76303         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76304
76305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76306
76307         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
76308         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
76309         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
76310         Likewise.
76311         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76312
76313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76314
76315         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
76316         (stackinfo_sub_sp): Likewise.
76317
76318 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76319
76320         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
76321         RAX_LP.
76322
76323 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76324
76325         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
76326         into R*_LP.
76327
76328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76329
76330         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
76331         sizes into R*_LP.
76332
76333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76334
76335         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
76336
76337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76338
76339         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
76340         into R11_LP and load __x86_64_shared_cache_size_half into
76341         R8_LP.
76342
76343 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76344
76345         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
76346         R8_LP.
76347
76348 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76349
76350         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
76351         logb for POWER7.
76352         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
76353         logbf for POWER7.
76354         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
76355         logbl for POWER7.
76356         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
76357         powerpc32/power7/fpu/s_logb.c via #include.
76358         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
76359         powerpc32/power7/fpu/s_logbf.c via #include.
76360         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
76361         powerpc32/power7/fpu/s_logbl.c via #include.
76362
76363 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76364
76365         * README.libm: Remove file.
76366
76367 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76368
76369         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
76370         count for x32.  Use R*_LP and omit operand-size suffix.
76371
76372 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76373
76374         * shlib-versions: Move x86_64-.*-linux.* entries to ...
76375         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
76376         * sysdeps/x86_64/x32/shlib-versions: New file.
76377
76378 2012-05-14  Roland McGrath  <roland@hack.frob.com>
76379
76380         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
76381         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
76382         Use _dl_fatal_printf instead.
76383
76384 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76385
76386         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
76387         set if not set by the user.  Do not allow for being unset.
76388         * sysdeps/unix/sysv/linux/configure: Regenerated.
76389
76390 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76391
76392         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
76393         the `q' suffix from lea and replace .quad with ASM_ADDR.
76394
76395 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76396
76397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
76398         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
76399         instead of $17.
76400         (PTR_DEMANGLE): Likewise.
76401
76402 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76403
76404         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
76405         (LP_OP): Likewise.
76406         (ASM_ADDR): Likewise.
76407         (RAX_LP): Likewise.
76408         (RBP_LP): Likewise.
76409         (RBX_LP): Likewise.
76410         (RCX_LP): Likewise.
76411         (RDI_LP): Likewise.
76412         (RSI_LP): Likewise.
76413         (RSP_LP): Likewise.
76414         (R8_LP): Likewise.
76415         (R9_LP): Likewise.
76416         (R10_LP): Likewise.
76417         (R10_LP): Likewise.
76418         (R11_LP): Likewise.
76419         (R12_LP): Likewise.
76420         (R13_LP): Likewise.
76421         (R14_LP): Likewise.
76422         (R15_LP): Likewise.
76423
76424 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76425
76426         * sysdeps/x86_64/x32/dl-machine.h: New file.
76427
76428 2012-05-14  Andreas Jaeger  <aj@suse.de>
76429
76430         * manual/Makefile (subdir): Remove export of subdir.
76431         (all): Remove target.
76432         (.PHONY): Remove all from list.
76433         (mkinstalldirs): Remove.
76434         (.PHONY): Remove installdirs from list.
76435         ($(inst_infodir)/libc.info): Use make-target-directory.
76436         (installdirs): Remove.
76437         (subdir_%): Remove.
76438         (glibc-targets): Remove.
76439         (lib): Remove.
76440         (stubs): Remove.
76441         ($(objpfx)stubs ../po/manual.pot): Remove.
76442         ($(objpfx)stamp%): Remove.
76443         (make-target-directory): Remove.
76444         (subdir_install): Remove.
76445         (routines): Remove.
76446         (aux): Remove.
76447         (sources): Remove.
76448         (objects): Remove.
76449         (headers): Remove.
76450
76451         [BZ #13750]
76452         * manual/.gitignore: Remove, it's not needed anymore.
76453         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
76454         all files in it.
76455         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
76456         directory.
76457         (texis): Renamed to $(objpfx)texis.
76458         (texis-path): New, contains path to generated files.
76459         (chapters.%): Use texis-path for complete path, add extra argument
76460         libc-texinfo.sh.
76461         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
76462         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
76463         (summary,texi, stamp-summary): Use complete path of
76464         files. Generate files in build dir.
76465         (dir-add.texi): Build in build dir.
76466         (libm-err.texi,stamp-libm-err): Likewise.
76467         (version.texi, stamp-version): Likewise.
76468         (.%c.texi): Likewise.
76469         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
76470         (mostlyclean): Remove target.
76471         (realclean): Remove target.
76472         (generated): Add new variable with contents from mostlyclean and
76473         realclean, remove entries duplicated in common-mostlyclean, add
76474         stamp-libm-err and stamp-version.
76475         (generated-dirs): Add libc directory.
76476         ($(inst_infodir)/libc.info): Install files from build dir.
76477
76478         * manual/install.texi (Configuring and compiling): Adjust since
76479         the info files are not part of the tar ball anymore.
76480
76481 2012-05-14  Andreas Jaeger  <aj@suse.de>
76482
76483         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
76484         variable.
76485
76486 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76487
76488         [BZ #13717]
76489         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
76490         to 2.2.0 where earlier.
76491         * sysdeps/unix/sysv/linux/configure: Regenerated.
76492         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
76493         Remove conditional code.
76494         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
76495         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
76496         Remove conditional code.
76497         [!__NR_lchown]: Likewise.
76498         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76499         [__NR_lchown]: Likewise.
76500         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
76501         comment referencing __ASSUME_LCHOWN_SYSCALL.
76502         * sysdeps/unix/sysv/linux/i386/sigaction.c
76503         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76504         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76505         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
76506         Remove conditional code.
76507         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
76508         (__protocol_available): Remove #if 0 code.
76509         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
76510         conditional code.
76511         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
76512         * sysdeps/unix/sysv/linux/kernel-features.h
76513         (__ASSUME_GETCWD_SYSCALL): Don't define.
76514         (__ASSUME_REALTIME_SIGNALS): Likewise.
76515         (__ASSUME_PREAD_SYSCALL): Likewise.
76516         (__ASSUME_PWRITE_SYSCALL): Likewise.
76517         (__ASSUME_POLL_SYSCALL): Likewise.
76518         (__ASSUME_LCHOWN_SYSCALL): Likewise.
76519         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
76520         non-SPARC.
76521         (__ASSUME_SIOCGIFNAME): Don't define.
76522         (__ASSUME_MSG_NOSIGNAL): Likewise.
76523         (__ASSUME_SENDFILE): Define unconditionally.
76524         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
76525         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
76526         conditional code.
76527         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
76528         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
76529         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76530         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76531         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
76532         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
76533         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
76535         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76536         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
76538         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76539         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
76541         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76542         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
76544         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76545         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
76547         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76548         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
76550         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
76551         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
76553         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76554         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
76556         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76557         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76558         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
76559         Remove conditional code.
76560         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76561         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76562         Remove conditional code.
76563         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76564         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
76565         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
76566         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76567         Remove conditional code.
76568         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76569         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
76570         Remove conditional code.
76571         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76572         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
76573         Remove conditional code.
76574         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76575         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
76576         Remove conditional code.
76577         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
76578         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
76579         Remove conditional code.
76580         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76581         * sysdeps/unix/sysv/linux/sh/pwrite64.c
76582         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
76583         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
76584         * sysdeps/unix/sysv/linux/sigaction.c
76585         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76586         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76587         * sysdeps/unix/sysv/linux/sigpending.c
76588         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76589         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76590         * sysdeps/unix/sysv/linux/sigprocmask.c
76591         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76592         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76593         * sysdeps/unix/sysv/linux/sigsuspend.c
76594         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76595         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76596         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
76597         (__libc_missing_rt_sigs): Remove.
76598         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
76599         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
76600         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
76601         Remove conditional code.
76602         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
76603         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
76604         return 1.
76605         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
76606         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
76607         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
76608         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
76609
76610 2012-05-14  Andreas Jaeger  <aj@suse.de>
76611
76612         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
76613         it's not used in glibc.
76614         (__coshm1): Likewise.
76615         (__acosh1p): Likewise.
76616         (__sgn): Likewise.
76617
76618         * manual/string.texi (Copying and Concatenation): Add missing
76619         variable in concat example.
76620         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
76621
76622 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76623
76624         [BZ #14103]
76625         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
76626         __builtin_clzl with __builtin_clzll.
76627
76628 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76629
76630         [BZ #14104]
76631         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
76632         libc_freeres_ptr.
76633
76634 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76635
76636         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
76637         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
76638         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
76639         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
76640
76641 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
76642
76643         * NEWS: Update ia64 info.
76644
76645 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
76646
76647         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
76648         used as bcopy.
76649
76650 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
76651
76652         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
76653         * sysdeps/unix/syscalls.list (dup3): Likewise.
76654         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
76655         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
76656
76657 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76658
76659         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
76660         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
76661
76662 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
76663
76664         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
76665         thread pointer.
76666         (TLS_IE): Use mov/add instead of movq/addq to load thread
76667         pointer.
76668         (TLS_GD_PREFIX): New.
76669         (TLS_GD): Use it.
76670
76671 2012-05-11  David S. Miller  <davem@davemloft.net>
76672
76673         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
76674         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
76675         (_FPU_SETCW): Likewise.
76676
76677 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76678
76679         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
76680         is 32-byte aligned.
76681
76682 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
76683
76684         [BZ #11837]
76685         * iconvdata/gb18030.c: Update tables.
76686         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
76687         characters specially.
76688         (BODY for TO_LOOP): Add encoding of missing ranges.
76689
76690 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
76691
76692         [BZ #13673]
76693         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
76694         * sysdeps/mach/hurd/dup3.c: Likewise.
76695         * sysdeps/mach/hurd/readlinkat.c: Likewise.
76696         * sysdeps/powerpc/memmove.c:: Likewise.
76697
76698 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76699
76700         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
76701         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
76702
76703 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
76704
76705         * elf/elf.h (R_X86_64_RELATIVE64): New.
76706         (R_X86_64_NUM): Updated.
76707         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
76708         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
76709         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
76710         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
76711         tst-quad1pie tst-quad2pie
76712         (modules-names): Add tst-quadmod1 tst-quadmod2.
76713         ($(objpfx)tst-quad1): New dependency.
76714         ($(objpfx)tst-quad2): Likewise.
76715         ($(objpfx)tst-quad1pie): Likewise.
76716         ($(objpfx)tst-quad2pie): Likewise.
76717         * sysdeps/x86_64/tst-quad1.c: New file.
76718         * sysdeps/x86_64/tst-quad1pie.c: New file.
76719         * sysdeps/x86_64/tst-quad2.c: Likewise.
76720         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
76721         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
76722         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
76723         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
76724         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
76725
76726 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76727
76728         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
76729         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
76730         * streams/stropts.h (t_scalar_t): Define type.
76731
76732         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
76733         (_PATH_PRESERVE): Set to "/var/lib".
76734         (_PATH_RWHODIR): Set to "/var/spool/rwho".
76735
76736         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
76737         instead of int.
76738
76739         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
76740         if __dir_mkfile succeeded.
76741
76742         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
76743         checking for _hurd_dtablesize.  Unlock it right after having
76744         finished _hurd_dtable allocation.
76745
76746 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76747
76748         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
76749         * sysdeps/mach/hurd/configure: Regenerated.
76750         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
76751         special-casing to...
76752         * sysdeps/gnu/configure.in: ... this new file.
76753         * sysdeps/unix/sysv/linux/configure: Regenerated.
76754         * sysdeps/gnu/configure: New generated file.
76755
76756         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
76757         for Linux: use nsec instead of usec, as well as:
76758         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
76759         members of type struct timespec.
76760         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
76761         New macros.
76762         (struct stat64): Likewise.
76763         (_STATBUF_ST_NSEC): New macro.
76764         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
76765
76766         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
76767         __strtoul_internal rather than strtoul.
76768
76769 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76770
76771         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
76772         and reject them.
76773
76774 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76775
76776         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
76777         which preserves existing values.
76778         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
76779
76780 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76781
76782         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
76783         TIMEOUT values.  Return EINVAL for NFDS values either negative or
76784         greater than FD_SETSIZE.
76785
76786 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76787
76788         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
76789         allocated, call __vm_protect to finish enabling the existing space, and
76790         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
76791         allocate the remainder.
76792
76793 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76794
76795         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
76796         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
76797
76798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76799
76800         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
76801         sysdeps/mach/hurd/readlink.c.
76802
76803         * posix/tst-sysconf.c (posix_options): Only use
76804         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
76805         _POSIX_SYNCHRONIZED_IO when they are defined
76806         * sysdeps/mach/hurd/bits/posix_opt.h:
76807         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
76808         (_XOPEN_REALTIME): Undefine macro.
76809         (_XOPEN_REALTIME_THREADS): Undefine macro.
76810         (_XOPEN_SHM): Undefine macro.
76811         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
76812         macro to -1.
76813         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
76814         macro to -1.
76815         (_POSIX_ASYNC_IO): Undefine macro.
76816         (_POSIX_PRIORITIZED_IO): Undefine macro.
76817         (_POSIX_SPIN_LOCKS): Define macro to -1.
76818
76819         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
76820         SA_NODEFER, SA_RESETHAND.
76821         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
76822         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
76823         F_DUPFD_CLOEXEC.
76824
76825 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76826
76827         * elf/Makefile (pldd-modules): Define unconditionally.
76828
76829 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76830
76831         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
76832
76833 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76834
76835         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
76836         Return ENOENT when name is empty.
76837         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
76838
76839 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76840
76841         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
76842
76843         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
76844
76845 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76846
76847         Fix mlock in all cases except non-readable pages.
76848         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
76849         instead of VM_PROT_ALL as parameter to __vm_wire function.
76850
76851         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
76852         (__mkdir): When path is `/', just fail with EEXIST.
76853         * sysdeps/mach/hurd/mkdirat.c: Likewise.
76854
76855 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76856
76857         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
76858         <sys/uio.h> (for writev).
76859         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
76860         and <sys/param.h> (for MIN).
76861
76862 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
76863
76864         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
76865         REQUESTED_TIME.  Properly set the remaining time and return EINTR
76866         if interrupted.
76867
76868 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76869
76870         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
76871         Depend on against $(link-rpcuserlibs).
76872
76873 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76874
76875         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
76876         (__libc_stack_end): Do not use attribute_relro.
76877         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
76878         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
76879         to libthread-provided value.
76880         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
76881         attribute_relro.
76882
76883 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76884
76885         [BZ #3748]
76886         * bits/libc-lock.h (__libc_once_get): New macro.
76887         * sysdeps/mach/bits/libc-lock.h: Likewise.
76888         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
76889         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
76890         instead of using implementation details.
76891
76892         * libio/fileops.c: Unconditionally include <kernel-features.h>.
76893         * libio/freopen.c: Likewise.
76894         * libio/freopen64.c: Likewise.
76895         * misc/syslog.c: Likewise.
76896         * nscd/connections.c: Likewise.
76897         * nscd/netgroupcache.c: Likewise.
76898         * sysdeps/posix/getcwd.c: Likewise.
76899
76900 2012-05-10  Roland McGrath  <roland@hack.frob.com>
76901
76902         * math/w_ilogbf.c: Add #include <limits.h>.
76903
76904 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76905
76906         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
76907         path instead of returning without unlocking.
76908
76909         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
76910         immediate-write ioctls.
76911         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
76912
76913 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76914
76915         * sysdeps/mach/hurd/i386/init-first.c (init): Use
76916         __builtin_frame_address instead of making assumptions about the
76917         location of the return address relative to DATA.  Force early load of
76918         the return address.
76919         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
76920         __builtin_frame_address.
76921
76922         dup3 for GNU Hurd.
76923         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
76924         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
76925         implement dup3 and do some further code clean-ups.
76926         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
76927         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
76928
76929 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76930
76931         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
76932
76933         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
76934         HURD_CRITICAL_END around holding _hurd_dtable_lock.
76935         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
76936         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
76937         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
76938         d->port.lock.
76939
76940         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
76941         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
76942         when handler == SIG_ERR, not when handler != SIG_ERR.
76943
76944 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76945
76946         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
76947         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
76948         definitions.
76949
76950         accept4 for GNU Hurd.
76951         * include/sys/socket.h (__libc_accept4): New prototype.
76952         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
76953         to implement __libc_accept4.
76954         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
76955         __libc_accept4.
76956         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
76957
76958         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
76959         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
76960         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
76961         signal-defines.sym.
76962
76963 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76964
76965         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
76966
76967 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
76968
76969         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
76970         assertion on O_CLOEXEC flag.
76971         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
76972         * hurd/intern-fd.c: Likewise.
76973         * hurd/port2fd.c: Likewise.
76974
76975 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76976
76977         [BZ #3906]
76978         * bits/in.h (IPV6_PKTINFO): Define new macro.
76979         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
76980
76981 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76982
76983         [BZ #13954]
76984         [BZ #13955]
76985         [BZ #13956]
76986         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
76987         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
76988         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
76989         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
76990         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
76991         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
76992         * math/libm-test.inc (logb_test) : Additional logb tests.
76993
76994 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
76995             Andreas Jaeger  <aj@suse.de>
76996
76997         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
76998         * configure: Regenerated.
76999         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77000         * config.make.in (link-obsolete-rpc): New substituted variable.
77001         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77002         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77003         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77004         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77005         so that libc.a contains the symbols.
77006         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77007         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77008         * sunrpc/auth_none.c: Likewise.
77009         * sunrpc/auth_unix.c: Likewise.
77010         * sunrpc/authdes_prot.c: Likewise.
77011         * sunrpc/authuxprot.c: Likewise.
77012         * sunrpc/clnt_gen.c: Likewise.
77013         * sunrpc/clnt_perr.c: Likewise.
77014         * sunrpc/clnt_raw.c: Likewise.
77015         * sunrpc/clnt_simp.c: Likewise.
77016         * sunrpc/clnt_tcp.c: Likewise.
77017         * sunrpc/clnt_udp.c: Likewise.
77018         * sunrpc/clnt_unix.c: Likewise.
77019         * sunrpc/des_crypt.c: Likewise.
77020         * sunrpc/des_soft.c: Likewise.
77021         * sunrpc/get_myaddr.c: Likewise.
77022         * sunrpc/key_call.c: Likewise.
77023         * sunrpc/key_prot.c: Likewise.
77024         * sunrpc/netname.c: Likewise.
77025         * sunrpc/pm_getmaps.c: Likewise.
77026         * sunrpc/pm_getport.c: Likewise.
77027         * sunrpc/pmap_clnt.c: Likewise.
77028         * sunrpc/pmap_prot.c: Likewise.
77029         * sunrpc/pmap_prot2.c: Likewise.
77030         * sunrpc/pmap_rmt.c: Likewise.
77031         * sunrpc/publickey.c: Likewise.
77032         * sunrpc/rpc_cmsg.c: Likewise.
77033         * sunrpc/rpc_common.c: Likewise.
77034         * sunrpc/rpc_dtable.c: Likewise.
77035         * sunrpc/rpc_prot.c: Likewise.
77036         * sunrpc/rpc_thread.c: Likewise.
77037         * sunrpc/rtime.c: Likewise.
77038         * sunrpc/svc.c: Likewise.
77039         * sunrpc/svc_auth.c: Likewise.
77040         * sunrpc/svc_raw.c: Likewise.
77041         * sunrpc/svc_run.c: Likewise.
77042         * sunrpc/svc_tcp.c: Likewise.
77043         * sunrpc/svc_udp.c: Likewise.
77044         * sunrpc/svc_unix.c: Likewise.
77045         * sunrpc/svcauth_des.c: Likewise.
77046         * sunrpc/xcrypt.c: Likewise.
77047         * sunrpc/xdr.c: Likewise.
77048         * sunrpc/xdr_array.c: Likewise.
77049         * sunrpc/xdr_float.c: Likewise.
77050         * sunrpc/xdr_intXX_t.c: Likewise.
77051         * sunrpc/xdr_mem.c: Likewise.
77052         * sunrpc/xdr_rec.c: Likewise.
77053         * sunrpc/xdr_ref.c: Likewise.
77054         * sunrpc/xdr_sizeof.c: Likewise.
77055         * sunrpc/xdr_stdio.c: Likewise.
77056
77057 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77058
77059         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77060         change.  Update copyright years.
77061
77062 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77063
77064         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77065
77066 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77067             Joseph Myers  <joseph@codesourcery.com>
77068             Paul Pluzhnikov  <ppluzhnikov@google.com>
77069
77070         [BZ #14012]
77071         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77072         requiring rpcgen.
77073         [cross-compiling] (extra-libs): Likewise.
77074         [cross-compiling] (extra-libs-others): Likewise.
77075         [cross-compiling] (librpcsvc-routines): Likewise.
77076         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77077         [cross-compiling] (omit-deps): Likewise.
77078         (sunrpc-CPPFLAGS): New variable.
77079         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77080         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77081         (cross-rpcgen-objs): New variable.
77082         (extra-objs): Append $(cross-rpcgen-objs).
77083         ($(cross-rpcgen-objs)): New rule.
77084         ($(objpfx)cross-rpcgen): Likewise.
77085         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77086         comment.
77087         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77088         ($(objpfx)x%.stmp): Likewise.
77089         * sunrpc/proto.h [IS_IN_build] (_): Define.
77090         [IS_IN_build] (_libc_intl_domainname): Likewise.
77091
77092 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77093
77094         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77095         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77096         and R_X86_64_TPOFF64.
77097
77098 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77099
77100         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77101         sysdeps/unix/sysv/syscalls.list.
77102         (stime): Likewise.
77103         (utime): Likewise.
77104         * sysdeps/unix/sysv/syscalls.list: Remove file.
77105
77106 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         [BZ #3440]
77109         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77110         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77111         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77112         (__LC_IDENTIFICATION): Make these macros useful in #if
77113         expressions, as required by C99.
77114
77115 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77116
77117         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77118         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77119         after this.
77120
77121 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77122
77123         * stdlib/longlong.h: Updated from GCC.
77124
77125 2012-05-09  Andreas Jaeger  <aj@suse.de>
77126
77127         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77128         default is first entry.
77129         (run_mode): Set type.
77130         (main): Remove informal message about syslog.
77131         (options): Fix typo.
77132
77133         [BZ #14053]
77134         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77135         to asm.
77136         (lrint): Likewise.
77137         (llrintf): Likewise.
77138         (llrint): Likewise.
77139         (rint): Likewise.
77140         (rintf): Likewise.
77141         (nearbyint): Likewise.
77142         (nearbyintf): Likewise.
77143
77144 2012-05-09  Andreas Jaeger  <aj@suse.de>
77145             Pedro Alves  <palves@redhat.com>
77146
77147         * nscd/nscd.c (run_mode): Use enum.
77148         (main): Cleanup coding style issue.
77149
77150 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77151             Andreas Jaeger  <aj@suse.de>
77152
77153         * nscd/nscd.c (go_background): Replaced with...
77154         (run_mode): ... this.
77155         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77156         (options): Add -F --foreground.
77157         (main): Implement it.
77158         (parse_opt): Parse it.
77159
77160 2012-05-09  Andreas Jaeger  <aj@suse.de>
77161
77162         [BZ #14083]
77163         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77164         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77165         -Wconversion warning.
77166         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77167         Likewise.
77168
77169 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77170
77171         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77172         == 0.
77173         (LC_ALL): Use macro-int-constant.
77174         (LC_COLLATE): Likewise.
77175         (LC_CTYPE): Likewise.
77176         (LC_MESSAGES): Likewise.
77177         (LC_MONETARY): Likewise.
77178         (LC_NUMERIC): Likewise.
77179         (LC_TIME): Likewise.
77180         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77181         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77182         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77183         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77184         Specify type.
77185         [C99-based standards] (float_t): Expect type.
77186         [C99-based standards] (double_t): Expect type.
77187         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77188         type.
77189         [C99-based standards] (HUGE_VALL): Likewise.
77190         [C99-based standards] (INFINITY): Likewise.
77191         [C99-based standards] (NAN): Likewise.
77192         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77193         [C99-based standards] (FP_NAN): Likewise.
77194         [C99-based standards] (FP_NORMAL): Likewise.
77195         [C99-based standards] (FP_SUBNORMAL): Likewise.
77196         [C99-based standards] (FP_ZERO): Likewise.
77197         [C99-based standards] (FP_FAST_FMA): Use
77198         optional-macro-int-constant.  Specify type.  Require == 1.
77199         [C99-based standards] (FP_FAST_FMAF): Likewise.
77200         [C99-based standards] (FP_FAST_FMAL): Likewise.
77201         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77202         [C99-based standards] (FP_ILOGBNAN): Likewise.
77203         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77204         Specify type.
77205         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77206         [C99-based standards] (math_errhandling): Specify type.
77207         [ISO99 || ISO11] (signgam): Do not allow.
77208         [non-C99-based standards] (copysignf): Do not allow.
77209         [non-C99-based standards] (exp2f): Likewise.
77210         [non-C99-based standards] (log2f): Likewise.
77211         [non-C99-based standards] (modff): Allow.
77212         [non-C99-based standards] (erff): Do not allow.
77213         [non-C99-based standards] (erfcf): Likewise.
77214         [non-C99-based standards] (gammaf): Likewise.
77215         [non-C99-based standards] (hypotf): Likewise.
77216         [non-C99-based standards] (j0f): Likewise.
77217         [non-C99-based standards] (j1f): Likewise.
77218         [non-C99-based standards] (jnf): Likewise.
77219         [non-C99-based standards] (lgammaf): Likewise.
77220         [non-C99-based standards] (tgammaf): Likewise.
77221         [non-C99-based standards] (y0f): Likewise.
77222         [non-C99-based standards] (y1f): Likewise.
77223         [non-C99-based standards] (ynf): Likewise.
77224         [non-C99-based standards] (isnanf): Likewise.
77225         [non-C99-based standards] (acoshf): Likewise.
77226         [non-C99-based standards] (asinhf): Likewise.
77227         [non-C99-based standards] (atanhf): Likewise.
77228         [non-C99-based standards] (cbrtf): Likewise.
77229         [non-C99-based standards] (expm1f): Likewise.
77230         [non-C99-based standards] (ilogbf): Likewise.
77231         [non-C99-based standards] (log1pf): Likewise.
77232         [non-C99-based standards] (logbf): Likewise.
77233         [non-C99-based standards] (nextafterf): Likewise.
77234         [non-C99-based standards] (remainderf): Likewise.
77235         [non-C99-based standards] (rintf): Likewise.
77236         [non-C99-based standards] (scalbf): Likewise.
77237         [non-C99-based standards] (copysignl): Likewise.
77238         [non-C99-based standards] (exp2l): Likewise.
77239         [non-C99-based standards] (log2l): Likewise.
77240         [non-C99-based standards] (modfl): Allow.
77241         [non-C99-based standards] (erfl): Do not allow.
77242         [non-C99-based standards] (erfcl): Likewise.
77243         [non-C99-based standards] (gammal): Likewise.
77244         [non-C99-based standards] (hypotl): Likewise.
77245         [non-C99-based standards] (j0l): Likewise.
77246         [non-C99-based standards] (j1l): Likewise.
77247         [non-C99-based standards] (jnl): Likewise.
77248         [non-C99-based standards] (lgammal): Likewise.
77249         [non-C99-based standards] (tgammal): Likewise.
77250         [non-C99-based standards] (y0l): Likewise.
77251         [non-C99-based standards] (y1l): Likewise.
77252         [non-C99-based standards] (ynl): Likewise.
77253         [non-C99-based standards] (isnanl): Likewise.
77254         [non-C99-based standards] (acoshl): Likewise.
77255         [non-C99-based standards] (asinhl): Likewise.
77256         [non-C99-based standards] (atanhl): Likewise.
77257         [non-C99-based standards] (cbrtl): Likewise.
77258         [non-C99-based standards] (expm1l): Likewise.
77259         [non-C99-based standards] (ilogbl): Likewise.
77260         [non-C99-based standards] (log1pl): Likewise.
77261         [non-C99-based standards] (logbl): Likewise.
77262         [non-C99-based standards] (nextafterl): Likewise.
77263         [non-C99-based standards] (remainderl): Likewise.
77264         [non-C99-based standards] (rintl): Likewise.
77265         [non-C99-based standards] (scalbl): Likewise.
77266         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77267         [non-C99-based standards] (FP_*): Do not allow.
77268         [C99-based standards] (FP_*): Change to
77269         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77270         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77271         allow.
77272         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77273         (SIG_ERR): Likewise.
77274         [X/Open-based standards] (SIG_HOLD): Likewise.
77275         (SIG_IGN): Likewise.
77276         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77277         positive value.
77278         (SIGFPE): Likewise.
77279         (SIGILL): Likewise.
77280         (SIGINT): Likewise.
77281         (SIGSEGV): Likewise.
77282         (SIGTER): Likewise.
77283         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77284         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77285         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77286         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77287         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77288         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77289         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77290         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77291         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77292         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77293         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77294         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77295         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77296         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77297         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77298         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77299         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77300         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77301         [X/Open-based standards] (SIGTRAP): Likewise.
77302         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77303         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77304         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77305         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77306         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77307         allow.
77308
77309 2012-05-08  Ian Wienand  <ianw@vmware.com>
77310
77311         [BZ #14080]
77312         * time/tzset.c (__tzset_parse_tz): Update default rules for
77313         daylight time changes in the Energy Policy Act of 2005.
77314
77315 2012-05-09  Andreas Jaeger  <aj@suse.de>
77316
77317         [BZ #13983]
77318         * elf/ldconfig.c (parse_conf): Change string to make clear that
77319         ldconfig only issued a warning if ld.so.conf does not exist.
77320
77321 2012-05-08  David S. Miller  <davem@davemloft.net>
77322
77323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
77324         movxtod instead of popping the value on the stack.
77325
77326         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77327
77328 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
77329
77330         * config.h.in: Add HAVE_ARM_PCS_VFP.
77331
77332 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
77333
77334         [BZ #13979]
77335         * include/features.h: Warn if user requests __FORTIFY_SOURCE
77336         checking but the checks are disabled for any reason.
77337
77338 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
77339
77340         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
77341         and ELF64_R_TYPE with ELFW(R_TYPE).
77342
77343 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
77344
77345         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
77346         (ulimit): Likewise.
77347
77348         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
77349         (settimeofday): Likewise.
77350
77351 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
77352
77353         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
77354         a struct th_u2 inside the union, and move tu_block/tu_code into
77355         a new th_u3 union of tu_block/tu_code inside of that.  Move
77356         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
77357         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
77358         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
77359         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
77360         (th_stuff): Change to th_u1.tu_stuff.
77361         (th_data): Define.
77362         (th_msg): Change to th_u1.th_u2.tu_data.
77363
77364 2012-05-07  David S. Miller  <davem@davemloft.net>
77365
77366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77367
77368         [BZ #14074]
77369         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
77370         (SETUP_PIC_REG): Use it.
77371         (SETUP_PIC_REG_LEAF): Use it.
77372
77373 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
77374
77375         [BZ #13885]
77376         [BZ #13923]
77377         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77378         USE_AS_EXPM1L.
77379         (EXPL_FINITE): Likewise.
77380         (FLDLOG): Likewise.
77381         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77382         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77383         e_expl.S.
77384         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77385         USE_AS_EXPM1L.
77386         (EXPL_FINITE): Likewise.
77387         (FLDLOG): Likewise.
77388         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77389         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77390         e_expl.S.
77391         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
77392         test of -max_value argument for long double.
77393         * sysdeps/i386/fpu/libm-test-ulps: Update.
77394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77395
77396 2012-05-06  David S. Miller  <davem@davemloft.net>
77397
77398         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
77399         quad soft-float symbols whose references which are compiler
77400         generated.
77401         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
77402
77403 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
77404
77405         [BZ #13884]
77406         [BZ #13914]
77407         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77408         USE_AS_EXP10L.
77409         (EXPL_FINITE): Likewise.
77410         (FLDLOG): Likewise.
77411         (c0): Likewise.
77412         (c1): Likewise.
77413         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77414         Adjust comments for base varying.
77415         (__expl_finite): Change alias to EXPL_FINITE.
77416         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
77417         e_expl.S.
77418         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77419         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
77420         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
77421         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
77422         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77423         USE_AS_EXP10L.
77424         (EXPL_FINITE): Likewise.
77425         (FLDLOG): Likewise.
77426         (c0): Likewise.
77427         (c1): Likewise.
77428         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77429         Adjust comments for base varying.
77430         (__expl_finite): Change alias to EXPL_FINITE.
77431         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
77432         tests for bugs.
77433         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77434
77435         [BZ #14064]
77436         * math/libm-test.inc (check_float_internal): Correct ulp
77437         calculation for subnormal expected results.
77438
77439 2012-05-06  Andreas Jaeger  <aj@suse.de>
77440
77441         * Makeconfig (+math-flags): New, set to -frounding-math.
77442         (+cflags): Add +math-flags so that all of glibc gets compiled with
77443         it.
77444
77445         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
77446
77447 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
77448
77449         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
77450         Disable one test.
77451
77452         [BZ #13787]
77453         [BZ #13922]
77454         [BZ #14036]
77455         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
77456         (__ieee754_expl): Allow for and saturate large arguments.
77457         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
77458         (u_threshold): Likewise.
77459         (__exp): Call __ieee754_exp before checking for overflow and
77460         underflow.
77461         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
77462         (u_threshold): Likewise.
77463         (__expf): Call __ieee754_expf before checking for overflow and
77464         underflow.
77465         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
77466         (u_threshold): Likewise.
77467         (__expl): Call __ieee754_expl before checking for overflow and
77468         underflow.
77469         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
77470         (__ieee754_expl): Allow for and saturate large arguments.
77471         * math/libm-test.inc (exp_test): Add another test.  Do not allow
77472         missing overflow exception on overflow.
77473         (expm1_test): Do not allow missing overflow exception on overflow.
77474
77475         * sysdeps/i386/fpu/e_expl.c: Move to ...
77476         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
77477         rather than using inline asm.
77478         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
77479         * sysdeps/x86_64/fpu/e_expl.S: Copy from
77480         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
77481
77482         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
77483         (nice): Likewise.
77484         (poll): Likewise.
77485         (signal): Likewise.
77486         (time): Likewise.
77487         (times): Likewise.
77488
77489 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77490
77491         * sysdeps/unix/syscalls.list (adjtime): Add entry from
77492         sysdeps/unix/common/syscalls.list.
77493         (fchmod): Likewise.
77494         (fchown): Likewise.
77495         (ftruncate): Likewise.
77496         (getrusage): Likewise.
77497         (gettimeofday): Likewise.
77498         (setpgid): Likewise.
77499         (setregid): Likewise.
77500         (setreuid): Likewise.
77501         (sigaction): Likewise.
77502         (truncate): Likewise.
77503         (vhangup): Likewise.
77504         * sysdeps/unix/common/syscalls.list: Remove file.
77505         * sysdeps/unix/bsd/Implies: Don't include unix/common.
77506         * sysdeps/unix/sysv/linux/Implies: Likewise.
77507
77508 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
77509
77510         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
77511         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
77512         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
77513         Moved to ...
77514         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
77515         Here.
77516         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
77517         to ...
77518         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
77519         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
77520         to ...
77521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
77522         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
77523         to ...
77524         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
77525         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
77526         to ...
77527         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
77528         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
77529         to ...
77530         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
77531         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
77532         to ...
77533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
77534         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
77535         to ...
77536         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
77537         Here.
77538         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
77539         to ...
77540         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
77541         Here.
77542         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
77543         to ...
77544         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
77545         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
77546         Moved to ...
77547         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
77548         Here.
77549         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
77550         to ...
77551         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
77552
77553 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77554
77555         * sysdeps/unix/common/bits/dirent.h: Remove file.
77556         * sysdeps/unix/common/bits/fcntl.h: Likewise.
77557
77558         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
77559         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
77560         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
77561         * sysdeps/unix/bsd/isatty.c: Likewise.
77562         * sysdeps/unix/bsd/tcdrain.c: Likewise.
77563         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
77564         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
77565
77566 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77567
77568         [BZ #13563]
77569         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
77570         long double comparison inaccuracies.
77571         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
77572         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
77573
77574 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
77575
77576         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
77577         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
77578
77579 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77580
77581         [BZ #14049]
77582         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
77583         nonzero digits before rounding a hex value.
77584         * stdlib/tst-strtod.c (tests): Add another test.
77585
77586 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
77587
77588         * sysdeps/s390/fpu/libm-test-ulps: Update.
77589
77590 2012-05-03  Andreas Jaeger  <aj@suse.de>
77591
77592         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
77593         does not get optimized out.
77594         (malloc_opt_barrier): New.
77595
77596 2012-05-03  Andreas Jaeger  <aj@suse.de>
77597             Roland McGrath  <roland@hack.frob.com>
77598
77599         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
77600         intermediate file deletion.
77601         (generated): Add .symlist files.
77602
77603 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
77604
77605         [BZ #13775]
77606         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
77607         Redirect under this condition.
77608         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77609         [__USE_GNU] (__dprintf_chk): Not under this condition.
77610         [__USE_GNU] (__vdprintf_chk): Likewise.
77611         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
77612         under this condition.
77613         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
77614         [__USE_XOPEN2K8] (dprintf): Define under this condition.
77615         [__USE_XOPEN2K8] (vdprintf): Likewise.
77616         [__USE_GNU] (__dprintf_chk): Not under this condition.
77617         [__USE_GNU] (__vdprintf_chk): Likewise.
77618         [__USE_GNU] (dprintf): Likewise.
77619         [__USE_GNU] (vdprintf): Likewise.
77620
77621 2012-05-03  Roland McGrath  <roland@hack.frob.com>
77622
77623         * elf/Makefile (common-generated): Set this instead of generated for
77624         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
77625         $(all-built-dso)-derived lists.
77626
77627 2012-05-03  Andreas Jaeger  <aj@suse.de>
77628
77629         * sysdeps/i386/fpu/libm-test-ulps: Update.
77630
77631         * FAQ: Removed.
77632         * FAQ.in: Likewise.
77633         * scripts/gen-FAQ.pl: Likewise.
77634         * manual/install.texi (Installation): Point to online location of
77635         FAQ.
77636         * Makefile (files-for-dist): Remove FAQ.
77637         (FAQ): Remove.
77638
77639 2012-05-02  Allan McRae  <allan@archlinux.org>
77640
77641         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
77642         (LDFLAGS-reldepmod5.so): Likewise.
77643         (LDFLAGS-reldep6mod1.so): Likewise.
77644         (LDFLAGS-reldep6mod4.so): Likewise.
77645         (LDFLAGS-reldep8mod3.so): Likewise.
77646         (LDFLAGS-unload4mod1.so): Likewise.
77647         (LDFLAGS-unload4mod2.so): Likewise.
77648         (LDFLAGS-tst-initorder): Likewise.
77649         (LDFLAGS-tst-initordera2.so): Likewise.
77650         (LDFLAGS-tst-initordera3.so): Likewise.
77651         (LDFLAGS-tst-initordera4.so): Likewise.
77652         (LDFLAGS-tst-initorderb2.so): Likewise.
77653         (LDFLAGS-noload): Likewise.
77654         (LDFLAGS-next): Likewise.
77655         (LDFLAGS-order2mod1.so): Likewise.
77656         (LDFLAGS-order2mod2.so): Likewise.
77657         (LDFLAGS-tst-initorder2): Likewise.
77658         (LDFLAGS-tst-initorder2a.so): Likewise.
77659         (LDFLAGS-tst-initorder2b.so): Likewise.
77660         (LDFLAGS-tst-initorder2c.so): Likewise.
77661         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
77662
77663 2012-05-02  David S. Miller  <davem@davemloft.net>
77664
77665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77666
77667 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
77668
77669         [BZ #14055]
77670         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
77671
77672 2012-05-02  Andreas Jaeger  <aj@suse.de>
77673
77674         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
77675         since we manipulate rounding mode.
77676         (CPPFLAGS-test-idouble.c): Likewise.
77677         (CPPFLAGS-test-ifloat.c): Likewise.
77678         (CFLAGS-test-ldouble.c): Likewise.
77679         (CFLAGS-test-double.c): Likewise.
77680         (CFLAGS-test-float.c): Likewise.
77681         (CFLAGS-test-misc.c): Likewise.
77682         (CFLAGS-test-test-fenv.c): Likewise.
77683
77684 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77685
77686         [BZ #2550]
77687         [BZ #2570]
77688         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
77689         comparisons to determine direction to adjust input.
77690
77691 2012-05-01  Roland McGrath  <roland@hack.frob.com>
77692
77693         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
77694         output to the target.
77695
77696         * scripts/localplt.awk: New file.
77697         * elf/Makefile ($(objpfx)check-localplt): Target removed.
77698         (check-localplt-CFLAGS): Variable removed.
77699         ($(all-built-dso:=.jmprel)): New static pattern rule.
77700         (generated): Add those targets.
77701         (localplt-built-dso): New variable.
77702         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
77703
77704         * elf/check-localplt.c: File removed.
77705
77706         * scripts/check-execstack.awk: New file.
77707         * elf/Makefile ($(objpfx)check-execstack): Target removed.
77708         (check-execstack-CFLAGS): Variable removed.
77709         ($(objpfx)check-execstack.h): Target removed.
77710         ($(objpfx)execstack-default): New target.
77711         (generated): Add that instead of check-execstack.h.
77712         ($(all-built-dso:=.phdr)): New static pattern rule.
77713         (generated): Add those targets.
77714         * elf/check-execstack.c: File removed.
77715
77716         * scripts/check-textrel.awk: New file.
77717         * elf/Makefile ($(objpfx)check-textrel): Target removed.
77718         (check-textrel-CFLAGS): Variable removed.
77719         (all-built-dso): Use := to define.o
77720         ($(all-built-dso:=.dyn)): New static pattern rule.
77721         (generated): Add those targets.
77722         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
77723         * config.make.in (READELF): New substituted variable.
77724         * elf/check-textrel.c: File removed.
77725
77726 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
77727
77728         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77729         allow.
77730         * conform/data/ctype.h-data [C99-based standards] (isblank):
77731         Expect function.
77732         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
77733         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
77734         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77735         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
77736         Specify type.  Require positive value.
77737         (EILSEQ): Likewise.
77738         (ERANGE): Likewise.
77739         [ISO || POSIX] (EILSEQ): Do not expect.
77740         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
77741         Specify type.  Require positive value.
77742         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
77743         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
77744         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
77745         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
77746         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
77747         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
77748         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
77749         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
77750         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
77751         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
77752         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
77753         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
77754         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
77755         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
77756         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
77757         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
77758         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
77759         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
77760         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
77761         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
77762         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
77763         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
77764         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
77765         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
77766         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
77767         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
77768         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
77769         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
77770         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
77771         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
77772         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
77773         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
77774         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
77775         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
77776         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
77777         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
77778         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
77779         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
77780         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
77781         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
77782         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
77783         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
77784         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
77785         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
77786         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
77787         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
77788         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
77789         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
77790         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
77791         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
77792         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
77793         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
77794         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
77795         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
77796         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
77797         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
77798         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
77799         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
77800         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
77801         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
77802         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
77803         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
77804         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
77805         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
77806         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
77807         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
77808         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
77809         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
77810         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
77811         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
77812         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
77813         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
77814         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
77815         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
77816         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
77817         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
77818         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
77819         Require >= 2.
77820         (FLT_ROUNDS): Expect as macro, not constant.
77821         (FLT_MANT_DIG): Use macro-int-constant.
77822         (DBL_MANT_DIG): Likewise.
77823         (LDBL_MANT_DIG): Likewise.
77824         (FLT_DIG): Likewise.
77825         (DBL_DIG): Likewise.
77826         (LDBL_DIG): Likewise.
77827         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
77828         (DBL_MIN_EXP): Likewise.
77829         (LDBL_MIN_EXP): Likewise.
77830         (FLT_MAX_EXP): Use macro-int-constant.
77831         (DBL_MAX_EXP): Likewise.
77832         (LDBL_MAX_EXP): Likewise.
77833         (FLT_MAX_10_EXP): Likewise.
77834         (DBL_MAX_10_EXP): Likewise.
77835         (LDBL_MAX_10_EXP): Likewise.
77836         (FLT_MAX): Use macro-constant.
77837         (DBL_MAX): Likewise.
77838         (LDBL_MAX): Likewise.
77839         (FLT_EPSILON): Use macro-constant.  Give upper bound.
77840         (DBL_EPSILON): Likewise.
77841         (LDBL_EPSILON): Likewise.
77842         (FLT_MIN): Likewise.
77843         (DBL_MIN): Likewise.
77844         (LDBL_MIN): Likewise.
77845         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
77846         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
77847         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
77848         [ISO11] (FLT_HAS_SUBNORM): Likewise.
77849         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
77850         [ISO11] (DBL_DECIMAL_DIG): Likewise.
77851         [ISO11] (FLT_DECIMAL_DIG): Likewise.
77852         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
77853         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
77854         [ISO11] (FLT_TRUE_MIN): Likewise.
77855         [ISO11] (LDBL_TRUE_MIN): Likewise.
77856         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77857         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
77858         (SCHAR_MIN): Use macro-int-constant.  Specify type.
77859         (SCHAR_MAX): Likewise.
77860         (UCHAR_MAX): Likewise.
77861         (CHAR_MIN): Likewise.
77862         (CHAR_MAX): Likewise.
77863         (MB_LEN_MAX): Use macro-int-constant.
77864         (SHRT_MIN): Use macro-int-constant.  Specify type.
77865         (SHRT_MAX): Likewise.
77866         (USHRT_MAX): Likewise.
77867         (INT_MAX): Likewise.
77868         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
77869         bound negative.
77870         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77871         bound with "U".
77872         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77873         bound with "L".
77874         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
77875         bound negative.  Suffix upper bound with "L".
77876         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
77877         bound with "UL".
77878         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
77879         Specify type.
77880         [C99-based standards] (LLONG_MAX): Likewise.
77881         [C99-based standards] (ULLONG_MAX): Likewise.
77882         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
77883         == 0.
77884         [ISO11] (max_align_t): Require type.
77885         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77886
77887         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
77888         from $CFLAGS, without defining away __attribute__ calls.
77889         (checknamespace): Use $CFLAGS_namespace.
77890
77891         * conform/conformtest.pl (@keywords): Only include C99 keywords
77892         for standards based on C99 or C11.
77893
77894         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
77895         Disable tests.
77896         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
77897         UNIX98]: Likewise.
77898
77899         * conform/conformtest.pl: Handle "macro-int-constant" and test for
77900         usability of symbols in #if.
77901
77902         * conform/conformtest.pl: If macro or constant types start
77903         "promoted:", expect the symbol to be of the following type
77904         promoted by the integer promotions.
77905
77906         * conform/conformtest.pl: Parse all "constant" and "macro" lines
77907         in one place.  Also handle "macro-constant".
77908
77909         * conform/conformtest.pl: Only accept expected macro values with
77910         "==".  Parse all "macro" lines in one place.
77911         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
77912
77913         * conform/conformtest.pl: Handle braced types on "constant" lines
77914         instead of handling "typed-constant".
77915         * conform/data/signal.h-data: Use "constant" instead of
77916         "typed-constant".
77917
77918         * conform/conformtest.pl: Handle "optional-" at start of lines in
77919         one place rather than duplicating several cases.  Handle each
77920         format of "macro" line with initial "optional-".
77921
77922         * conform/conformtest.pl: Only accept expected constant or
77923         optional-constant values with "==".  Parse all "constant" lines in
77924         one place.  Parse all "optional-constant" lines in one place.
77925         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
77926         * conform/data/fmtmsg.h-data: Likewise.
77927         * conform/data/netinet/in.h-data: Likewise.
77928         * conform/data/tar.h-data: Likewise.
77929         * conform/data/limits.h-data: Use "==" form on "constant" and
77930         "optional-constant" lines.
77931
77932         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
77933         Use -std=c99 for XOPEN2K.
77934         (@knownproblems): Remove.
77935         (newtoken): Don't check %isknown.
77936
77937         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
77938         Do not expect macro.
77939         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
77940         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
77941         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
77942         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
77943         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
77944         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
77945         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
77946         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
77947         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
77948         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
77949         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
77950         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
77951         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
77952         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
77953         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
77954         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
77955         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
77956         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
77957         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
77958         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
77959         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
77960         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
77961         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
77962         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
77963         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
77964         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
77965         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
77966         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
77967         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
77968         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
77969         [XPG3] (acosh): Likewise.
77970         [XPG3] (asinh): Likewise.
77971         [XPG3] (atanh): Likewise.
77972         [XPG3] (cbrt): Likewise.
77973         [XPG3] (expm1): Likewise.
77974         [XPG3] (ilogb): Likewise.
77975         [XPG3] (log1p): Likewise.
77976         [XPG3] (logb): Likewise.
77977         [XPG3] (nextafter): Likewise.
77978         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
77979         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
77980         [XPG3] (remainder): Likewise.
77981         [XPG3] (rint): Likewise.
77982         [XPG3 || XPG4 || UNIX98] (round): Likewise.
77983         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
77984         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
77985         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
77986         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
77987         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
77988         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
77989         [UNIX98 || XOPEN2K] (scalb): Expect.
77990         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
77991         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
77992         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
77993         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
77994         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
77995         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
77996         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
77997         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
77998         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
77999         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78000         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78001         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78002         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78003         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78004         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78005         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78006         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78007         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78008         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78009         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78010         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78011         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78012         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78013         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78014         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78015         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78016         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78017         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78018         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78019         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78020         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78021         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78022         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78023         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78024         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78025         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78026         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78027         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78028         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78029         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78030         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78031         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78032         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78033         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78034         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78035         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78036         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78037         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78038         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78039         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78040         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78041         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78042         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78043         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78044         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78045         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78046         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78047         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78048         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78049         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78050         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78051         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78052         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78053         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78054         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78055         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78056         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78057         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78058         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78059         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78060         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78061         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78062         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78063         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78064         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78065         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78066         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78067         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78068         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78069         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78070         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78071         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78072         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78073         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78074         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78075         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78076         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78077         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78078         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78079         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78080         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78081         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78082         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78083         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78084         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78085         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78086         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78087         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78088         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78089         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78090         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78091         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78092         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78093         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78094         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78095         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78096         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78097         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78098         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78099         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78100         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78101         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78102         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78103         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78104         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78105         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78106         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78107         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78108         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78109         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78110         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78111         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78112         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78113         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78114         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78115         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78116         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78117         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78118         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78119         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78120         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78121         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78122         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78123         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78124         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78125         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78126         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78127
78128         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78129         _XOPEN_SOURCE_EXTENDED for XPG4.
78130
78131         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78132
78133         * Makeconfig (localtime): Remove variable.
78134         (inst_localtime-file): Likewise.
78135
78136 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78137
78138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78139         Update.
78140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78141         Update.
78142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78143         Update.
78144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78145         Update.
78146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78147         Update.
78148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78149         Update.
78150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78151         Update.
78152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78153         Update.
78154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78155         Update.
78156
78157 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78158
78159         [BZ #2550]
78160         [BZ #2570]
78161         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78162         comparisons to determine direction to adjust input.
78163         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78164         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78165         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78166         Likewise.
78167         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78168         Likewise.
78169         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78170         Likewise.
78171         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78172         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78173         Likewise.
78174         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78175         Likewise.
78176         * math/libm-test.inc (nexttoward_test): Add more tests.
78177
78178 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78179
78180         [BZ #14040]
78181         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78182         in version GLIBC_2.1, not GLIBC_2.0.
78183         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78184         Likewise.
78185
78186 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78187
78188         [BZ #13942]
78189         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78190         (1 - x) * (1 + x).
78191         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78192         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78193         * math/libm-test.inc (acos_test): Add more tests.
78194         (asin_test): Likewise.
78195         * sysdeps/i386/fpu/libm-test-ulps: Update.
78196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78197
78198         [BZ #14034]
78199         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78200         of square root.
78201         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78202         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78203         * math/libm-test.inc (acos_test_tonearest): New function.
78204         (acos_test_towardzero): Likewise.
78205         (acos_test_downward): Likewise.
78206         (acos_test_upward): Likewise.
78207         (asin_test_tonearest): Likewise.
78208         (asin_test_towardzero): Likewise.
78209         (asin_test_downward): Likewise.
78210         (asin_test_upward): Likewise.
78211         (main): Call the new functions.
78212         * sysdeps/i386/fpu/libm-test-ulps: Update.
78213         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78214
78215         [BZ #13884]
78216         [BZ #13924]
78217         * math/e_exp10.c: Include <float.h>.
78218         (__ieee754_exp10): Handle underflow here rather than multiplying
78219         large negative argument by M_LN10.
78220         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78221         of __ieee754_expf.
78222         * math/e_exp10l.c: Include <float.h>.
78223         (__ieee754_exp10l): Handle underflow here rather than multiplying
78224         large negative argument by M_LN10l.
78225         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78226         spurious overflow exception on underflow.
78227
78228 2012-04-29  Marek Polacek  <polacek@redhat.com>
78229
78230         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78231         (__fortify_function): New macro.
78232         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78233         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78234         __extern_always_inline.
78235         * libio/bits/stdio2.h: Likewise.
78236         * libio/bits/stdio.h: Likewise.
78237         * string/string.h: Likewise.
78238         * string/bits/string3.h: Likewise.
78239         * include/stdio.h: Likewise.
78240         * stdlib/bits/stdlib.h: Likewise.
78241         * stdlib/stdlib.h: Likewise.
78242         * rt/bits/mqueue2.h: Likewise.
78243         * rt/mqueue.h: Likewise.
78244         * posix/bits/unistd.h: Likewise.
78245         * posix/unistd.h: Likewise.
78246         * io/bits/poll2.h: Likewise.
78247         * io/bits/fcntl2.h: Likewise.
78248         * io/fcntl.h: Likewise.
78249         * io/sys/poll.h: Likewise.
78250         * misc/bits/syslog.h: Likewise.
78251         * misc/bits/syslog-ldbl.h: Likewise.
78252         * misc/sys/syslog.h: Likewise.
78253         * socket/bits/socket2.h: Likewise.
78254         * socket/sys/socket.h: Likewise.
78255         * debug/tst-chk1.c: Likewise.
78256         * wcsmbs/bits/wchar2.h: Likewise.
78257         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78258         * wcsmbs/wchar.h: Likewise.
78259
78260 2012-04-29  Andreas Jaeger  <aj@suse.de>
78261
78262         * Makerules (tests): Remove enable-check-abi protection.
78263         (check-abi-warn): Remove.
78264         (check-abi-%): Remove check-abi-warn usage.
78265
78266         * configure.in: Remove check-abi configure option.
78267         * configure: Regenerated.
78268         * config.make.in (enable-check-abi): Remove.
78269
78270 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78271
78272         [BZ #14033]
78273         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78274         double functions to double *_finite functions.
78275
78276         [BZ #13941]
78277         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78278         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78279         LDBL_MIN_EXP.
78280         * stdio-common/Makefile (tests): Add tst-sprintf3.
78281         * stdio-common/tst-sprintf3.c: New file.
78282
78283         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78284         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78285
78286 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78287
78288         * conform/conformtest.pl: Remove duplicate typed-constant
78289         handling.
78290
78291 2012-04-28  David S. Miller  <davem@davemloft.net>
78292
78293         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78294         (check-abi-%): Remove AWK script prerequisite and explicit
78295         abilist directory.
78296         (check-abi): Rewrite to just diff the symlist with the abilist.
78297         (config-tls, config-abi-config): Delete, no longer used.
78298         (update-abi-%): Remove AWK script and explicit abilist directory.
78299         (update-abi): Rewrite to simply compare and conditionally copy the
78300         symlist and the sysdep abilist file.  Remove update-abi-config
78301         checks.
78302         * abilist/ld.abilist: Remove.
78303         * abilist/libBrokenLocale.abilist: Remove.
78304         * abilist/libanl.abilist: Remove.
78305         * abilist/libcrypt.abilist: Remove.
78306         * abilist/libdl.abilist: Remove.
78307         * abilist/librt.abilist: Remove.
78308         * abilist/libthread_db.abilist: Remove.
78309         * abilist/libutil.abilist: Remove.
78310         * scripts/extract-abilist.awk: Remove.
78311         * scripts/merge-abilist.awk: Remove.
78312         * sysdeps/generic/libcidn.abilist: New file.
78313         * sysdeps/generic/libnss_compat.abilist: New file.
78314         * sysdeps/generic/libnss_db.abilist: New file.
78315         * sysdeps/generic/libnss_dns.abilist: New file.
78316         * sysdeps/generic/libnss_files.abilist: New file.
78317         * sysdeps/generic/libnss_hesiod.abilist: New file.
78318         * sysdeps/generic/libnss_nis.abilist: New file.
78319         * sysdeps/generic/libnss_nisplus.abilist: New file.
78320         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
78321         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
78322         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
78323         file.
78324         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
78325         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
78326         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
78327         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
78328         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
78329         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
78330         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
78331         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
78332         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
78333         file.
78334         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
78335         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
78336         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
78337         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
78338         file.
78339         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
78340         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
78341         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
78342         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
78343         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
78344         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
78345         file.
78346         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
78347         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
78348         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
78349         file.
78350         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78351         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
78352         New file.
78353         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
78354         New file.
78355         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
78356         New file.
78357         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
78358         New file.
78359         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
78360         New file.
78361         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
78362         New file.
78363         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
78364         New file.
78365         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
78366         New file.
78367         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
78368         New file.
78369         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
78370         New file.
78371         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
78372         New file.
78373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
78374         New file.
78375         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
78376         New file.
78377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
78378         file.
78379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
78380         New file.
78381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
78382         New file.
78383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
78384         file.
78385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
78386         New file.
78387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
78388         New file.
78389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
78390         file.
78391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
78392         New file.
78393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78394         New file.
78395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
78396         New file.
78397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
78398         New file.
78399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
78400         New file.
78401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
78402         New file.
78403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
78404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
78405         file.
78406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
78407         New file.
78408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
78409         file.
78410         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
78411         file.
78412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
78413         file.
78414         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
78415         file.
78416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
78417         file.
78418         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78419         New file.
78420         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
78421         file.
78422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
78423         file.
78424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
78425         New file.
78426         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
78427         file.
78428         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
78429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
78430         file.
78431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
78432         New file.
78433         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
78434         file.
78435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
78436         file.
78437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
78438         file.
78439         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
78440         file.
78441         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
78442         file.
78443         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78444         New file.
78445         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
78446         file.
78447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
78448         file.
78449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
78450         New file.
78451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
78452         file.
78453         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
78454         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
78455         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
78456         file.
78457         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
78458         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
78459         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
78460         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
78461         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
78462         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
78463         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
78464         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
78465         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
78466         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
78467         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
78468         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
78469         file.
78470         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
78471         New file.
78472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
78473         file.
78474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
78475         file.
78476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
78477         file.
78478         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
78479         file.
78480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
78481         file.
78482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
78483         New file.
78484         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
78485         New file.
78486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
78487         file.
78488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
78489         New file.
78490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
78491         file.
78492         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
78493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
78494         file.
78495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
78496         New file.
78497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
78498         file.
78499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
78500         file.
78501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
78502         file.
78503         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
78504         file.
78505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
78506         file.
78507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
78508         New file.
78509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
78510         New file.
78511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
78512         file.
78513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
78514         New file.
78515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
78516         file.
78517
78518 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78519
78520         * conform/conformtest.pl: Fix typo in handling typed-constant from
78521         allow-header.
78522
78523 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78524
78525         * README: Cut down references to pre-2.6 Linux kernels and
78526         Linuxthreads.  Update lists of configurations in libc and ports
78527         and sort alphabetically.  Say "or newer" with Linux kernel version
78528         requirements.
78529
78530         * config.h.in [IS_IN_build]: Allow compiling without optimization.
78531
78532 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
78533
78534         [BZ #887]
78535         * math/libm-test.inc (logb_test_downward): New test to expose
78536         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
78537         rounding mode.
78538
78539 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
78540
78541         [BZ #14027]
78542         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
78543         to be done.
78544         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
78545         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
78546
78547 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
78548
78549         * sysdeps/unix/i386/brk.S: Remove file.
78550         * sysdeps/unix/i386/dl-brk.S: Likewise.
78551         * sysdeps/unix/i386/pipe.S: Likewise.
78552         * sysdeps/unix/i386/sigreturn.S: Likewise.
78553         * sysdeps/unix/i386/syscall.S: Likewise.
78554         * sysdeps/unix/i386/vfork.S: Likewise.
78555         * sysdeps/unix/i386/wait.S: Likewise.
78556
78557         * sysdeps/unix/common/tcsendbrk.c: Move to ...
78558         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
78559
78560         * configure.in (arm*-none*): Do not allow without
78561         --enable-hacker-mode.
78562         (netbsd*): Remove case setting base_os.
78563         (386bsd*): Likewise.
78564         (freebsd*): Likewise.
78565         (bsdi*): Likewise.
78566         (osf*): Likewise.
78567         (sunos*): Likewise.
78568         (ultrix*): Likewise.
78569         (newsos*): Likewise.
78570         (dynix*): Likewise.
78571         (*bsd*): Likewise.
78572         (sysv*): Likewise.
78573         (isc*): Likewise.
78574         (esix*): Likewise.
78575         (sco*): Likewise.
78576         (minix*): Likewise.
78577         (irix4*): Likewise.
78578         (irix6*): Likewise.
78579         (solaris[2-9]*): Likewise.
78580         (none): Likewise.
78581         * configure: Regenerated.
78582
78583 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78584
78585         [BZ #11521]
78586         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
78587         overflow or cancellation in calculating denominator.
78588         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
78589         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
78590         down expression to avoid unexpected rounding in newer GCCs.
78591         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
78592
78593 2012-04-26  David S. Miller  <davem@davemloft.net>
78594
78595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
78596         long-double compat symbols.
78597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
78598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
78599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
78600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
78601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
78602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
78603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
78604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
78605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
78606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
78607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
78608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
78609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
78610
78611 2012-04-25  David S. Miller  <davem@davemloft.net>
78612
78613         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
78614         HWCAP_* values only after the memory barriers have been defined.
78615         (atomic_full_barrier): Define.
78616         (atomic_read_barrier): Define.
78617         (atomic_write_barrier): Define.
78618
78619 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
78620
78621         * shlib-versions: Add libgcc_s version information.
78622         * sysdeps/generic/libgcc_s.h: Remove.
78623         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
78624         libgcc_s.h.
78625         * sysdeps/gnu/unwind-resume.c: Likewise.
78626         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
78627
78628 2012-04-25  David S. Miller  <davem@davemloft.net>
78629
78630         * sysdeps/unix/sparc/brk.S: Delete.
78631         * sysdeps/unix/sparc/dl-brk.S: Delete.
78632         * sysdeps/unix/sparc/pipe.S: Delete.
78633         * sysdeps/unix/sparc/sysdep.S: Delete.
78634         * sysdeps/unix/sparc/sysdep.h: Delete.
78635         * sysdeps/unix/sparc/vfork.S: Delete.
78636         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
78637         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
78638         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
78639         (ret_ERRVAL, r0, r1, MOVE): Define.
78640         (JUMPTARGET): Remove.
78641         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
78642         sysdeps/unix/sparc/sysdep.h
78643         (ENTRY, END): Remove.
78644         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78645
78646 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
78647
78648         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
78649         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
78650         -DIS_IN_build.
78651
78652         * timezone/README: Update upstream location and email address for
78653         tzcode and tzdata.
78654         * timezone/zdump.c: Update from tzcode 2012b.
78655         * timezone/zic.c: Likewise.
78656
78657         * configure.in (libc_cv_as_needed): Remove test.
78658         * configure: Regenerated.
78659         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78660         conditional definition.
78661         [$(have-as-needed) != yes] (no-as-needed): Likewise.
78662         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
78663         * config.make.in (have-as-needed): Remove variable.
78664
78665 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
78666             Paul Pluzhnikov  <ppluzhnikov@google.com>
78667
78668         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
78669         strings correctly.
78670
78671 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
78672
78673         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
78674         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
78675         * sysdeps/sh/strlen.S: Likewise.
78676
78677 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78678
78679         * sysdeps/unix/fork.S: Remove file.
78680         * sysdeps/unix/i386/fork.S: Likewise.
78681         * sysdeps/unix/sparc/fork.S: Likewise.
78682
78683         * sysdeps/unix/system.c: Remove file.
78684         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
78685
78686         * sysdeps/unix/getegid.S: Remove file.
78687         * sysdeps/unix/geteuid.S: Likewise.
78688
78689 2012-04-24  Roland McGrath  <roland@hack.frob.com>
78690
78691         * scripts/check-localplt.awk: New file.
78692         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
78693         of diff.
78694         * scripts/data/localplt-generic.data: Add a comment.
78695
78696         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
78697         NODE when __dir_mkfile failed.
78698         * sysdeps/mach/hurd/symlinkat.c: Likewise.
78699         Reported by Ludovic Courtès <ludo@gnu.org>.
78700
78701 2012-04-24  Andreas Jaeger  <aj@suse.de>
78702
78703         * Makerules (common-clean): Also remove gen-as-const-headers
78704         files.
78705
78706 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78707
78708         * Makerules (native-compile): Do not change working directory for
78709         build.  Use $(OUTPUT_OPTION) in command.
78710         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
78711
78712 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78713
78714         [BZ #13886]
78715         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
78716         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
78717         * math/libm-test.inc (floor_test): Add more tests.
78718         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
78719
78720 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
78721
78722         * sysdeps/unix/getdents.c: Remove file.
78723         * sysdeps/unix/sysv/getdents.c: Likewise.
78724         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
78725
78726         * sysdeps/unix/syscalls.list (madvise): Add syscall from
78727         sysdeps/unix/mman/syscalls.list.
78728         (mmap): Likewise.
78729         (mprotect): Likewise.
78730         (msync): Likewise.
78731         (munmap): Likewise.
78732         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
78733         * sysdeps/unix/mman/syscalls.list: Remove.
78734         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
78735
78736         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
78737         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
78738         * configure: Regenerated.
78739         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
78740         $(libgcc_s_suffix).
78741         * config.make.in (libgcc_s_suffix): Remove variable.
78742
78743 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
78744
78745         * sysdeps/unix/sysv/gethostname.c: Move to ...
78746         * sysdeps/posix/gethostname.c: ... here.
78747
78748         * sysdeps/unix/execve.S: Remove file.
78749
78750         * sysdeps/unix/_exit.S: Remove file.
78751
78752 2012-04-23  Andreas Jaeger  <aj@suse.de>
78753
78754         [BZ #13739]
78755         * manual/Makefile: Remove make dist support, there's no
78756         need for a stand-alone documentation tar ball.
78757         (TEXI2DVI): Define always, it's not in Makeconfig.
78758         (dist): Removed.
78759         (tar-it): Removed.
78760         (edition): Removed.
78761         (glibc-doc-$(edition).tar): Removed
78762         (%.Z): Removed.
78763         (%.gz): Removed.
78764         (%.uu): Removed.
78765         (ETAGS): Remove, it's in Makeconfig.
78766         (move-if-change): Remove, it's in Makeconfig.
78767
78768 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         [BZ #13970]
78771         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
78772         (strtod, strtof, strtold, strtol, strtoul, strtoq)
78773         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
78774         (strtod_l, strtof_l, strtold_l): Remove __wur.
78775         It is not necessarily an error to ignore strtol's return value.
78776         One can reliably look at the stored endptr to decide whether
78777         the number had valid syntax.
78778
78779 2012-04-21  Andreas Jaeger  <aj@suse.de>
78780
78781         [BZ #13739]
78782         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
78783
78784 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
78785
78786         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
78787         * sysdeps/unix/sysv/Versions: Remove file.
78788
78789 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
78790
78791         [BZ #13927]
78792         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78793
78794 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
78795
78796         [BZ #7064]
78797         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
78798         version from __vm86.
78799
78800 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
78801
78802         * sysdeps/unix/common/lxstat.c: Remove file.
78803         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
78804
78805         * sysdeps/unix/sysv/Makefile: Remove file.
78806
78807         * sysdeps/unix/sysv/direct.h: Remove file.
78808
78809         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
78810         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
78811         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
78812         * sysdeps/unix/sysv/bits/signum.h: Likewise.
78813         * sysdeps/unix/sysv/bits/stat.h: Likewise.
78814         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
78815         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
78816
78817         * sysdeps/unix/sysv/setrlimit.c: Remove file.
78818
78819         * sysdeps/unix/xmknod.c: Remove file.
78820         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
78821
78822         * sysdeps/unix/sysv/settimeofday.c: Remove file.
78823
78824         * sysdeps/unix/sysv/i386/time.S: Remove file.
78825
78826         * sysdeps/unix/fxstat.c: Remove file.
78827         * sysdeps/unix/xstat.c: Likewise.
78828         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
78829
78830         * sysdeps/unix/sysv/sigaction.c: Remove file.
78831
78832         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
78833         (sysdep_headers): Remove variable.
78834         [termio.h not in sysdep_headers] (generated): Likewise.
78835         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
78836         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
78837         * sysdeps/unix/sysv/tcdrain.c: Likewise.
78838         * sysdeps/unix/sysv/tcflow.c: Likewise.
78839         * sysdeps/unix/sysv/tcflush.c: Likewise.
78840         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
78841         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
78842         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
78843         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
78844         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
78845
78846         * sysdeps/unix/siglist.c: Remove file.
78847
78848         * sysdeps/unix/getppid.S: Remove file.
78849
78850         * sysdeps/unix/mkdir.c: Remove file.
78851         * sysdeps/unix/rmdir.c: Likewise.
78852
78853 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
78854
78855         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
78856         ERR_MAX value.
78857         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
78858         errlist-compat value.
78859
78860 2012-04-18  David S. Miller  <davem@davemloft.net>
78861
78862         * sysdeps/generic/memcopy.h (reg_char): Delete.
78863         * debug/strcat_chk.c: Use char, not reg_char.
78864         * debug/strcpy_chk.c: Likewise.
78865         * debug/strncat_chk.c: Likewise.
78866         * debug/strncpy_chk.c: Likewise.
78867         * string/memchr.c: Likewise.
78868         * string/memrchr.c: Likewise.
78869         * string/rawmemchr.c: Likewise.
78870         * string/strcat.c: Likewise.
78871         * string/strchr.c: Likewise.
78872         * string/strchrnul.c: Likewise.
78873         * string/strcmp.c: Likewise.
78874         * string/strcpy.c: Likewise.
78875         * string/strncat.c: Likewise.
78876         * string/strncmp.c: Likewise.
78877         * string/strncpy.c: Likewise.
78878
78879 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78880
78881         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
78882         __builtin_memcopy is called when src and dest ranges are known to not
78883         overlap.
78884
78885 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78886
78887         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
78888         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
78889         fwd_align_merge macro call.
78890         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
78891         bwd_align_merge macro call.
78892         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
78893
78894 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
78895
78896         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
78897         bwd_align_merge macros.
78898         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
78899         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
78900         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
78901
78902 2012-04-18  David S. Miller  <davem@davemloft.net>
78903
78904         * sysdeps/sparc/sparc64/memcopy.h: Delete.
78905
78906 2012-04-18  Andreas Jaeger  <aj@suse.de>
78907
78908         [BZ #6794]
78909         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
78910         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
78911         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78912
78913         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
78914         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
78915         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78916
78917         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
78918         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
78919         Adjust for changed ldbl-128 files.
78920
78921         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
78922         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
78923         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
78924
78925 2012-04-17  David S. Miller  <davem@davemloft.net>
78926
78927         * sysdeps/sparc/sparc32/memcopy.h: Delete.
78928
78929 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
78930
78931         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
78932         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
78933         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
78934         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
78935         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
78936         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
78937
78938 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78939
78940         [BZ #6794]
78941         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
78942         * math/libm-test.inc: Add ilogb errno and exception tests.
78943         * math/w_ilogb.c: New file: ilogb wrapper.
78944         * math/w_ilogbf.c: New file: ilogbf wrapper.
78945         * math/w_ilogbl.c: New file: ilogbl wrapper.
78946         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
78947         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
78948         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
78949         exception being thrown with 0.0 as argument.
78950         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
78951         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
78952         exception being thrown with 0.0 as argument.
78953         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
78954         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
78955         exception being thrown with 0.0 as argument.
78956         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
78957         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
78958         exception being thrown with 0.0 as argument.
78959         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
78960         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
78961         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
78962         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
78963         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
78964         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
78965         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
78966         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
78967         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
78968
78969 2012-04-17  Petr Baudis  <pasky@ucw.cz>
78970
78971         * include/sys/uio.h: Change __vector to __iovec to avoid clash
78972         with altivec.
78973
78974 2012-04-16  Marek Polacek  <polacek@redhat.com>
78975
78976         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
78977
78978 2012-04-16  Marek Polacek  <polacek@redhat.com>
78979
78980         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
78981         operands of fdivp instruction.
78982
78983 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
78984
78985         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
78986         * elf/tst-auditmod3b.c: Likewise.
78987         * elf/tst-auditmod4b.c: Likewise.
78988         * elf/tst-auditmod5b.c: Likewise.
78989         * elf/tst-auditmod6b.c: Likewise.
78990         * elf/tst-auditmod6c.c: Likewise.
78991         * elf/tst-auditmod7b.c: Likewise.
78992         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
78993         * sysdeps/x86_64/preconfigure.in: Likewise.
78994         * sysdeps/x86_64/preconfigure: Regenerated.
78995
78996 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
78997
78998         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
78999         __ILP32__.
79000
79001 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79002
79003         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79004         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79005
79006 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79007
79008         [BZ #13973]
79009         * locale/iso-639.def: Fix gl language name. Spotted by
79010         Yaron Shahrabani.
79011
79012 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79013
79014         [BZ #2074]
79015         * libio/libio.h (__io_write_fn): Update comment.
79016
79017 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79018
79019         [BZ #2074]
79020         * stdio.texi (Hook Functions): The user provided writer function
79021         is not allowed to return -1.
79022
79023 2012-04-11  David S. Miller  <davem@davemloft.net>
79024
79025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79026
79027 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79028
79029         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79030         Add a leading slash to rtkaio.
79031
79032 2012-04-11  Jim Meyering  <meyering@redhat.com>
79033
79034         [BZ #11959]
79035         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79036         It is not necessarily an error to ignore fwrite's return
79037         value.  One can reliably use ferror to test for errors after
79038         the fact.
79039
79040 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79041
79042         * bits/types.h (__snseconds_t): New type.
79043         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79044
79045         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79046         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79047         (__SNSECONDS_T_TYPE): Likewise.
79048         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79049         (__SNSECONDS_T_TYPE): Likewise.
79050         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79051         (__SNSECONDS_T_TYPE): Likewise.
79052
79053 2012-04-10  Andreas Jaeger  <aj@suse.de>
79054
79055         [BZ #2636]
79056         * manual/time.texi (Processor Time): Return type of times is
79057         elapsed real time since an arbitrary point in the past.
79058         (CPU Time): Move CLK_TCK from here...
79059         (Processor Time): ...to here.  Correct description.
79060         * manual/conf.texi (Constants for Sysconf): Correct description of
79061         _SC_CLK_TCK.
79062
79063 2012-04-10  David S. Miller  <davem@davemloft.net>
79064
79065         [BZ #13967]
79066         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79067         where the is a gap between DT_REL(A) and DT_JMPREL.
79068
79069 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79070
79071         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79072         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79073         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79074
79075 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79076
79077         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79078         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79079         (dl_main): Handle --inhibit-cache.
79080         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79081         _dl_inhibit_cache.
79082         * elf/dl-load.c (_dl_map_object): Use it.
79083         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79084
79085 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79086
79087         [BZ #13872]
79088         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79089         (__ieee754_powl): Saturate large exponents rather than testing for
79090         overflow of y*log2(x).
79091         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79092         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79093         exceptions.
79094
79095         [BZ #11521]
79096         * math/s_ctan.c: Include <float.h>.
79097         (__ctan): Avoid internal overflow or cancellation in calculating
79098         denominator.
79099         * math/s_ctanf.c: Likewise.
79100         * math/s_ctanl.c: Likewise.
79101         * math/s_ctanh.c: Likewise.
79102         * math/s_ctanhf.c: Likewise.
79103         * math/s_ctanhl.c: Likewise.
79104         * math/libm-test.inc (ctan_test): Add more tests.
79105         (ctanh_test): Likewise.
79106         * sysdeps/i386/fpu/libm-test-ulps: Update.
79107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79108
79109 2012-04-09  Andreas Jaeger  <aj@suse.de>
79110
79111         [BZ #6894]
79112         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79113         is an optional BSD extension.
79114
79115         [BZ #10254]
79116         * manual/stdio.texi (Opening Streams): Document additional fopen
79117         parameters.
79118
79119 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79120
79121         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79122         %eax without telling the compiler.
79123
79124 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79125
79126         [BZ # 13963]
79127         * manual/install.texi: Use sourceware.org.
79128
79129 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79130
79131         [BZ #13873]
79132         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79133         (__ieee754_pow): Generate overflow and underflow using huge*huge
79134         and tiny*tiny rather than just returning constant infinity or zero
79135         for large exponents.
79136         * math/libm-test.inc (pow_test): Require overflow exceptions for
79137         applicable cases of large exponents.
79138
79139         [BZ #706]
79140         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79141         (__ieee754_pow): Use iterative multiplication algorithm only for
79142         integer exponents with absolute value below 1024.  Check for odd
79143         integer exponents when using algorithm for real exponents.
79144         * math/libm-test.inc (pow_test): Add more tests.
79145         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79146
79147 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79148
79149         [BZ #13705]
79150         * math/libm-test.inc (exp_test): Do not allow overflow exception
79151         on underflow test.
79152
79153 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79154
79155         [BZ #13705]
79156         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79157         instead of __kernel_standard_f.
79158
79159 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79160
79161         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79162         * sysdeps/x86_64/memset_chk.S: Likewise.
79163
79164 2012-04-08  Andreas Jaeger  <aj@suse.de>
79165
79166         [BZ #10153]
79167         * manual/startup.texi (Environment Access): Describe return value
79168         for putenv and setenv.
79169
79170         [BZ #6895]
79171         * manual/filesys.texi (Directory Entries): Add description for
79172         DT_LNK.
79173
79174         [BZ #6890]
79175         * manual/filesys.texi (Directory Entries): Clarify that it's file
79176         system not operating system in the description of DT_UNKNOWN.
79177
79178         [BZ #6578]
79179         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79180
79181 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79182
79183         [BZ #6649]
79184         * manual/llio.texi (Opening and Closing Files): Add cross
79185         reference to explain mode argument.
79186
79187 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79188
79189         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79190         * sysdeps/x86_64/memset_chk.S: Likewise.
79191
79192 2012-04-07  David S. Miller  <davem@davemloft.net>
79193
79194         * elf/elf.h (R_SPARC_WDISP10): Define.
79195         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79196         R_SPARC_SIZE32.
79197         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79198         R_SPARC_SIZE64 and R_SPARC_H34.
79199
79200 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79201
79202         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79203         conditions and remove no longer applicable assertion.
79204
79205 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79206
79207         * bits/byteswap.h: Include <features.h>.
79208         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79209         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79210
79211 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79212
79213         * bits/byteswap.h (__bswap_16): Removed.
79214         Include <bits/byteswap-16.h> to get __bswap_16.
79215         * sysdeps/i386/bits/byteswap.h: Likewise.
79216         * sysdeps/s390/bits/byteswap.h: Likewise.
79217         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79218         * bits/byteswap-16.h: New file.
79219         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79220         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79221         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79222         * string/Makefile (headers): Add bits/byteswap-16.h.
79223
79224 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79225
79226         [BZ #13895]
79227         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79228         extra indirection.
79229         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79230         * nss/tst-nss-static.c: New.
79231
79232 2012-04-06  Robert Millan  <rmh@gnu.org>
79233
79234         [BZ #6486]
79235         * manual/llio.texi (File Position Primitive): lseek
79236         refers to WHENCE when it really means OFFSET.
79237
79238 2012-04-06  Andreas Jaeger  <aj@suse.de>
79239
79240         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79241         strncmp declarations.
79242
79243         * abilist/libc.abilist: Add __poll and __ppoll.
79244
79245 2012-04-05  David S. Miller  <davem@davemloft.net>
79246
79247         * scripts/check-local-headers.sh: Accept a host triplet in the
79248         path matched by the exclude regexp.
79249
79250         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79251         definition.
79252         * sysdeps/powerpc/powerpc32/dl-machine.h
79253         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79254         * sysdeps/s390/s390-32/dl-machine.h
79255         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79256         * sysdeps/sparc/sparc32/dl-machine.h
79257         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79258         * sysdeps/sparc/sparc64/dl-machine.h
79259         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79260
79261         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79262         lazy binding.
79263         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79264         undefined symbol errors.
79265
79266         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79267         DT_NEEDED entries.
79268
79269 2012-04-05  Michael Matz  <matz@suse.de>
79270
79271         [BZ #13592]
79272         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79273
79274 2012-04-05  Andreas Jaeger  <aj@suse.de>
79275
79276         [BZ #13908]
79277         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79278         comment.
79279
79280 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79281
79282         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79283         which ROUND is no valid rounding mode.
79284
79285 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79286
79287         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79288         read again.
79289         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79290
79291 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79292
79293         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79294         an exception using FPU order intentionally.
79295
79296 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79297
79298         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79299         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79300         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79301         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79302
79303 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79304
79305         [BZ #12340]
79306         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
79307         EINVAL when BUFLEN is too smal.
79308
79309 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
79310
79311         [BZ #13553]
79312         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
79313         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79314
79315 2012-04-03  Andreas Jaeger  <aj@suse.de>
79316
79317         [BZ #13938]
79318         * manual/setjmp.texi (System V contexts): Fix sentence.
79319
79320         [BZ #13926]
79321         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
79322         New macro for this case.
79323         [!__GNUC__] (__bswap_64): New inline function for this case.
79324         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79325         * bits/byteswap.h: Likewise.
79326         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
79327         ull, guard with __GLIBC_HAVE_LONG_LONG.
79328
79329         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
79330         __GLIBC_HAVE_LONG_LONG.
79331
79332         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
79333         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
79334
79335 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
79336
79337         [BZ #13691]
79338         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
79339         inptr and inend, rather than using last_ch.
79340
79341 2012-04-02  David S. Miller  <davem@davemloft.net>
79342
79343         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
79344         * stdio-common/printf-parse.h (read_int): Change return type to
79345         'int', return -1 on INT_MAX overflow.
79346         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
79347         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
79348         overflows INT_MAX.  Check for overflow of in-format-string precision
79349         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
79350         SIZE_MAX not INT_MAX for integer overflow test.
79351         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
79352         skip the construct in the format string but do not record anything.
79353         * stdio-common/bug22.c: Adjust to test both width/prevision
79354         INT_MAX overflow as well as total length INT_MAX overflow.  Check
79355         explicitly for proper errno values.
79356
79357 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
79358
79359         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
79360         CHAR_MAX.
79361         * string/test-strcmp.c [! WIDE]: Likewise.
79362         * time/tst-mktime2.c: Likewise for INT_MAX.
79363         * string/test-string.h: #include <sys/param.h> for MIN.
79364
79365         * csu/init-first.c (__libc_init_first): Call __ctype_init.
79366         * sysdeps/i386/init-first.c (init): Likewise.
79367         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
79368         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
79369         * sysdeps/sh/init-first.c (init): Likewise.
79370
79371 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
79372
79373         * po/ru.po: Update from translation team.
79374         * po/vi.po: Likewise.
79375
79376 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
79377
79378         * resolv/nss_dns/dns-host.c: Merge copyright years.
79379
79380 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79381
79382         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
79383         Optimize memcpy with prefetch if
79384         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
79385         src, dst pointers have unequal 16 byte alignments.
79386
79387 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
79388
79389         [BZ #13928]
79390         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
79391         from a CNAME entry and return the minimum ttl for the query.
79392         (gaih_getanswer_slice): Likewise.
79393
79394 2012-03-30  Jeff Law  <law@redhat.com>
79395
79396         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
79397         due to long keys.
79398         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
79399         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
79400
79401         * resolv/nss_dns/dns-host.c: Update copyright year.
79402
79403 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
79404
79405         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
79406         requests to save a system call.  Fix check that all bytes are sent.
79407
79408         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
79409         comments for sendmmsg.
79410
79411 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79412
79413         [BZ #13691]
79414         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
79415         with only 1 character between 0x0041 and 0x01b0.
79416         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
79417         * wcsmbs/tst-mbsnrtowcs.c: New file.
79418
79419 2012-03-29  David S. Miller  <davem@davemloft.net>
79420
79421         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
79422         small copies by hand.
79423
79424 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
79425
79426         [BZ #13761]
79427         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
79428         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
79429         group memberships.
79430
79431 2012-03-28  David S. Miller  <davem@davemloft.net>
79432
79433         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
79434         that branches into memcpy.
79435         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
79436         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
79437         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
79438         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
79439         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
79440         bits.
79441         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
79442         implementation too.
79443         * sysdeps/sparc/mempcpy.S: New file.
79444
79445         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
79446         the IFUNC routine in the libc case.
79447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
79448
79449         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
79450         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
79451         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
79452         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
79453         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
79454         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
79455         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
79456         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
79457
79458         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
79459         loop to 256 bytes instead of 64 bytes and fix test signedness.
79460
79461         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
79462         * sysdeps/sparc/sparc32/Makefile: rather than here...
79463         * sysdeps/sparc/sparc64/Makefile: and here.
79464
79465 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
79466
79467         * malloc/mallocbug.c: Avoid warnings about unused variables.
79468
79469 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
79470
79471         [BZ #13760]
79472         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
79473         in the right place. Discard and retry query if response is
79474         larger than input buffer size.
79475
79476 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
79477
79478         [BZ #369]
79479         [BZ #2678]
79480         [BZ #3866]
79481         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
79482         x for large integer exponent.
79483         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
79484         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
79485         sign of result as needed afterwards.
79486         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
79487         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
79488         result for underflowing pow the same as for overflow.
79489         (__kernel_standard_l): Handle powl overflow and underflow here
79490         rather than calling __kernel_standard.
79491         * math/libm-test.inc (pow_test): Add more tests.
79492
79493         [BZ #3868]
79494         [BZ #13879]
79495         [BZ #13910]
79496         [BZ #13911]
79497         [BZ #13912]
79498         [BZ #13913]
79499         [BZ #13915]
79500         [BZ #13916]
79501         [BZ #13917]
79502         [BZ #13918]
79503         [BZ #13919]
79504         [BZ #13920]
79505         [BZ #13921]
79506         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
79507         * sysdeps/ieee754/k_standard.c: Include <float.h>.
79508         (__kernel_standard_l): New function.
79509         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
79510         __kernel_standard.
79511         * math/w_acosl.c (__acosl): Likewise.
79512         * math/w_asinl.c (__asinl): Likewise.
79513         * math/w_atan2l.c (__atan2l): Likewise.
79514         * math/w_atanhl.c (__atanhl): Likewise.
79515         * math/w_coshl.c (__coshl): Likewise.
79516         * math/w_exp10l.c (__exp10l): Likewise.
79517         * math/w_exp2l.c (__exp2l): Likewise.
79518         * math/w_fmodl.c (__fmodl): Likewise.
79519         * math/w_hypotl.c (__hypotl): Likewise.
79520         * math/w_j0l.c (__j0l, __y0l): Likewise.
79521         * math/w_j1l.c (__j1l, __y1l): Likewise.
79522         * math/w_jnl.c (__jnl, __ynl): Likewise.
79523         * math/w_lgammal.c (__lgammal): Likewise.
79524         * math/w_log10l.c (__log10l): Likewise.
79525         * math/w_log2l.c (__log2l): Likewise.
79526         * math/w_logl.c (__logl): Likewise.
79527         * math/w_powl.c (__powl): Likewise.
79528         * math/w_remainderl.c (__remainderl): Likewise.
79529         * math/w_scalbl.c (sysv_scalbl): Likewise.
79530         * math/w_sinhl.c (__sinhl): Likewise.
79531         * math/w_sqrtl.c (__sqrtl): Likewise.
79532         * math/w_tgammal.c (__tgammal): Likewise.
79533         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
79534         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
79535         * math/libm-test.inc (acos_test): Add more tests.
79536         (acosh_test): Likewise.
79537         (asin_test): Likewise.
79538         (atanh_test): Likewise.
79539         (exp_test): Likewise.
79540         (exp10_test): Likewise.
79541         (exp2_test): Likewise.
79542         (expm1_test): Likewise.
79543         (lgamma_test): Likewise.
79544         (log_test): Likewise.
79545         (log10_test): Likewise.
79546         (log1p_test): Likewise.
79547         (log2_test): Likewise.
79548         (pow_test): Do not allow some spurious overflow exceptions.
79549         (sqrt_test): Add more tests.
79550         (tgamma_test): Likewise.
79551         (y0_test): Likewise.
79552         (y1_test): Likewise.
79553         (yn_test): Likewise.
79554
79555 2012-03-27  Anton Blanchard  <anton@samba.org>
79556
79557         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
79558         MAP_HUGETLB.
79559         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
79560         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
79561         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
79562
79563 2012-03-27  David S. Miller  <davem@davemloft.net>
79564
79565         * conform/Makefile: Run run-conformtest.sh using $(BASH).
79566
79567         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
79568         have-as-vis3 check.
79569
79570 2012-03-27  Andreas Jaeger  <aj@suse.de>
79571
79572         * sysdeps/x86_64/elf/configure.in: Moved to ...
79573         * sysdeps/x86_64/configure.in: ... here.
79574         * sysdeps/x86_64/elf/start.S: Moved to ...
79575         * sysdeps/x86_64/start.S: ... here.
79576         * sysdeps/x86_64/elf/configure: Delete.
79577
79578         * sysdeps/x86_64/configure.in: Merge contents from
79579         sysdeps/i386/configure.in (without i686 check).
79580
79581         * sysdeps/i386/elf/Versions: Merge into ...
79582         * sysdeps/i386/Versions: ... this.
79583         * sysdeps/i386/elf/Versions: Delete file.
79584         * sysdeps/i386/elf/start.S: Moved to ...
79585         * sysdeps/i386/start.S: ...here.
79586         * sysdeps/i386/elf/configure.in: Merge into...
79587         * sysdeps/i386/configure.in: ...here.
79588         * sysdeps/i386/elf/configure.in: Delete file.
79589         * sysdeps/i386/elf/configure: Delete file.
79590
79591         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
79592         * debug/backtracesyms.c: ... here.
79593         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
79594         * debug/backtracesymsfd.c: ... here.
79595         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
79596         * sysdeps/generic/ifunc-sel.h: ... here.
79597
79598         * sysdeps/unix/i386/start.c: Delete file.
79599         * sysdeps/unix/sparc/start.c: Delete file.
79600         * sysdeps/unix/start.c: Delete file.
79601
79602         * sysdeps/sh/elf/configure.in: Moved to ...
79603         * sysdeps/sh/configure.in: ... here.
79604         * sysdeps/sh/elf/start.S: Moved to ...
79605         * sysdeps/sh/start.S: ... here.
79606         * sysdeps/sh/elf/configure: Delete file.
79607
79608         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
79609         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
79610         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
79611         * sysdeps/powerpc/powerpc64/entry.h: ... here.
79612         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
79613         * sysdeps/powerpc/powerpc64/start.S: here.
79614         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
79615         * sysdeps/powerpc/powerpc64/Makefile: ... this.
79616         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
79617         * sysdeps/powerpc/powerpc64/configure.in: ... this.
79618         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
79619
79620         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
79621         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
79622         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
79623         * sysdeps/powerpc/powerpc32/start.S: ... here.
79624         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
79625         * sysdeps/powerpc/powerpc32/configure.in: ... this.
79626         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
79627
79628         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
79629         * sysdeps/powerpc/ifunc-sel.h: ... here.
79630         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
79631         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
79632
79633         * sysdeps/sparc/elf/configure.in: Moved to ...
79634         * sysdeps/sparc/configure.in: ... here.
79635         * sysdeps/sparc/elf/configure: Delete file.
79636         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
79637         * sysdeps/sparc/sparc32/start.S: ... here.
79638         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
79639         * sysdeps/sparc/sparc64/start.S: ... here.
79640         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
79641         * sysdeps/sparc/sparc32/Makefile: ... this.
79642         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
79643         * sysdeps/sparc/sparc64/Makefile: ... this.
79644
79645         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
79646         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
79647         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
79648         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
79649         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
79650         * sysdeps/s390/s390-32/setjmp.S: ... here.
79651         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
79652         * sysdeps/s390/s390-32/configure.in: ... here.
79653         * sysdeps/s390/s390-32/elf/configure: Delete file.
79654         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
79655         * sysdeps/s390/s390-32/start.S: ... here.
79656
79657         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
79658         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
79659         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
79660         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
79661         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
79662         * sysdeps/s390/s390-64/setjmp.S: ... here.
79663         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
79664         * sysdeps/s390/s390-64/configure.in: ... here
79665         * sysdeps/s390/s390-64/elf/configure: Delete file.
79666         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
79667         * sysdeps/s390/s390-64/start.S: ... here.
79668         * sysdeps/s390/s390-64/elf/configure: Delete.
79669
79670         * configure.in: Remove support for elf directories in sysdeps.
79671
79672         * configure: Regenerated.
79673         * sysdeps/i386/configure: Regenerated.
79674         * sysdeps/powerpc/powerpc32/configure: Regenerated.
79675         * sysdeps/powerpc/powerpc64/configure: Regenerated.
79676         * sysdeps/s390/s390-32/configure: Regenerated.
79677         * sysdeps/s390/s390-64/configure: Regenerated.
79678         * sysdeps/sh/configure: Regenerated.
79679         * sysdeps/sparc/configure: Regenerated.
79680         * sysdeps/x86_64/configure: Regenerated.
79681
79682 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
79683
79684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79685
79686         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
79687         denormal result into account.
79688
79689 2012-03-25  Roland McGrath  <roland@hack.frob.com>
79690
79691         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
79692         Reported by Allan McRae <allan@archlinux.org>.
79693
79694 2012-03-23  Jeff Law  <law@redhat.com>
79695
79696         * nss/getnssent.c (__nss_getent): Fix typo.
79697
79698 2012-03-23  David S. Miller  <davem@davemloft.net>
79699
79700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79701
79702 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
79703
79704         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
79705         to pad to uint64_t for each field.
79706         (dl_tls_index): Replace unsigned long with uint64_t.
79707
79708 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
79709         Paul Pluzhnikov  <ppluzhnikov@google.com>
79710
79711         [BZ #6528]
79712         * grp/Makefile (otherlibs): Don't set it.
79713         * inet/Makefile (otherlibs): Likewise.
79714         * login/Makefile (otherlibs): Likewise.
79715         * nscd/Makefile (otherlibs): Likewise.
79716         * posix/Makefile (otherlibs): Likewise.
79717         * pwd/Makefile (otherlibs): Likewise.
79718         * rt/Makefile (otherlibs): Likewise.
79719         * sunrpc/Makefile (otherlibs): Likewise.
79720         * nss/Makefile (otherlibs): Likewise.
79721         Add libnss_files to routines and static-only-routines.
79722         ($(objpfx)getent): Remove rule.
79723         * resolv/Makefile: Add libnss_dns and libresolv to routines and
79724         static-only-routines.
79725
79726 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79727
79728         [BZ #13892]
79729         * math/s_cexp.c: Include <float.h>.
79730         (__cexp): Handle exp result overflowing not necessarily
79731         overflowing both real and imaginary parts of result.
79732         * math/s_cexpf.c: Likewise.
79733         * math/s_cexpl.c: Likewise.
79734         * math/libm-test.inc (cexp_test): Add more tests.
79735         * sysdeps/i386/fpu/libm-test-ulps: Update.
79736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79737
79738 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79739
79740         * include/link.h (ELFW): New macro.
79741         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
79742         Replace ELF64_R_TYPE with ELFW(R_TYPE).
79743
79744 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79745
79746         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
79747         with uint64_t.
79748
79749 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79750
79751         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
79752         declaration.
79753         (struct La_x32_retval): Likewise.
79754
79755 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
79756
79757         * sysdeps/x86_64/preconfigure.in: New file.
79758         * sysdeps/x86_64/preconfigure: New generated file.
79759
79760 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
79761
79762         [BZ #13824]
79763         * math/e_exp2l.c: Include <float.h>.
79764         (__ieee754_exp2l): Handle overflow and underflow cases
79765         separately.  Only pass fractional part of argument to
79766         __ieee754_expl.
79767         * math/libm-test.inc (exp2_test): Add more tests.
79768
79769         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
79770         negating x to take absolute value.
79771         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
79772         Likewise.
79773         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
79774         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
79775         Likewise.
79776         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
79777         computing low part if x was negated.
79778         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
79779
79780 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79781
79782         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
79783         la_x32_gnu_pltexit.
79784         (pltexit): Cast int_retval to ptrdiff_t.
79785         * elf/tst-auditmod3b.c: Likewise.
79786         * elf/tst-auditmod4b.c: Likewise.
79787         * elf/tst-auditmod5b.c: Likewise.
79788         * elf/tst-auditmod6b.c: Likewise.
79789         * elf/tst-auditmod6c.c: Likewise.
79790         * elf/tst-auditmod7b.c: Likewise.
79791
79792         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
79793         and x32_gnu_pltexit.
79794
79795         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
79796         __ELF_NATIVE_CLASS.
79797         (La_x32_regs): New macro.
79798         (La_x32_retval): Likewise.
79799         (la_x32_gnu_pltenter): New function prototype.
79800         (la_x32_gnu_pltexit): Likewise.
79801
79802 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
79803
79804         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
79805         exponent.
79806
79807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79808
79809         * configure.in (libc_cv_cc_nofma): Check for option to disable
79810         generation of FMA instructions.
79811         * configure: Regenerate.
79812         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
79813         * sysdeps/ieee754/dbl-64/Makefile: New file.
79814         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
79815         Remove brandred-fma4.
79816         (CFLAGS-brandred-fma4.c): Remove.
79817         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
79818         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
79819         define.
79820         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
79821         define.
79822
79823 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79824
79825         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
79826         LLONG_MAX != LONG_MAX.
79827         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79828         (_fitoa_word): Likewise.
79829         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
79830         LLONG_MAX != LONG_MAX.
79831         * stdio-common/_itowa.h: Include <_itoa.h>.
79832         (_itowa_word): Use _ITOA_WORD_TYPE on value.
79833         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
79834         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
79835         only if not defined.
79836         (_ITOA_WORD_TYPE): Likewise.
79837         (_itoa_word): Use _ITOA_WORD_TYPE on value.
79838         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
79839
79840 2012-03-21  David S. Miller  <davem@davemloft.net>
79841
79842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79843
79844 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
79845
79846         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
79847         of x86_64 when setting libc_cv_slibdir, libdir and
79848         libc_cv_localedir.
79849         * sysdeps/unix/sysv/linux/configure: Regenerated.
79850
79851 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79852
79853         * manual/lang.texi (Old Varargs): Remove section.
79854         (How Variadic): Update menu.
79855         (va_start): Do not mention varargs.h.
79856
79857 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79858             Joseph Myers  <joseph@codesourcery.com>
79859
79860         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
79861         link test.
79862         * configure: Regenerated.
79863
79864 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
79865
79866         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
79867         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
79868         conformtest.pl
79869
79870 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79871
79872         * NOTES: Remove.
79873         * Makefile (files-for-dist): Remove NOTES.
79874         (NOTES): Remove rule.
79875         * README: Don't refer to NOTES.
79876         * manual/creature.texi: Don't include macros.texi.
79877         * manual/intro.texi (creature.texi): Remove comment referring to
79878         NOTES.
79879
79880         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
79881         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
79882         * configure: Regenerated.
79883         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
79884         LIBC_TRY_CC_OPTION.
79885         (libc_cv_as_i686): Likewise.
79886         (libc_cv_cc_avx): Likewise.
79887         (libc_cv_cc_sse2avx): Likewise.
79888         (libc_cv_cc_fma4): Likewise.
79889         (libc_cv_cc_novzeroupper): Likewise.
79890         * sysdeps/i386/configure: Regenerated.
79891
79892         [BZ #13883]
79893         * sysdeps/i386/fpu/s_cexp.S: Remove.
79894         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
79895         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
79896         * math/libm-test.inc (cexp_test): Add more tests.
79897         * sysdeps/i386/fpu/libm-test-ulps: Update.
79898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79899
79900 2012-03-21  Allan McRae  <allan@archlinux.org>
79901
79902         * timezone/Makefile: Do not install iso3166.tab and zone.tab
79903
79904 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
79905
79906         [BZ #13871]
79907         * math/w_exp2.c: Do not include <float.h>.
79908         (o_threshold, u_threshold): Remove.
79909         (__exp2): Calculate result before checking finiteness and calling
79910         __kernel_standard.
79911         * math/w_exp2f.c: Likewise.
79912         * math/w_exp2l.c: Likewise.
79913         * math/libm-test.inc (exp2_test): Require overflow exception for
79914         1e6 input.
79915
79916         [BZ #3866]
79917         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
79918         range of signed 64-bit integers before using fistpll.  Remove
79919         checks for whether integers fit in mantissa bits.
79920         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
79921         the range of signed 32-bit integers before using fistpl.  Remove
79922         checks for whether integers fit in mantissa bits.
79923         * sysdeps/i386/fpu/e_powl.S (p64): New object.
79924         (__ieee754_powl): Test for y outside the range of signed 64-bit
79925         integers before using fistpll.  Reduce 64-bit values to 63-bit
79926         ones as needed.
79927         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
79928         divide-by-zero is raised for zero to large negative powers.
79929         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
79930         (__ieee754_powl): Test for y outside the range of signed 64-bit
79931         integers before using fistpll.  Reduce 64-bit values to 63-bit
79932         ones as needed.
79933         * math/libm-test.inc (pow_test): Add more tests.
79934
79935 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
79936
79937         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
79938         <stdio-common/_itoa.h>.
79939         * debug/segfault.c: Likewise.
79940         * elf/dl-cache.c: Likewise.
79941         * elf/dl-minimal.c: Likewise.
79942         * elf/dl-misc.c: Likewise.
79943         * elf/dl-sysdep.c: Likewise.
79944         * elf/dl-version.c: Likewise.
79945         * elf/rtld.c: Likewise.
79946         * hurd/hurdsock.c: Likewise.
79947         * hurd/lookup-retry.c: Likewise.
79948         * malloc/malloc.c: Likewise.
79949         * malloc/mtrace.c: Likewise.
79950         * nscd/nscd_getgr_r.c: Likewise.
79951         * nscd/nscd_getpw_r.c: Likewise.
79952         * nscd/nscd_getserv_r.c: Likewise.
79953         * posix/getopt_init.c: Likewise.
79954         * posix/wordexp.c: Likewise.
79955         * stdio-common/_itoa.c: Likewise.
79956         * stdio-common/printf_fphex.c: Likewise.
79957         * stdio-common/vfprintf.c: Likewise.
79958         * string/_strerror.c: Likewise.
79959         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
79960         * sysdeps/i386/i686/hp-timing.h: Likewise.
79961         * sysdeps/mach/_strerror.c: Likewise.
79962         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
79963         * sysdeps/mach/hurd/sethostid.c: Likewise.
79964         * sysdeps/mach/hurd/xmknodat.c: Likewise.
79965         * sysdeps/mach/xpg-strerror.c: Likewise.
79966         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
79967         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
79968         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
79969         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
79970         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
79971         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
79972         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
79973         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
79974         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
79975         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
79976         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
79977         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
79978         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
79979         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
79980         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
79981         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
79982         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
79983         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
79984         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
79985         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
79986         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
79987
79988         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
79989
79990         * stdio-common/_itoa.h: Moved to ...
79991         * sysdeps/generic/_itoa.h: Here.
79992
79993         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
79994
79995         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
79996         instead of "_itoa.h" and "_itowa.h".
79997         * stdio-common/vfprintf.: Likewise.
79998
79999 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80000
80001         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80002         <bits/wordsize.h>.
80003         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80004         (__signbit): Likewise.
80005         (llrintf): Likewise.
80006         (llrint): Likewise.
80007
80008 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80009
80010         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80011         __WORDSIZE != 64.
80012
80013 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80014
80015         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80016         OVERFLOW_EXCEPTION_OK.
80017         * math/libm-test.inc ("Philosophy"): Update comment about
80018         exception testing.
80019         (OVERFLOW_EXCEPTION): Define.
80020         (OVERFLOW_EXCEPTION_OK): Likewise.
80021         (INVALID_EXCEPTION_OK): Renumber.
80022         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80023         (IGNORE_ZERO_INF_SIGN): Likewise.
80024         (test_exceptions): Handle FE_OVERFLOW.
80025         (exp10_test): Expect overflow exceptions.
80026         (exp2_test): Likewise.
80027         (expm1_test): Likewise.
80028         (nextafter_test): Likewise.
80029         (pow_test): Likewise.
80030         (scalbn_test): Likewise.
80031         (scalbln_test): Likewise.
80032
80033 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80034
80035         * sysdeps/x86_64/bits/atomic.h
80036         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80037         64bit integer.
80038         (atomic_exchange_acq): Likewise.
80039         (__arch_exchange_and_add_body): Likewise.
80040         (__arch_add_body): Likewise.
80041         (atomic_add_negative): Likewise.
80042         (atomic_add_zero): Likewise.
80043
80044 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80045
80046         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80047         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80048
80049 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80050
80051         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80052         Check __x86_64__ instead of __WORDSIZE.
80053
80054 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80055
80056         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80057
80058 2012-03-19  David S. Miller  <davem@davemloft.net>
80059
80060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80061
80062         * sysdeps/sparc/fpu/fenv_private.h: New file.
80063         * sysdeps/sparc/fpu/math_private.h: Use it.
80064         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80065         Remove.
80066         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80067         (libc_feholdexcept_setroundl): Remove.
80068         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80069         Remove.
80070         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80071         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80072
80073 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80074
80075         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80076         int64_t instead of long int.
80077         (INSERT_WORDS64): Likewise.
80078
80079 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80080
80081         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80082         _Unwind_GetCFA return to _Unwind_Ptr first.
80083
80084 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80085
80086         [BZ #13629]
80087         * math/s_clog.c: Include <float.h>.
80088         (__clog): Scale large or subnormal inputs.
80089         * math/s_clogf.c: Likewise.
80090         * math/s_clogl.c: Likewise.
80091         * math/s_clog10.c: Include <float.h>.
80092         (M_LOG10_2): Define.
80093         (__clog10): Scale large or subnormal inputs.
80094         * math/s_clog10f.c: Likewise.
80095         * math/s_clog10l.c: Likewise.
80096         * math/libm-test.inc (clog_test): Add more tests.
80097         (clog10_test): Likewise.
80098         * sysdeps/i386/fpu/libm-test-ulps: Update.
80099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80100
80101         [BZ #11451]
80102         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80103         x and y.
80104         * math/libm-test.inc (atan2_test): Add another test.
80105
80106         * Makerules (common-objdir-compile): Remove.
80107         * sysdeps/unix/Makefile (config-generated): Do not add
80108         $(unix-generated) to variable.
80109         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80110         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80111         Remove rule.
80112         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80113         Likewise.
80114         [generic bits/local_lim.h] (before-compile): Do not append to
80115         variable.
80116         [generic bits/local_lim.h] (common-generated): Likewise.
80117         [generic sys/param.h] (before-compile): Do not append to variable.
80118         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80119         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80120         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80121         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80122         include.
80123         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80124         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80125         [generic sys/param.h] ($(addprefix
80126         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80127         [generic sys/param.h] (common-generated): Do not append to
80128         variable.
80129         [generic sys/param.h] (sysdep_headers): Likewise.
80130         [generic bits/errno.h] (before-compile): Do not append to
80131         variable.
80132         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80133         rule.
80134         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80135         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80136         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80137         [generic bits/errno.h] (common-generated): Do not append to
80138         variable.
80139         [generic bits/ioctls.h] (before-compile): Do not append to
80140         variable.
80141         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80142         rule.
80143         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80144         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80145         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80146         rule.
80147         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80148         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80149         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80150         [generic bits/ioctls.h] (common-generated): Do not append to
80151         variable.
80152         [generic sys/syscall.h] (syscall.h): Remove variable.
80153         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80154         rule.
80155         [generic sys/syscall.h] (before-compile): Do not append to
80156         variable.
80157         [generic sys/syscall.h] (common-generated): Likewise.
80158         * sysdeps/unix/errnos-tmpl.c: Remove file.
80159         * sysdeps/unix/errnos.awk: Likewise.
80160         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80161         * sysdeps/unix/ioctls.awk: Likewise.
80162         * sysdeps/unix/mk-local_lim.c: Likewise.
80163         * sysdeps/unix/snarf-ioctls: Likewise.
80164
80165 2012-03-19  Richard Henderson  <rth@twiddle.net>
80166
80167         * sysdeps/i386/fpu/fenv_private.h: New file.
80168         * sysdeps/i386/fpu/math_private.h: Use it.
80169         (math_opt_barrier, math_force_eval): Remove.
80170         (libc_feholdexcept_setround_53bit): Remove.
80171         (libc_feupdateenv_53bit): Remove.
80172         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80173         (math_opt_barrier, math_force_eval): Remove.
80174         (libc_feholdexcept): Remove.
80175         (libc_feholdexcept_setround): Remove.
80176         (libc_fetestexcept, libc_fesetenv): Remove.
80177         (libc_feupdateenv_test): Remove.
80178         (libc_feupdateenv, libc_feholdsetround): Remove.
80179         (libc_feresetround): Remove.
80180
80181         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80182         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80183
80184         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80185         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80186         (libc_feupdateenv_testl): New.
80187         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80188         (libc_feupdateenv_testf): New.
80189         (libc_feupdateenv): Use libc_feupdateenv_test.
80190         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80191         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80192
80193         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80194         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80195         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80196         (libc_feresetround_noex): New.
80197         (libc_feresetround_noexf): New.
80198         (libc_feresetround_noexl): New.
80199         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80200         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80201         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80202         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80203         SET_RESTORE_ROUND.
80204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80205         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80206         (__cos): Likewise.
80207         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80208         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80209         SET_RESTORE_ROUND_NOEX.
80210         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80211         SET_RESTORE_ROUND_NOEXF.
80212         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80213         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80214         (libc_feholdsetroundf): New.
80215         (libc_feresetround, libc_feresetroundf): New.
80216
80217         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80218         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80219         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80220
80221         * sysdeps/generic/math_private.h: Include <fenv.h>.
80222         (default_libc_feholdexcept): New.
80223         (default_libc_feholdexcept_setround): New.
80224         (default_libc_fesetenv, default_libc_feupdateenv): New.
80225         (libc_feholdexcept): Only define if undefined.
80226         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80227         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80228         (libc_feholdexcept_setroundl): Likewise.
80229         (libc_feholdexcept_setround_53bit): Likewise.
80230         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80231         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80232         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80233         (libc_feupdateenv_53bit): Likewise.
80234         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80235         (libc_feholdexcept): Convert from macro to inline function.
80236         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80237         (libc_fesetenv, libc_feupdateenv): Likewise.
80238
80239         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80240         not previously defined.
80241         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80242         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80243         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80244         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80245         * sysdeps/ieee754/flt-32/math_private.h: New file.
80246         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80247         math_private.h below SET_FLOAT_WORD.
80248         (__isnan, __isinf_ns, __finite): Remove.
80249         (__isnanf, __isinf_nsf, __finitef): Remove.
80250
80251 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80252
80253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80254
80255 2012-03-17  David S. Miller  <davem@davemloft.net>
80256
80257         [BZ #6471]
80258         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80259         for 2.16.
80260
80261 2012-03-16  David S. Miller  <davem@davemloft.net>
80262
80263         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80264         warnings.
80265
80266         [BZ #6471]
80267         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80268         properly.
80269         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80270         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80271         sysdep_routines when subdir is sysvipc.
80272         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80273         __getshmlba helper.
80274
80275         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80276
80277 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80278
80279         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80280         [__LP64__].
80281
80282 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80283
80284         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80285         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80286         (__lround): Renamed to ...
80287         (__llround): This.  Replace long int with long long int.
80288         Define lround functions as aliases of llround functions.
80289         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80290
80291 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80292
80293         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80294         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80295         adresses to uintptr_t.  Replace "long int" and "unsigned long
80296         int" with "greg_t" on va_arg.
80297
80298 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80299
80300         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80301         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80302
80303         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80304         Move e_machine check before EI_CLASS check.  Handle x32
80305         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80306         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
80307         SKIP_EM_IA_64 and include
80308         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
80309
80310         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
80311         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
80312         (add_system_dir): New macro.
80313
80314         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
80315         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
80316
80317 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80318
80319         [BZ #2551]
80320         [BZ #2552]
80321         [BZ #2553]
80322         [BZ #2554]
80323         [BZ #2562]
80324         [BZ #2563]
80325         [BZ #2565]
80326         [BZ #2566]
80327         [BZ #2576]
80328         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
80329         (y0): Likewise.
80330         * math/w_j0f.c (j0f): Likewise.
80331         (y0f): Likewise.
80332         * math/w_j0l.c (__j0l): Likewise.
80333         (__y0l): Likewise.
80334         * math/w_j1.c (j1): Likewise.
80335         (y1): Likewise.
80336         * math/w_j1f.c (j1f): Likewise.
80337         (y1f): Likewise.
80338         * math/w_j1l.c (__j1l): Likewise.
80339         (__y1l): Likewise.
80340         * math/w_jn.c (jn): Likewise.
80341         (yn): Likewise.
80342         * math/w_jnf.c (jnf): Likewise.
80343         (ynf): Likewise.
80344         * math/w_jnl.c (__jnl): Likewise.
80345         (__ynl): Likewise.
80346         * math/libm-test.inc (j0_test): Add more tests.
80347         (j1_test): Likewise.
80348         (jn_test): Likewise.  Add trailing semicolon to existing test.
80349         (y0_test): Likewise.
80350         (y1_test): Likewise.
80351         * sysdeps/i386/fpu/libm-test-ulps: Update.
80352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80353
80354         [BZ #13851]
80355         [BZ #13854]
80356         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
80357         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
80358         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
80359         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
80360         (__tanl): Set errno for infinite argument.
80361         * sysdeps/i386/fpu/mptan.c: Remove.
80362         * sysdeps/i386/fpu/s_tan.S: Likewise.
80363         * sysdeps/i386/fpu/s_tanl.S: Likewise.
80364         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
80365         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
80366         * math/libm-test.inc (tan_test): Add more tests and enable more
80367         tests for double and long double.
80368         * sysdeps/i386/fpu/libm-test-ulps: Update.
80369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80370
80371 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
80372
80373         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
80374         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
80375
80376 2012-03-16  Roland McGrath  <roland@hack.frob.com>
80377
80378         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
80379         * configure.in: Use it for both main tree and add-ons.
80380         * configure: Regenerated.
80381
80382 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80383
80384         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
80385
80386 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80387
80388         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
80389         in comment.
80390
80391         [BZ #13851]
80392         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
80393         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
80394         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
80395         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
80396         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
80397         infinite argument.
80398         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
80399         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
80400         != 0 for prec == 2.
80401         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
80402         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
80403         * sysdeps/i386/fpu/s_cosl.S: Likewise.
80404         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
80405         * sysdeps/i386/fpu/s_sinl.S: Likewise.
80406         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
80407         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
80408         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
80409         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
80410         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
80411         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
80412         * math/libm-test.inc (cos_test): Add more tests and enable more
80413         tests for long double.
80414         (sin_test): Likewise.
80415         (sincos_test): Likewise.
80416         * sysdeps/i386/fpu/libm-test-ulps: Update.
80417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80418
80419 2012-03-16  David S. Miller  <davem@davemloft.net>
80420
80421         * sysdeps/sparc/fpu/math_private.h: New file.
80422
80423 2012-03-15  David S. Miller  <davem@davemloft.net>
80424
80425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
80426         file.
80427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
80428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
80429         file.
80430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
80431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
80432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
80433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
80434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
80435         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
80436         sysdep routines.
80437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80438
80439         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
80440         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
80441
80442         * sysdeps/sparc/sparc-ifunc.h: New file.
80443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
80444         sparc-ifunc.h
80445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
80446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
80447         Likewise.
80448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
80449         Likewise.
80450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
80451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
80452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
80453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
80454         Likewise.
80455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
80456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
80457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
80458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
80459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
80460         Likewise.
80461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
80462         Likewise.
80463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
80464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
80465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
80466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
80467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
80468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
80469         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
80470         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
80471         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
80472         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
80473         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
80474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
80475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
80476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
80477         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
80478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
80479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
80480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
80481         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
80482         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
80483         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
80484         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
80485         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
80486         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
80487
80488 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80489
80490         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
80491         scaling.
80492         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80493
80494 2012-03-15  Andreas Jaeger  <aj@suse.de>
80495
80496         [BZ #13852]
80497         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
80498         ieee754/flt-32 implementation for sin, cos and sincos.
80499         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
80500         * sysdeps/i386/fpu/s_cosf.S: Likewise.
80501         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
80502         * sysdeps/i386/fpu/s_sinf.S: Likewise.
80503         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
80504         ieee754/flt-32 implementation for tan.
80505
80506         * math/libm-test.inc (cos_test): Enable some large input tests for
80507         float as well
80508         (sin_test): Likewise.
80509         (sincos_test): Likewise.
80510         (tan_test): Add tests for large input.
80511
80512         * sysdeps/i386/fpu/libm-test-ulps: Update.
80513
80514 2012-03-15  Andreas Jaeger  <aj@suse.de>
80515
80516         [BZ #13658]
80517         * math/libm-test.inc (cos_test): Add more test cases.
80518         (sin_test): Likewise.
80519         (sincos_test): Likewise.
80520
80521 2012-03-15  Andreas Jaeger  <aj@suse.de>
80522
80523         [BZ #13837]
80524         * math/libm-test.inc (cos_test): Add a test case for large input
80525         value.
80526         (sin_test): Likewise.
80527         (sincos_test): Likewise.
80528
80529 2012-03-15  Andreas Jaeger  <aj@suse.de>
80530             Joseph Myers  <joseph@codesourcery.com>
80531
80532         [BZ #13658]
80533         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
80534         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
80535         * sysdeps/i386/fpu/branred.c: Likewise.
80536         * sysdeps/i386/fpu/dosincos.c: Likewise.
80537         * sysdeps/i386/fpu/mpa.c: Likewise.
80538         * sysdeps/i386/fpu/s_cos.S: Likewise.
80539         * sysdeps/i386/fpu/s_sin.S: Likewise.
80540         * sysdeps/i386/fpu/s_sincos.S: Likewise.
80541         * sysdeps/i386/fpu/sincos32.c: Likewise.
80542
80543         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
80544         Define.
80545         (libc_feupdateenv_53bit): Define.
80546         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
80547         Define.
80548         (libc_feupdateenv_53bit): Define.
80549
80550         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
80551         53 bit (without extend i386 double precision).
80552
80553         * math/libm-test.inc (sincos_test): Add tests for large input.
80554         (sin): Likewise.
80555         (cos): Likewise.
80556
80557         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
80558
80559 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80560
80561         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80562
80563 2012-03-15  David S. Miller  <davem@davemloft.net>
80564
80565         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
80566         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
80567         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
80568         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
80569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
80570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
80571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
80572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
80573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
80574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
80575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
80576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
80577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
80578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
80579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
80580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
80581         file.
80582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
80583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
80584         file.
80585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
80586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
80587         file.
80588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
80589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
80590         file.
80591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
80592         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
80593         fmin/fmax sysdep routines.
80594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80595
80596 2012-03-14  David S. Miller  <davem@davemloft.net>
80597
80598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
80599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
80600         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
80601         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
80602         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
80603         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
80604         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
80605         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
80606         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
80607         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
80608         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
80609         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
80610         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
80611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
80612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
80613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
80614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
80615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
80616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
80617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
80618         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
80619         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
80620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
80621         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
80622         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
80623         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
80624         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
80625         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
80626         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
80627         routines.
80628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
80629         file.
80630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
80631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
80632         file.
80633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
80634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
80635         file.
80636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
80637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
80638         file.
80639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
80640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
80641         file.
80642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
80643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
80644         file.
80645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
80646         file.
80647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
80648         file.
80649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
80650         file.
80651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
80652         New file.
80653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
80654         file.
80655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
80656         file.
80657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
80658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
80659         file.
80660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
80661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
80662         file.
80663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
80664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
80665         file.
80666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
80667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
80668         VIS3 routines.
80669
80670         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
80671         New file.
80672
80673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80674
80675         * sysdeps/sparc/configure.in: New file.
80676         * sysdeps/sparc/configure: Generate.
80677         * configure.in (libc_cv_sparc_as_vis3): Substitute.
80678         * configure: Regenerate.
80679         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
80680         * config.make.in (have-as-vis3): New.
80681         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
80682         available use -Av9d instead of -Av9a.
80683         * sysdeps/sparc/sparc64/Makefile: Likewise.
80684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
80685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
80686         New file.
80687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
80688         file.
80689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
80690         New file.
80691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
80692         file.
80693         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
80694         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
80695         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
80696         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
80697         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
80698
80699         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
80700         fzeros/fnegs to load 0x80000000 into a float register instead of
80701         using the stack.
80702         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
80703
80704 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80705
80706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
80707         bits/syscall.h.
80708         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
80709         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
80710         ($(inst_includedir)/bits/syscall.h): Remove rule.
80711         ($(objpfx)bits/syscall.d): Include instead of
80712         $(objpfx)syscall-list.d.
80713         (generated): Change syscall-list.h and syscall-list.d to
80714         bits/syscall.h and bits/syscall.d.
80715
80716 2012-03-14  Roland McGrath  <roland@hack.frob.com>
80717
80718         [BZ #13846]
80719         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
80720
80721 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
80722
80723         [BZ #13841]
80724         * math/s_csqrt.c: Include <float.h>.
80725         (__csqrt): Scale large or subnormal inputs.
80726         * math/s_csqrtf.c: Likewise.
80727         * math/s_csqrtl.c: Likewise.
80728         * math/libm-test.inc (csqrt_test): Add more tests.
80729         * sysdeps/i386/fpu/libm-test-ulps: Update.
80730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80731
80732         [BZ #13840]
80733         * math/libm-test.inc (hypot_test): Add more tests.
80734
80735 2012-03-13  David S. Miller  <davem@davemloft.net>
80736
80737         [BZ #13840]
80738         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
80739         double-precision for the calculation instead of scaling.
80740
80741 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
80742
80743         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
80744         manipulate bits before adding and subtracting TWO52[sx].
80745         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
80746         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
80747         Likewise.
80748         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
80749
80750 2012-03-13  David S. Miller  <davem@davemloft.net>
80751
80752         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
80753         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
80754         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
80755         rtld-global-offsets.h
80756         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
80757
80758         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
80759         large parameters.
80760
80761         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
80762
80763         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
80764         'err' in the ifdef scope in which it is actually used.
80765
80766         * nss/nss_db/db-init.c: Include string.h
80767
80768 2012-03-12  David S. Miller  <davem@davemloft.net>
80769
80770         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80771         masking out of the most significant byte of random value used.
80772         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80773         Fix coding style in previous change.
80774
80775         * sysdeps/unix/sysv/linux/kernel-features.h
80776         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
80777         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
80778         expression.
80779         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
80780         later.
80781
80782 2012-03-11  David S. Miller  <davem@davemloft.net>
80783
80784         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
80785         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
80786         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
80787         for 'resultvar' otherwise things get truncated on 64-bit.
80788
80789         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80790         Fix masking out of the most significant byte of random value used.
80791
80792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80793
80794 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
80795
80796         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80797
80798 2012-03-09  David S. Miller  <davem@davemloft.net>
80799
80800         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
80801         variables with appropriate CPP guards.
80802         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
80803         from the frame pointer, not the stack pointer.  Correct layout
80804         comments.  Fix test on resulting framesize and the management of
80805         the outregs buffer for pltexit.  Preserve floating point return
80806         values across _dl_call_pltexit call.
80807         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
80808         framesize and the management of the outregs buffer for pltexit.
80809         Preserve floating point return values across _dl_call_pltexit
80810         call.
80811         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
80812         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
80813         (la_sparc64_gnu_pltexit): New functions.
80814         (print_exit): Fix format string for return register value.
80815
80816 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
80817
80818         * sunrpc/Makefile (others): Add rpcgen.
80819         ($(objpfx)rpcgen): Remove special build rule and dependency on
80820         libc.
80821         * sunrpc/rpcgen.c: New file.
80822
80823 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         [BZ #13673]
80826         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
80827         * stdio-common/bug-vfprintf-nargs.c: Likewise.
80828         * sysdeps/i386/crti.S: Likewise.
80829         * sysdeps/i386/crtn.S: Likewise.
80830         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
80831         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
80832         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
80833         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
80834         * sysdeps/sh/crti.S: Likewise.
80835         * sysdeps/sh/crtn.S: Likewise.
80836         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
80837
80838         [BZ #13673]
80839         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
80840         with URL.
80841         * locale/programs/locfile-kw.gperf: Likewise.
80842         * locale/programs/charmap-kw.h: Regenerated.
80843         * locale/programs/locfile-kw.h: Likewise.
80844
80845         [BZ #13673]
80846         * intl/plural.y: Replace FSF snail mail address with URL.
80847         * intl/plural.c: Regenerated.
80848
80849 2012-03-09  Richard Henderson  <rth@twiddle.net>
80850
80851         * include/math_private.h: Remove file.
80852         * math/math_private.h: Move file ...
80853         * sysdeps/generic/math_private.h: ... here.
80854
80855         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
80856         * sysdeps/powerpc/fpu/math_private.h: Likewise.
80857         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80858
80859         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
80860         and <math_private.h>.
80861         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
80862         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
80863         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
80864         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
80865         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
80866         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
80867         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
80868         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
80869         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
80870         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
80871         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
80872         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
80873         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
80874         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
80875         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
80876         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
80877         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
80878         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
80879         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
80880         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
80881         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
80882         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
80883         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
80884         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
80885         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
80886         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
80887         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
80888         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
80889         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
80890         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
80891         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
80892         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
80893         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
80894         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
80895         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
80896         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
80897         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
80898         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
80899         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
80900         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
80901         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
80902         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
80903         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
80904         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
80905         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
80906         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
80907         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
80908         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
80909         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
80910         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
80911         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
80912         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
80913         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
80914         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
80915         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
80916         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
80917         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
80918         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
80919         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
80920         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
80921         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
80922         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
80923         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
80924         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
80925         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
80926         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
80927         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
80928         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
80929         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
80930         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
80931         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
80932         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
80933         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
80934         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
80935         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
80936         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
80937         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
80938         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
80939         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
80940         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
80941         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
80942         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
80943         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
80944         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
80945         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
80946         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
80947         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
80948         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
80949         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
80950         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
80951         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
80952         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
80953         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
80954         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
80955         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
80956         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
80957         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
80958         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
80959         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
80960         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
80961         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
80962         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
80963         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
80964         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
80965         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
80966         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
80967         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
80968         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
80969         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
80970         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
80971         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
80972         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
80973         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
80974         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
80975         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
80976         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
80977         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
80978         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
80979         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
80980         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
80981         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
80982         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
80983         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
80984         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
80985         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
80986         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
80987         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
80988         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
80989         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
80990         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
80991         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
80992         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
80993         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
80994         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
80995         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
80996         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
80997         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
80998         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
80999         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81000         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81001         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81002         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81003         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81004         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81005         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81006         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81007         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81008         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81009         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81010         * sysdeps/ieee754/k_standard.c: Likewise.
81011         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81012         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81013         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81014         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81015         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81016         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81017         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81018         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81019         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81020         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81021         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81022         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81023         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81024         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81025         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81026         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81027         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81028         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81029         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81030         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81031         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81032         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81033         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81034         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81035         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81036         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81037         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81038         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81039         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81040         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81041         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81042         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81043         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81044         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81045         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81046         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81047         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81048         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81049         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81050         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81051         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81052         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81053         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81054         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81055         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81056         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81057         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81058         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81059         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81060         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81061         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81062         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81063         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81064         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81065         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81066         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81067         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81068         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81069         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81070         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81071         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81072         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81073         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81074         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81075         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81076         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81077         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81078         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81079         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81080         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81081         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81082         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81083         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81084         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81085         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81086         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81087         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81088         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81089         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81090         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81091         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81092         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81093         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81094         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81095         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81096         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81097         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81098         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81099         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81100         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81101         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81102         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81103         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81104         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81105         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81106         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81107         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81108         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81109         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81110         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81111         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81112         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81113         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81114         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81115         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81116         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81117         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81118         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81119         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81120         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81121         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81122         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81123         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81124         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81125         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81126         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81127         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81128         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81129         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81130         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81131         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81132         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81133         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81134         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81135         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81136         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81137         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81138         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81139         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81140         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81141         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81142         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81143         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81144         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81145         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81146         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81147         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81148         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81149         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81150         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81151         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81152         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81153         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81154         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81155         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81156         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81157         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81158         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81159         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81160         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81161         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81162         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81163         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81164         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81165         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81166         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81167         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81168         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81169         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81170         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81171         * sysdeps/ieee754/s_lib_version.c: Likewise.
81172         * sysdeps/ieee754/s_matherr.c: Likewise.
81173         * sysdeps/ieee754/s_signgam.c: Likewise.
81174         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81175         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81176         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81177         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81178         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81179         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81180         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81181         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81182         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81183         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81184         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81185         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81186         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81187         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81188         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81189         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81190         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81191         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81192         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81193         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81194         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81195
81196 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81197
81198         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81199         * sunrpc/rpc_main.c: Likewise.
81200         * sunrpc/rpc_svcout.c: Likewise.
81201
81202 2012-03-09  David S. Miller  <davem@davemloft.net>
81203
81204         * include/math_private.h: New file.
81205
81206 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81207
81208         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81209         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81210         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81211         from <bits/socket_type.h>.
81212         (enum __socket_type): Don't define here.
81213         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81214         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81215         bits/socket_type.h.
81216
81217         [BZ #13566]
81218         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81219         checking __USE_GNU.
81220
81221         * Makerules ($(inst_includedir)/%.h): New rule.
81222         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81223         (install-others): Remove variable setting.
81224         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81225
81226 2012-03-08  Richard Henderson  <rth@twiddle.net>
81227
81228         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81229         from macro to inline function; merge with the
81230         !__LIBC_INTERNAL_MATH_INLINES version.
81231         (__ieee754_sqrtf): Likewise.
81232
81233         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81234         to inline function.
81235         (__rintf, __floor, __floorf): Likewise.
81236
81237         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81238         macro to inline function.
81239         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81240
81241         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81242         not <math/math_private.h>.
81243
81244 2012-03-08  David S. Miller  <davem@davemloft.net>
81245
81246         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81247         copyright year.
81248         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81249
81250 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81251
81252         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81253         normalization.
81254         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81255         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81256
81257 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81258
81259         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81260         be defined individually, they must be defined as a block.  Define
81261         S for printing a string instead of hidint the different by using a
81262         macro for adding the 'l'.
81263         * stdio-common/tst-fphex-wide.c: Adjust.
81264
81265 2012-03-07  Marek Polacek  <polacek@redhat.com>
81266
81267         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81268
81269 2012-03-08  Marek Polacek  <polacek@redhat.com>
81270
81271         [BZ #13806]
81272         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81273         * stdio-common/tst-fphex.c: Define a few macros to make the
81274         test reusable.  Use them.
81275         * stdio-common/tst-fphex-wide.c: New file.
81276
81277 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81278
81279         [BZ #6911]
81280         * manual/macros.texi (gnusystems): New macro.
81281         (nongnusystems): Likewise.
81282         (gnulinuxhurdsystems): Likewise.
81283         (gnuhurdsystems): Likewise..
81284         (gnulinuxsystems): Likewise.
81285         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81286         variants of the GNU system, not "GNU system".
81287         * manual/conf.texi: Likewise.
81288         * manual/errno.texi: Likewise.  Update example of errno macro
81289         expansion.
81290         * manual/filesys.texi: Likewise.
81291         (getumask): Document as specific to GNU/Hurd.
81292         * manual/install.texi: Likewise.  Reword some references to
81293         GNU/Linux.
81294         * manual/intro.texi: Likewise.
81295         * manual/io.texi: Likewise.
81296         (File Name Portability): Detail which constraints are inapplicable
81297         to all GNU systems and which are only inapplicable to GNU/Hurd.
81298         * manual/job.texi: Likewise.
81299         * manual/llio.texi: Likewise.
81300         (O_NOCTTY): Document as present on GNU/Linux.
81301         * manual/maint.texi: Likewise.
81302         * manual/memory.texi: Likewise.
81303         * manual/pattern.texi: Likewise.
81304         * manual/pipe.texi: Likewise.
81305         * manual/process.texi: Likewise.
81306         * manual/resource.texi: Likewise.
81307         (RUSAGE_CHILDREN): Remove statement about specifying a particular
81308         child on GNU/Hurd.
81309         * manual/setjmp.texi: Likewise.
81310         * manual/signal.texi: Likewise.
81311         * manual/startup.texi: Likewise.
81312         * manual/stdio.texi: Likewise.
81313         * manual/terminal.texi: Likewise.
81314         (ONLCR): Document as POSIX.
81315         (OXTABS): Document availability on GNU/Linux as XTABS.
81316         (ONOEOT): Document availability separately from other bits.
81317         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
81318         * manual/time.texi: Likewise.
81319         * manual/users.texi: Likewise.
81320         * INSTALL: Regenerated.
81321         * sysdeps/gnu/errlist.c: Regenerated.
81322
81323         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
81324         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
81325         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
81326         puts.
81327         * configure: Regenerated.
81328
81329 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
81330
81331         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
81332         default includes instead of AC_HEADER_CHECK.
81333         * sysdeps/i386/configure: Regenerated.
81334
81335         [BZ #10716]
81336         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
81337         * math/s_cacoshf.c (__cacoshf): Likewise.
81338         * math/s_cacoshl.c (__cacoshl): Likewise.
81339         * math/s_casinh.c (__casinh): Set signs of result from argument.
81340         * math/s_casinhf.c (__casinhf): Likewise.
81341         * math/s_casinhl.c (__casinhl): Likewise.
81342         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
81343         (casinh_test): Add more tests.
81344         * sysdeps/i386/fpu/libm-test-ulps: Update.
81345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81346
81347 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
81348
81349         * po/zh_TW.po: Update from translation team.
81350
81351         * login/Makefile (distribute): Remove variable.
81352         * catgets/Makefile: Likewise.
81353         * mach/Makefile: Likewise.
81354         * malloc/Makefile: Likewise.
81355         * misc/Makefile: Likewise.
81356         * iconv/Makefile: Likewise.
81357         * nscd/Makefile: Likewise.
81358         * hurd/Makefile: Likewise.
81359         * manual/Makefile: Likewise.
81360         * locale/Makefile: Likewise.
81361         * intl/Makefile: Likewise.
81362         * conform/Makefile: Likewise.
81363         * nss/Makefile: Likewise.
81364         * time/Makefile: Likewise.
81365         * soft-fp/Makefile: Likewise.
81366         * dirent/Makefile: Likewise.
81367         * gmon/Makefile: Likewise.
81368         * po/Makefile: Likewise.
81369         * rt/Makefile: Likewise.
81370         * socket/Makefile: Likewise.
81371         * math/Makefile: Likewise.
81372         * signal/Makefile: Likewise.
81373         * debug/Makefile: Likewise.
81374         * elf/Makefile: Likewise.
81375         * timezone/Makefile: Likewise.
81376         * stdlib/Makefile: Likewise.
81377         * iconvdata/Makefile: Likewise.
81378         * sunrpc/Makefile: Likewise.
81379         * io/Makefile: Likewise.
81380         * argp/Makefile: Likewise.
81381         * inet/Makefile: Likewise.
81382         * hesiod/Makefile: Likewise.
81383         * grp/Makefile: Likewise.
81384         * csu/Makefile: Likewise.
81385         * wctype/Makefile: Likewise.
81386         * crypt/Makefile: Likewise.
81387         * libio/Makefile: Likewise.
81388         * string/Makefile: Likewise.
81389         * nis/Makefile: Likewise.
81390         * resolv/Makefile: Likewise.
81391         * stdio-common/Makefile: Likewise.
81392         * wcsmbs/Makefile: Likewise.
81393         * dlfcn/Makefile: Likewise.
81394         * posix/Makefile: Likewise.
81395
81396         [BZ #6959]
81397         * timezone/Makefile: Don't install timezone files, just the programs
81398         and scripts.
81399
81400 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
81401
81402         * nss/databases.def: Add missing gshadow entry.
81403
81404         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
81405
81406 2012-03-06  Marek Polacek  <polacek@redhat.com>
81407
81408         [BZ #13726]
81409         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
81410         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
81411         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
81412         * stdio-common/tst-long-dbl-fphex.c: New file.
81413
81414 2012-03-06  David S. Miller  <davem@davemloft.net>
81415
81416         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
81417         (set_obp_int): New function.
81418         (get_obp_int): New function.
81419         (__get_clockfreq_via_dev_openprom): Likewise.
81420         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
81421         Avoid unused variable warnings on 'val' and use builtin_expect.
81422         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
81423         __builtin_expect.
81424         (INLINE_CLONE_SYSCALL): Likewise.
81425
81426 2012-03-05  David S. Miller  <davem@davemloft.net>
81427
81428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81429
81430 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
81431
81432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81433
81434         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
81435         only for |x| >= 40.
81436         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81437
81438 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
81439
81440         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
81441         Replace gettimeofday with __vdso_gettimeofday.
81442
81443         * sysdeps/unix/sysv/linux/x86_64/init-first.c
81444         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
81445         __vdso_clock_gettime and __vdso_getcpu.
81446
81447         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
81448         time with __vdso_time.
81449
81450 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81451
81452         * manual/lang.texi (size_t): Note types to which size_t may be
81453         equivalent with the GNU C Library, but do not describe when
81454         differences between them are significant.
81455
81456 2012-03-05  Andreas Jaeger  <aj@suse.de>
81457
81458         * sysdeps/i386/fpu/libm-test-ulps: Update.
81459
81460 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81461
81462         [BZ #3976]
81463         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
81464         (__ieee754_pow): Save and restore rounding mode and use
81465         round-to-nearest for main computations.
81466         * math/libm-test.inc (pow_test_tonearest): New function.
81467         (pow_test_towardzero): Likewise.
81468         (pow_test_downward): Likewise.
81469         (pow_test_upward): Likewise.
81470         (main): Call the new functions.
81471         * sysdeps/i386/fpu/libm-test-ulps: Update.
81472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81473
81474         [BZ #3976]
81475         * math/libm-test.inc (cosh_test_tonearest): New function.
81476         (cosh_test_towardzero): Likewise.
81477         (cosh_test_downward): Likewise.
81478         (cosh_test_upward): Likewise.
81479         (sinh_test_tonearest): Likewise.
81480         (sinh_test_towardzero): Likewise.
81481         (sinh_test_downward): Likewise.
81482         (sinh_test_upward): Likewise.
81483         (main): Call the new functions.
81484         * sysdeps/i386/fpu/libm-test-ulps: Update.
81485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81486
81487 2012-03-05  Tom de Vries  <tom@codesourcery.com>
81488
81489         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
81490         default stack guard is set in last bytes.
81491         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
81492
81493 2012-03-05  Kees Cook  <keescook@chromium.org>
81494
81495         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
81496
81497         [BZ #13656]
81498         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
81499         possibly allocate from heap instead of stack.
81500         * stdio-common/bug-vfprintf-nargs.c: New file.
81501         * stdio-common/Makefile (tests): Add nargs overflow test.
81502
81503 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
81504
81505         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81506
81507 2012-03-03  Marek Polacek  <polacek@redhat.com>
81508
81509         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
81510         * math/math_private.h: Likewise.
81511         * stdlib/tst-strtod.c: Likewise.
81512         * sysdeps/i386/i486/bits/atomic.h: Likewise.
81513         * sysdeps/x86_64/bits/atomic.h: Likewise.
81514
81515 2012-03-02  David S. Miller  <davem@davemloft.net>
81516
81517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
81518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
81519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
81520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
81521         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
81522         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
81523         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
81524         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
81525
81526 2012-03-02  Roland McGrath  <roland@hack.frob.com>
81527
81528         [BZ #13792]
81529         * manual/examples/README: New file, says the example source files
81530         can be used under GPL>=2.
81531         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
81532         line containing just "*/".
81533         * manual/examples/add.c: Add copyright header (GPL>=2).
81534         * manual/examples/argp-ex1.c: Likewise.
81535         * manual/examples/argp-ex2.c: Likewise.
81536         * manual/examples/argp-ex3.c: Likewise.
81537         * manual/examples/argp-ex4.c: Likewise.
81538         * manual/examples/atexit.c: Likewise.
81539         * manual/examples/db.c: Likewise.
81540         * manual/examples/dir.c: Likewise.
81541         * manual/examples/dir2.c: Likewise.
81542         * manual/examples/execinfo.c: Likewise.
81543         * manual/examples/filecli.c: Likewise.
81544         * manual/examples/filesrv.c: Likewise.
81545         * manual/examples/fmtmsgexpl.c: Likewise.
81546         * manual/examples/genpass.c: Likewise.
81547         * manual/examples/inetcli.c: Likewise.
81548         * manual/examples/inetsrv.c: Likewise.
81549         * manual/examples/isockad.c: Likewise.
81550         * manual/examples/longopt.c: Likewise.
81551         * manual/examples/memopen.c: Likewise.
81552         * manual/examples/memstrm.c: Likewise.
81553         * manual/examples/mkfsock.c: Likewise.
81554         * manual/examples/mkisock.c: Likewise.
81555         * manual/examples/mygetpass.c: Likewise.
81556         * manual/examples/pipe.c: Likewise.
81557         * manual/examples/popen.c: Likewise.
81558         * manual/examples/rprintf.c: Likewise.
81559         * manual/examples/search.c: Likewise.
81560         * manual/examples/select.c: Likewise.
81561         * manual/examples/setjmp.c: Likewise.
81562         * manual/examples/sigh1.c: Likewise.
81563         * manual/examples/sigusr.c: Likewise.
81564         * manual/examples/stpcpy.c: Likewise.
81565         * manual/examples/strdupa.c: Likewise.
81566         * manual/examples/strftim.c: Likewise.
81567         * manual/examples/strncat.c: Likewise.
81568         * manual/examples/subopt.c: Likewise.
81569         * manual/examples/swapcontext.c: Likewise.
81570         * manual/examples/termios.c: Likewise.
81571         * manual/examples/testopt.c: Likewise.
81572         * manual/examples/testpass.c: Likewise.
81573         * manual/examples/timeval_subtract.c: Likewise.
81574
81575         [BZ #13792]
81576         * manual/time.texi (Elapsed Time): Move timeval_subtract example
81577         function to ...
81578         * manual/timeval_subtract.c.texi: ... here, new file.
81579
81580 2012-03-02  David S. Miller  <davem@davemloft.net>
81581
81582         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
81583
81584 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
81585
81586         [BZ #3976]
81587         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
81588         (__sin): Save and restore rounding mode and use round-to-nearest
81589         for all computations.
81590         (__cos): Save and restore rounding mode and use round-to-nearest
81591         for all computations.
81592         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
81593         <fenv.h>.
81594         (tan): Save and restore rounding mode and use round-to-nearest for
81595         all computations.
81596         * math/libm-test.inc (cos_test_tonearest): New function.
81597         (cos_test_towardzero): Likewise.
81598         (cos_test_downward): Likewise.
81599         (cos_test_upward): Likewise.
81600         (sin_test_tonearest): Likewise.
81601         (sin_test_towardzero): Likewise.
81602         (sin_test_downward): Likewise.
81603         (sin_test_upward): Likewise.
81604         (tan_test_tonearest): Likewise.
81605         (tan_test_towardzero): Likewise.
81606         (tan_test_downward): Likewise.
81607         (tan_test_upward): Likewise.
81608         (main): Call the new functions.
81609         * sysdeps/i386/fpu/libm-test-ulps: Update.
81610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81611
81612         [BZ #10135]
81613         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
81614         small n, then large n, before computing and testing k+n.
81615         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
81616         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
81617         Likewise.
81618         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
81619         Likewise.
81620         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
81621         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
81622         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
81623         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
81624         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
81625         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
81626         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
81627         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
81628         * math/libm-test.inc (scalbn_test): Add more tests.
81629         (scalbln_test): Likewise.
81630
81631         * manual/filesys.texi (mode_t): Describe constraints on size and
81632         signedness, not exact equivalence to a particular type.
81633         (ino_t): Likewise.
81634         (ino64_t): Likewise.
81635         (dev_t): Likewise.
81636         (nlink_t): Likewise.
81637         (blkcnt_t): Likewise.
81638         (blkcnt64_t): Likewise.
81639         * manual/llio.texi (off_t): Likewise.
81640
81641         [BZ #3976]
81642         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
81643         (__ieee754_exp): Save and restore rounding mode and use
81644         round-to-nearest for all computations.
81645         * math/libm-test.inc (exp_test_tonearest): New function.
81646         (exp_test_towardzero): Likewise.
81647         (exp_test_downward): Likewise.
81648         (exp_test_upward): Likewise.
81649         (main): Call the new functions.
81650         * sysdeps/i386/fpu/libm-test-ulps: Update.
81651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81652
81653 2012-03-01  Chris Demetriou  <cgd@google.com>
81654
81655         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
81656         have predictable order.
81657
81658 2012-03-01  David S. Miller  <davem@davemloft.net>
81659
81660         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
81661
81662         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
81663         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
81664         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
81665         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
81666
81667         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
81668         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
81669         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
81670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
81671         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
81672         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
81673         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
81674         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
81675         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
81676
81677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81678
81679         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
81680         * sysdeps/sparc/fpu/libm-test-ulps: to here.
81681         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
81682
81683         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
81684         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
81685         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
81686         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
81687         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
81688         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
81689         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
81690         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
81691         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
81692         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
81693         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
81694         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
81695         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
81696         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
81697         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
81698         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
81699         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
81700         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
81701         * sysdeps/sparc/elf/configure: Regenerated.
81702
81703 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
81704
81705         * configure.in (AS, LD): Require binutils 2.20 or later.
81706         * configure: Regenerated.
81707         * manual/install.texi (Tools for Compilation): Give binutils 2.20
81708         as required minimum version.
81709         * INSTALL: Regenerated.
81710
81711         [BZ #2541]
81712         [BZ #4108]
81713         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
81714         before squaring exponent.
81715         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
81716         bottom long double and 27 bits of top long double before squaring
81717         exponent.
81718         * math/libm-test.inc (erfc_test): Add more tests.
81719         * sysdeps/i386/fpu/libm-test-ulps: Update.
81720         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
81721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81722
81723 2012-03-01  Kai Tietz  <ktietz@redhat.com>
81724
81725         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
81726         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
81727         containing bit-fields.
81728         * soft-fp/extended.h (_FP_UNION_E): Likewise.
81729         * soft-fp/single.h (_FP_UNION_S): Likewise.
81730         * soft-fp/double.h (_FP_UNION_D): Likewise.
81731
81732 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81733
81734         [BZ #13786]
81735         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
81736         not include ../strcmp.S.
81737         [USE_AS_STRNCASECMP_L]: Likewise.
81738         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
81739         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
81740         * sysdeps/i386/i686/multiarch/strncase_l-c.c
81741         (__strncasecmp_l_ia32): Define as alias to
81742         __strncasecmp_l_nonascii.
81743
81744         [BZ #5794]
81745         * math/libm-test.inc (expm1_test): Add test for bug 5794.
81746         * sysdeps/i386/fpu/libm-test-ulps: Update.
81747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81748
81749         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
81750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81751
81752 2012-02-29  Jeff Law  <law@redhat.com>
81753
81754         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
81755         out of bounds read.
81756
81757 2012-02-29  Marek Polacek  <polacek@redhat.com>
81758
81759         [BZ #13706]
81760         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
81761         * elf/Makefile: Add rules to run tst-unused-dep.out.
81762
81763 2012-02-28  David S. Miller  <davem@davemloft.net>
81764
81765         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
81766         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
81767         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
81768         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
81769         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
81770         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
81771
81772 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
81773
81774         * math/libm-test.inc (llround_test): Move one test from
81775         lround_test.  Use TEST_f_L in moved test.
81776         (lround_test): Move misplaced test to llround_test.  Add testcase
81777         from bug 2561.
81778
81779 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
81780
81781         * sysdeps/x86_64/fpu/e_expf.S: New file.
81782         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
81783
81784 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
81785
81786         [BZ #13637]
81787         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
81788         of remain_len that may cause incomplete multi-byte character and
81789         false match.
81790         * posix/bug-regex33.c: New file.
81791         * posix/Makefile (tests): Add bug-regex33.
81792
81793 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
81794
81795         * manual/macros.texi: New file.
81796         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
81797         * manual/libc.texinfo: Include macros.texi.
81798         * manual/creatute.texi: Likewise.
81799         * manual/install.texi: Likewise.
81800         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
81801         @glibcadj{} in references to the GNU C Library.
81802         * manual/charset.texi: Likewise.
81803         * manual/conf.texi: Likewise.
81804         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
81805         when not using those macros.
81806         * manual/creature.texi: Likewise.
81807         * manual/crypt.texi: Likewise.
81808         * manual/errno.texi: Likewise.
81809         * manual/filesys.texi: Likewise.
81810         * manual/header.texi: Likewise.
81811         * manual/install.texi: Likewise.
81812         * manual/intro.texi: Likewise.
81813         * manual/io.texi: Likewise.
81814         * manual/job.texi: Likewise.
81815         * manual/lang.texi: Likewise.
81816         * manual/libc.texiinfo: Likewise.
81817         * manual/llio.texi: Likewise.
81818         * manual/locale.texi: Likewise.
81819         * manual/maint.texi: Likewise.
81820         * manual/math.texi: Likewise.
81821         * manual/memory.texi: Likewise.
81822         * manual/message.texi: Likewise.
81823         * manual/nss.texi: Likewise.
81824         * manual/pattern.texi: Likewise.
81825         * manual/process.texi: Likewise.
81826         * manual/resource.texi: Likewise.
81827         * manual/search.texi: Likewise.
81828         * manual/setjmp.texi: Likewise.
81829         * manual/signal.texi: Likewise.
81830         * manual/socket.texi: Likewise.
81831         * manual/startup.texi: Likewise.
81832         * manual/stdio.texi: Likewise.
81833         * manual/string.texi: Likewise.
81834         * manual/sysinfo.texi: Likewise.
81835         * manual/syslog.texi: Likewise.
81836         * manual/terminal.texi: Likewise.
81837         * manual/time.texi: Likewise.
81838         * manual/users.texi: Likewise.
81839         * INSTALL: Regenerated.
81840         * NOTES: Regenerated.
81841         * sysdeps/gnu/errlist.c: Regenerated.
81842
81843 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
81844
81845         * include/dirent.h: Include <dirstream.h> before
81846         <dirent/dirent.h>.
81847
81848 2012-02-28  David S. Miller  <davem@davemloft.net>
81849
81850         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
81851         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
81852         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
81853         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
81854
81855 2012-02-27  David S. Miller  <davem@davemloft.net>
81856
81857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
81858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
81859         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
81860         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
81861
81862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
81863         frame pointer instead of stack pointer relative arg slot.
81864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
81865         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
81866         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
81867
81868 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
81869
81870         [BZ #3992]
81871         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
81872
81873 2012-02-27  David S. Miller  <davem@davemloft.net>
81874
81875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
81876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
81877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
81878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
81879         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
81880         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
81881         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
81882         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
81883
81884 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
81885
81886         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
81887         later.  Allow versions 5-9.
81888         * configure: Regenerated.
81889         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
81890         required minimum version and 4.6 as recommended version.  Do not
81891         mention bugs in GCC 2.7 and 2.8.
81892         * INSTALL: Regenerated.
81893
81894 2012-02-27  David S. Miller  <davem@davemloft.net>
81895
81896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
81897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
81898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
81899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
81900         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
81901         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
81902         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
81903         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
81904
81905         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
81906         manipulate bits before adding and subtracting TWO112[sx].
81907         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
81908
81909 2012-02-27  Roland McGrath  <roland@hack.frob.com>
81910
81911         [BZ #13775]
81912         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
81913         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
81914         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
81915         being in POSIX, because they are in 1003.1-2008.
81916
81917         * rt/tst-aio.c: Include <fcntl.h>.
81918         * rt/tst-aio7.c: Likewise.
81919         * rt/tst-aio64.c: Likewise.
81920
81921         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
81922
81923 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
81924
81925         * manual/install.texi (--with-headers): Describe headers as
81926         interface headers, not private headers.
81927         (Specific advice for GNU/Linux systems): Describe use of headers
81928         from "make headers_install", not private headers from older
81929         kernels.
81930         * INSTALL: Regenerated.
81931         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
81932         Change to 2.6.19.
81933         * sysdeps/unix/sysv/linux/configure: Regenerated.
81934
81935         * manual/llio.texi (fclean): Remove documentation.
81936
81937         * manual/Makefile (libc-texi-generated): New variable.  Include
81938         version.texi.
81939         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
81940         $(libc-texi-generated), not duplicated list of files.
81941         (version.texi, stamp-version): New rules.
81942         (realclean): Remove $(libc-texi-generated), not individual files
81943         from that list.  Do not remove dir-add.texinfo.
81944         * manual/libc.texinfo: Comment out uses of edition numbers and
81945         references to printed manual.  Remove last-updated dates.
81946         (EDITION): Comment out.
81947         (ISBN): Likewise.
81948         (VERSION, UPDATED): Remove.
81949         (version.texi): Include.
81950
81951 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
81952
81953         * sysdeps/posix/spawni.c: Include <signal.h>.
81954         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
81955         * sysdeps/pthread/aio_fsync.c: Likewise.
81956
81957 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
81958
81959         * conform/Makefile (tests): Run only when not cross-compiling and
81960         when fast-check is not defined.
81961
81962         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
81963         * conform/data/limits.h-data: Fixes for POSIX2008.
81964         * conform/run-conformtest.sh: Run all tests.
81965         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
81966         headers.
81967         * include/bits/dlfcn.h: Likewise.
81968         * include/langinfo.h: Likewise.
81969         * include/monetary.h: Likewise.
81970         * include/sys/poll.h: Likewise.
81971
81972         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
81973         for __USE_GNU.
81974         * posix/spawn.h: Define __need_sigset_t.
81975         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
81976         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
81977         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
81978         to get sigevent_t only.
81979         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
81980         only for __USE_GNU.
81981         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81982         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
81983         process_vm_writev only for __USE_GNU.
81984         * termios/termios.h: Declare tcgetsid also for POSIX2008.
81985
81986         * conform/Makefile: For now ignore errors from run-conformtest.
81987         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
81988         POSIX to avoid namespace pollution.  Don't prepend headers.
81989         * conform/data/aio.h-data: Fixes for POSIX testing.
81990         * conform/data/fcntl.h-data: Likewise.
81991         * conform/data/glob.h-data: Likewise.
81992         * conform/data/grp.h-data: Likewise.
81993         * conform/data/pthread.h-data: Likewise.
81994         * conform/data/pwd.h-data: Likewise.
81995         * conform/data/signal.h-data: Likewise.
81996         * conform/data/spawn.h-data: Likewise.
81997         * conform/data/stdio.h-data: Likewise.
81998         * conform/data/stdlib.h-data: Likewise.
81999         * conform/data/stropts.h-data: Likewise.
82000         * conform/data/sys/mman.h-data: Likewise.
82001         * conform/data/sys/stat.h-data: Likewise.
82002         * conform/data/sys/types.h-data: Likewise.
82003         * conform/data/sys/wait.h-data: Likewise.
82004         * conform/data/time.h-data: Likewise.
82005         * conform/data/unistd.h-data: Likewise.
82006         * conform/data/utime.h-data: Likewise.
82007
82008         * io/sys/stat.h: fchmod was always in POSIX.
82009         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82010         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82011         * rt/aio.h: Define __need_timespec before including <time.h>.
82012         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82013         struct.  Add forward declaration of pthread_attr_t and use it in
82014         sigevent.
82015         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82016         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82017         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82018         always remove CLK_TCK definition.
82019
82020 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82021
82022         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82023
82024 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82025
82026         * conform/run-conformtest.sh: New file.
82027         * conform/Makefile: Run run-conformtest for tests.
82028         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82029         support.
82030
82031         * conform/data/uchar.h-data: New file.
82032         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82033         * conform/data/arpa/inet.h-data: Likewise.
82034         * conform/data/assert.h-data: Likewise.
82035         * conform/data/complex.h-data: Likewise.
82036         * conform/data/cpio.h-data: Likewise.
82037         * conform/data/ctype.h-data: Likewise.
82038         * conform/data/dirent.h-data: Likewise.
82039         * conform/data/dlfcn.h-data: Likewise.
82040         * conform/data/errno.h-data: Likewise.
82041         * conform/data/fcntl.h-data: Likewise.
82042         * conform/data/float.h-data: Likewise.
82043         * conform/data/fmtmsg.h-data: Likewise.
82044         * conform/data/fnmatch.h-data: Likewise.
82045         * conform/data/ftw.h-data: Likewise.
82046         * conform/data/glob.h-data: Likewise.
82047         * conform/data/grp.h-data: Likewise.
82048         * conform/data/iconv.h-data: Likewise.
82049         * conform/data/inttypes.h-data: Likewise.
82050         * conform/data/langinfo.h-data: Likewise.
82051         * conform/data/libgen.h-data: Likewise.
82052         * conform/data/limits.h-data: Likewise.
82053         * conform/data/locale.h-data: Likewise.
82054         * conform/data/math.h-data: Likewise.
82055         * conform/data/monetary.h-data: Likewise.
82056         * conform/data/mqueue.h-data: Likewise.
82057         * conform/data/ndbm.h-data: Likewise.
82058         * conform/data/net/if.h-data: Likewise.
82059         * conform/data/netdb.h-data: Likewise.
82060         * conform/data/netinet/in.h-data: Likewise.
82061         * conform/data/nl_types.h-data: Likewise.
82062         * conform/data/poll.h-data: Likewise.
82063         * conform/data/pthread.h-data: Likewise.
82064         * conform/data/pwd.h-data: Likewise.
82065         * conform/data/regex.h-data: Likewise.
82066         * conform/data/sched.h-data: Likewise.
82067         * conform/data/search.h-data: Likewise.
82068         * conform/data/semaphore.h-data: Likewise.
82069         * conform/data/setjmp.h-data: Likewise.
82070         * conform/data/signal.h-data: Likewise.
82071         * conform/data/spawn.h-data: Likewise.
82072         * conform/data/stdarg.h-data: Likewise.
82073         * conform/data/stdio.h-data: Likewise.
82074         * conform/data/stdlib.h-data: Likewise.
82075         * conform/data/string.h-data: Likewise.
82076         * conform/data/strings.h-data: Likewise.
82077         * conform/data/stropts.h-data: Likewise.
82078         * conform/data/sys/ipc.h-data: Likewise.
82079         * conform/data/sys/mman.h-data: Likewise.
82080         * conform/data/sys/msg.h-data: Likewise.
82081         * conform/data/sys/resource.h-data: Likewise.
82082         * conform/data/sys/select.h-data: Likewise.
82083         * conform/data/sys/sem.h-data: Likewise.
82084         * conform/data/sys/shm.h-data: Likewise.
82085         * conform/data/sys/socket.h-data: Likewise.
82086         * conform/data/sys/stat.h-data: Likewise.
82087         * conform/data/sys/statvfs.h-data: Likewise.
82088         * conform/data/sys/time.h-data: Likewise.
82089         * conform/data/sys/timeb.h-data: Likewise.
82090         * conform/data/sys/times.h-data: Likewise.
82091         * conform/data/sys/types.h-data: Likewise.
82092         * conform/data/sys/uio.h-data: Likewise.
82093         * conform/data/sys/un.h-data: Likewise.
82094         * conform/data/sys/utsname.h-data: Likewise.
82095         * conform/data/sys/wait.h-data: Likewise.
82096         * conform/data/syslog.h-data: Likewise.
82097         * conform/data/tar.h-data: Likewise.
82098         * conform/data/termios.h-data: Likewise.
82099         * conform/data/utime.h-data: Likewise.
82100         * conform/data/utmpx.h-data: Likewise.
82101         * conform/data/varargs.h-data: Likewise.
82102         * conform/data/wchar.h-data: Likewise.
82103         * conform/data/wctype.h-data: Likewise.
82104         * conform/data/wordexp.h-data: Likewise.
82105
82106         * include/stropts.h: New file.
82107         * include/uchar.h: New file.
82108         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82109         * include/assert.h: Likewise.
82110         * include/ctype.h: Likewise.
82111         * include/dirent.h: Likewise.
82112         * include/dlfcn.h: Likewise.
82113         * include/fcntl.h: Likewise.
82114         * include/fnmatch.h: Likewise.
82115         * include/glob.h: Likewise.
82116         * include/grp.h: Likewise.
82117         * include/libio.h: Likewise.
82118         * include/locale.h: Likewise.
82119         * include/math.h: Likewise.
82120         * include/net/if.h: Likewise.
82121         * include/netdb.h: Likewise.
82122         * include/netinet/in.h: Likewise.
82123         * include/pthread.h: Likewise.
82124         * include/pwd.h: Likewise.
82125         * include/regex.h: Likewise.
82126         * include/sched.h: Likewise.
82127         * include/search.h: Likewise.
82128         * include/setjmp.h: Likewise.
82129         * include/signal.h: Likewise.
82130         * include/stdio.h: Likewise.
82131         * include/stdlib.h: Likewise.
82132         * include/string.h: Likewise.
82133         * include/sys/cdefs.h: Likewise.
82134         * include/sys/mman.h: Likewise.
82135         * include/sys/msg.h: Likewise.
82136         * include/sys/resource.h: Likewise.
82137         * include/sys/select.h: Likewise.
82138         * include/sys/socket.h: Likewise.
82139         * include/sys/stat.h: Likewise.
82140         * include/sys/statvfs.h: Likewise.
82141         * include/sys/time.h: Likewise.
82142         * include/sys/times.h: Likewise.
82143         * include/sys/uio.h: Likewise.
82144         * include/sys/utsname.h: Likewise.
82145         * include/sys/wait.h: Likewise.
82146         * include/termios.h: Likewise.
82147         * include/time.h: Likewise.
82148         * include/ulimit.h: Likewise.
82149         * include/unistd.h: Likewise.
82150         * include/utime.h: Likewise.
82151         * include/wchar.h: Likewise.
82152         * include/wctype.h: Likewise.
82153         * include/wordexp.h: Likewise.
82154
82155         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82156
82157         * time/time.h: TIME_UTC must be a macro.
82158         Make timespec_get available for ISO C11 only as well.
82159
82160 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82161
82162         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82163         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82164
82165 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82166
82167         * configure.in: Use -o not -a in test for unsupported multi-arch.
82168
82169 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82170
82171         * manual/texinfo.tex: Update to version 2012-01-19.16.
82172
82173 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82174
82175         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82176
82177 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82178
82179         [BZ #13738]
82180         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82181         * manual/fdl-1.3.texi: New file.
82182         * manual/fdl-1.1.texi: File removed.
82183
82184         [BZ #13738]
82185         * manual/libc.texinfo (FDL_VERSION): New @set.
82186         Use it for mention of FDL in cover text.
82187         (Documentation License): Use it in @include file name.
82188
82189 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82190             Roland McGrath  <roland@hack.frob.com>
82191
82192         [BZ #5461]
82193         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82194         (not LONG_LONG_MAX and LONG_LONG_MIN.
82195         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82196         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82197         name.
82198         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82199
82200 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82201
82202         [BZ #2547]
82203         [BZ #11365]
82204         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82205         manipulate bits before adding and subtracting TWO23[sx].
82206         * math/libm-test.inc (nearbyint_test): Add more tests.
82207
82208 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82209
82210         [BZ #2548]
82211         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82212         bits before adding and subtracting TWO23[sx].
82213         * math/libm-test.inc (rint_test): Add more tests.
82214         (rint_test_tonearest): Likewise.
82215         (rint_test_towardzero): Likewise.
82216         (rint_test_downward): Likewise.
82217         (rint_test_upward: Likewise.
82218
82219 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82220
82221         [BZ #10110]
82222         * include/stdc-predef.h: New file.  Extracted from features.h.
82223         * include/features.h: Include stdc-predef.h.
82224         * Makefile (headers): Add stdc-predef.h.
82225         * CONFORMANCE (Compiler limitations): Update.
82226
82227 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82228
82229         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82230
82231 2012-02-21  David S. Miller  <davem@davemloft.net>
82232
82233         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82234         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82235
82236 2012-02-20  David S. Miller  <davem@davemloft.net>
82237
82238         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82239         using a normal save/restore sequence, rather than allocating a
82240         dummy stack frame just to store a frame pointer and restore.
82241         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82242
82243 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82244
82245         * manual/install.texi: Fix stray word in line-wrapped comment.
82246
82247 2012-02-20  David S. Miller  <davem@davemloft.net>
82248
82249         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82250         both binutils and gcc support GOTDATA.
82251
82252         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82253         "rd %pc" in the PIC register setup sequences.
82254
82255         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82256         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82257         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82258         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82259         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82260         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82261         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82262         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82263         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82264         (SYSCALL_ERROR_HANDLER): Likewise.
82265         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82266         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82267         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82268         (SYSCALL_ERROR_HANDLER): Likewise.
82269
82270         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82271         (HAVE_GCC_GOTDATA): New.
82272         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82273         relocation support in both binutils and gcc.
82274         * sysdeps/sparc/elf/configure: Regenerate.
82275
82276         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82277         * sysdeps/sparc/sparc32/elf/configure: Delete.
82278         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82279         * sysdeps/sparc/sparc64/elf/configure: Delete.
82280         * sysdeps/sparc/elf/configure.in: New file.
82281         * sysdeps/sparc/elf/configure: Generate.
82282
82283         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82284         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82285         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82286         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82287         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82288
82289 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82290
82291         * manual/install.texi: Do not mention specific glibc version
82292         numbers.
82293         * manual/libc.texinfo (VERSION, UPDATED): Update.
82294         (@copying): Use @copyright{} and range of years.
82295
82296 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82297
82298         [BZ #13695]
82299         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82300         [crti.S not in sysdirs] (generated): Do not append.
82301         [crti.S not in sysdirs] (omit-deps): Likewise.
82302         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82303         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82304         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82305         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82306         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
82307         Likewise.
82308         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
82309         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
82310         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
82311         * csu/defs.awk: Remove file.
82312         * sysdeps/generic/initfini.c: Likewise.
82313         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
82314         variable.
82315         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
82316         Likewise.
82317
82318 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82319
82320         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
82321         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
82322         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
82323         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
82324         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82325         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
82326         <bits/epoll.h>.
82327         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
82328         (__EPOLL_PACKED): Define to empty if not defined by
82329         <bits/epoll.h>.
82330         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
82331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82332         bits/epoll.h.
82333
82334 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82335
82336         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
82337         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
82338         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
82339         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
82340         <bits/timerfd.h>.
82341         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
82342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82343         bits/timerfd.h.
82344
82345 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82346
82347         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
82348         in C locale.
82349         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82350         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
82351         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
82352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82353
82354 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
82355
82356         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82357         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82358
82359 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
82360
82361         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
82362         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
82363         defined.
82364         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
82365         Likewise.
82366         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
82367         entry for 2.16.
82368
82369 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
82370
82371         * math/w_acos.c: Use non-signaling floating-point comparisons.
82372         * math/w_acosf.c: Likewise.
82373         * math/w_acosh.c: Likewise.
82374         * math/w_acoshf.c: Likewise.
82375         * math/w_acoshl.c: Likewise.
82376         * math/w_acosl.c: Likewise.
82377         * math/w_asin.c: Likewise.
82378         * math/w_asinf.c: Likewise.
82379         * math/w_asinl.c: Likewise.
82380         * math/w_atanh.c: Likewise.
82381         * math/w_atanhf.c: Likewise.
82382         * math/w_atanhl.c: Likewise.
82383         * math/w_exp2.c: Likewise.
82384         * math/w_exp2f.c: Likewise.
82385         * math/w_exp2l.c: Likewise.
82386         * math/w_j0.c: Likewise.
82387         * math/w_j0f.c: Likewise.
82388         * math/w_j0l.c: Likewise.
82389         * math/w_j1.c: Likewise.
82390         * math/w_j1f.c: Likewise.
82391         * math/w_j1l.c: Likewise.
82392         * math/w_jn.c: Likewise.
82393         * math/w_jnf.c: Likewise.
82394         * math/w_log.c: Likewise.
82395         * math/w_log10.c: Likewise.
82396         * math/w_log10f.c: Likewise.
82397         * math/w_log10l.c: Likewise.
82398         * math/w_log2.c: Likewise.
82399         * math/w_log2f.c: Likewise.
82400         * math/w_log2l.c: Likewise.
82401         * math/w_logf.c: Likewise.
82402         * math/w_logl.c: Likewise.
82403         * math/w_sqrt.c: Likewise.
82404         * math/w_sqrtf.c: Likewise.
82405         * math/w_sqrtl.c: Likewise.
82406         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
82407         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
82408         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
82409         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
82410         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
82411
82412 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82413
82414         [BZ #9739]
82415         * manual/string.texi (strnlen): Use correct parameter name in
82416         equivalent expression.
82417
82418 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82419
82420         [BZ #11174]
82421         * manual/users.texi (seteuid): Consistently use neweuid for
82422         argument name.
82423
82424 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82425
82426         [BZ #13704]
82427         * manual/nss.texi (Services in the NSS configuration): Correct
82428         list of services in example configuration file.
82429
82430 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
82431
82432         [BZ #11322]
82433         * manual/arith.texi: Remove statements about negative zero
82434         behaving identically to zero.
82435
82436 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82437
82438         [BZ #5993]
82439         * manual/install.texi: Do not document upgrading from libc5.
82440
82441 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82442
82443         [BZ #4596]
82444         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
82445
82446 2012-02-18  David S. Miller  <davem@davemloft.net>
82447
82448         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
82449         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82450         %o7 across the call.
82451         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
82452         instead.
82453         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
82454         SETUP_PIC_REG_LEAF.
82455         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82456         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
82457         * sysdeps/sparc/crtn.S: Likewise.
82458
82459 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
82460
82461         * aout/Makefile: Remove.
82462
82463 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
82464
82465         [BZ #13058]
82466         * manual/examples/argp-ex1.c (main): Format definition in GNU
82467         style.
82468         * manual/examples/argp-ex2.c (main): Likewise.
82469         * manual/examples/argp-ex3.c (main): Likewise.
82470         * manual/examples/argp-ex4.c (main): Likewise.
82471         * manual/examples/longopt.c (main): Use new-style prototype
82472         definition.
82473         * manual/examples/strncat.c (main): Specify return type and use
82474         (void) for arguments.
82475         * manual/examples/subopt.c (main): Use char **argv argument.
82476
82477 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82478
82479         [BZ #5077]
82480         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
82481         rounding modes.
82482
82483 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
82484
82485         [BZ #6907]
82486         * manual/string.texi (strchr): Change when strchrnul is
82487         recommended.
82488
82489 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
82490
82491         [BZ #174]
82492         * manual/locale.texi (setlocale): Document LOCPATH.
82493
82494 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82495
82496         [BZ #10210]
82497         * manual/process.texi (execle): Move @dots{} before last argument.
82498
82499 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
82500
82501         [BZ #12047]
82502         * manual/charset.texi (Generic Charset Conversion): Fix typo
82503         (LC_TYPE -> LC_CTYPE).
82504
82505 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
82506
82507         [BZ #5805]
82508         * manual/arith.texi (scalbn): Use @var{} on parameter names.
82509         (scalbnf): Likewise.
82510         (scalbnl): Likewise.
82511         (scalbln): Likewise.
82512         (scalblnf): Likewise.
82513         (scalblnl): Likewise.
82514         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
82515         (vwarnx): Likewise.
82516         (verr): Likewise.
82517         (verrx): Likewise.
82518         * manual/filesys.texi (telldir): Use braces around return type.
82519         * manual/llio.texi (mmap): Add space after comma.
82520         (mmap64): Likewise.
82521         * manual/math.texi (jn): Use @var{} on parameter names.
82522         (jnf): Likewise.
82523         (jnl): Likewise.
82524         (yn): Likewise.
82525         (ynf): Likewise.
82526         (ynl): Likewise.
82527         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
82528         line.
82529         * manual/resource.texi (ulimit): Use @dots{} instead of literal
82530         "...".
82531         (sched_get_priority_min): Remove semicolon on @deftypefun line.
82532         (sched_get_priority_max): Likewise.
82533         * manual/signal.texi (sigvec): Add space after comma.
82534         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
82535         names.
82536         (if_indextoname): Likewise.
82537         (if_freenameindex): Likewise.
82538         (sendto): Use ',' instead of '.' in prototype.
82539         * manual/startup.texi (syscall): Use @dots{} instead of literal
82540         "...".
82541         * manual/stdio.texi (__fpending): Separate initial words of
82542         paragraph from @deftypefun line.
82543         * manual/syslog.texi (syslog): Use @dots{} instead of literal
82544         "...".
82545         (vsyslog): Use @var{} on parameter names.
82546         * manual/terminal.texi (stty): Use @var{} on parameter names.
82547         * manual/users.texi (getutmp): Use @var{} on parameter names.
82548         (getutmpx): Likewise.
82549
82550 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82551
82552         [BZ #6884]
82553         * manual/stdio.texi (fopen): Fix typos in description of
82554         ",ccs=STRING".
82555
82556 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
82557
82558         [BZ #4026]
82559         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
82560         get clock_id definition.
82561
82562 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
82563
82564         [BZ #4822]
82565         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
82566         (madvise): Cast every argument to void on its own.
82567
82568 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82569
82570         [BZ #9902]
82571         * manual/startup.texi (Exit Status): Fix typo.
82572
82573 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82574
82575         [BZ #10140]
82576         * manual/examples/argp-ex1.c: Include <stdlib.h>.
82577         * manual/examples/argp-ex2.c: Likewise.
82578         * manual/examples/argp-ex3.c: Likewise.
82579
82580 2012-02-16  Richard Henderson  <rth@redhat.com>
82581
82582         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
82583         * sysdeps/s390/s390-32/initfini.c: Remove.
82584         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
82585         * sysdeps/s390/s390-64/initfini.c: Remove.
82586
82587 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
82588
82589         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
82590         compiler output for sysdeps/generic/initfini.c.
82591         * sysdeps/sh/elf/initfini.c: Remove file.
82592
82593 2012-02-16  David S. Miller  <davem@davemloft.net>
82594
82595         [BZ #11494]
82596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
82597
82598         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
82599         * sysdeps/sparc/crti.S: New file.
82600         * sysdeps/sparc/crtn.S: New file.
82601         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
82602         * sysdeps/sparc/sparc64/Makefile: Likewise.
82603
82604 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
82605
82606         [BZ #3335]
82607         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
82608
82609 2012-02-15  Roland McGrath  <roland@hack.frob.com>
82610
82611         [BZ #4822]
82612         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
82613
82614         * mach/devstream.c (cookie_io_functions_t): Macro removed.
82615         (write, read, close): Likewise.
82616         Patch by Aurelien Jarno <aurelien@aurel32.net>.
82617
82618 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
82619
82620         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
82621         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
82622         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
82623         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
82624         <bits/signalfd.h>.
82625         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
82626         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82627         bits/signalfd.h.
82628
82629 2012-02-14  Marek Polacek  <polacek@redhat.com>
82630
82631         * sysdeps/x86_64/crti.S: New file.
82632         * sysdeps/x86_64/crtn.S: New file.
82633         * sysdeps/x86_64/elf/initfini.c: Remove file.
82634
82635 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82636
82637         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
82638         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
82639         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
82640         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
82641         <bits/inotify.h>.
82642         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
82643         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82644         bits/inotify.h.
82645
82646 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
82647
82648         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
82649         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
82650         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
82651         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
82652         <bits/eventfd.h>.
82653         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
82654         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82655         bits/eventfd.h.
82656
82657 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
82658
82659         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
82660         __feraiseexcept instead of feraiseexcept.
82661
82662         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
82663         nanosleep invocations.
82664         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
82665         strings, and add error checking for a nanosleep invocations.
82666
82667 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
82668
82669         Replace FSF snail mail address with URLs, as per GNU coding standards.
82670         Most of the snail mail addresses were wrong anyway, and omitting
82671         them makes the source code easier to maintain.  Almost all of the
82672         changes are to license notices and to locale LC_IDENTIFICATION
82673         addresses, except for this one:
82674         * manual/libc.texinfo: In "Published by", give the FSF's URL,
82675         not its snail mail address.
82676
82677 2012-02-09  Richard Henderson  <rth@twiddle.net>
82678
82679         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
82680         of kernel-features.h.
82681
82682         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
82683
82684 2012-02-08  Marek Polacek  <polacek@redhat.com>
82685
82686         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
82687         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
82688         * sysdeps/gnu/_G_config.h: Likewise.
82689         * sysdeps/generic/_G_config.h: Likewise.
82690
82691 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
82692
82693         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
82694         tests.
82695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82696
82697         * sysdeps/powerpc/powerpc32/crti.S: New file.
82698         * sysdeps/powerpc/powerpc32/crtn.S: New file.
82699         * sysdeps/powerpc/powerpc64/crti.S: New file.
82700         * sysdeps/powerpc/powerpc64/crtn.S: New file.
82701
82702         * Makeconfig (have-initfini): Don't set.
82703         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
82704         * configure.in (nopic_initfini): Don't substitute.
82705         * config.h.in (HAVE_INITFINI): Don't #undef.
82706         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
82707         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
82708
82709 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
82710
82711         Support crti.S and crtn.S provided directly by architectures.
82712         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
82713         [crti.S in sysdirs] (omit-deps): Likewise.
82714         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
82715         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
82716         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
82717         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
82718         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
82719         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
82720         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
82721         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
82722         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
82723         compiler output for sysdeps/generic/initfini.c.
82724         * sysdeps/i386/elf/Makefile: Remove file.
82725         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
82726
82727 2012-02-07  Marek Polacek  <polacek@redhat.com>
82728
82729         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
82730         * sysdeps/gnu/_G_config.h: Likewise.
82731         * sysdeps/mach/hurd/_G_config.h: Likewise.
82732
82733 2012-02-07  Marek Polacek  <polacek@redhat.com>
82734
82735         * math/Makefile (tests): Add tst-CMPLX2.
82736         * math/tst-CMPLX2.c: New file.
82737
82738 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
82739
82740         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82741
82742         * math/libm-test.inc (jn_test): Add missing L suffix.
82743
82744 2012-02-06  Marek Polacek  <polacek@redhat.com>
82745
82746         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
82747         * sysdeps/i386/fpu/e_powf.S: Likewise.
82748         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
82749         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
82750         * sysdeps/i386/fpu/e_acosh.S: Likewise.
82751         * sysdeps/i386/fpu/e_pow.S: Likewise.
82752         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
82753         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
82754         * sysdeps/i386/fpu/s_expm1.S: Likewise.
82755         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
82756         * sysdeps/i386/fpu/e_log2.S: Likewise.
82757         * sysdeps/i386/fpu/e_log2l.S: Likewise.
82758         * sysdeps/i386/fpu/e_scalb.S: Likewise.
82759         * sysdeps/i386/fpu/e_powl.S: Likewise.
82760         * sysdeps/i386/fpu/s_log1p.S: Likewise.
82761         * sysdeps/i386/fpu/e_log10f.S: Likewise.
82762         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
82763         * sysdeps/i386/fpu/e_logl.S: Likewise.
82764         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
82765         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
82766         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
82767         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
82768         * sysdeps/i386/fpu/e_log2f.S: Likewise.
82769         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
82770         * sysdeps/i386/fpu/e_log.S: Likewise.
82771         * sysdeps/i386/fpu/s_cexp.S: Likewise.
82772         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
82773         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
82774         * sysdeps/i386/fpu/e_logf.S: Likewise.
82775         * sysdeps/i386/fpu/e_log10l.S: Likewise.
82776         * sysdeps/i386/fpu/e_atanh.S: Likewise.
82777         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
82778         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
82779         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
82780         * sysdeps/i386/fpu/e_log10.S: Likewise.
82781         * sysdeps/i386/fpu/s_frexp.S: Likewise.
82782         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
82783         * sysdeps/i386/fpu/s_asinh.S: Likewise.
82784         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
82785         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
82786         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
82787         * sysdeps/i386/asm-syntax.h: Likewise.
82788         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
82789         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
82790         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
82791         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
82792         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
82793         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
82794         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
82795         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
82796         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
82797         * sysdeps/powerpc/sysdep.h: Likewise.
82798         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
82799         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
82800
82801 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82802
82803         [BZ #411]
82804         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
82805
82806 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
82807
82808         * sysdeps/i386/sysdep.h: Include <features.h>.
82809         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
82810         version.
82811
82812 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
82813
82814         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
82815         Define.
82816         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
82817         LOAD_PIC_REG_STR.
82818
82819 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82820
82821         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
82822         (SETUP_PIC_REG): Use GET_PC_THUNK.
82823         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
82824         macro.
82825
82826 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82827
82828         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
82829         for non-PIC compilation.
82830         (SETUP_PIC_REG): Add .p2align directive.
82831         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
82832         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
82833         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
82834         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
82835         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
82836         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
82837         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
82838         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
82839         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
82840         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
82841         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
82842         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
82843         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
82844         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
82845         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
82846         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
82847         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
82848         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
82849         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
82850         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
82851         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
82852         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
82853         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
82854         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
82855         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
82856         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
82857         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
82858         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
82859         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
82860         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
82861         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
82862         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
82863         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
82864         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
82865         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
82866         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
82867         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
82868         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
82869         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
82870         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
82871         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
82872
82873 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
82874
82875         * math/tst-CMPLX.c: Include <stdio.h>.
82876
82877 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
82878
82879         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
82880         float.
82881         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
82882         * sysdeps/sparc/bits/mathdef.h: Likewise.
82883
82884 2012-01-31  Marek Polacek  <polacek@redhat.com>
82885
82886         * libio/libio.h: Don't define _PARAMS.
82887         * locale/programs/config.h: Don't define PARAMS.
82888         * stdlib/strtol_l.c: Likewise.
82889         (__strtol_l): Remove PARAMS from the prototype.
82890
82891 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
82892
82893         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
82894         names.  Just use the correct names.  Remove unnecessary wrapper
82895         functions.
82896         * malloc/arena.c: Likewise.
82897         * malloc/hooks.c: Likewise.
82898
82899         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
82900         ARENA_TEST says not to.  Simplify test for creation of a new arena.
82901         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
82902
82903 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
82904
82905         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
82906         into tail calls.
82907         (update_get_addr): New function.
82908         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
82909         GET_ADDR_MODULE parameter.
82910
82911 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
82912
82913         * crypt/cert.c: Remove __STDC__ conditionals.
82914         * crypt/crypt-entry.c: Likewise.
82915         * crypt/crypt_util.c: Likewise.
82916         * libio/filedoalloc.c: Likewise.
82917         * libio/fileops.c: Likewise.
82918         * libio/genops.c: Likewise.
82919         * libio/iofclose.c: Likewise.
82920         * libio/iofdopen.c: Likewise.
82921         * libio/iofopen.c: Likewise.
82922         * libio/iofopen64.c: Likewise.
82923         * libio/iogetdelim.c: Likewise.
82924         * libio/iopopen.c: Likewise.
82925         * libio/obprintf.c: Likewise.
82926         * libio/oldfileops.c: Likewise.
82927         * libio/oldiofclose.c: Likewise.
82928         * libio/oldiofdopen.c: Likewise.
82929         * libio/oldiofopen.c: Likewise.
82930         * libio/oldiopopen.c: Likewise.
82931         * libio/wfiledoalloc.c: Likewise.
82932         * libio/wgenops.c: Likewise.
82933         * locale/programs/xmalloc.c: Likewise.
82934         * misc/syslog.c: Likewise.
82935         * stdio-common/xbug.c: Likewise.
82936         * string/memchr.c: Likewise.
82937         * string/memcmp.c: Likewise.
82938         * string/memrchr.c: Likewise.
82939         * string/rawmemchr.c: Likewise.
82940         * sysdeps/posix/getcwd.c: Likewise.
82941         * time/strftime_l.c: Likewise.
82942
82943 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
82944
82945         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
82946         * config.make.in (config-cflags-sse2avx): Define.
82947         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
82948         Fix typo.
82949
82950 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
82951
82952         * scripts/config.guess: Update from upstream config git repository.
82953         * scripts/config.sub: Likewise.
82954
82955 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
82956
82957         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
82958         (EM_NUM): Update.
82959         (R_TILEPRO_*, R_TILEGX_*): New macros.
82960
82961         * scripts/firstversions.awk: Fix bug in version range handling.
82962
82963         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
82964
82965         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
82966
82967         * include/sys/epoll.h: New file.
82968         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
82969         libc_hidden_def.
82970
82971 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
82972
82973         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
82974         Avoid unnecessary __WORDSIZE == 64 test.
82975         (fmaxf): Use VEX format if possible.
82976         (fmax): Likewise.
82977         (fminf): Likewise.
82978         (fmin): Likewise.
82979
82980         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
82981         * math/math_private.h: Remove libc_fegetround* and
82982         libc_fesetround*.
82983         * sysdeps/i386/configure.in: Check for -msse2avx.
82984         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
82985         also if SSE2AVX is defined.
82986         Remove libc_fegetround* and libc_fesetround*.
82987         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
82988         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
82989         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
82990         of HAS_YMM_USABLE.
82991         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
82992         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
82993         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
82994         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
82995         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
82996
82997         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
82998
82999 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83000
83001         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83002         size is not set.
83003         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83004
83005 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83006
83007         [BZ #13618]
83008         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83009         relocation.
83010         * Makeconfig (libm): Define.
83011         * elf/Makefile: Add rules to build and run tst-relsort1.
83012         * elf/tst-relsort1.c: New file.
83013         * elf/tst-relsort1mod1.c: New file.
83014         * elf/tst-relsort1mod2.c: New file.
83015
83016 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83017
83018         * math/s_ldexp.c: Remove __STDC__ conditionals.
83019         * math/s_ldexpf.c: Likewise.
83020         * math/s_ldexpl.c: Likewise.
83021         * math/s_nextafter.c: Likewise.
83022         * math/s_nexttowardf.c: Likewise.
83023         * math/s_significand.c: Likewise.
83024         * math/s_significandf.c: Likewise.
83025         * math/s_significandl.c: Likewise.
83026         * math/w_jnl.c: Likewise.
83027         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83028         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83029         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83030         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83031         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83032         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83033         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83034         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83035         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83036         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83037         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83038         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83039         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83040         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83041         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83042         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83043         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83044         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83045         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83046         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83047         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83048         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83049         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83050         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83051         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83052         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83053         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83054         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83055         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83056         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83057         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83058         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83059         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83060         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83061         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83062         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83063         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83064         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83065         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83066         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83067         * sysdeps/ieee754/k_standard.c: Likewise.
83068         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83069         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83070         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83071         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83072         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83073         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83074         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83075         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83076         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83077         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83078         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83079         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83080         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83081         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83082         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83083         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83084         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83085         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83086         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83087         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83088         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83089         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83090         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83091         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83092         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83093         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83094         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83095         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83096         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83097         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83098         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83099         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83100         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83101         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83102         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83103         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83104         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83105         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83106         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83107         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83108         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83109         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83110         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83111         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83112         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83113         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83114         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83115         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83116         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83117         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83118         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83119         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83120         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83121         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83122         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83123         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83124         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83125         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83126         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83127         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83128         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83129         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83130         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83131         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83132         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83133         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83134         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83135         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83136         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83137         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83138         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83139         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83140         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83141         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83142         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83143         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83144         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83145         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83146         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83147         * sysdeps/ieee754/s_matherr.c: Likewise.
83148         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83149         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83150         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83151         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83152
83153 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83154
83155         * crypt/md5.h: Remove __STDC__ conditionals.
83156         * libio/libioP.h: Likewise.
83157         * locale/programs/config.h: Likewise.
83158         * sysdeps/generic/sysdep.h: Likewise.
83159         * sysdeps/i386/asm-syntax.h: Likewise.
83160         * sysdeps/s390/asm-syntax.h: Likewise.
83161         * sysdeps/unix/sysdep.h: Likewise.
83162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83164
83165 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83166
83167         * libio/libio.h: Remove __STDC__ conditionals.
83168         * malloc/obstack.h: Likewise.
83169         * math/complex.h: Likewise.
83170         * math/math.h: Likewise.
83171         * sysdeps/generic/_G_config.h: Likewise.
83172         * sysdeps/gnu/_G_config.h: Likewise.
83173         * sysdeps/mach/hurd/_G_config.h: Likewise.
83174         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83175         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83176         * sysdeps/sparc/bits/mathdef.h: Likewise.
83177
83178 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83179
83180         [BZ #13583]
83181         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83182         Clean up HAS_* macros.
83183         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83184         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83185         possible.
83186         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83187         HAS_AVX.
83188         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83189         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83190         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83191         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83192         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83193
83194 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83195
83196         * elf/tst-unique3.cc (gets): Remove declaration.
83197         * elf/tst-unique3lib.cc (gets): Likewise.
83198         * elf/tst-unique3lib2.cc (gets): Likewise.
83199         * elf/tst-unique4.cc (gets): Likewise.
83200
83201 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83202
83203         * include/stdio.h: Add C++ protection.  Add gets declarations and
83204         definitions.
83205         * debug/tst-chk1.c: Don't declare gets here.
83206         * stdio-common/tst-gets.c: Likewise.
83207
83208 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83209
83210         * posix/glob: Remove directory.
83211
83212 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83213
83214         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83215
83216 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83217
83218         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83219         of the non-standard EPFNOSUPPORT.
83220
83221 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83222
83223         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83224         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83225         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83226
83227 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83228
83229         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83230
83231 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83232
83233         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83234         transient errors.
83235         * nscd/grpcache.c (cache_addgr): Likewise.
83236         * nscd/hstcache.c (cache_addhst): Likewise.
83237         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83238         * nscd/pwdcache.c (cache_addpw): Likewise.
83239         * nscd/servicescache.c (cache_addserv): Likewise.
83240
83241 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83242
83243         * malloc/malloc.c: Various cleanups.
83244         * malloc/hooks.c: Likewise.
83245
83246         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83247         * stdlib/bug-fmtmsg1.c: New file.
83248
83249         * stdlib/fmtmsg.c (init): Add missing unlock.
83250         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83251
83252 2012-01-12  Marek Polacek  <polacek@redhat.com>
83253
83254         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83255         and _GNU_SOURCE.
83256
83257 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83258
83259         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83260         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83261         macro to ensure uniqueness of label name.
83262         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83263         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83264
83265 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83266
83267         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83268
83269         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83270         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83271         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83272         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83273
83274 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83275
83276         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83277
83278         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83279         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83280         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83281
83282         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83283
83284         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83285         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83286         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83287         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83288
83289         * math/bits/math-finite.h: Add ldexp support.
83290
83291 2012-01-10  Marek Polacek  <polacek@redhat.com>
83292
83293         * locale/programs/localedef.h (show_archive_content): Add noreturn
83294         attribute.
83295
83296 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83297
83298         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83299
83300 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83301
83302         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83303
83304         * io/Makefile (headers): Add bits/poll2.h.
83305
83306 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
83307
83308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
83309         typo #include statement.
83310
83311 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83312
83313         * include/sys/cdefs.h: Define __attribute_alloc_size.
83314         * catgets/gencat.c: Add alloc_size attribute and apply consistently
83315         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
83316         * elf/pldd.c: Likewise.
83317         * iconv/iconv_charmap.c: Likewise.
83318         * iconv/iconvconfig.c: Likewise.
83319         * iconv/strtab.c: Likewise.
83320         * locale/programs/locale.c: Likewise.
83321         * locale/programs/localedef.h: Likewise.
83322         * locale/programs/simple-hash.c: Likewise.
83323         * nscd/nscd.h: Likewise.
83324         * nss/makedb.c: Likewise.
83325         * sysdeps/generic/ldconfig.h: Likewise.
83326         * locale/programs/localedef.c: Remove xmalloc prototype.
83327         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
83328
83329 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
83330
83331         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
83332         appropriate.
83333
83334 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83335
83336         * math/Makefile (tests): Add tst-CMPLX.
83337         * math/tst-CMPLX.c: New file.
83338
83339         * math/complex.h (CMPLXL): Fix typo.
83340
83341         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
83342         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
83343         GLIBC_2.16.
83344         * debug/tst-chk1.c: Add poll and ppoll tests.
83345         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
83346         * include/sys/poll.h: Add hidden proto for ppoll.
83347         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
83348         * sysdeps/mach/hurd/ppoll.c: Likewise.
83349         * io/ppoll.c: Likewise.
83350         * debug/poll_chk.c: New file.
83351         * debug/ppoll_chk.c: New file.
83352         * include/bits/poll2.h: New file.
83353         * io/bits/poll2.h: New file.
83354
83355         [BZ #1350]
83356         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
83357
83358         * configure.in: static is always set to yes.  Remove.
83359         * config.make.in: Don't set build-static.
83360         * Makeconfig: Remove use of build-static.
83361         * dlfcn/Makefile: Likewise.
83362         * elf/Makefile: Likewise.
83363         * math/Makefile: Likewise.
83364         * misc/Makefile: Likewise.
83365         * nptl/Makefile: Likewise.
83366         * sysdeps/mach/hurd/Makefile: Likewise.
83367
83368         * configure.in: PWD_P is not used anymore.
83369         * config.make.in: Remove PWD_P entry.
83370
83371         * configure.in: Remove last remnants of RANLIB.
83372         No need to check for signed size_t anymore.
83373         Don't set libc_commonpagesize and libc_relro_required here for Alpha
83374         and IA-64.
83375         Remove __builtin_expect test because we require at least gcc 3.4.
83376         * aclocal.m4: Likewise.
83377
83378         * wcsmbs/mbrtoc16.c: Implement using towc function.
83379         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
83380         * wcsmbs/wcsmbsload.c: Likewise.
83381         * iconv/gconv_simple.c: Likewise.
83382         * iconv/gconv_int.h: Likewise.
83383         * iconv/gconv_builtin.h: Likewise.
83384         * iconv/iconv_prog.c: Remove CHAR16 handling.
83385
83386         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
83387
83388         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
83389
83390         * configure.in: Remove --with-elf and --enable-bounded options.
83391         Dont set base_machine for ia64.  More non-ELF conditions removed.
83392         Remove testing and setting of leading underscore information.
83393         * config.make.in (build-bounded): Set to no.
83394         * config.h.in: Remove NO_UNDERSCORES entry.
83395         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
83396         them.
83397         * csu/start.c: Remove !NO_UNDERSCORE code.
83398         * locale/localeinfo.h: Likewise.
83399         * sysdeps/generic/machine-gmon.h: Likewise.
83400         * sysdeps/generic/sysdep.h: Likewise.
83401         * sysdeps/i386/sysdep.h: Likewise.
83402         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83403         * sysdeps/mach/sysdep.h: Likewise.
83404         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83405         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83406         * sysdeps/sh/sysdep.h: Likewise.
83407         * sysdeps/sparc/sparc32/alloca.S: Likewise.
83408         * sysdeps/unix/i386/sysdep.S: Likewise.
83409         * sysdeps/unix/sparc/start.c: Likewise.
83410         * sysdeps/unix/sparc/sysdep.S: Likewise.
83411         * sysdeps/unix/sparc/sysdep.h: Likewise.
83412         * sysdeps/unix/start.c: Likewise.
83413         * sysdeps/unix/x86_64/sysdep.S: Likewise.
83414         * sysdeps/x86_64/sysdep.h: Likewise.
83415
83416 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
83417
83418         [BZ #13553]
83419         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
83420         for non-gcc.
83421         * argp/argp-fmtstream.h: Use const instead __const.
83422         * argp/argp.h: Likewise.
83423         * assert/assert.h: Likewise.
83424         * bits/fenv.h: Likewise.
83425         * bits/sched.h: Likewise.
83426         * bits/sigset.h: Likewise.
83427         * bits/sigthread.h: Likewise.
83428         * catgets/nl_types.h: Likewise.
83429         * conform/data/pthread.h-data: Likewise.
83430         * crypt/crypt-private.h: Likewise.
83431         * crypt/crypt.h: Likewise.
83432         * crypt/crypt_util.c: Likewise.
83433         * ctype/ctype.h: Likewise.
83434         * debug/execinfo.h: Likewise.
83435         * debug/mbsnrtowcs_chk.c: Likewise.
83436         * debug/mbsrtowcs_chk.c: Likewise.
83437         * debug/wcsnrtombs_chk.c: Likewise.
83438         * debug/wcsrtombs_chk.c: Likewise.
83439         * debug/wcstombs_chk.c: Likewise.
83440         * dirent/dirent.h: Likewise.
83441         * dlfcn/dlfcn.h: Likewise.
83442         * elf/neededtest4.c: Likewise.
83443         * grp/grp.h: Likewise.
83444         * gshadow/gshadow.h: Likewise.
83445         * iconv/gconv.h: Likewise.
83446         * iconv/gconv_int.h: Likewise.
83447         * iconv/gconv_simple.c: Likewise.
83448         * iconv/iconv.h: Likewise.
83449         * iconv/loop.c: Likewise.
83450         * iconv/skeleton.c: Likewise.
83451         * include/aio.h: Likewise.
83452         * include/aliases.h: Likewise.
83453         * include/argz.h: Likewise.
83454         * include/arpa/inet.h: Likewise.
83455         * include/assert.h: Likewise.
83456         * include/dirent.h: Likewise.
83457         * include/dlfcn.h: Likewise.
83458         * include/execinfo.h: Likewise.
83459         * include/fcntl.h: Likewise.
83460         * include/fenv.h: Likewise.
83461         * include/glob.h: Likewise.
83462         * include/grp.h: Likewise.
83463         * include/libintl.h: Likewise.
83464         * include/mntent.h: Likewise.
83465         * include/netdb.h: Likewise.
83466         * include/pwd.h: Likewise.
83467         * include/rpc/netdb.h: Likewise.
83468         * include/sched.h: Likewise.
83469         * include/search.h: Likewise.
83470         * include/shadow.h: Likewise.
83471         * include/signal.h: Likewise.
83472         * include/stdio.h: Likewise.
83473         * include/stdlib.h: Likewise.
83474         * include/string.h: Likewise.
83475         * include/sys/socket.h: Likewise.
83476         * include/sys/stat.h: Likewise.
83477         * include/sys/statfs.h: Likewise.
83478         * include/sys/statvfs.h: Likewise.
83479         * include/sys/syslog.h: Likewise.
83480         * include/sys/time.h: Likewise.
83481         * include/sys/uio.h: Likewise.
83482         * include/time.h: Likewise.
83483         * include/unistd.h: Likewise.
83484         * include/utmp.h: Likewise.
83485         * include/wchar.h: Likewise.
83486         * include/wctype.h: Likewise.
83487         * inet/aliases.h: Likewise.
83488         * inet/arpa/inet.h: Likewise.
83489         * inet/netinet/ether.h: Likewise.
83490         * inet/netinet/in.h: Likewise.
83491         * intl/libintl.h: Likewise.
83492         * io/bits/fcntl2.h: Likewise.
83493         * io/fcntl.h: Likewise.
83494         * io/ftw.h: Likewise.
83495         * io/sys/poll.h: Likewise.
83496         * io/sys/stat.h: Likewise.
83497         * io/sys/statfs.h: Likewise.
83498         * io/sys/statvfs.h: Likewise.
83499         * io/utime.h: Likewise.
83500         * libio/bits/stdio.h: Likewise.
83501         * libio/bits/stdio2.h: Likewise.
83502         * libio/libio.h: Likewise.
83503         * libio/libioP.h: Likewise.
83504         * libio/stdio.h: Likewise.
83505         * locale/lc-ctype.c: Likewise.
83506         * locale/locale.h: Likewise.
83507         * login/utmp.h: Likewise.
83508         * malloc/arena.c: Likewise.
83509         * malloc/malloc.c: Likewise.
83510         * malloc/malloc.h: Likewise.
83511         * malloc/mcheck.c: Likewise.
83512         * malloc/mtrace.c: Likewise.
83513         * math/bits/mathcalls.h: Likewise.
83514         * math/fenv.h: Likewise.
83515         * math/math_private.h: Likewise.
83516         * misc/bits/error.h: Likewise.
83517         * misc/bits/syslog.h: Likewise.
83518         * misc/err.h: Likewise.
83519         * misc/error.h: Likewise.
83520         * misc/fstab.h: Likewise.
83521         * misc/mntent.h: Likewise.
83522         * misc/regexp.h: Likewise.
83523         * misc/search.h: Likewise.
83524         * misc/sgtty.h: Likewise.
83525         * misc/sys/mman.h: Likewise.
83526         * misc/sys/syslog.h: Likewise.
83527         * misc/sys/uio.h: Likewise.
83528         * misc/sys/xattr.h: Likewise.
83529         * misc/ttyent.h: Likewise.
83530         * nis/rpcsvc/ypclnt.h: Likewise.
83531         * nss/nss.h: Likewise.
83532         * posix/bits/unistd.h: Likewise.
83533         * posix/fnmatch.h: Likewise.
83534         * posix/glob.h: Likewise.
83535         * posix/sched.h: Likewise.
83536         * posix/spawn.h: Likewise.
83537         * posix/sys/wait.h: Likewise.
83538         * posix/unistd.h: Likewise.
83539         * posix/wordexp.h: Likewise.
83540         * pwd/pwd.h: Likewise.
83541         * resolv/netdb.h: Likewise.
83542         * resource/sys/resource.h: Likewise.
83543         * rt/aio.h: Likewise.
83544         * rt/bits/mqueue2.h: Likewise.
83545         * rt/mqueue.h: Likewise.
83546         * shadow/shadow.h: Likewise.
83547         * signal/signal.h: Likewise.
83548         * socket/send.c: Likewise.
83549         * socket/sendto.c: Likewise.
83550         * socket/sys/socket.h: Likewise.
83551         * stdio-common/printf.h: Likewise.
83552         * stdlib/bits/stdlib.h: Likewise.
83553         * stdlib/fmtmsg.h: Likewise.
83554         * stdlib/monetary.h: Likewise.
83555         * stdlib/stdlib.h: Likewise.
83556         * stdlib/ucontext.h: Likewise.
83557         * streams/stropts.h: Likewise.
83558         * string/argz.h: Likewise.
83559         * string/bits/string2.h: Likewise.
83560         * string/string.h: Likewise.
83561         * string/strings.h: Likewise.
83562         * sunrpc/rpc/auth.h: Likewise.
83563         * sunrpc/rpc/auth_des.h: Likewise.
83564         * sunrpc/rpc/clnt.h: Likewise.
83565         * sunrpc/rpc/netdb.h: Likewise.
83566         * sunrpc/rpc/pmap_clnt.h: Likewise.
83567         * sunrpc/rpc/xdr.h: Likewise.
83568         * sysdeps/generic/inttypes.h: Likewise.
83569         * sysdeps/generic/net/if.h: Likewise.
83570         * sysdeps/generic/sys/swap.h: Likewise.
83571         * sysdeps/gnu/net/if.h: Likewise.
83572         * sysdeps/gnu/utmpx.h: Likewise.
83573         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
83574         * sysdeps/i386/i486/bits/string.h: Likewise.
83575         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
83576         * sysdeps/s390/bits/string.h: Likewise.
83577         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
83578         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
83579         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
83580         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
83581         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
83582         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
83583         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
83584         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
83585         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
83586         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
83587         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
83588         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
83589         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
83590         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
83591         * sysdeps/unix/sysv/linux/readv.c: Likewise.
83592         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
83593         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
83594         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
83595         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
83596         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
83597         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83598         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
83599         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
83600         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
83601         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
83602         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
83603         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
83604         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83605         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
83606         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
83607         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
83608         * sysvipc/sys/ipc.h: Likewise.
83609         * sysvipc/sys/msg.h: Likewise.
83610         * sysvipc/sys/sem.h: Likewise.
83611         * sysvipc/sys/shm.h: Likewise.
83612         * termios/termios.h: Likewise.
83613         * time/sys/time.h: Likewise.
83614         * time/time.h: Likewise.
83615         * wcsmbs/bits/wchar2.h: Likewise.
83616         * wcsmbs/uchar.h: Likewise.
83617         * wcsmbs/wchar.h: Likewise.
83618         * wctype/wctype.h: Likewise.
83619
83620         [BZ #13551]
83621         * Makeconfig: Remove all but ELF support including AIX support.
83622         * Makerules: Likewise.
83623         * config.h.in: Likewise.
83624         * config.make.in: Likewise.
83625         * configure: Likewise.
83626         * configure.in: Likewise.
83627         * csu/Makefile: Likewise.
83628         * csu/version.c: Likewise.
83629         * debug/Makefile: Likewise.
83630         * dlfcn/Makefile: Likewise.
83631         * elf/Makefile: Likewise.
83632         * extra-lib.mk: Likewise.
83633         * iconv/Makefile: Likewise.
83634         * include/libc-symbols.h: Likewise.
83635         * include/shlib-compat.h: Likewise.
83636         * resolv/Makefile: Likewise.
83637         * resolv/res_libc.c: Likewise.
83638         * rt/Makefile: Likewise.
83639         * sysdeps/i386/asm-syntax.h: Likewise.
83640         * sysdeps/i386/sysdep.h: Likewise.
83641         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83642         * sysdeps/mach/sysdep.h: Likewise.
83643         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
83644         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
83645         * sysdeps/s390/asm-syntax.h: Likewise.
83646         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83647         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83648         * sysdeps/sh/sysdep.h: Likewise.
83649         * sysdeps/unix/sparc/sysdep.h: Likewise.
83650         * sysdeps/wordsize-32/divdi3.c: Likewise.
83651         * sysdeps/x86_64/sysdep.h: Likewise.
83652
83653         * argp/Versions: Remove _argp_unlock_xxx.
83654
83655         [BZ #13559]
83656         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
83657         * abilist/libBrokenLocale.abilist: Likewise.
83658         * abilist/libanl.abilist: Likewise.
83659         * abilist/libc.abilist: Likewise.
83660         * abilist/libcrypt.abilist: Likewise.
83661         * abilist/libdl.abilist: Likewise.
83662         * abilist/libm.abilist: Likewise.
83663         * abilist/libnsl.abilist: Likewise.
83664         * abilist/libpthread.abilist: Likewise.
83665         * abilist/libresolv.abilist: Likewise.
83666         * abilist/librt.abilist: Likewise.
83667         * abilist/libthread_db.abilist: Likewise.
83668         * abilist/libutil.abilist: Likewise.
83669         * abilist/libnss_db.abilist: New file.
83670
83671         * scripts/abilist.awk: Add support for indirect functions.
83672
83673         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
83674
83675         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
83676
83677         * shlib-versions: Remove entries for ports architectures.
83678
83679         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
83680         files in ports.
83681         * elf/stackguard-macros.h: Remove support for IA-64.
83682         * elf/tst-auditmod1.c: Likewise.
83683         * sysdeps/generic/ldsodefs.h: Likewise.
83684
83685         * sysdeps/unix/sysv/linux/configure.in: Ports should define
83686         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
83687         configure files.
83688
83689         [BZ #13552]
83690         * configure.in: Remove --enable-omitfp support.
83691         * FAQ.in: Adjust.
83692         * config.make.in: Likewise.
83693         * Makeconfig: Likewise.
83694         * manual/install.texi: Likewise.
83695
83696         In case anyone cares, the IA-64 architecture could move to ports.
83697         * sysdeps/ia64/*: Removed.
83698         * sysdeps/unix/sysv/linux/ia64/*: Removed.
83699         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
83700
83701         [BZ #13555]
83702         * configure.in: Remove entries for unsupported architectures.
83703
83704         [BZ #13533]
83705         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
83706         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
83707         routines.
83708         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
83709         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
83710         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
83711         fall back to using wcrtomb.
83712         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
83713         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
83714         renaming.
83715         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
83716         * wcsmbs/tst-c16c32-1.c: New file.
83717
83718         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
83719         local variable.
83720
83721         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
83722
83723         * elf/tst-unique3.cc: Add explicit declaration of gets.
83724         * elf/tst-unique3lib.cc: Likewise.
83725         * elf/tst-unique3lib2.cc: Likewise.
83726         * elf/tst-unique4.cc: Likewise.
83727
83728         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
83729
83730 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
83731
83732         [BZ #13566]
83733         * assert/assert.h (static_assert): Don't define for C++.
83734         * libio/stdio.h (gets): Do declare for C++ <= C++11.
83735         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
83736
83737 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
83738
83739         * iconv/loop.c (single loop): Fix assertion in storing of
83740         remaining bytes.
83741
83742         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
83743
83744 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
83745
83746         * posix/getconf.c: Update copyright year.
83747         * nss/getent.c: Likewise.
83748         * nss/makedb.c: Likewise.
83749         * iconv/iconvconfig.c: Likewise.
83750         * iconv/iconv_prog.c: Likewise.
83751         * elf/ldconfig.c: Likewise.
83752         * elf/pldd.c: Likewise.
83753         * elf/sotruss.ksh: Likewise.
83754         * catgets/gencat.c: Likewise.
83755         * csu/version.c: Likewise.
83756         * elf/ldd.bash.in: Likewise.
83757         * elf/sprof.c (print_version): Likewise.
83758         * locale/programs/locale.c: Likewise.
83759         * locale/programs/localedef.c: Likewise.
83760         * login/programs/pt_chown.c: Likewise.
83761         * nscd/nscd.c (print_version): Likewise.
83762         * debug/xtrace.sh: Likewise.
83763         * malloc/memusage.sh: Likewise.
83764         * malloc/mtrace.pl: Likewise.
83765         * debug/catchsegv.sh: Likewise.
83766
83767 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
83768
83769         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
83770         pure attribute.
83771
83772 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
83773
83774         [BZ #13533]
83775         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
83776         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
83777         transformations.
83778         * iconv/gconv_int.h: Likewise.
83779         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
83780         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
83781         from libc for GLIBC_2.16.
83782         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
83783         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
83784         * wcsmbs/uchar.h: Really define mbstate_t.
83785         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
83786         * wcsmbs/c16rtomb.c: New file.
83787         * wcsmbs/mbrtoc16.c: New file.
83788         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
83789         for C/POSIX locale.
83790         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
83791         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
83792
83793         * wcsmbs/wchar.h: Add missing __restrict.
83794
83795 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83796
83797         [BZ #13532]
83798         * time/Makefile (routines): Add timespec_get.
83799         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
83800         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
83801         timespec for ISO C11.
83802         * time/timespec_get.c: New file.
83803         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
83804         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
83805
83806         [BZ #13531]
83807         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
83808         * stdlib/stdlib.h: Declare aligned_alloc.
83809         * Versions.def: Add GLIBC_2.16 for libc.
83810         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
83811
83812         [BZ 13527]
83813         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
83814         ISO C11.
83815
83816         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
83817         code.
83818
83819         [BZ #13528]
83820         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
83821
83822         [BZ #13529]
83823         * assert/assert.h (static_assert): Define.
83824
83825         * version.h: Update for 2.16 development version.
83826
83827         [BZ #13526]
83828         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
83829         _ISOC11_SOURCE.
83830
83831         * version.h (RELEASE): Bump for 2.15 release.
83832         * include/features.h (__GLIBC_MINOR__): Bump to 15.
83833
83834         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
83835         Patch by Marek Polacek <mpolacek@redhat.com>.
83836
83837         * bits/byteswap.h: Protect long long constants with __extension__.
83838         * sysdeps/i386/bits/byteswap.h: Likewise.
83839         * sysdeps/ia64/bits/byteswap.h: Likewise.
83840         * sysdeps/s390/bits/byteswap.h: Likewise.
83841         * sysdeps/x86_64/bits/byteswap.h: Likewise.
83842
83843 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83844
83845         [BZ #13540]
83846         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
83847         destination buffer.
83848         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
83849
83850 2011-12-23  Marek Polacek  <polacek@redhat.com>
83851
83852         * elf/dl-addr.c (determine_info): Add inline keyword.
83853         * elf/tst-auditmod4b.c (check_avx): Likewise.
83854         * elf/tst-auditmod6b.c (check_avx): Likewise.
83855         * elf/tst-auditmod6c.c (check_avx): Likewise.
83856         * elf/tst-auditmod7b.c (check_avx): Likewise.
83857
83858 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
83859
83860         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
83861         !__SSE_MATH__.
83862
83863 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83864
83865         [BZ #13540]
83866         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
83867         processing for last bytes.
83868
83869 2011-08-06  Bruno Haible  <bruno@clisp.org>
83870
83871         [BZ #13061]
83872         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
83873         U+0385, not to U+1FEE.
83874
83875         [BZ #13062]
83876         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
83877         entry for U+00A5 U+0301.
83878
83879 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
83880
83881         [BZ #13166]
83882         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
83883         buffer for the output is too small.
83884
83885         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
83886         optimization.
83887
83888         [BZ #13185]
83889         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
83890         SSE flags if possible.
83891
83892 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
83893
83894         [BZ #13540]
83895         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
83896         processing for last bytes.
83897
83898 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
83899
83900         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
83901         (syscall-list-default-options, syscall-list-default-condition)
83902         (syscall-list-includes): Define.
83903         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
83904         list of ABIs and options and #if conditions for each ABI.  Do not
83905         handle common syscalls between ABIs specially.
83906         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
83907         Remove.
83908         (syscall-list-variants, syscall-list-32bit-options)
83909         (syscall-list-32bit-condition, syscall-list-64bit-options)
83910         (syscall-list-64bit-condition): Define.
83911         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
83912         (syscall-list-variants, syscall-list-32bit-options)
83913         (syscall-list-32bit-condition, syscall-list-64bit-options)
83914         (syscall-list-64bit-condition): Define.
83915         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
83916         Remove.
83917         (syscall-list-variants, syscall-list-32bit-options)
83918         (syscall-list-32bit-condition, syscall-list-64bit-options)
83919         (syscall-list-64bit-condition): Define.
83920         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
83921         Remove.
83922         (syscall-list-variants, syscall-list-32bit-options)
83923         (syscall-list-32bit-condition, syscall-list-64bit-options)
83924         (syscall-list-64bit-condition): Define.
83925
83926 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
83927
83928         * locale/iso-639.def: Add brx entry.
83929
83930         [BZ #13328]
83931         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
83932         Proposed by Mariusz_Cukr <marcukr@op.pl>.
83933
83934         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
83935         __feraiseexcept_renamed.
83936
83937 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
83938
83939         [BZ #13538]
83940         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
83941         EPOLLET with unsigned values.
83942         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
83943         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
83944
83945         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
83946         to large cancellation.
83947         * math/s_cacoshf.c: Likewise.
83948         * math/s_cacoshl.c: Likewise.
83949
83950 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
83951
83952         [BZ #13305]
83953         [BZ #12786]
83954         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
83955         * math/s_cacoshf.c: Likewise.
83956         * math/s_cacoshl.c: Likewise.
83957
83958 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
83959
83960         [BZ #13439]
83961         * iconv/gconv.h: Define __GCONV_SWAP.
83962         * iconvdata/unicode.c: The swap bit must be stored in __flags.
83963         * iconvdata/utf-16.c: Likewise.
83964         * iconvdata/utf-32.c: Likewise.
83965
83966 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
83967
83968         [BZ #13524]
83969         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
83970         numerator after shifting it by one limb.
83971
83972 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
83973
83974         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
83975         under [__USE_EXTERN_INLINES].
83976
83977 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
83978
83979         [BZ #13446]
83980         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
83981
83982 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83983
83984         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
83985         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
83986         optimized code.
83987         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
83988         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
83989         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
83990         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
83991         for strncasecmp/strncasecmp_l compilation.
83992         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
83993         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
83994
83995 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
83996
83997         [BZ #13484]
83998         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
83999         of __asm__.
84000
84001 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84002
84003         [BZ #13506]
84004         * time/tzfile.c (__tzfile_read): Check values from file header.
84005
84006 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84007
84008         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84009         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84010         * powerpc/powerpc32/dl-start.S: Likewise.
84011         * powerpc/powerpc32/elf/start.S: Likewise.
84012         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84013         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84014         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84015         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84016         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84017         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84018         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84019         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84020         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84021         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84022         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84023         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84024         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84025         * powerpc/powerpc32/memset.S: Likewise.
84026         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84027         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84028         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84029         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84030         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84031         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84032         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84033         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84034         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84035         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84036         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84037         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84038         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84039
84040 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84041
84042         * math/libm-test.inc: Added more nearbyint tests.
84043         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84044         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84045         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84046         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84047
84048 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84049
84050         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84051         FD_CLOEXEC.
84052
84053 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84054
84055         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84056         Add wcscpy-ssse3 wcscpy-c.
84057         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84058         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84059         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84060         * sysdeps/x86_64/wcschr.S: New file.
84061         * sysdeps/x86_64/wcsrchr.S: New file.
84062         * string/test-strcmp.c: Remove checking of wcscmp function for
84063         wrong alignments.
84064         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84065         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84066         wcsrchr-sse2 wcsrchr-c.
84067         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84068         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84069         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84070         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84071         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84072         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84073         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84074         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84075         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84076         * wcsmbc/wcschr.c (WCSCHR): New macro.
84077
84078 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84079
84080         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84081         * wcsmbs/test-wcsrchr.c: New file.
84082         * string/test-strrchr.c: Add wcsrchr support.
84083         (WIDE): New macro.
84084         * wcsmbs/test-wcscpy.c: New file.
84085         * string/test-strcpy.c: Add wcscpy support.
84086         (WIDE): New macro.
84087
84088 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84089
84090         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84091         the inner loop.
84092
84093 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84094
84095         [BZ #13472]
84096         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84097
84098 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84099
84100         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84101         Minor optimizations.
84102
84103         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84104         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84105         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84106
84107 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84108
84109         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84110         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84111         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84112         for gcc to avoid warnings.
84113         * inet/Makefile (tests): Add tst-checks.
84114         * inet/tst-checks.c: New file.
84115
84116         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84117         warning.
84118
84119         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84120         __wmemcmp_sse2.
84121
84122         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84123         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84124
84125         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84126
84127 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84128
84129         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84130         problem.
84131
84132         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84133
84134 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84135
84136         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84137         conditional on GCC version.
84138         (__arch_compare_and_exchange_val_8_acq)
84139         (__arch_compare_and_exchange_val_16_acq)
84140         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84141         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84142         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84143
84144 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84145
84146         * sysdeps/sh/backtrace.c: New file.
84147
84148 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84149
84150         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84151         parenthesis.
84152
84153 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84154
84155         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84156         falling back to utime.
84157
84158 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84159
84160         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84161         expectations for float.
84162
84163 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84164
84165         * locale/weight.h (findidx): Add parameter len.
84166         * locale/weightwc.h (findidx): Likewise.
84167         * posix/fnmatch_loop.c (FCT): Adjust caller.
84168         * posix/regcomp.c (build_equiv_class): Likewise.
84169         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84170         * posix/regexec.c (check_node_accept_bytes): Likewise.
84171         * string/strcoll_l.c (STRCOLL): Likewise.
84172         * string/strxfrm_l.c (STRXFRM): Likewise.
84173
84174 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84175
84176         * Makefile.in: Remove CVSOPT handling.
84177         * configure.in: Remove use of AC_REVISION.
84178         * iconvdata/Makefile (distribute): No need to filter out CVS.
84179         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84180         handling.
84181
84182 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84183
84184         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84185         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84186         [USE_AS_STRNCASECMP_L]: Likewise.
84187         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84188         NO_TLS_DIRECT_SEG_REFS.
84189         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84190         Fix argument offsets for non-PIC.
84191         [USE_AS_STRNCASECMP_L]: Likewise.
84192         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84193         NO_TLS_DIRECT_SEG_REFS.
84194
84195 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84196
84197         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84198         O_CLOEXEC.
84199         * locale/loadlocale.c (_nl_load_locale): Likewise.
84200
84201 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84202
84203         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84204         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84205         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84206         (SYSCALL_GETTIME): Set errno on error.
84207
84208         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84209         count references to noai6ai_cached.
84210
84211 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84212
84213         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84214
84215         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84216         FD_CLOEXEC for /proc/self/maps.
84217
84218         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84219         FD_CLOEXEC for /proc/meminfo.
84220
84221         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84222         gai.conf.
84223
84224         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84225         FD_CLOEXEC for given file.
84226
84227         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84228
84229         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84230         FD_CLOEXEC for /etc/hosts.
84231         (_gethtent): Likewise.
84232
84233         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84234
84235         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84236         cancellation and set FD_CLOEXEC for /etc/netgroup.
84237
84238         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84239         reading /etc/publickey.
84240
84241         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84242         allow cancellation when reading /etc/group.
84243
84244         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84245         cancellation.
84246         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84247
84248         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84249         when using data file.
84250
84251         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84252
84253         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84254         (write_nis_obj): Use "c" and "e" in fopen.
84255
84256         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84257
84258         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84259
84260         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84261
84262         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84263
84264         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84265         locale.alias.
84266
84267         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84268
84269         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84270
84271         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84272
84273         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84274         file parsing and set FD_CLOEXEC.
84275
84276 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84277
84278         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84279
84280 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84281
84282         * malloc/arena.c (arena_get2): Don't call reused_arena when
84283         _int_new_arena failed.
84284
84285 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84286
84287         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84288         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84289         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84290         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84291         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84292         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84293         to compile strcasecmp and strncasecmp.
84294         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84295         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84296
84297         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84298
84299 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84300
84301         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84302         locale-defines.sym to gen-as-const-headers.
84303         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84304         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84305         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84306         to compile strcasecmp and strncasecmp.
84307         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
84308         strcasecmp_l and strncasecmp_l.
84309         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
84310         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
84311         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
84312         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
84313         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
84314         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
84315         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
84316         * sysdeps/i386/i686/multiarch/strncase.S: New file.
84317         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
84318         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
84319         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
84320
84321 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
84322
84323         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
84324         result of SYSDEP_GETTIME_CPU to retval.
84325         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
84326         parameter list to macro.  Remove trailing semicolon.  Adjust users.
84327
84328         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
84329         variable.
84330
84331         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
84332         mantissa words.
84333         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
84334
84335         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
84336         from unused variable.
84337
84338         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
84339         DWARF definitions.
84340         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
84341         for assembling.
84342
84343         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
84344         over namespaces.
84345
84346         * sunrpc/rpc_prot.c (rejected): Fix case value.
84347
84348         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
84349         unsigned long long int to avoid warnings in shift.
84350
84351         * posix/regex_internal.c (re_string_reconstruct): Actually use result
84352         of use of trans.
84353         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
84354         variable tmp.
84355
84356         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
84357         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
84358         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
84359
84360         * nis/nis_table.c (nis_list): Use variable of correct type for
84361         result of __follow_path call.
84362
84363 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84364
84365         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
84366         of math functions ceil, trunc, floor, round, and sqrt, when
84367         avaliable on the platform.
84368         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
84369         name clash.
84370         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84371         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84372         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84373
84374 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
84375
84376         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
84377         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
84378
84379 2011-11-11  Roland McGrath  <roland@hack.frob.com>
84380
84381         * include/unistd.h: Fix __readlink return type.
84382         Reported by Chris Metcalf <cmetcalf@tilera.com>.
84383
84384 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
84385
84386         * stdlib/ucontext.h: Undo last change for makecontext.
84387
84388 2011-11-11  Andreas Schwab  <schwab@redhat.com>
84389
84390         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
84391
84392         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
84393         * setjmp/setjmp.h: Mark functions as non-leaf.
84394         * setjmp/bits/setjmp2.h: Likewise.
84395         * stdlib/ucontext.h: Likewise.
84396
84397 2011-11-10  Andreas Schwab  <schwab@redhat.com>
84398
84399         * malloc/arena.c (_int_new_arena): Don't increment narenas.
84400         (reused_arena): Don't check arena limit.
84401         (arena_get2): Atomically check arena limit.
84402
84403 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
84404
84405         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
84406         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
84407
84408         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
84409         instructions.
84410
84411 2011-11-07  Andreas Schwab  <schwab@redhat.com>
84412
84413         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
84414         handler when locking.
84415
84416         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
84417         Fix size of allocated buffer.
84418
84419 2011-11-04  Andreas Schwab  <schwab@redhat.com>
84420
84421         [BZ #10103]
84422         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
84423         declarations for long double functions.
84424         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
84425
84426         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
84427
84428 2011-11-03  Andreas Schwab  <schwab@redhat.com>
84429
84430         * nscd/nscd.c (main): Don't start AVC thread until credentials are
84431         installed.
84432
84433         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
84434         is disabled.
84435
84436 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
84437
84438         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
84439
84440 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
84441
84442         * include/alloca.h (stackinfo_alloca_round): Define.
84443         (extend_alloca): Use it.
84444         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
84445         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
84446         here.
84447
84448         * scripts/check-local-headers.sh: Ignore libaudit.h.
84449
84450         * nscd/Makefile (extra-objs): Make recursively expanded.
84451
84452 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
84453
84454         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
84455         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
84456
84457         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
84458         * posix/tst-rfc3484-2.c: Likewise.
84459         * posix/tst-rfc3484-3.c: Likewise.
84460
84461         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
84462         process_vm_writev.
84463         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
84464         process_vm_writev.
84465         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
84466         process_vm_writev from libc using GLIBC_2.15 version.
84467
84468         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
84469
84470 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
84471
84472         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
84473         stack usage.
84474
84475 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
84476
84477         [BZ #13367]
84478         * nss/getent.c (initgroups_keys): Show error message in case no group
84479         names are given.
84480
84481         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
84482         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
84483         __bump_nl_timestamp.
84484         * nscd/connections (nscd_init): When host database is served open
84485         netlink socket and request notification about configuration changes.
84486         (main_loop_poll): Track netlink file descriptor and bump timestamp
84487         in case data becomes available.
84488         (main_loop_epoll): Likewise.
84489         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
84490         (database_pers_head): Add extra_data fileds.
84491         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
84492         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
84493         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84494         Adjust caller.
84495         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
84496         in6ai data, call __free_in6ai.
84497         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
84498         Add -DHAVE_NETLINK.
84499         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
84500         interface information.  Reuse previous data if netlink timestamp
84501         is not changed.
84502         (__bump_nl_timestamp): New function.
84503         (__free_in6ai): New function.
84504
84505 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
84506
84507         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
84508         close_not_cancel_no_status here.
84509         (__check_pf): Reorganize code a bit to not call close twice if OOM.
84510
84511 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84512
84513         [BZ #13276]
84514         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
84515         return value.
84516
84517         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
84518         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
84519         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
84520
84521 2011-07-03  Andreas Jaeger  <aj@suse.de>
84522
84523         [BZ #10709]
84524         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
84525         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
84526         * math/libm-test.inc (sin_test): Add test case.
84527
84528 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84529
84530         [BZ #13337]
84531         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
84532         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84533
84534         * elf/chroot_canon.c (chroot_canon): Cleanups.
84535
84536         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
84537
84538         [BZ #13335]
84539         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
84540         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
84541
84542         * string/test-strchr.c: Make usable for strchrnul testing.
84543         * string/test-strchrnul.c: New file.
84544         * string/Makefile (strop-tests): Add strchrnul.
84545
84546         * po/it.po: Update from translation team.
84547         * po/es.po: Likewise.
84548
84549 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
84550
84551         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
84552         the three constants needed as parameters.  Drop the others.
84553         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
84554         __m128i_strloadu_tolower.
84555         Create and initialize variable zero and use it in all the places
84556         where _mm_setzero_si128 was used.
84557
84558         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
84559         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
84560         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
84561         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
84562         anymore.
84563         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
84564         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
84565         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
84566         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
84567         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
84568         __mpranred, __mptan.
84569         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
84570         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
84571         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
84572         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
84573         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
84574         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
84575         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
84576         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
84577         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
84578
84579 2011-10-28  Andreas Schwab  <schwab@redhat.com>
84580
84581         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
84582         redefine if SHARED.
84583         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
84584
84585         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
84586         wide char related routines to wcsmbs subdir.
84587
84588 2011-10-27  Andreas Schwab  <schwab@redhat.com>
84589
84590         [BZ #13344]
84591         * misc/sys/cdefs.h (__THROWNL): Define.
84592         * posix/unistd.h: Use __THREADNL instead of __THREAD
84593         for memory synchronization functions.
84594
84595 2011-10-26  Roland McGrath  <roland@hack.frob.com>
84596
84597         [BZ #13349]
84598         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
84599         doesn't exist.
84600         * manual/stdio.texi (Obstack Streams): Node removed.
84601
84602 2011-10-26  Andreas Schwab  <schwab@redhat.com>
84603
84604         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
84605         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84606         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84607
84608         * math/math_private.h (math_force_eval): Allow non-addressable
84609         arguments.
84610         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
84611
84612 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84613
84614         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
84615         file is not needed.
84616
84617         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
84618         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
84619         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
84620         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
84621         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
84622         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
84623         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
84624         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
84625         Add AVX variants.
84626         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
84627         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
84628         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
84629         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
84630         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
84631         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
84632         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
84633         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
84634         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
84635         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
84636         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
84637         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
84638         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
84639         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
84640         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
84641         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
84642         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
84643         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
84644         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
84645
84646         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
84647         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
84648
84649         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
84650         place.  Use VEX encoding when compiling for AVX.
84651
84652 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84653
84654         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
84655         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
84656
84657         * string/test-strchr.c (do_test): Don't generate NUL bytes.
84658
84659 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84660
84661         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
84662         useless if() expression.
84663         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
84664         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
84665         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
84666         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
84667         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
84668         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
84669         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
84670         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
84671         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
84672         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
84673         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
84674         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
84675         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
84676         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
84677         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
84678         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
84679         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
84680         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
84681         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
84682
84683         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
84684
84685 2011-10-25  Andreas Schwab  <schwab@redhat.com>
84686
84687         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
84688         condition.
84689         * elf/dl-fini.c (_dl_sort_fini): Likewise.
84690
84691 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
84692
84693         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
84694         .text section.  Avoid duplicate constants.
84695         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
84696         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84697         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
84698         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84699         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84700         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84701         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84702         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84703         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
84704         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
84705         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
84706         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
84707         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
84708         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
84709         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
84710         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
84711         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
84712         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
84713         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
84714         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84715         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
84716         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
84717         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
84718         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
84719         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
84720         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
84721         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
84722         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
84723         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
84724         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
84725         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
84726         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
84727         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
84728         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
84729         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
84730         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
84731         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
84732         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
84733         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
84734         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
84735         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
84736         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
84737         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
84738         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
84739         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
84740
84741 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
84742
84743         * sysdeps/x86_64/dla.h: Move to ...
84744         * sysdeps/x86_64/fpu/dla.h: ...here.
84745         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
84746         situations.  Use __builtin_fma only for gcc 4.6 and up.
84747
84748         * config.make.in: Add have-mfma4 entry.
84749         * configure.in: Substitute libc_cv_cc_fma4.
84750         * math/Makefile (dbl-only-routines): Add sincostab.
84751         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
84752         Use __sincostab not sincos.
84753         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
84754         name is a macro.
84755         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
84756         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84758         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
84759         using __copysign.
84760         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
84761         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
84762         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
84763         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
84764         and __inv.
84765         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
84766         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
84767         __copysign.
84768         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
84769         define aliases when function name is a macro.
84770         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
84771         sysdeps/ieee754/dbl-64/sincos.tbl.
84772         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
84773         fma4-enabled routines.
84774         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
84775         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
84776         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
84777         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
84778         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
84779         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
84780         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
84781         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
84782         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
84783         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
84784         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
84785         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
84786         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
84787         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
84788         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
84789         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
84790         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
84791         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
84792         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
84793         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
84794         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
84795         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
84796         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
84797         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
84798         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
84799         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
84800         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
84801         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
84802         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
84803         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
84804
84805         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
84806         rename.
84807         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84808         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84809         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84810         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84811         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84812         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84813         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84814         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84815
84816 2011-10-24  Andreas Schwab  <schwab@redhat.com>
84817
84818         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
84819
84820 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84821
84822         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
84823
84824         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
84825         prediction.
84826         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
84827
84828         * string/strnlen.c: Don't define STRNLEN, reverse logic.
84829         Remove unused variable magic_bits.
84830         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
84831
84832         * string/strnlen.c: Define and use STRNLEN macro.
84833         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
84834         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
84835         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
84836         * wcsmbs/wcslen.c: Define and use WCSLEN.
84837         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
84838         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
84839         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
84840         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
84841         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
84842         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
84843         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
84844
84845 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84846
84847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
84848         strnlen-sse2-no-bsf.
84849         Rename strlen-no-bsf to strlen-sse2-no-bsf.
84850         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
84851         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
84852         Add strnlen support.
84853         (USE_AS_STRNLEN): New macro.
84854         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
84855         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
84856         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
84857         * sysdeps/x86_64/wcslen.S: New file.
84858
84859 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
84860
84861         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
84862         XMM-moves are used for copying on small sizes.
84863
84864 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84865
84866         * wcsmbs/Makefile (strop-tests): Add wcschr.
84867         * wcsmbs/test-wcschr.c: New file.
84868         * string/test-strchr.c: Update.
84869         Add wcschr support.
84870         (WIDE): New macro.
84871
84872 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84873
84874         * wcsmbs/Makefile (strop-tests): Add wcslen.
84875         * wcsmbs/test-wcslen.c: New file.
84876         * string/test-strlen.c: Update.
84877         Add wcslen support.
84878         (WIDE): New macro.
84879
84880 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84881
84882         * po/it.po: Update from translation team.
84883
84884 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84885
84886         * sysdeps/x86_64/wcscmp.S: Update.
84887         Fix wrong comparison semantics.
84888         wcscmp shall use signed comparison not unsigned.
84889         Don't use substraction to avoid overflow bug.
84890         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
84891         * wcsmbc/wcscmp.c: Likewise.
84892         * string/test-strcmp.c: Likewise.
84893         Add new tests to check cases with negative values.
84894
84895 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
84896
84897         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
84898         * sysdeps/x86_64/dla.h: ...here.  New file.
84899         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
84900         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84901         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84902         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84903         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84904         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
84905         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84906         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84907         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84908
84909 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
84910
84911         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
84912         __ynl_finite aliases.
84913
84914 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
84915
84916         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
84917
84918         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
84919         define DLA_FMA.
84920         [DLA_FMA] (EMULV): Use DLA_FMA.
84921         [DLA_FMA] (MUL12): Use EMULV.
84922         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
84923         that are not needed.
84924         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
84925         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
84926         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
84927         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
84928         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
84929         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
84930         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
84931
84932 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
84933
84934         * math/s_nan.c: Undef __nan.
84935         * math/s_nanf.c: Undef __nanf.
84936         * math/s_nanl.c: Undef __nanl.
84937         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
84938         "math_private.h".
84939
84940 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
84941
84942         * math/s_catan.c: Add branch predictions.
84943         * math/s_catanf.c: Likewise.
84944         * math/s_catanh.c: Likewise.
84945         * math/s_catanhf.c: Likewise.
84946         * math/s_catanhl.c: Likewise.
84947         * math/s_catanl.c: Likewise.
84948         * math/s_cexp.c: Likewise.
84949         * math/s_cexpf.c: Likewise.
84950         * math/s_cexpl.c: Likewise.
84951         * math/s_clog.c: Likewise.
84952         * math/s_clog10.c: Likewise.
84953         * math/s_clog10f.c: Likewise.
84954         * math/s_clog10l.c: Likewise.
84955         * math/s_clogf.c: Likewise.
84956         * math/s_clogl.c: Likewise.
84957         * math/s_csqrt.c: Likewise.
84958         * math/s_csqrtf.c: Likewise.
84959         * math/s_csqrtl.c: Likewise.
84960         * math/s_ctanf.c: Likewise.
84961         * math/s_ctanh.c: Likewise.
84962         * math/s_ctanhf.c: Likewise.
84963         * math/s_ctanhl.c: Likewise.
84964         * math/s_ctanl.c: Likewise.
84965
84966         * math/math_private.h: Define __nan, __nanf, __nanl.
84967         * math/s_cacosh.c: Include <math_private.h>.
84968         * math/s_cacoshl.c: Likewise.
84969         * math/s_casinh.c: Likewise.
84970         * math/s_casinhf.c: Likewise.
84971         * math/s_casinhl.c: Likewise.
84972         * math/s_ccos.c: Rely entire on ccosh.
84973         * math/s_ccosf.c: Rely entire on ccoshf.
84974         * math/s_ccosl.c: Rely entirely on ccoshl.
84975         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
84976         Remove tests for FE_INVALID.
84977         * math/s_ccoshf.c: Likewise.
84978         * math/s_ccoshl.c: Likewise.
84979         * math/s_csin.c: Likewise.
84980         * math/s_csinf.c: Likewise.
84981         * math/s_csinh.c Likewise.
84982         * math/s_csinhf.c: Likewise.
84983         * math/s_csinhl.c: Likewise.
84984         * math/s_csinl.c: Likewise.
84985         * math/s_ctan.c: Likewise.
84986         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
84987         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
84988         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
84989
84990 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
84991
84992         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
84993         compilation problems.
84994
84995         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
84996         __builtin_expect.
84997
84998 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
84999
85000         * sysdeps/i386/configure.in: Test for -mfma4 option.
85001         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85002         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85003         COMMON_CPUID_INDEX_80000001.
85004         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85005         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85006         use it if FMA3 is not supported.
85007         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85008
85009         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85010         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85011
85012 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85013
85014         [BZ #12892]
85015         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85016         it would create a cycle with a link time dependency.
85017
85018 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85019
85020         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85021         instruction.
85022         * string/Makefile (strop-tests): Add rawmemchr.
85023         * string/test-rawmemchr.c: New file.
85024
85025         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85026         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85027         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85028         when compiling str{,n}casecmp and when AVX is available.  Hook up
85029         new optimized code in initializers.
85030
85031 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85032
85033         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85034         __feraiseexcept instead of feraiseexcept.
85035
85036 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85037
85038         * math/math_private.h: Define defaults for libc_fetestexcept and
85039         libc_feupdateenv.
85040         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85041         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85042         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85043         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85044         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85045         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85046         libc_fetestexcept and libc_feupdateenv.
85047
85048         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85049         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85050         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85051         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85052         libc_feholdexcept_setround.
85053
85054         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85055         Add s_nearbyint-c and s_nearbyintf-c.
85056         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85057         nearbyintf inlines.
85058         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85059         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85060         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85061         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85062
85063         * math/math_private.h: Define defaults for libc_fegetround,
85064         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85065         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85066         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85067         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85068         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85069         standard functions.
85070         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85071         Remove comments and hacks for old compiler versions.
85072         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85073         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85074         libc_feholdexceptl.
85075
85076 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85077
85078         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85079         (__feraiseexcept_renamed): Add __NTH.
85080         (feraiseexcept): Add __NTH.  Rename local variables to fix
85081         namespace violations.
85082
85083 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85084
85085         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85086
85087         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85088
85089         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85090         recently added interfaces.
85091         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85092
85093         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85094         about macro parameter expansion.
85095
85096         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85097         __NO_MATH_INLINES is defined.  Cleanups.
85098
85099         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85100         and __floorf is target has SSE4.1.
85101         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85102         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85103         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85104         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85105
85106         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85107         name.
85108         (floorf): Likewise.
85109
85110         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85111
85112 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85113
85114         * misc/sys/cdefs.h: Fix last change.
85115
85116         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85117         database lookup.
85118
85119 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85120
85121         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85122
85123         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85124         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85125         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85126         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85127         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85128         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85129         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85130         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85131         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85132         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85133         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85134         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85135         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85136         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85137         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85138         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85139         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85140         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85141         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85142         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85143         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85144         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85145
85146         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85147         ceil, ceilf, floor, floorf.
85148
85149         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85150         Perform IRELATIVE relocations last.
85151
85152         * elf/do-rel.h: Add another parameter nrelative, replacing the
85153         local variable with the same name.  Change name of the function
85154         to end in Rel or Rela (uppercase).
85155         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85156         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85157         elf_dynamic_do_##reloc function.
85158
85159 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85160
85161         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85162         is sufficient, at least on modern CPUs.
85163
85164         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85165
85166         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85167         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85168
85169         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85170         __expl_finite.
85171         * math/bits/math-finite.h: Add entries for exp.
85172         * math/e_expl.c: Add __*_finite alias.
85173         * sysdeps/i386/fpu/e_exp.S: Likewise.
85174         * sysdeps/i386/fpu/e_expf.S: Likewise.
85175         * sysdeps/i386/fpu/e_expl.c: Likewise.
85176         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85177         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85178         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85179         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85180         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85181         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85182         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85183
85184         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85185         is sufficient, at least on modern CPUs.
85186
85187         * ctype/ctype-info.c (__ctype_init): Define.
85188         * include/ctype.h (__ctype_init): Declare.
85189         (__ctype_b_loc): The variable is always initialized.
85190         (__ctype_toupper_loc): Likewise.
85191         (__ctype_tolower_loc): Likewise.
85192         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85193         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85194
85195 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85196
85197         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85198
85199         * configure.in: Also look in $cxxmachine/include for C++ system
85200         headers.
85201
85202 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85203
85204         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85205         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85206         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85207         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85208         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85209         (USE_AS_WMEMCMP): New macro.
85210         Fixing indents.
85211         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85212         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85213         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85214         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85215         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85216         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85217         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85218         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85219         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85220         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85221         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85222         (USE_AS_WMEMCMP): New macro.
85223         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85224         * sysdeps/string/test-memcmp.c: Update.
85225         Fix simple_wmemcmp.
85226         Add new tests.
85227         * wcsmbs/wmemcmp.c: Update.
85228         (WMEMCMP): New macro.
85229         Fix overflow bug.
85230
85231 2011-10-12  Andreas Jaeger  <aj@suse.de>
85232
85233         [BZ #13268]
85234         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85235
85236 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85237
85238         * libio/iofwide.c (do_length): Avoid warning.
85239
85240         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85241
85242 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85243
85244         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85245
85246         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85247         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85248         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85249         * sysdeps/i386/i686/fpu/e_log.S: New file.
85250         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85251         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85252
85253         * ctype/ctype.h: Add support for inlined isXXX functions when
85254         compiling C++ code.
85255
85256 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85257
85258         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85259
85260         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85261
85262 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85263
85264         [BZ #13291]
85265         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85266
85267 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85268
85269         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85270         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85271         feraiseexcept.
85272
85273         * sysdeps/x86_64/memrchr.S: Check for zero size.
85274
85275         * string/stratcliff.c: Add memrchr tests.
85276
85277 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85278
85279         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85280         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85281         rawmemchr-sse2 rawmemchr-sse2-bsf.
85282         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85283         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85284         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85285         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85286         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85287         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85288         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85289         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85290         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85291         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85292         * string/memrchr.c (MEMRCHR): New macro.
85293
85294 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85295
85296         Add integration with gcc's -ffinite-math-only and optimize wrapper
85297         functions in libm.
85298         * Versions.def: Define GLIBC_2.15 version for libm.
85299         * math/Makefile (headers): Add bits/math-finite.h.
85300         * math/bits/math-finite.h: New file.
85301         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85302         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85303         * math/e_acoshl.c: Add __*_finite alias.
85304         * math/e_acosl.c: Likewise.
85305         * math/e_asinl.c: Likewise.
85306         * math/e_atan2l.c: Likewise.
85307         * math/e_atanhl.c: Likewise.
85308         * math/e_coshl.c: Likewise.
85309         * math/e_exp10.c: Likewise.
85310         * math/e_exp10f.c: Likewise.
85311         * math/e_exp10l.c: Likewise.
85312         * math/e_exp2l.c: Likewise.
85313         * math/e_fmodl.c: Likewise.
85314         * math/e_gammal_r.c: Likewise.
85315         * math/e_hypotl.c: Likewise.
85316         * math/e_j0l.c: Likewise.
85317         * math/e_j1l.c: Likewise.
85318         * math/e_jnl.c: Likewise.
85319         * math/e_lgammal_r.c: Likewise.
85320         * math/e_log10l.c: Likewise.
85321         * math/e_log2l.c: Likewise.
85322         * math/e_logl.c: Likewise.
85323         * math/e_powl.c: Likewise.
85324         * math/e_sinhl.c: Likewise.
85325         * math/e_sqrtl.c: Likewise.
85326         * math/e_scalb.c: Completely rewritten and optimized.
85327         * math/e_scalbf.c: Likewise.
85328         * math/e_scalbl.c: Likewise.
85329         * math/w_acos.c: Likewise.
85330         * math/w_acosf.c: Likewise.
85331         * math/w_acosl.c: Likewise.
85332         * math/w_acosh.c: Likewise.
85333         * math/w_acoshf.c: Likewise.
85334         * math/w_acoshl.c: Likewise.
85335         * math/w_asin.c: Likewise.
85336         * math/w_asinf.c: Likewise.
85337         * math/w_asinl.c: Likewise.
85338         * math/w_atan2.c: Likewise.
85339         * math/w_atan2f.c: Likewise.
85340         * math/w_atan2l.c: Likewise.
85341         * math/w_atanh.c: Likewise.
85342         * math/w_atanhf.c: Likewise.
85343         * math/w_atanhl.c: Likewise.
85344         * math/w_exp10.c: Likewise.
85345         * math/w_exp10f.c: Likewise.
85346         * math/w_exp10l.c: Likewise.
85347         * math/w_fmod.c: Likewise.
85348         * math/w_fmodf.c: Likewise.
85349         * math/w_fmodl.c: Likewise.
85350         * math/w_j0.c: Likewise.
85351         * math/w_j0f.c: Likewise.
85352         * math/w_j0l.c: Likewise.
85353         * math/w_j1.c: Likewise.
85354         * math/w_j1f.c: Likewise.
85355         * math/w_j1l.c: Likewise.
85356         * math/w_jn.c: Likewise.
85357         * math/w_jnf.c: Likewise.
85358         * math/w_log.c: Likewise.
85359         * math/w_logf.c: Likewise.
85360         * math/w_logl.c: Likewise.
85361         * math/w_log10.c: Likewise.
85362         * math/w_log10f.c: Likewise.
85363         * math/w_log10l.c: Likewise.
85364         * math/w_log2.c: Likewise.
85365         * math/w_log2f.c: Likewise.
85366         * math/w_log2l.c: Likewise.
85367         * math/w_pow.c: Likewise.
85368         * math/w_powf.c: Likewise.
85369         * math/w_powl.c: Likewise.
85370         * math/w_remainder.c: Likewise.
85371         * math/w_remainderf.c: Likewise.
85372         * math/w_remainderl.c: Likewise.
85373         * math/w_scalb.c: Likewise.
85374         * math/w_scalbf.c: Likewise.
85375         * math/w_scalbl.c: Likewise.
85376         * math/w_sqrt.c: Likewise.
85377         * math/w_sqrtf.c: Likewise.
85378         * math/w_sqrtl.c: Likewise.
85379         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
85380         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
85381         used.
85382         * math/math_private.h: Declare __kernel_standard_f.
85383         * math/w_cosh.c: Remove cruft and optimize a bit.
85384         * math/w_coshf.c: Likewise.
85385         * math/w_coshl.c: Likewise.
85386         * math/w_exp2.c: Likewise.
85387         * math/w_exp2f.c: Likewise.
85388         * math/w_exp2l.c: Likewise.
85389         * math/w_hypot.c: Likewise.
85390         * math/w_hypotf.c: Likewise.
85391         * math/w_hypotl.c: Likewise.
85392         * math/w_lgamma.c: Likewise.
85393         * math/w_lgamma_r.c: Likewise.
85394         * math/w_lgammaf.c: Likewise.
85395         * math/w_lgammaf_r.c: Likewise.
85396         * math/w_lgammal.c: Likewise.
85397         * math/w_lgammal_r.c: Likewise.
85398         * math/w_sinh.c: Likewise.
85399         * math/w_sinhf.c: Likewise.
85400         * math/w_sinhl.c: Likewise.
85401         * math/w_tgamma.c: Likewise.
85402         * math/w_tgammaf.c: Likewise.
85403         * math/w_tgammal.c: Likewise.
85404         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
85405         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85406         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
85407         Minor optimizations.  Pretty printing.  Remove cruft.
85408         * sysdeps/i386/fpu/e_acosf.S: Likewise.
85409         * sysdeps/i386/fpu/e_acosh.S: Likewise.
85410         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
85411         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
85412         * sysdeps/i386/fpu/e_acosl.c: Likewise.
85413         * sysdeps/i386/fpu/e_asin.S: Likewise.
85414         * sysdeps/i386/fpu/e_asinf.S: Likewise.
85415         * sysdeps/i386/fpu/e_atan2.S: Likewise.
85416         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
85417         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
85418         * sysdeps/i386/fpu/e_atanh.S: Likewise.
85419         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
85420         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
85421         * sysdeps/i386/fpu/e_exp10.S: Likewise.
85422         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
85423         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
85424         * sysdeps/i386/fpu/e_exp2.S: Likewise.
85425         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
85426         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
85427         * sysdeps/i386/fpu/e_fmod.S: Likewise.
85428         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
85429         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
85430         * sysdeps/i386/fpu/e_hypot.S: Likewise.
85431         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
85432         * sysdeps/i386/fpu/e_log.S: Likewise.
85433         * sysdeps/i386/fpu/e_log10.S: Likewise.
85434         * sysdeps/i386/fpu/e_log10f.S: Likewise.
85435         * sysdeps/i386/fpu/e_log10l.S: Likewise.
85436         * sysdeps/i386/fpu/e_log2.S: Likewise.
85437         * sysdeps/i386/fpu/e_log2f.S: Likewise.
85438         * sysdeps/i386/fpu/e_log2l.S: Likewise.
85439         * sysdeps/i386/fpu/e_logf.S: Likewise.
85440         * sysdeps/i386/fpu/e_logl.S: Likewise.
85441         * sysdeps/i386/fpu/e_pow.S: Likewise.
85442         * sysdeps/i386/fpu/e_powf.S: Likewise.
85443         * sysdeps/i386/fpu/e_powl.S: Likewise.
85444         * sysdeps/i386/fpu/e_remainder.S: Likewise.
85445         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
85446         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
85447         * sysdeps/i386/fpu/e_scalb.S: Likewise.
85448         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
85449         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
85450         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
85451         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
85452         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
85453         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
85454         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85455         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85456         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
85457         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85458         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
85459         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
85460         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
85461         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85462         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
85463         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
85464         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
85465         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85466         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
85467         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
85468         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85469         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
85470         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
85471         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85472         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85473         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
85474         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
85475         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
85476         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
85477         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
85478         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
85479         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85480         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
85481         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
85482         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
85483         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85484         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
85485         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85486         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
85487         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
85488         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
85489         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
85490         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
85491         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
85492         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
85493         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
85494         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
85495         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
85496         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
85497         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
85498         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
85499         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
85500         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
85501         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
85502         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
85503         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
85504         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
85505         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
85506         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85507         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
85508         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
85509         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
85510         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
85511         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
85512         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
85513         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
85514         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
85515         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
85516         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
85517         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
85518         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
85519         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
85520         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
85521         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
85522         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
85523         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
85524         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
85525         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
85526         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
85527         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
85528         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
85529         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
85530         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
85531         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
85532         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
85533         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85534         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
85535         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
85536         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
85537         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85538         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
85539         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
85540         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
85541         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
85542         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
85543         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
85544         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
85545         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
85546         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
85547         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
85548         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
85549         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
85550         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
85551         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
85552         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
85553         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
85554         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
85555         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
85556         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
85557         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
85558         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
85559         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
85560         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
85561         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
85562         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
85563         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
85564         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
85565         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
85566         (__isnanf): Likewise.
85567         (__isinf_ns): Likewise.
85568         (__isinf_nsf): Likewise.
85569         (__finite): Likewise.
85570         (__finitef): Likewise.
85571         (__ieee754_sqrt): Define as macro.
85572         (__ieee754_sqrtf): Define as macro.
85573         (__ieee754_sqrtl): Define as macro.
85574         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
85575         inlined copy.
85576         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
85577         __FINITE_MATH_ONLY__ consistent.
85578         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
85579
85580 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
85581
85582         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
85583         of rawmemchr.
85584
85585         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
85586
85587 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
85588
85589         * po/ja.po: Update from translation team.
85590
85591 2011-10-08  Roland McGrath  <roland@hack.frob.com>
85592
85593         * locale/programs/locarchive.c (prepare_address_space): New function.
85594         (create_archive, enlarge_archive, open_archive): Use it.
85595
85596         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
85597         inside [SHARED], where it is used.
85598
85599         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
85600
85601         * nss/getent.c (netgroup_keys): Remove unused variable.
85602         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
85603
85604 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
85605
85606         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
85607         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
85608         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
85609         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
85610         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
85611         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
85612         * math/Makefile (libm-calls): Add s_isinf_ns.
85613         * math/divtc3.c: Use __isinf_nsl instead of isinf.
85614         * math/multc3.c: Likewise.
85615         * math/s_casin.c: Likewise.
85616         * math/s_casinf.c: Likewise.
85617         * math/s_casinl.c: Likewise.
85618         * math/s_ccos.c: Likewise.
85619         * math/s_ccosf.c: Likewise.
85620         * math/s_ccosl.c: Likewise.
85621         * math/s_ctan.c: Likewise.
85622         * math/s_ctanf.c: Likewise.
85623         * math/s_ctanh.c: Likewise.
85624         * math/s_ctanhf.c: Likewise.
85625         * math/s_ctanhl.c: Likewise.
85626         * math/s_ctanl.c: Likewise.
85627         * math/w_fmod.c: Likewise.
85628         * math/w_fmodf.c: Likewise.
85629         * math/w_fmodl.c: Likewise.
85630         * math/w_remainder.c: Likewise.
85631         * math/w_remainderf.c: Likewise.
85632         * math/w_remainderl.c: Likewise.
85633         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
85634         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
85635         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
85636         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
85637         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
85638         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
85639         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
85640         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
85641
85642         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
85643         of the number.
85644         * stdio-common/printf_fphex.c: Likewise.
85645         * stdio-common/printf_size.c: Likewise.
85646
85647         * math/e_exp10.c: Include math_private.h using <...> not "...".
85648         * math/e_exp10f.c: Likewise.
85649         * math/e_exp10l.c: Likewise.
85650         * math/e_exp2l.c: Likewise.
85651         * math/e_j0l.c: Likewise.
85652         * math/e_j1l.c: Likewise.
85653         * math/e_jnl.c: Likewise.
85654         * math/e_lgammal_r.c: Likewise.
85655         * math/e_rem_pio2l.c: Likewise.
85656         * math/e_scalb.c: Likewise.
85657         * math/e_scalbf.c: Likewise.
85658         * math/e_scalbl.c: Likewise.
85659         * math/k_cosl.c: Likewise.
85660         * math/k_sinl.c: Likewise.
85661         * math/k_tanl.c: Likewise.
85662         * math/s_cacoshf.c: Likewise.
85663         * math/s_catan.c: Likewise.
85664         * math/s_catanf.c: Likewise.
85665         * math/s_catanh.c: Likewise.
85666         * math/s_catanhf.c: Likewise.
85667         * math/s_catanhl.c: Likewise.
85668         * math/s_catanl.c: Likewise.
85669         * math/s_ccosh.c: Likewise.
85670         * math/s_ccoshf.c: Likewise.
85671         * math/s_ccoshl.c: Likewise.
85672         * math/s_cexp.c: Likewise.
85673         * math/s_cexpf.c: Likewise.
85674         * math/s_cexpl.c: Likewise.
85675         * math/s_clog.c: Likewise.
85676         * math/s_clog10.c: Likewise.
85677         * math/s_clog10f.c: Likewise.
85678         * math/s_clog10l.c: Likewise.
85679         * math/s_clogf.c: Likewise.
85680         * math/s_clogl.c: Likewise.
85681         * math/s_csin.c: Likewise.
85682         * math/s_csinf.c: Likewise.
85683         * math/s_csinh.c: Likewise.
85684         * math/s_csinhf.c: Likewise.
85685         * math/s_csinhl.c: Likewise.
85686         * math/s_csinl.c: Likewise.
85687         * math/s_csqrt.c: Likewise.
85688         * math/s_csqrtf.c: Likewise.
85689         * math/s_csqrtl.c: Likewise.
85690         * math/s_ctan.c: Likewise.
85691         * math/s_ctanf.c: Likewise.
85692         * math/s_ctanh.c: Likewise.
85693         * math/s_ctanhf.c: Likewise.
85694         * math/s_ctanhl.c: Likewise.
85695         * math/s_ctanl.c: Likewise.
85696         * math/s_ldexp.c: Likewise.
85697         * math/s_ldexpf.c: Likewise.
85698         * math/s_ldexpl.c: Likewise.
85699         * math/s_significand.c: Likewise.
85700         * math/s_significandf.c: Likewise.
85701         * math/s_significandl.c: Likewise.
85702         * math/w_acos.c: Likewise.
85703         * math/w_acosf.c: Likewise.
85704         * math/w_acosh.c: Likewise.
85705         * math/w_acoshf.c: Likewise.
85706         * math/w_acoshl.c: Likewise.
85707         * math/w_acosl.c: Likewise.
85708         * math/w_asin.c: Likewise.
85709         * math/w_asinf.c: Likewise.
85710         * math/w_asinl.c: Likewise.
85711         * math/w_atan2.c: Likewise.
85712         * math/w_atan2f.c: Likewise.
85713         * math/w_atan2l.c: Likewise.
85714         * math/w_atanh.c: Likewise.
85715         * math/w_atanhf.c: Likewise.
85716         * math/w_atanhl.c: Likewise.
85717         * math/w_cosh.c: Likewise.
85718         * math/w_coshf.c: Likewise.
85719         * math/w_coshl.c: Likewise.
85720         * math/w_dremf.c: Likewise.
85721         * math/w_exp10.c: Likewise.
85722         * math/w_exp10f.c: Likewise.
85723         * math/w_exp10l.c: Likewise.
85724         * math/w_exp2.c: Likewise.
85725         * math/w_exp2f.c: Likewise.
85726         * math/w_fmod.c: Likewise.
85727         * math/w_fmodf.c: Likewise.
85728         * math/w_fmodl.c: Likewise.
85729         * math/w_hypot.c: Likewise.
85730         * math/w_hypotf.c: Likewise.
85731         * math/w_hypotl.c: Likewise.
85732         * math/w_j0.c: Likewise.
85733         * math/w_j0f.c: Likewise.
85734         * math/w_j0l.c: Likewise.
85735         * math/w_j1.c: Likewise.
85736         * math/w_j1f.c: Likewise.
85737         * math/w_j1l.c: Likewise.
85738         * math/w_jn.c: Likewise.
85739         * math/w_jnf.c: Likewise.
85740         * math/w_jnl.c: Likewise.
85741         * math/w_lgamma.c: Likewise.
85742         * math/w_lgamma_r.c: Likewise.
85743         * math/w_lgammaf.c: Likewise.
85744         * math/w_lgammaf_r.c: Likewise.
85745         * math/w_lgammal.c: Likewise.
85746         * math/w_lgammal_r.c: Likewise.
85747         * math/w_log.c: Likewise.
85748         * math/w_log10.c: Likewise.
85749         * math/w_log10f.c: Likewise.
85750         * math/w_log10l.c: Likewise.
85751         * math/w_log2.c: Likewise.
85752         * math/w_log2f.c: Likewise.
85753         * math/w_log2l.c: Likewise.
85754         * math/w_logf.c: Likewise.
85755         * math/w_logl.c: Likewise.
85756         * math/w_pow.c: Likewise.
85757         * math/w_powf.c: Likewise.
85758         * math/w_powl.c: Likewise.
85759         * math/w_remainder.c: Likewise.
85760         * math/w_remainderf.c: Likewise.
85761         * math/w_remainderl.c: Likewise.
85762         * math/w_scalb.c: Likewise.
85763         * math/w_scalbf.c: Likewise.
85764         * math/w_scalbl.c: Likewise.
85765         * math/w_sinh.c: Likewise.
85766         * math/w_sinhf.c: Likewise.
85767         * math/w_sinhl.c: Likewise.
85768         * math/w_sqrt.c: Likewise.
85769         * math/w_sqrtf.c: Likewise.
85770         * math/w_sqrtl.c: Likewise.
85771         * math/w_tgamma.c: Likewise.
85772         * math/w_tgammaf.c: Likewise.
85773         * math/w_tgammal.c: Likewise.
85774
85775         * po/ja.po: Update from translation team.
85776
85777 2011-09-29  Andreas Jaeger  <aj@suse.de>
85778
85779         [BZ #13179]
85780         * sunrpc/netname.c (netname2host): Fix logic.
85781
85782         [BZ #6779]
85783         [BZ #6783]
85784         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
85785         correctly.
85786         * math/w_remainder.c (__remainder): Likewise.
85787         * math/w_remainderf.c (__remainderf): Likewise.
85788         * math/libm-test.inc (remainder_test): Add test cases.
85789
85790 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
85791
85792         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
85793         sdiv_qrnnd.
85794
85795 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85796
85797         * string/test-memcmp.c: Avoid unncessary #defines.
85798         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85799
85800 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85801
85802         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
85803         Use new sse2 version for core i3 - i7 as it's faster
85804         than sse42 version.
85805         (bit_Prefer_PMINUB_for_stringop): New.
85806         * sysdeps/x86_64/rawmemchr.S: Update.
85807         Replace with faster SSE2 version.
85808         * sysdeps/x86_64/memrchr.S: New file.
85809         * sysdeps/x86_64/memchr.S: Update.
85810         Replace with faster SSE2 version.
85811
85812 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
85813
85814         * elf/dl-load.c (lose): Add cast to avoid warning.
85815
85816 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
85817
85818         * po/ca.po: Update from translation team.
85819
85820         * inet/getnetgrent_r.c: Hook up nscd.
85821         * nscd/Makefile (routines): Add nscd_netgroup.
85822         (nscd-modules): Add netgroupcache.
85823         (CFLAGS-netgroupcache.c): Define.
85824         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
85825         (cache_search): Add const to second parameter.
85826         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
85827         INNETGR.
85828         (dbs): Add netgrdb entry.
85829         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
85830         (verify_persistent_db): Handle netgrdb.
85831         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
85832         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
85833         GETFDNETGR.
85834         (netgroup_response_header): Define.
85835         (innetgroup_response_header): Define.
85836         (datahead): Add netgroup_response_header and innetgroup_response_header
85837         elements.
85838         * nscd/nscd.conf: Add entries for netgroup cache.
85839         * nscd/nscd.h (dbtype): Add netgrdb.
85840         (_PATH_NSCD_NETGROUP_DB): Define.
85841         (netgroup_iov_disabled): Declare.
85842         (xmalloc, xcalloc, xrealloc): Move declarations here.
85843         (cache_search): Adjust prototype.
85844         Add netgroup-related prototypes.
85845         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
85846         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
85847         (__nscd_innetgr): Declare.
85848         * nscd/selinux.c (perms): Use access_vector_t as element type and
85849         add netgroup-related initializers.
85850         * nscd/netgroupcache.c: New file.
85851         * nscd/nscd_netgroup.c: New file.
85852         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
85853         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
85854         For four parameters use innetgr.
85855         * nss/nss_files/files-init.c: Add definition and callback for netgr.
85856         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
85857         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
85858         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
85859
85860         * nscd/connections.c (register_traced_file): Don't register file
85861         for disabled databases.
85862
85863 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
85864
85865         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
85866
85867         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
85868         from tree and freeing node.
85869
85870 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
85871
85872         * nss/nsswitch.c (__nss_database_lookup): Handle
85873         nss_parse_service_list out of memory case.
85874
85875 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
85876
85877         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
85878         out of memory case.
85879
85880 2011-10-04  Andreas Schwab  <schwab@redhat.com>
85881
85882         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
85883         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
85884         pass it down.
85885         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
85886         elf_machine_rela, elf_machine_lazy_rel.
85887         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
85888         (ELF_DYNAMIC_DO_REL): Likewise.
85889         (ELF_DYNAMIC_DO_RELA): Likewise.
85890         (ELF_DYNAMIC_RELOCATE): Likewise.
85891         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
85892         to ELF_DYNAMIC_DO_REL.
85893         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
85894         (dl_main): In trace mode always set __RTLD_NOIFUNC.
85895         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
85896         elf_machine_rela.
85897         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
85898         skip_ifunc, don't call ifunc function if non-zero.
85899         (elf_machine_rela): Likewise.
85900         (elf_machine_lazy_rel): Likewise.
85901         (elf_machine_lazy_rela): Likewise.
85902         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
85903         (elf_machine_lazy_rel): Likewise.
85904         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
85905         Likewise.
85906         (elf_machine_lazy_rel): Likewise.
85907         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
85908         Likewise.
85909         (elf_machine_lazy_rel): Likewise.
85910         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
85911         (elf_machine_lazy_rel): Likewise.
85912         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
85913         (elf_machine_lazy_rel): Likewise.
85914         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
85915         (elf_machine_lazy_rel): Likewise.
85916         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
85917         (elf_machine_lazy_rel): Likewise.
85918         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
85919         (elf_machine_lazy_rel): Likewise.
85920         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
85921         (elf_machine_lazy_rel): Likewise.
85922
85923 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
85924
85925         * nss/nss_files/files-init.c (_nss_files_init): Use static
85926         initialization for all the *_traced_file variables.
85927
85928 2011-09-28  Andreas Schwab  <schwab@redhat.com>
85929
85930         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85931
85932 2011-09-27  Roland McGrath  <roland@hack.frob.com>
85933
85934         [BZ #13226]
85935         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
85936
85937 2011-09-27  Andreas Schwab  <schwab@redhat.com>
85938
85939         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
85940         Reread the line before reparsing it.
85941
85942 2011-09-26  Andreas Schwab  <schwab@redhat.com>
85943
85944         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
85945
85946 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
85947             Maxim Kuvyrkov  <maxim@codesourcery.com>
85948             Joseph Myers  <joseph@codesourcery.com>
85949
85950         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
85951         if needed for __stack_chk_guard.
85952
85953 2011-09-19  Roland McGrath  <roland@hack.frob.com>
85954
85955         * sysdeps/posix/spawni.c (script_execute): Always define it.
85956         It will be optimized away if unused.
85957         (maybe_script_execute): New function.
85958         (__spawni): Call it.
85959
85960         * Makerules: Don't include tls.make.
85961         (config-tls): Always set to thread.
85962         * tls.make.c: File removed.
85963
85964 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
85965
85966         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
85967         * config.make.in (CPPFLAGS-config): New substituted variable.
85968
85969 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
85970
85971         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
85972
85973         [BZ #13192]
85974         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
85975         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
85976
85977 2011-09-15  Roland McGrath  <roland@hack.frob.com>
85978
85979         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
85980         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
85981         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
85982         (CALL_FAIL): Likewise.
85983         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
85984         (CALL_FAIL): Macro removed.
85985         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
85986
85987 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
85988
85989         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
85990         for __FINITE_MATH_ONLY__ == 1.
85991
85992 2011-09-15  Andreas Schwab  <schwab@redhat.com>
85993
85994         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
85995         __ieee754_sqrt instead of sqrt.
85996         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
85997         __ieee754_sqrtf instead of sqrtf.
85998         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
85999         __floorf instead of floorf.
86000         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86001         __floorf, __truncf instead of floorf, truncf.
86002
86003 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86004
86005         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86006
86007         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86008         __extern_always_inline.
86009         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86010         32-bit.
86011
86012 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86013
86014         * elf/rtld.c (dl_main): Also relocate in dependency order when
86015         doing symbol dependency testing.
86016
86017 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86018
86019         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86020         Always define `refsym'.
86021
86022 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86023
86024         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86025         (__FD_ELT): Renamed from __FDELT.
86026         * misc/bits/select2.h (__FD_ELT): Likewise.
86027         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86028         __FD_MASK instead of __FDELT, __FDMASK.
86029         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86030         Likewise.
86031         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86032         Likewise.
86033
86034         * elf/Makefile (gen-ldd): Fix pattern.
86035
86036         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86037         (init_tls): Likewise.
86038
86039 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86040
86041         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86042
86043 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86044
86045         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86046         `struct cmsghdr *' instead of `void *'.
86047         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86048         Likewise.
86049
86050 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86051
86052         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86053         if non-absolute.
86054         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86055         ldd_rewrite_script.
86056
86057 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86058
86059         * configure.in: Remove --with-tls option.
86060         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86061         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86062         out in case it is missing.
86063         * sysdeps/ia64/elf/configure.in: Likewise.
86064         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86065         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86066         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86067         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86068         * sysdeps/sh/elf/configure.in: Likewise.
86069         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86070         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86071         * sysdeps/x86_64/elf/configure.in: Likewise.
86072         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86073         * sysdeps/mach/hurd/tls.h: Likewise.
86074
86075         [BZ #13067]
86076         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86077
86078         [BZ #13090]
86079         * configure.in: Fix use of AC_INIT.
86080
86081         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86082
86083 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86084
86085         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86086         __set_errno.
86087         * malloc/hooks.c: Likewise.
86088
86089         [BZ #11929]
86090         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86091         variables statically.
86092         (narenas): Initialize.
86093         (list_lock): Initialize.
86094         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86095         initializtion of main_arena and list_lock.  Small cleanups.
86096         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86097         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86098         Add initializers to main_arena and mp_.
86099         (malloc_state): Remove pagesize member.  Change all users to use
86100         GLRO(dl_pagesize).
86101
86102         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86103         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86104         is always initialized.
86105
86106         * malloc/malloc.c: Removed unused configurations and dead code.
86107         * malloc/arena.c: Likewise.
86108         * malloc/hooks.c: Likewise.
86109         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86110
86111         * include/tls.h: Removed.  USE___THREAD must always be defined.
86112         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86113         * elf/dl-libc.c: Likewise.
86114         * elf/dl-tsd.c: Likewise.
86115         * include/errno.h: Likewise.
86116         * include/netdb.h: Likewise.
86117         * include/resolv.h: Likewise.
86118         * inet/herrno-loc.c: Likewise.
86119         * inet/herrno.c: Likewise.
86120         * malloc/arena.c: Likewise.
86121         * malloc/hooks.c: Likewise.
86122         * malloc/malloc.c: Likewise.
86123         * resolv/res-state.c: Likewise.
86124         * resolv/res_libc.c: Likewise.
86125         * sysdeps/i386/dl-machine.h: Likewise.
86126         * sysdeps/ia64/dl-machine.h: Likewise.
86127         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86128         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86129         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86130         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86131         * sysdeps/sh/dl-machine.h: Likewise.
86132         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86133         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86134         * sysdeps/unix/i386/sysdep.S: Likewise.
86135         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86136         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86137         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86138         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86139         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86140         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86141         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86142         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86143         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86144         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86145         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86146         * sysdeps/x86_64/dl-machine.h: Likewise.
86147         * tls.make.c: Likewise.
86148
86149         * configure.in: Remove --with-__thread option.  Make tests for
86150         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86151         tls_model attribute fail if no support is available.  Remove
86152         USE_IN_LIBIO.
86153         * Makeconfig: Adjust for dropped configure option.  All features are
86154         now mandatory.
86155         * Makerules: Likewise.
86156         * Versions.def: Likewise.
86157         * argp/argp-fmtstream.c: Likewise.
86158         * argp/argp-fmtstream.h: Likewise.
86159         * argp/argp-help.c: Likewise.
86160         * assert/assert.c: Likewise.
86161         * config.h.in: Likewise.
86162         * config.make.in: Likewise.
86163         * configure: Likewise.
86164         * configure.in: Likewise.
86165         * csu/Versions: Likewise.
86166         * csu/init.c: Likewise.
86167         * elf/tst-audit2.c: Likewise.
86168         * elf/tst-tls10.c: Likewise.
86169         * elf/tst-tls10.h: Likewise.
86170         * elf/tst-tls11.c: Likewise.
86171         * elf/tst-tls12.c: Likewise.
86172         * elf/tst-tls14.c: Likewise.
86173         * elf/tst-tlsmod11.c: Likewise.
86174         * elf/tst-tlsmod12.c: Likewise.
86175         * elf/tst-tlsmod13.c: Likewise.
86176         * elf/tst-tlsmod13a.c: Likewise.
86177         * elf/tst-tlsmod14a.c: Likewise.
86178         * elf/tst-tlsmod15b.c: Likewise.
86179         * elf/tst-tlsmod16a.c: Likewise.
86180         * elf/tst-tlsmod16b.c: Likewise.
86181         * elf/tst-tlsmod7.c: Likewise.
86182         * elf/tst-tlsmod8.c: Likewise.
86183         * elf/tst-tlsmod9.c: Likewise.
86184         * gmon/gmon.c: Likewise.
86185         * grp/fgetgrent_r.c: Likewise.
86186         * grp/putgrent.c: Likewise.
86187         * hurd/fopenport.c: Likewise.
86188         * include/libc-symbols.h: Likewise.
86189         * include/tls.h: Likewise.
86190         * intl/gettextP.h: Likewise.
86191         * intl/loadinfo.h: Likewise.
86192         * locale/global-locale.c: Likewise.
86193         * locale/localeinfo.h: Likewise.
86194         * mach/devstream.c: Likewise.
86195         * malloc/arena.c: Likewise.
86196         * malloc/set-freeres.c: Likewise.
86197         * misc/err.c: Likewise.
86198         * misc/getttyent.c: Likewise.
86199         * misc/mntent_r.c: Likewise.
86200         * posix/getopt.c: Likewise.
86201         * posix/wordexp.c: Likewise.
86202         * pwd/fgetpwent_r.c: Likewise.
86203         * resolv/Versions: Likewise.
86204         * resolv/res_hconf.c: Likewise.
86205         * shadow/fgetspent_r.c: Likewise.
86206         * shadow/putspent.c: Likewise.
86207         * stdio-common/printf_fphex.c: Likewise.
86208         * stdio-common/tmpfile.c: Likewise.
86209         * stdlib/abort.c: Likewise.
86210         * stdlib/fmtmsg.c: Likewise.
86211         * sunrpc/auth_unix.c: Likewise.
86212         * sunrpc/clnt_perr.c: Likewise.
86213         * sunrpc/clnt_tcp.c: Likewise.
86214         * sunrpc/clnt_udp.c: Likewise.
86215         * sunrpc/clnt_unix.c: Likewise.
86216         * sunrpc/openchild.c: Likewise.
86217         * sunrpc/svc_simple.c: Likewise.
86218         * sunrpc/svc_tcp.c: Likewise.
86219         * sunrpc/svc_udp.c: Likewise.
86220         * sunrpc/svc_unix.c: Likewise.
86221         * sunrpc/xdr.c: Likewise.
86222         * sunrpc/xdr_array.c: Likewise.
86223         * sunrpc/xdr_rec.c: Likewise.
86224         * sunrpc/xdr_ref.c: Likewise.
86225         * sunrpc/xdr_stdio.c: Likewise.
86226
86227 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86228
86229         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86230
86231 2011-07-03  Andreas Jaeger  <aj@suse.de>
86232
86233         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86234         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86235         regenerate with gen-libm-tests.pl.
86236
86237 2010-05-12  Petr Baudis  <pasky@suse.cz>
86238
86239         [BZ #11589]
86240         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86241         around j0() zero points by switching to j1().
86242         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86243         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86244         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86245         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86246
86247 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86248
86249         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86250         instead of 0.
86251         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86252         instead of 0.
86253         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86254         Patch in part by Pavel Roskin <proski@gnu.org>.
86255
86256         [BZ #13138]
86257         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86258         realloc.
86259         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86260         Free memory block if necessary.
86261
86262         [BZ #12847]
86263         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86264         be NULL.  Don't lock in this case.
86265
86266 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86267
86268         * elf/elf.h (ELFOSABI_GNU): New macro.
86269         (ELFOSABI_LINUX): Define to that.
86270
86271 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86272
86273         * string/strncat.c (strncat): Undef the symbol in case it has been
86274         defined in bits/string.h.
86275
86276 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86277
86278         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86279
86280         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86281         link map.
86282
86283 2011-08-17  Andreas Jaeger  <aj@suse.de>
86284
86285         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86286
86287 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86288             Ian Lance Taylor  <iant@google.com>
86289
86290         * math/libm-test.inc (lround_test): New testcase.
86291         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86292
86293 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86294
86295         * Makefile: Remove support for automatic cvs check-ins.
86296         * Makerules: Likewise.
86297         * config.make.in: Likewise.
86298         * configure.in: Likewise.
86299         * intl/Makefile: Likewise.
86300         * locale/Makefile: Likewise.
86301         * po/Makefile: Likewise.
86302         * posix/Makefile: Likewise.
86303         * sysdeps/gnu/Makefile: Likewise.
86304         * sysdeps/mach/hurd/Makefile: Likewise.
86305         * sysdeps/sparc/sparc32/Makefile: Likewise.
86306
86307         [BZ #13118]
86308         * posix/Makefile (bug-regex32-ENV): Define.
86309         Patch by John Stanley <jpsinthemix@verizon.net>.
86310
86311         * misc/Makefile (headers): Add bits/select2.h.
86312         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
86313         * misc/bits/select2.h: New file.
86314         * include/bits/select2.h: New file.
86315         * debug/Makefile (routines): Add fdelt_chk.
86316         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
86317         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
86318         FD_ISSET.
86319         * debug/fdelt_chk.c: New file.
86320
86321         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
86322         * wcsmbs/test-wmemcmp.c: Likewise.
86323         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
86324         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
86325
86326 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86327
86328         * string/Makefile (strop-tests): Add memcmp.
86329         * string/test-wmemcmp.c: New file.
86330         * string/test-memcmp.c: Add wmemcmp support.
86331
86332 2011-09-08  Roland McGrath  <roland@hack.frob.com>
86333
86334         [BZ #13153]
86335         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
86336         2011-07-19 change.
86337
86338         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
86339         garbage value in a __mach_port_mod_refs call in the cases of the
86340         task-self and thread-self ports.
86341
86342 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86343
86344         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
86345
86346 2011-09-08  Andreas Schwab  <schwab@redhat.com>
86347
86348         * elf/dl-load.c (lose): Check for non-null L.
86349
86350 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86351
86352         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
86353
86354         * elf/dl-libc.c (dlerror_run): Pass back error code from
86355         dl_catch_error.
86356
86357         [BZ #13123]
86358         * elf/dl-load.c (lose): Free l_origin if it is valid.
86359
86360         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
86361         names.
86362         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
86363         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86364         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86365         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86366         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
86367         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
86368
86369 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86370
86371         * sysdeps/powerpc/fpu/e_hypot.c: New file.
86372         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
86373         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
86374         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
86375         * sysdeps/powerpc/fpu/k_cosf.c: New file.
86376         * sysdeps/powerpc/fpu/k_sinf.c: New file.
86377         * sysdeps/powerpc/fpu/s_cosf.c: New file.
86378         * sysdeps/powerpc/fpu/s_sinf.c: New file.
86379         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
86380         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
86381
86382 2011-08-15  Alan Modra  <amodra@gmail.com>
86383
86384         [BZ #13092]
86385         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
86386         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
86387         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
86388         ppc_mcount to static-only-routines.
86389         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
86390         __mcount_internal.
86391         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
86392         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
86393
86394 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
86395
86396         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
86397         for finite and infinity parameters.
86398
86399 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86400
86401         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
86402         and add nop instructions for throughput optimization.
86403         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
86404
86405 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
86406
86407         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
86408         aligned copy for power7 with vector-scalar instructions.
86409         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
86410
86411 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
86412
86413         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
86414         AVX check.
86415
86416 2011-09-07  Andreas Schwab  <schwab@redhat.com>
86417
86418         [BZ #13144]
86419         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
86420         last change.
86421
86422 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86423
86424         * sysdeps/unix/sysv/linux/x86_64/init-first.c
86425         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
86426         syscall wrapper around clock_gettime in __vdso_clock_gettime.
86427         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
86428         clock_gettime.
86429
86430 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86431
86432         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
86433         Forgot to demangle the pointer.
86434
86435         * sysdeps/i386/sysdep.h: Define atom_text_section.
86436         * sysdeps/x86_64/sysdep.h: Likewise.
86437         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
86438         section with atom_text_section.
86439         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86440         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86441         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
86442         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86443         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
86444
86445         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
86446         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
86447         already be defined.  Change to take two parameters and don't assign
86448         result to variable.  Adjust all users.
86449         Define INTERNAL_GETTIME if not already defined.
86450         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
86451         call.
86452         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
86453         HAVE_CLOCK_GETTIME_VSYSCALL.
86454         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
86455
86456         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
86457         gettimeofday vsyscall, just use time.
86458
86459 2011-09-06  Andreas Schwab  <schwab@redhat.com>
86460
86461         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
86462         <errno.h>.
86463
86464 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86465
86466         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
86467         syscall on x86-64.
86468         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
86469         syscall.
86470         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
86471         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
86472         syscall if possible.
86473
86474 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86475
86476         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
86477         e_ident.  Don't pass to find_mapsXX.
86478         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
86479
86480 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86481
86482         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86483         strchr-sse2-no-bsf strrchr-sse2-no-bsf
86484         * sysdeps/x86_64/multiarch/strchr.S: Update.
86485         Check bit_slow_BSF bit.
86486         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
86487         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
86488         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
86489
86490 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86491
86492         [BZ #13134]
86493         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
86494         before glibc 2.15.
86495         (tryshell): Define.
86496         (__spawni): Change last parameter to be flag.  Test
86497         SPAWN_XFLAGS_USE_PATH flag to use path or not.
86498         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
86499         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
86500         * posix/spawni.c: Likewise.
86501         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
86502         * posix/spawnp.c: Likewise.  Change normal version to use
86503         SPAWN_XFLAGS_USE_PATH.
86504         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
86505         SPAWN_XFLAGS_TRY_SHELL.
86506
86507         [BZ #13150]
86508         * posix/glob.h: Remove gcc 1.x support.
86509
86510         [BZ #13068]
86511         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
86512
86513 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86514
86515         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86516         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
86517         strrchr-sse2-bsf
86518         * sysdeps/i386/i686/multiarch/strchr.S: New file.
86519         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
86520         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
86521         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
86522         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
86523         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
86524
86525 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86526
86527         * sysdeps/x86_64/wcscmp.S: New file.
86528
86529         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
86530         wcscmp-c wcscmp-sse2
86531         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
86532         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
86533         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
86534         * wcsmbs/wcscmp.c: Allow renaming.
86535
86536 2011-09-05  David S. Miller  <davem@davemloft.net>
86537
86538         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
86539         stack slot, rather than the struct return pointer slot.
86540         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
86541         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
86542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
86543         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
86544
86545 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86546
86547         * po/ja.po: Update from translation team.
86548
86549         [BZ #13144]
86550         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
86551         kernel in 64-bit binaries.
86552
86553 2011-09-01  David S. Miller  <davem@davemloft.net>
86554
86555         * elf/elf.h (HWCAP_SPARC_*): Move to..
86556         * sysdeps/sparc/sysdep.h: this new file and add new values.
86557         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
86558         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
86559         _DL_HWCAP_COUNT to 24.
86560         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
86561         entries.
86562         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
86563         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
86564         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
86565         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
86566         instead of magic constants.
86567         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
86568
86569 2011-08-31  David S. Miller  <davem@davemloft.net>
86570
86571         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
86572         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
86573         Reimplement to do errno handling inline.
86574         (SYSCALL_ERROR_HANDLER): New macro.
86575         (__SYSCALL_STRING): Do not do errno handling in asm.
86576         (__CLONE_SYSCALL_STRING): Delete.
86577         (__INTERNAL_SYSCALL_STRING): Delete.
86578         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
86579         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
86580         (PSEUDO): Reimplement to do errno handling inline.
86581         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
86582         (SYSCALL_ERROR_HANDLER): New macro.
86583         (__SYSCALL_STRING): Do not do errno handling in asm.
86584         (__CLONE_SYSCALL_STRING): Delete.
86585         (__INTERNAL_SYSCALL_STRING): Delete.
86586         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
86587         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
86588         i386.
86589         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
86590         (inline_syscall*): Add 'err' argument.
86591         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
86592         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
86593         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
86594         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
86595
86596         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
86597         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
86598
86599 2011-08-30  Andreas Schwab  <schwab@redhat.com>
86600
86601         * elf/rtld.c (dl_main): Relocate objects in dependency order.
86602
86603 2011-08-29  Jiri Olsa <jolsa@redhat.com>
86604
86605         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
86606         directive.
86607
86608 2011-08-24  David S. Miller  <davem@davemloft.net>
86609
86610         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
86611
86612 2011-08-24  Andreas Schwab  <schwab@redhat.com>
86613
86614         * elf/Makefile: Add rules to build and run unload8 test.
86615         * elf/unload8.c: New file.
86616         * elf/unload8mod1.c: New file.
86617         * elf/unload8mod1x.c: New file.
86618         * elf/unload8mod2.c: New file.
86619         * elf/unload8mod3.c: New file.
86620
86621         * elf/dl-close.c (_dl_close_worker): Reset private search list if
86622         it wasn't used.
86623
86624 2011-08-23  David S. Miller  <davem@davemloft.net>
86625
86626         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
86627         subtract stack bias.
86628         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
86629         %sp not %fp in calculations.
86630         (_JMPBUF_UNWINDS_ADJ): Likewise.
86631
86632         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
86633         (aio_suspend): Call it to force an exception region around the
86634         AIO_MISC_WAIT() invocation.
86635
86636 2011-08-23  Andreas Schwab  <schwab@redhat.com>
86637
86638         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
86639         backslash.
86640
86641 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
86642
86643         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
86644         protection macro.
86645         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
86646         and <dl-machine.h>.
86647         (Elf64_FuncDesc): Remove.
86648
86649 2011-08-22  David S. Miller  <davem@davemloft.net>
86650
86651         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
86652         sigaltstack check, add missing cfi directives.
86653         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
86654         missing cfi directives, and sigaltstack handling.
86655
86656 2011-08-16  Andreas Schwab  <schwab@redhat.com>
86657
86658         [BZ #11724]
86659         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
86660         object is seen twice.
86661         * elf/dl-fini.c (_dl_sort_fini): Likewise.
86662
86663         * elf/Makefile (distribute): Add tst-initorder2.c.
86664         (tests): Add tst-initorder2.
86665         (modules-names): Add tst-initorder2a tst-initorder2b
86666         tst-initorder2c tst-initorder2d.  Add rules to build them.
86667         ($(objpfx)tst-initorder2.out): New rule.
86668         * elf/tst-initorder2.c: New file.
86669         * elf/tst-initorder2.exp: New file.
86670
86671 2011-08-22  Andreas Schwab  <schwab@redhat.com>
86672
86673         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
86674
86675         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
86676         dependencies back to end of function.
86677
86678         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
86679         $(elfobjdir)/ld.so.
86680
86681 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
86682
86683         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
86684         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
86685         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
86686         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
86687         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
86688         of __vdso_gettimeofday.
86689         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
86690         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
86691         attribute_hidden.
86692         (_libc_vdso_platform_setup): Remove initialization of
86693         __vdso_gettimeofday and __vdso_time.
86694
86695 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86696
86697         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
86698         and fgetc_unlocked.
86699         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
86700         getc_unlocked.
86701
86702         * elf/dl-open.c (add_to_global): Report additions to the global scope
86703         for LD_DEBUG=scopes.
86704         (dl_open_worker): Also print scope of newly loaded dependencies.
86705         (_dl_show_scope): Indicate if there is no scope.
86706
86707         [BZ #13114]
86708         * stdio-common/Makefile (tests): Add bug24.
86709         * stdio-common/bug24.c: New file.
86710
86711 2011-08-19  Andreas Jaeger  <aj@suse.de>
86712
86713         [BZ #13114]
86714         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
86715         non-existant file when using close-on-exec mode.
86716
86717 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
86718
86719         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
86720         the very first instruction.
86721
86722         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
86723         the CFI state in the end.
86724         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
86725         inclusion of dl-trampoline.h.
86726         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
86727
86728 2011-08-19  Andreas Schwab  <schwab@redhat.com>
86729
86730         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
86731         expectations for long double.
86732
86733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
86734         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
86735
86736 2011-08-14  David S. Miller  <davem@davemloft.net>
86737
86738         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
86739         artificual limit depends upon the system page size.
86740
86741 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86742
86743         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
86744         * resolv/Makefile: Define CFLAGS-libresolv.
86745
86746 2011-08-17  Andreas Schwab  <schwab@redhat.com>
86747
86748         * nss/makedb.c (compute_tables): Make variables used in nested
86749         function static.
86750
86751 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
86752
86753         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
86754         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
86755         if buffer was too small.
86756
86757         * elf/pldd.c (main): Attach to all threads in the process.
86758         Rewrite /proc handling to use *at functions.
86759
86760 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
86761
86762         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
86763         specifies first scope to show.
86764         (dl_open_worker): Update callers.  Move printing scope of new
86765         object to before the relocation.
86766         * elf/rtld.c (dl_main): Update _dl_show_scope call.
86767         * sysdeps/generic/ldsodefs.h: Update declaration.
86768
86769         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
86770         string for the scope number.
86771
86772 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
86773
86774         * nscd/servicescache.c (cache_addserv): Make sure written is always
86775         initialized.
86776
86777 2011-08-14  Roland McGrath  <roland@hack.frob.com>
86778
86779         * sysdeps/i386/i486/bits/atomic.h
86780         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
86781         statement expression, so as to suppress "set but not used" warning.
86782         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
86783
86784         * string/strncat.c (STRNCAT): Use prototype definition.
86785
86786         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
86787         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
86788         -Iprograms here.
86789         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
86790         (localedef-modules): Add localedef.
86791         (locale-modules): Add locale.
86792
86793         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
86794         * elf/rtld.c (dl_main): Invert order of assignment in last change,
86795         to avoid a warning.
86796
86797 2011-08-14  David S. Miller  <davem@davemloft.net>
86798
86799         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
86800         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
86801
86802 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
86803
86804         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
86805         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
86806         * elf/rtld.c (dl_main): Set l_name of vDSO.
86807         Call _dl_show_scope when DL_DEBUG_SCOPES.
86808         (process_dl_debug): Recognize scopes flag and also set it for all.
86809         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
86810         Declare _dl_show_scope.
86811
86812         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
86813         (do_dlopen): Pass caller_dlopen to dl_open.
86814         (__libc_dlopen_mode): Initialize caller_dlopen.
86815
86816         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
86817         of libc.  Make tolower call locale-independent.  Optimize a bit by
86818         using isdigit instead of isalnum.
86819         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
86820
86821 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
86822
86823         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
86824         was a dependency or dynamically loaded.
86825
86826 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
86827
86828         * intl/l10nflist.c: Allow architecture-specific pop function.
86829         * sysdeps/x86_64/l10nflist.c: New file.
86830
86831         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
86832         classification.
86833
86834 2011-08-10  Andreas Schwab  <schwab@redhat.com>
86835
86836         * include/dirent.h: Add libc_hidden_proto for scandirat and
86837         scandirat64.  Don't declare __scandirat64.
86838         * dirent/scandirat.c: Add libc_hidden_def.
86839         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
86840         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
86841
86842 2011-08-10  David S. Miller  <davem@davemloft.net>
86843
86844         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
86845         enum.
86846         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
86847         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
86848         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
86849
86850 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
86851
86852         * Versions.def [libc]: Add GLIBC_2.15.
86853         * dirent/Makefile (routines): Add scandirat and scandirat64.
86854         * dirent/Versions [libc]: Export scandirat and scandirat64 for
86855         GLIBC_2.15.
86856         * dirent/dirent.h: Declare scandirat and scandirat64.
86857         * dirent/scandirat.c: New file.
86858         * dirent/scandirat64.c: New file.
86859         * sysdeps/wordsize-64/scandirat.c: New file.
86860         * sysdeps/wordsize-64/scandirat64.c: New file.
86861         * dirent/opendir.c: Define opendirat.
86862         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
86863         using scandirat.
86864         * dirent/scandir64.c: Adjust for scandir.c change.
86865         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
86866         __scandirat64, and __scandir_cancel_handler.
86867         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
86868         additional parameter and use openat instead of open (outside of ld.so).
86869         Add new __opendir as wrapper around __opendirat.
86870         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
86871         here without requiring old scandirat implementation.
86872
86873 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
86874
86875         * dirent/scandir.c (cancel_handler): Renamed to
86876         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
86877         defined.  Adjust users.
86878         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
86879         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
86880
86881 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
86882
86883         * string/test-string.h (IMPL): Use __STRING to expand name and then
86884         stringify it.
86885
86886         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
86887         of cleanups.
86888
86889 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86890
86891         * string/Makefile: Update.
86892         (strop-tests): Append strncat.
86893         * string/test-wcscmp.c: New file.
86894         New comprehensive test for wcscmp.
86895         * string/test-strcmp.c: Update.
86896         (WIDE): New define.
86897
86898 2011-07-22  Andreas Schwab  <schwab@redhat.com>
86899
86900         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
86901         line.
86902
86903 2011-07-26  Andreas Schwab  <schwab@redhat.com>
86904
86905         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
86906         encoding to ACE if AI_IDN.
86907
86908 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
86909
86910         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
86911         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
86912
86913 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86914
86915         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
86916         Fix overflow bug in strncat.
86917         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
86918
86919         * string/test-strncat.c: Update.
86920         Add new tests for checking overflow bugs.
86921
86922 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86923
86924         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
86925         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
86926         * sysdeps/i386/i686/multiarch/strcat.S: New file.
86927         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
86928         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
86929         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
86930         * sysdeps/i386/i686/multiarch/strncat.S: New file.
86931         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
86932         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
86933
86934         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
86935         (USE_AS_STRCAT): Define.
86936         Add strcat and strncat support.
86937         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86938
86939 2011-07-25  Andreas Schwab  <schwab@redhat.com>
86940
86941         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
86942         __n bigger than INT_MAX+1.
86943         (__strncmp_g): Likewise.
86944
86945 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
86946
86947         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
86948         * libio/stido.h: Likewise.
86949
86950         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
86951         (AF_NFC): Define.
86952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
86953         (AF_NFC): Define.
86954
86955         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
86956         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
86957         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
86958         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
86959         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
86960
86961         [BZ #13021]
86962         * scripts/test-installation.pl: Don't expect libnss_test1 to be
86963         installed.
86964
86965         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
86966         typo.
86967         (_dl_x86_64_save_sse): Likewise.
86968
86969 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
86970
86971         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
86972         OSXSAVE.
86973         (_dl_x86_64_save_sse): Likewise.
86974
86975         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
86976
86977         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
86978
86979 2011-07-21  Andreas Schwab  <schwab@redhat.com>
86980
86981         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
86982         change.
86983         (_dl_x86_64_save_sse): Use correct AVX check.
86984
86985 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86986
86987         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
86988         bug in strncpy/strncat.
86989         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
86990
86991 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
86992
86993         * string/tester.c (test_strcat): Add tests for different alignments
86994         of source and destination.
86995         (test_strncat): Likewise.
86996
86997 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
86998
86999         [BZ #12852]
87000         * posix/glob.c (glob): Check passed in values before using them in
87001         expressions to avoid some overflows.
87002         (glob_in_dir): Likewise.
87003
87004         [BZ #13007]
87005         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87006         check for AVX enablement so that we don't crash with old kernels and
87007         new hardware.
87008         * elf/tst-audit4.c: Add same checks here.
87009         * elf/tst-audit6.c: Likewise.
87010
87011         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87012
87013 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87014
87015         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87016
87017 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87018
87019         * po/cs.po: Update from translation team.
87020         * po/bg.po: Likewise.
87021
87022 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87023
87024         * misc/sys/cdefs.h: Add support for const attribute.
87025         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87026         to gnu_dev_{major,minor,makedev} functions.
87027
87028 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87029
87030         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87031
87032 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87033
87034         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87035         strlen results.
87036
87037 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87038
87039         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87040         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87041         register in order to avoid conflicts with the soft frame pointer
87042         being held in r11 when necessary.
87043         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87044         (INTERNAL_VSYSCALL_NCS): Likewise.
87045
87046 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87047
87048         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87049         * elf/dl-fini.c (_dl_fini): Adjust caller.
87050         * elf/dl-close.c (_dl_close_worker): Likewise.
87051         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87052
87053 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87054
87055         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87056         "aux_cache->nlibs < 0".
87057
87058         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87059         in the reload-count case.
87060
87061 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87062
87063         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87064         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87065         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87066         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87067         * sysdeps/x86_64/multiarch/strcat.S: New file.
87068         * sysdeps/x86_64/multiarch/strncat.S: New file.
87069         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87070         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87071         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87072         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87073         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87074         (USE_AS_STRCAT): Define.
87075         Add strcat and strncat support.
87076         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87077         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87078         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87079         * string/strncat.c: Update.
87080         (USE_AS_STRNCAT): Define.
87081         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87082         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87083         and i7.
87084         * sysdeps/x86_64/multiarch/init-arch.h
87085         (bit_Prefer_PMINUB_for_stringop): New.
87086         (index_Prefer_PMINUB_for_stringop): Likewise.
87087         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87088         bit_Prefer_PMINUB_for_stringop.
87089
87090 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87091
87092         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87093         buffer64.
87094         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87095         of casting of buffer.
87096         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87097         buffer32 and buffer64.
87098         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87099         writes instead of casting of buffer.
87100         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87101         buffer32.
87102         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87103         casting of buffer.
87104
87105 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87106
87107         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87108
87109 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87110
87111         * nscd/nscd.c (termination_handler): Don't do anything for a database
87112         if it has not yet been initialized.
87113
87114 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87115
87116         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87117
87118 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87119
87120         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87121
87122 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87123
87124         * po/nl.po: Update from translation team.
87125         * po/sv.po: Likewise.
87126
87127 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87128
87129         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87130         now disallowed by GCC.
87131
87132         * configure.in (use-default-link): Default to yes if a test -shared
87133         link meets our qualifications.
87134         * configure: Regenerated.
87135
87136         * config.make.in (output-format): New variable.
87137         * configure.in: Check for ld --print-output-format support.
87138         * configure: Regenerated.
87139         * Makerules ($(common-objpfx)format.lds)
87140         [$(output-format) != unknown]: Just use $(output-format),
87141         instead of the linker-script munging.
87142
87143 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87144
87145         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87146         of $(common-objpfx)shlib.lds.
87147         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87148
87149         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87150         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87151
87152         * configure.in (-z relro check): Adjust test code to add a large
87153         writable data section after it.
87154         * configure: Regenerated.
87155
87156 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87157
87158         * configure.in (-z relro check): Fix test code to make the variable
87159         truly const.
87160         * configure: Regenerated.
87161
87162 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87163
87164         * nscd/nscd.h (struct traced_file): Define.
87165         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87166         elements.  Add traced_files.
87167         (inotify_fd): Declare.
87168         (register_traced_file): Declare.
87169         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87170         (inotify_fd): Export.
87171         (resolv_conf_descr): Remove.
87172         (nscd_init): Move inotify descriptor creation to main.
87173         Don't register files for notification here.
87174         (register_traced_file): New function.
87175         (invalidate_cache): Don't use reset_res to determine whether to call
87176         res_init, go through the list of registered files.
87177         (main_loop_poll): The inotify descriptors are now stored in the
87178         structures for the traced files.
87179         (main_loop_epoll): Likewise.
87180         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87181         to __nss_disable_nscd.
87182         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87183         for a database anymore.  Check the records for all the registered
87184         files instead.
87185         * nss/Makefile (libnss_files-routines): Add files-init.
87186         (libnss_db-routines): Add db-init.
87187         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87188         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87189         * nss/nss_db/db-init.c: New file.
87190         * nss/nss_files/files-init.c: New file.
87191         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87192         __nss_lookup_function.
87193         (__nss_lookup_function): Call nss_load_library.
87194         (nss_load_all_libraries): New function.
87195         (__nss_disable_nscd): Take parameter with callback function for files
87196         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87197         used for the cached services.
87198         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87199         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87200         options for features to all the files in nscd.
87201
87202         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87203
87204 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87205
87206         * csu/elf-init.c (__libc_csu_init): Comment typo.
87207
87208 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87209
87210         * po/pl.po: Update from translation team.
87211         * po/ja.po: Likewise.
87212         * po/ru.po: Likewise.
87213         * po/ko.po: Likewise.
87214         * po/fr.po: Likewise.
87215
87216 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87217
87218         * configure.in (.ctors/.dtors header and trailer check):
87219         Use an empirical test on a built program.
87220         * configure: Regenerated.
87221
87222         * configure.in (-z relro check): Use an empirical test on a built DSO.
87223         Detect, but do not require, on ia64.
87224         * configure: Regenerated.
87225
87226         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87227         Update tests that use readelf to use $READELF instead.
87228         * configure: Regenerated.
87229
87230 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87231
87232         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87233         if the result is not used.
87234
87235 2011-07-05  Andreas Jaeger  <aj@suse.de>
87236
87237         [BZ #9696]
87238         * stdlib/tst-strtod.c: Add testcase.
87239
87240 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87241
87242         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87243         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87244         The latter has a higher limit.  Take additional parameter to pass to
87245         the new function.
87246         (__pathconf): Pass file to __statfs_link_max.
87247         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87248         __statfs_link_max.
87249         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87250         __statfs_link_max.
87251
87252         [BZ #12868]
87253         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87254         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87255         Handle Lustre.
87256         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87257         (__statfs_filesize_max): Likewise.
87258         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87259
87260 2011-07-05  Andreas Jaeger  <aj@suse.de>
87261
87262         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87263
87264 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87265
87266         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87267         `status' variable.
87268         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87269         Likewise.
87270
87271 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87272
87273         * Makefile (strop-tests): Add strncat.
87274         * string/test-strncat.c: New file.
87275
87276 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87277
87278         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87279
87280 2011-06-21  Andreas Jaeger  <aj@suse.de>
87281
87282         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87283         Copy rule from iconvdata/Makefile.
87284
87285 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87286
87287         [BZ #12922]
87288         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87289         but no long options are defined, just return 'W'.
87290
87291 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87292
87293         [BZ #9696]
87294         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87295
87296 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87297
87298         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87299         netgroups to read.
87300         (innetgr): Likewise.
87301
87302 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87303
87304         * config.make.in (install_root): Default to $(DESTDIR).
87305
87306 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
87307
87308         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
87309
87310 2011-07-02  Roland McGrath  <roland@hack.frob.com>
87311
87312         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
87313
87314         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
87315         containing directory rather than embedding absolute directory names.
87316
87317         * scripts/check-local-headers.sh: Rewritten using awk.
87318         Match by word, not by line.  Print error messages for matches.
87319         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
87320
87321         * Makerules [shlib-lds-flags empty]:
87322         ($(common-objpfx)libc_pic.opts): New target.
87323         ($(common-objpfx)libc_pic.os.clean): New target.
87324         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
87325
87326         * config.make.in (OBJCOPY): New variable.
87327         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
87328         * configure: Regenerated.
87329
87330         * config.make.in (use-default-link): New variable.
87331         * configure.in (use_default_link): Grok --with-default-link to set it.
87332         * configure: Regenerated.
87333         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
87334         (shlib-lds, shlib-lds-flags): Define to empty.
87335
87336         * Makerules (shlib-lds): New variable.
87337         (shlib-lds-flags): New variable.
87338         (build-shlib, build-moduile, build-module-asneeded): Use it.
87339         ($(common-objpfx)libc.so): Use $(shlib-lds).
87340         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
87341         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
87342
87343         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
87344         DT_FLAGS/DT_FLAGS_1 with zero flags.
87345
87346         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
87347         linker script munging.
87348
87349 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
87350
87351         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
87352         as 128-bit value.
87353         * crypt/sha512.c (sha512_process_block): Perform total addition using
87354         128-bit if possible.
87355         (__sha512_finish_ctx): Likewise.
87356         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
87357         as 64-bit value.
87358         * crypt/sha256.c (SWAP64): Define.
87359         (sha256_process_block): Perform total addition using 64-bit if
87360         possible.
87361         (__sha256_finish_ctx): Likewise.
87362
87363 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
87364
87365         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
87366         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87367         * nscd/hstcache.c (cache_addhst): Likewise.
87368         * nscd/grpcache.c (cache_addgr): Likewise.
87369         * nscd/aicache.c (addhstaiX): Likewise.
87370         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
87371
87372 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
87373
87374         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
87375         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87376         * nscd/hstcache.c (cache_addhst): Likewise.
87377         * nscd/grpcache.c (cache_addgr): Likewise.
87378         * nscd/aicache.c (addhstaiX): Likewise.
87379
87380 2011-07-01  Andreas Schwab  <schwab@redhat.com>
87381
87382         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
87383         domain only when needed.
87384
87385 2011-06-30  Andreas Schwab  <schwab@redhat.com>
87386
87387         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
87388         is always restored.
87389
87390 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
87391
87392         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
87393         are re-adding the entry.
87394         * nscd/servicescache.c (cache_addserv): Likewise.
87395
87396 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
87397
87398         * sysdeps/generic/dl-irel.h: fix protection against multiple
87399         inclusions.
87400         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
87401
87402 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
87403
87404         [BZ #12935]
87405         * malloc/memusage.sh: Fix quoting in message.
87406         * debug/xtrace.sh: Likewise.
87407
87408         * configure.in: Remove support for --experimental-malloc option, make
87409         it the default.
87410         * config.make.in: Likewise.
87411         * malloc/Makefile: Likewise.
87412
87413 2011-06-27  Andreas Schwab  <schwab@redhat.com>
87414
87415         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
87416         two-byte characters.
87417
87418 2011-06-27  Roland McGrath  <roland@hack.frob.com>
87419
87420         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
87421         AC_CACHE_CHECK invocation.
87422         * configure: Regenerated.
87423
87424         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
87425
87426 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
87427
87428         [BZ #12350]
87429         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
87430         bit from old_res_options.
87431
87432         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
87433
87434         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
87435         value type for setfct.
87436
87437 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
87438
87439         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87440         __gettimeofday instead of gettimeofday.
87441
87442 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
87443
87444         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
87445
87446 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
87447
87448         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
87449
87450         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
87451         info.
87452
87453 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87454
87455         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87456         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87457         strcpy-sse2-unaligned strncpy-sse2-unaligned
87458         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
87459         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
87460         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
87461         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
87462         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
87463         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
87464         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
87465         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
87466         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
87467         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
87468         (STRCPY): Support SSE2 and SSSE3 versions.
87469
87470 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
87471
87472         [BZ #12874]
87473         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
87474         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
87475         kernels which artificially limit size of requests.
87476
87477 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87478
87479         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87480         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87481         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
87482         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
87483         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
87484         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
87485         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
87486         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
87487         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
87488         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
87489         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
87490         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
87491         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
87492         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
87493         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
87494         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87495         Enable unaligned load optimization for Intel Core i3, i5 and i7
87496         processors.
87497         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
87498         Define.
87499         (index_Fast_Unaligned_Load): Define.
87500         (HAS_FAST_UNALIGNED_LOAD): Define.
87501
87502 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
87503
87504         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
87505
87506 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87507
87508         [BZ #12907]
87509         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
87510         until it is clear that the information is realy needed.
87511         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
87512
87513 2011-06-22  Andreas Schwab  <schwab@redhat.com>
87514
87515         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
87516
87517 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87518
87519         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87520         /sys/devices/system/cpu/online if it is usable.
87521
87522         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
87523         reading the information from the /proc filesystem to once a second.
87524
87525 2011-06-21  Andreas Jaeger  <aj@suse.de>
87526
87527         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
87528         NULL after inclusion of kernel headers.
87529
87530 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
87531
87532         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
87533         calls to internal_setent.
87534
87535         [BZ #12885]
87536         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
87537         addresses using gethostbyname4_r ignore IPv4 addresses.
87538
87539         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
87540         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
87541
87542         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
87543
87544 2011-06-20  David S. Miller  <davem@davemloft.net>
87545
87546         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
87547         inclusions.
87548         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
87549
87550         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
87551         (elf_irel): Use it.
87552         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
87553         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
87554         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
87555         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
87556         * sysdeps/x86_64/dl-irel.h: Likewise.
87557
87558         * elf/dl-runtime.c: Use elf_ifunc_invoke.
87559         * elf/dl-sym.c: Likewise.
87560
87561 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87562
87563         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
87564         need to dereference resplen2.
87565
87566 2011-06-14  Andreas Schwab  <schwab@redhat.com>
87567
87568         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
87569
87570 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
87571
87572         * Makeconfig: Define vardbdir and inst_vardbdir.
87573         * nss/Makefile: Add rules to install db-Makefile.
87574
87575         * nss/nss_db/db-XXX.c: Cleanup.
87576
87577         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
87578         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
87579         GLIBC_PRIVATE.
87580         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
87581         * nss/makedb.c: Implement -g option to specify that value strings
87582         are generated and should not be added to table iterated over for
87583         get*ent calls.
87584         * nss/nss_db/db-initgroups.c: New file.
87585
87586         * nss/getent.c: Add support for initgroups lookups through getgrouplist
87587         interface.
87588
87589         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
87590         (internal_getgrouplist): Adjust to name change.
87591         Update use_initgroups_entry if this is not the first call.
87592         * nss/databases.def: Add initgroups entry.
87593
87594         * nss/makedb.c (compute_tables): Check result of multiple hash table
87595         sizes to minimize maximum chain length.
87596
87597 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
87598
87599         * Versions.def: Add entry for libnss_db.
87600         * shlib-versions: Likewise.
87601         * nss/Makefile: Add rules to build libnss_db.
87602         * nss/Versions: Add libnss_db information.  Organize libnss_files
87603         entries better.
87604         * nss/db-Makefile: Add gshadow support.  Change rules for the new
87605         makedb progra.  Some minor improvements to generate smaller files.
87606         * nss/nss_db/nss_db.h: Move NSS database header data structures to
87607         here from...
87608         * nss/makedb.c: ...here.
87609         Improve database format to be smaller and require less memory at
87610         runtime.
87611         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
87612         db anymore.
87613         * nss/nss_db/db-netgrp.c: Likewise.
87614         * nss/nss_db/db-open.c: Likewise.
87615         * nss/nss_files/flies-XXX.x: Adjust comments.
87616         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
87617         * nss/nss_files/files-grp.c: Likewise.
87618         * nss/nss_files/files-hosts.c: Likewise.
87619         * nss/nss_files/files-network.c: Likewise.
87620         * nss/nss_files/files-proto.c: Likewise.
87621         * nss/nss_files/files-pwd.c: Likewise.
87622         * nss/nss_files/files-rpc.c: Likewise.
87623         * nss/nss_files/files-service.c: Likewise.
87624         * nss/nss_files/files-sgrp.c: Likewise.
87625         * nss/nss_files/files-spwd.c: Likewise.
87626         * nss/nss_db/db-alias.c: Removed.
87627         * nss/nss_db/dummy-db.h: Removed.
87628
87629 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
87630
87631         * nss/makedb.c: Rewritten to not use database library.
87632         * nss/Makefile: Update to build new makedb program.
87633
87634 2011-06-14  Andreas Jaeger  <aj@suse.de>
87635
87636         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
87637         memset declaration.
87638
87639 2011-06-10  Andreas Schwab  <schwab@redhat.com>
87640
87641         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
87642         tmpbuf.
87643
87644 2011-06-10  Roland McGrath  <roland@hack.frob.com>
87645
87646         * Makerules (shlib.lds): Fail if the linker script comes out empty.
87647         * elf/Makefile ($(objpfx)ld.so): Likewise.
87648
87649         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
87650         Don't list ld.so twice in dependencies.
87651
87652         * posix/bug-regex31.c: Include <stdlib.h>.
87653
87654         * nscd/hstcache.c (cache_addhst): Remove unused variable.
87655
87656         * nis/nss_compat/compat-spwd.c
87657         (getspent_next_nss_netgr): Remove unused variable.
87658         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
87659
87660         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
87661         nonmembers" output to use the right array.
87662
87663         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
87664
87665         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
87666
87667         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
87668         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
87669         * catgets/gencat.c (read_input_file): Likewise.
87670         * locale/programs/locarchive.c (enlarge_archive): Likewise.
87671
87672         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
87673         variable definition inside #if's controlling its use.
87674
87675         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
87676
87677         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
87678
87679         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
87680
87681         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
87682         unreachable code.
87683
87684         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
87685
87686         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
87687         * configure: Regenerated.
87688
87689         * Makerules: Revert last change.
87690         * elf/Makefile: Likewise.
87691
87692 2011-06-09  Roland McGrath  <roland@hack.frob.com>
87693
87694         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
87695         * elf/Makefile ($(objpfx)librtld.os): Likewise.
87696         (reloc-link): Likewise.
87697
87698 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
87699
87700         * elf/Makefile: Add rules to build pldd.
87701         * elf/pldd.c: New file.
87702         * elf/pldd-xx.c: New file.
87703
87704 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
87705
87706         * version.h: Update for 2.15 development version.
87707
87708 2011-06-07  David S. Miller  <davem@davemloft.net>
87709
87710         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
87711         ifuncs.
87712         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
87713         elf_machine_lazy_rel): Likewise.
87714         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
87715         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
87716         elf_machine_lazy_rel): Likewise.
87717         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
87718         dl_hwcap via passed in argument.
87719         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
87720         Likewise.
87721
87722 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87723
87724         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
87725
87726 2011-06-06  Roland McGrath  <roland@hack.frob.com>
87727
87728         [BZ #12849]
87729         * manual/fdl-1.1.texi: New file, verbatim from:
87730         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
87731         * manual/lgpl-2.1.texi: New file, verbatim from:
87732         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
87733         * manual/Makefile (licenses): New variable, list those new file names.
87734         (texis): Use it.
87735         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
87736
87737         * manual/fdl.texi: File removed.
87738         * manual/lesser.texi: File removed.
87739         * manual/libc.texinfo (Copying, Documentation License):
87740         Use new @include file names, put @appendix directive before @include.
87741
87742 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
87743
87744         [BZ #12841]
87745         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
87746         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
87747         (mq_open): Add __NTH.
87748
87749 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
87750
87751         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87752         Assume Intel Core i3/i5/i7 processor if AVX is available.
87753
87754 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87755
87756         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
87757         typo.
87758
87759 2011-05-31  Andreas Schwab  <schwab@redhat.com>
87760
87761         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
87762         memory.  Use alloca_account.  Fix memory leak when retrying.
87763
87764 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
87765
87766         * version.h (RELEASE): Bump for 2.14 release.
87767         * include/features.h (__GLIBC_MINOR__): Bump to 14.
87768
87769         * config.make.in (RANLIB): Remove entry.
87770
87771 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
87772
87773         * po/Makefile (po-sed-cmd): Add ksh to extensions.
87774         (libc.pot): Work around missing support for .ksh extension in xgettext.
87775
87776         [BZ #12684]
87777         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
87778         if both request failed.
87779         (send_dg): In case of server errors clear resplen or *resplen2.
87780
87781         [BZ #12454]
87782         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
87783         when there are multiple maps.
87784         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
87785         (_dl_fini): Remove test here.
87786
87787         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
87788
87789 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
87790
87791         [BZ #12350]
87792         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
87793         bit from old_res_options.
87794         (gaih_inet): Likewise.
87795
87796         [BZ #11099]
87797         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
87798         as signed.
87799
87800         * resolv/res_init.c (res_setoptions): Make the code more compact.
87801
87802         [BZ #11558]
87803         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
87804         set RES_USEVC.
87805
87806         [BZ #11634]
87807         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
87808
87809         * malloc/malloc.h: Mark malloc hook variables as deprecated.
87810
87811         [BZ #11781]
87812         * malloc/malloc.h: Declare malloc hook variables as volatile.
87813
87814         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
87815         in last patch.
87816
87817         [BZ #11799]
87818         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
87819         raise in the comment.
87820         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
87821         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
87822         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
87823
87824 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
87825
87826         [BZ #12811]
87827         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
87828         grow the buffers more if it already has to be sufficient.
87829         (build_wcs_upper_buffer): Likewise.
87830         * posix/regexec.c (check_matching): Likewise.
87831         (clean_state_log_if_needed): Likewise.
87832         (extend_buffers): Don't enlarge buffers beyond size of the input
87833         buffer.
87834         Patches mostly by Emil Wojak <emil@wojak.eu>.
87835         * posix/bug-regex32.c: New file.
87836         * posix/Makefile (tests): Add bug-regex32.
87837
87838         * locale/findlocale.c (_nl_find_locale): Return right away if
87839         _nl_explode_name failed.
87840         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
87841
87842         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
87843
87844         * debug/xtrace.sh: Unify messages.
87845         * malloc/memusage.sh: Likewise.
87846
87847         [BZ #12813]
87848         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
87849         time symbol from vDSO.  Substitute with vsyscall if not available.
87850         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
87851         __vdso_time.
87852
87853         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
87854         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
87855         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
87856         Add sendmmsg and internal_sendmmsg.
87857         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
87858         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
87859         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
87860
87861         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
87862         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
87863         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
87864
87865 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
87866
87867         [BZ #12813]
87868         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
87869         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
87870         available.
87871         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
87872         __vdso_getcpu.
87873
87874         [BZ #12814]
87875         * iconvdata/Makefile (tests): Add bug-iconv9.
87876         * iconvdata/bug-iconv9.c: New file.
87877
87878 2011-05-27  Andreas Schwab  <schwab@redhat.com>
87879
87880         [BZ #12814]
87881         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
87882
87883 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
87884
87885         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
87886         (struct user_regs_struct): Change intcs field back to cs.
87887
87888 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
87889
87890         * po/ja.po: Update from translation team.
87891
87892 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
87893
87894         [BZ #12795]
87895         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
87896         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
87897
87898 2011-05-20  Andreas Schwab  <schwab@redhat.com>
87899
87900         * stdlib/longlong.h: Update from GCC.
87901
87902 2011-05-23  Andreas Schwab  <schwab@redhat.com>
87903
87904         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
87905         parameter name.
87906         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
87907         Add parameter name.
87908         (__sysconf): Pass it down.
87909
87910 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
87911
87912         [BZ #12671]
87913         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
87914         some situations.
87915         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
87916         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
87917         add in in __libc_use_alloca calls.  Adjust callers.
87918         (glob): Use malloc in some situations.
87919
87920         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
87921         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
87922         pltexit.
87923
87924 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
87925
87926         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
87927         and CLOCK_BOOTTIME_ALARM.
87928
87929         [BZ #12782]
87930         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
87931         is returned.
87932
87933         * string/_strerror.c (__strerror_r): Print negative errors as signed
87934         numbers.
87935
87936         [BZ #12777]
87937         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
87938         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
87939         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
87940
87941         * configure.in: Fix typo in redirection and correct removal of test
87942         files in two cases.
87943
87944         [BZ #12788]
87945         * locale/setlocale.c (new_composite_name): Fix test to check for
87946         identical name of all categories.
87947
87948         [BZ #12792]
87949         * libio/filedoalloc.c (local_isatty): New function.
87950         (_IO_file_doallocate): Use local_isatty.
87951         * stdio-common/perror.c (perror): In case a new stream is used
87952         forward the stream error.
87953         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
87954         error flag.
87955
87956 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
87957
87958         [BZ #11884]
87959         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
87960         alloca.
87961         * include/alloca.h (extend_alloca_account): Define.
87962
87963         [BZ #11857]
87964         * posix/regex.h: Fix comments with documentation of user-accessible
87965         fields after compilation and describe correct free'ing of pattern
87966         after re_compile_pattern.
87967         Patch by Reuben Thomas <rrt@sc3d.org>.
87968
87969 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
87970
87971         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
87972         and -mno-altivec to prevent the compiler from using Altivec and/or
87973         VSX instructions when the corresponding registers are not available.
87974
87975 2011-05-19  Andreas Schwab  <schwab@redhat.com>
87976
87977         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
87978
87979 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
87980
87981         * libio/freopen.c (freopen): Use __dup2, not dup2.
87982         * libio/freopen64.c (freopen64): Likewise.
87983
87984 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
87985
87986         [BZ #12775]
87987         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
87988         * math/Makefile (tests): Add test-powl.
87989         (CFLAGS-test-powl.c): Define.
87990         * math/test-powl.c: New file.
87991
87992 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
87993
87994         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
87995
87996 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
87997
87998         [BZ #11837]
87999         * iconvdata/gb18030.c: Update to GB18020-2005.
88000
88001 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88002
88003         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88004         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88005         Patch by Aharon Robbins <arnold@skeeve.com>.
88006
88007         [BZ #11892]
88008         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88009         on the stack.
88010
88011         [BZ #11895]
88012         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88013         through underflows.
88014
88015         [BZ #12766]
88016         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88017         point to strings before performing equality test for error_one_per_line
88018         mode.
88019
88020         [BZ #11697]
88021         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88022
88023         [BZ #11820]
88024         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88025         (struct user_fpregs_struct): Avoid __uint*_t types.
88026
88027         [BZ #6420]
88028         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88029         symbol info.  Use it instead of calling _dl_addr locally.
88030         (lock_and_info): New function.
88031         (tr_freehook): Call lock_and_info and pass symbol info as additional
88032         parameter to tr_where.
88033         (tr_mallochook): Likewise.
88034         (tr_reallochook): Likewise.
88035         (tr_memalignhook): Likewise.
88036
88037         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88038         used and couldn't be at all thread-safe.
88039
88040 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88041
88042         * libio/freopen.c (freopen): Don't close old file descriptor
88043         before the new one is opened.  Instead dup the new file descriptor
88044         to the old one after the new stream is created.
88045         * libio/freopen64.c (freopen64): Likewise.
88046         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88047         * libio/fileops.c (_IO_new_file_close_it): Handle new
88048         _IO_FLAGS2_NOCLOSE flag.
88049         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88050         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88051         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88052         _IO_FLAGS2_NOCLOSE flag.
88053         * include/unistd.h: Add hidden_proto for dup3.
88054         Define __have_dup3.
88055         * io/dup3.c: Define hidden symbol.
88056         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88057
88058         [BZ #7101]
88059         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88060         when an incomplete long option is used.
88061         * posix/tst-getopt_long1.c: New file.
88062         * posix/Makefile (tests): Add tst-getopt_long1.
88063
88064         [BZ #10138]
88065         * scripts/config.guess: Update from autoconf-2.68.
88066         * scripts/config.sub: Likewise.
88067
88068         [BZ #10157]
88069         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88070         tests into ...
88071         (has_cpuclock): ...this.  New function.
88072         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88073         macro here based on has_cpuclock code.
88074
88075         [BZ #10149]
88076         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88077         First byte (not low byte) is now always NUL.
88078         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88079
88080         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88081         Use non-cancelable interfaces.
88082
88083         [BZ #9809]
88084         * locale/iso-639.def: Add entry for Sorani.
88085
88086         [BZ #11901]
88087         * include/stdlib.h: Move include protection to the right place.
88088         Define abort_msg_s.  Declare __abort_msg with it.
88089         * stdlib/abort.c (__abort_msg): Adjust type.
88090         * assert/assert.c (__assert_fail_base): New function.  Majority
88091         of code from __assert_fail.  Allocate memory for __abort_msg with
88092         mmap.
88093         (__assert_fail): Now call __assert_fail_base.
88094         * assert/assert-perr.c: Remove bulk of implementation.  Use
88095         __assert_fail_base.
88096         * include/assert.hL Declare __assert_fail_base.
88097         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88098         mmap.
88099         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88100
88101 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88102
88103         [BZ #11952]
88104         [BZ #12453]
88105         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88106         until all modules are registered in the DTV.
88107         * elf/Makefile: Add rules to build and run tst-tls19.
88108         * elf/tst-tls19.c: New file.
88109         * elf/tst-tls19mod1.c: New file.
88110         * elf/tst-tls19mod2.c: New file.
88111         * elf/tst-tls19mod3.c: New file.
88112         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88113
88114         [BZ #12083]
88115         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88116         correctly.
88117
88118         [BZ #12601]
88119         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88120         two-byte sequence errors.
88121         * iconvdata/Makefile (tests): Add bug-iconv8.
88122         * iconvdata/bug-iconv8.c: New file.
88123
88124         [BZ #12626]
88125         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88126         buf2 definition.
88127
88128         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88129
88130         [BZ #12432]
88131         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88132         (dummy_getcfa): New function.
88133         (init): Get _Unwind_GetCFA address, use dummy if not found.
88134         (backtrace_helper): In recursion check, also check whether CFA changes.
88135         (__backtrace): Completely initialize arg.
88136
88137         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88138         storing incomplete byte sequence in state object.  Avoid testing for
88139         guaranteed too small input if we know there is enough data available.
88140
88141 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88142
88143         * Makeconfig (+link-pie): Indent.
88144         * Rules (binaries-pie): Define if $(have-fpie) and
88145         $(build-shared).
88146         (binaries-shared): Also filter out $(binaries-pie).
88147         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88148         * nscd/Makefile (others-pie): Add nscd.
88149         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88150         ($(objpfx)nscd): Remove command override.
88151         * login/Makefile (others-pie): Add pt_chown.
88152         ($(objpfx)pt_chown): Remove command override.
88153         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88154         remove command overrides.
88155
88156 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88157
88158         * libio/tst_putwc.c: Fix error messages.
88159
88160         [BZ #12724]
88161         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88162         currently writing and seek to current position when not.
88163         * libio/Makefile (tests): Add bug-fclose1.
88164         * libio/bug-fclose1.c: New file.
88165
88166 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88167
88168         [BZ #12511]
88169         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88170         don't set DF_1_NODELETE here.
88171         (do_lookup_x): When entering new entry test for copy relocation
88172         and if necessary set DF_1_NODELETE flag.
88173         * elf/tst-unique4.cc: New file.
88174         * elf/tst-unique4.h: New file.
88175         * elf/tst-unique4lib.cc: New file.
88176         * elf/Makefile: Add rules to build and run tst-unique4.
88177         Patch by Piotr Bury <pbury@goahead.com>.
88178
88179 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88180
88181         [BZ #12052]
88182         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88183
88184         [BZ #12625]
88185         * misc/mntent_r.c (addmntent): Flush the stream after the output
88186
88187         [BZ #12393]
88188         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88189         (is_trusted_path_normalize): Skip initial colon.  Append slash
88190         to empty buffer.  Duplicate is_trusted_path code but allow
88191         constructed patch to be prefix.
88192         (is_dst): Allow $ORIGIN followed by /.
88193         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88194         Correct testing of result of is_trusted_path_normalize
88195         (decompose_rpath): Fix warning.
88196
88197 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88198
88199         [BZ #11257]
88200         * grp/initgroups.c (internal_getgrouplist): When we found the service
88201         list through the initgroups entry in nsswitch.conf do not always
88202         continue on a successful lookup.  Don't always use the
88203         __nss_group_database value if it is set.
88204         * nss/nsswitch.conf (initgroups): Change action for successful db
88205         lookup to continue for compatibility.
88206
88207 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88208
88209         [BZ #11532]
88210         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88211         and CP774 modules.
88212         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88213         and CP774 modules.
88214         * iconvdata/tst-tables.sh: Likewise.
88215         * iconvdata/cp770.c: New file.
88216         * iconvdata/cp771.c: New file.
88217         * iconvdata/cp772.c: New file.
88218         * iconvdata/cp773.c: New file.
88219         * iconvdata/cp774.c: New file.
88220         * iconvdata/testdata/CP770: New file.
88221         * iconvdata/testdata/CP770..UTF8: New file.
88222         * iconvdata/testdata/CP771: New file.
88223         * iconvdata/testdata/CP771..UTF8: New file.
88224         * iconvdata/testdata/CP772: New file.
88225         * iconvdata/testdata/CP772..UTF8: New file.
88226         * iconvdata/testdata/CP773: New file.
88227         * iconvdata/testdata/CP773..UTF8: New file.
88228         * iconvdata/testdata/CP774: New file.
88229         * iconvdata/testdata/CP774..UTF8: New file.
88230
88231         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88232         END CHARMAP line.
88233         * iconvdata/gen-8bit-gap.sh: Likewise.
88234         * iconvdata/gen-8bit.sh: Likewise.
88235
88236         * locale/iso-639.def: Add ary entry.
88237
88238         [BZ #11258]
88239         * locale/C-translit.h.in: Add U20A1 transliteration.
88240
88241         [BZ #12178]
88242         * locale/iso-639.def: Add wae entry.
88243         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88244
88245         [BZ #12545]
88246         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88247         for n.
88248
88249         [BZ #12711]
88250         * locale/C-translit.h.in: Add entry for U20B9.
88251         Patch by pravin.d.s@gmail.com.
88252
88253 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88254
88255         [BZ #12713]
88256         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88257         ENAMETOOLONG use generic getcwd.
88258         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88259         in rtld.  Use *stat64.
88260         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88261         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88262         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88263         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88264         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88265         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88266         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88267         __fstatat64 macros.
88268         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88269         * dirent/rewinddir.c: Add libc_hidden_def.
88270         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88271         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88272
88273         * include/dirent.h (__alloc_dir): Add flags parameter.
88274         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88275         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88276         __alloc_dir.
88277         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88278         from fdopendir if O_CLOEXEC is already set.
88279
88280 2011-03-15  Alan Modra  <amodra@gmail.com>
88281
88282         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88283         l_tls_firstbyte_offset non-zero.  Save padding offset in
88284         l_tls_firstbyte_offset for later use.
88285         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88286         freeing static tls block.
88287
88288 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88289
88290         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88291         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88292         being defined by the kernel headers.
88293
88294 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88295
88296         [BZ #12734]
88297         * resolv/resolv.h: Define RES_NOTLDQUERY.
88298         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88299         no-tld-query and set RES_NOTLDQUERY.
88300         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88301         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88302         modern BIND to search name as TLD unless forbidden.
88303
88304 2011-05-07  Petr Baudis  <pasky@suse.cz>
88305             Ulrich Drepper  <drepper@gmail.com>
88306
88307         [BZ #12393]
88308         * elf/dl-load.c (fillin_rpath): Move trusted path check...
88309         (is_trusted_path): ...to here.
88310         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
88311         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
88312         using is_trusted_path_normalize() in setuid scripts.
88313
88314 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
88315
88316         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
88317         __BEGIN/__END_DECLS.
88318
88319 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
88320
88321         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
88322         NSS_STATUS_NOTFOUND if no record was found.
88323
88324 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88325
88326         * sunrpc/Makefile (headers): Add rpc/netdb.h.
88327         (headers-not-in-tirpc): Remove rpc/netdb.h
88328         * resolv/netdb.h: Revert last change.
88329
88330 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
88331
88332         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
88333         circular dependency between libgcc.a and libc.a.
88334
88335 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88336
88337         * resolv/netdb.h: Don't include <rpc/netdb.h>.
88338         * nis/Makefile: Don't install rpcsvc/*.
88339         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
88340         instead of <rpc/types.h>.
88341         (MAXHOSTNAMELEN): Define.
88342
88343 2011-05-03  Andreas Schwab  <schwab@redhat.com>
88344
88345         * elf/ldconfig.c (add_dir): Don't crash on empty path.
88346
88347 2011-04-28  Maciej Babinski  <mbabinski@google.com>
88348
88349         [BZ #12714]
88350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
88351         gethostbyname4_r when IPv6 results are possible.
88352
88353 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
88354
88355         [BZ #12723]
88356         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
88357         _PC_PIPE_BUF handling.
88358
88359 2011-04-30  Bruno Haible  <bruno@clisp.org>
88360
88361         [BZ #12717]
88362         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
88363         * resolv/netdb.h (getnameinfo): Change type of flags parameter
88364         to 'int'.
88365         * inet/getnameinfo.c (getnameinfo): Likewise.
88366
88367 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
88368
88369         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
88370         to groups setting in database lookup.
88371         * nss/nsswitch.conf: Add initgroups entry.
88372
88373 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
88374
88375         [BZ #12685]
88376         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
88377         mode string.
88378         Patch by Eric Blake <eblake@redhat.com>.
88379
88380 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
88381
88382         * sunrpc/Makefile (need-export-routines): Add svc_run.
88383         (routines): Remove svc_run.
88384         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
88385         * sunrpc/clnt_perr.c (clnt_perrno): Export.
88386         * sunrpc/svc_run.c (svc_run): Likewise.
88387         * sunrpc/svc_udp.c (svcudp_create): Likewise.
88388
88389 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
88390
88391         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
88392         problem in reallocation in last patch.
88393
88394 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
88395
88396         * sunrpc/Makefile: Move inclusion of Rules.
88397
88398 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88399
88400         * nss/nss_files/files-initgroups.c: New file.
88401         * nss/Makefile (libnss_files-routines): Add files-initgroups.
88402         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
88403         _nss_files_initgroups_dyn.
88404
88405 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
88406
88407         * elf/elf.h (R_ARM_IRELATIVE): Define.
88408
88409 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88410
88411         * po/ru.po: Update from translation team.
88412
88413 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88414
88415         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
88416         dependencies.
88417
88418 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
88419
88420         [BZ #12653]
88421         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
88422         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
88423         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
88424         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
88425         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
88426
88427 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
88428
88429         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
88430         differing bytes.
88431         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
88432         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
88433         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
88434
88435 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88436
88437         [BZ #12420]
88438         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
88439         storing it.
88440         * stdlib/bug-getcontext.c: New file.
88441         * stdlib/Makefile: Add rules to build and run bug-getcontext.
88442
88443 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88444
88445         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
88446         instructions into .machine "z9-109".
88447         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
88448         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
88449
88450 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88451
88452         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
88453         between environment variables and auxiliary vector.
88454
88455 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
88456
88457         * Makefile: Add rules to build linkobj/libc.so.
88458         * include/libc-symbols.h: Define libc_hidden_nolink.
88459         * include/rpc/auth.h: Mark functions which are to be hidden.
88460         * include/rpc/auth_des.h: Likewise.
88461         * include/rpc/auth_unix.h: Likewise.
88462         * include/rpc/clnt.h: Likewise.
88463         * include/rpc/des_crypt.h: Likewise.
88464         * include/rpc/key_prot.h: Likewise.
88465         * include/rpc/pmap_clnt.h: Likewise.
88466         * include/rpc/pmap_prot.h: Likewise.
88467         * include/rpc/pmap_rmt.h: Likewise.
88468         * include/rpc/rpc_msg.h: Likewise.
88469         * include/rpc/svc.h: Likewise.
88470         * include/rpc/svc_auth.h: Likewise.
88471         * include/rpc/xdr.h: Likewise.
88472         * nis/Makefile: Link all DSOs against linkobj/libc.so.
88473         * nss/Makefile: Likewise.
88474         * sunrpc/Makefile: Don't install headers.  Build library with normal
88475         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
88476         * sunrpc/auth_des.c: Hide exported symbols by default, export some
88477         for the compat linking library.  Remove use of INTDEF/INTUSE.
88478         * sunrpc/auth_none.c: Likewise.
88479         * sunrpc/auth_unix.c: Likewise.
88480         * sunrpc/authdes_prot.c: Likewise.
88481         * sunrpc/authuxprot.c: Likewise.
88482         * sunrpc/clnt_gen.c: Likewise.
88483         * sunrpc/clnt_perr.c: Likewise.
88484         * sunrpc/clnt_raw.c: Likewise.
88485         * sunrpc/clnt_simp.c: Likewise.
88486         * sunrpc/clnt_tcp.c: Likewise.
88487         * sunrpc/clnt_udp.c: Likewise.
88488         * sunrpc/clnt_unix.c: Likewise.
88489         * sunrpc/des_crypt.c: Likewise.
88490         * sunrpc/des_soft.c: Likewise.
88491         * sunrpc/get_myaddr.c: Likewise.
88492         * sunrpc/key_call.c: Likewise.
88493         * sunrpc/key_prot.c: Likewise.
88494         * sunrpc/netname.c: Likewise.
88495         * sunrpc/pm_getmaps.c: Likewise.
88496         * sunrpc/pm_getport.c: Likewise.
88497         * sunrpc/pmap_clnt.c: Likewise.
88498         * sunrpc/pmap_prot.c: Likewise.
88499         * sunrpc/pmap_prot2.c: Likewise.
88500         * sunrpc/pmap_rmt.c: Likewise.
88501         * sunrpc/publickey.c: Likewise.
88502         * sunrpc/rpc_cmsg.c: Likewise.
88503         * sunrpc/rpc_common.c: Likewise.
88504         * sunrpc/rpc_dtable.c: Likewise.
88505         * sunrpc/rpc_prot.c: Likewise.
88506         * sunrpc/rpc_thread.c: Likewise.
88507         * sunrpc/rtime.c: Likewise.
88508         * sunrpc/svc.c: Likewise.
88509         * sunrpc/svc_auth.c: Likewise.
88510         * sunrpc/svc_authux.c: Likewise.
88511         * sunrpc/svc_raw.c: Likewise.
88512         * sunrpc/svc_run.c: Likewise.
88513         * sunrpc/svc_simple.c: Likewise.
88514         * sunrpc/svc_tcp.c: Likewise.
88515         * sunrpc/svc_udp.c: Likewise.
88516         * sunrpc/svc_unix.c: Likewise.
88517         * sunrpc/svcauth_des.c: Likewise.
88518         * sunrpc/xcrypt.c: Likewise.
88519         * sunrpc/xdr.c: Likewise.
88520         * sunrpc/xdr_array.c: Likewise.
88521         * sunrpc/xdr_float.c: Likewise.
88522         * sunrpc/xdr_intXX_t.c: Likewise.
88523         * sunrpc/xdr_mem.c: Likewise.
88524         * sunrpc/xdr_rec.c: Likewise.
88525         * sunrpc/xdr_ref.c: Likewise.
88526         * sunrpc/xdr_sizeof.c: Likewise.
88527         * sunrpc/xdr_stdio.c: Likewise.
88528
88529 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
88530
88531         [BZ #12650]
88532         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
88533         * sysdeps/ia64/dl-tls.h: Likewise.
88534         * sysdeps/powerpc/dl-tls.h: Likewise.
88535         * sysdeps/s390/dl-tls.h: Likewise.
88536         * sysdeps/sh/dl-tls.h: Likewise.
88537         * sysdeps/sparc/dl-tls.h: Likewise.
88538         * sysdeps/x86_64/dl-tls.h: Likewise.
88539         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
88540
88541 2011-03-14  Andreas Schwab  <schwab@redhat.com>
88542
88543         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
88544         rpath element also skip the following colon.
88545         (expand_dynamic_string_token): Add is_path parameter and pass
88546         down to DL_DST_REQUIRED and _dl_dst_substitute.
88547         (decompose_rpath): Call expand_dynamic_string_token with
88548         non-zero is_path.  Ignore empty rpaths.
88549         (_dl_map_object_from_fd): Call expand_dynamic_string_token
88550         with zero is_path.
88551
88552 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
88553
88554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
88555         Make cancelable.
88556
88557 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
88558
88559         [BZ #12655]
88560         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
88561         Patch by Filipe David Manana <fdmanana@apache.org>.
88562
88563 2011-04-07  Andreas Schwab  <schwab@redhat.com>
88564
88565         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
88566         Maintain aligned stack.
88567         (CHECK_RSP): Remove unused macro.
88568
88569 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
88570
88571         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
88572         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
88573
88574 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
88575
88576         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
88577
88578         * include/features.h: Mention __USE_XOPEN2K8 in comment.
88579
88580 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
88581
88582         [BZ #12518]
88583         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
88584         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
88585         * sysdeps/x86_64/memmove.c: New file.
88586         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
88587         (memcpy): Renamed to ...
88588         (__new_memcpy): This.
88589         (memcpy): Provide GLIBC_2_14 memcpy.
88590         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
88591         (memcpy): Provide GLIBC_2_2_5 memcpy.
88592
88593 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88594
88595         [BZ #12631]
88596         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
88597
88598 2011-03-30  Andreas Schwab  <schwab@redhat.com>
88599
88600         * misc/syncfs.c: New file.
88601         * misc/Makefile (routines): Add syncfs.
88602         * posix/unistd.h: Declare syncfs.
88603         * sysdeps/unix/syscalls.list: Add syncfs.
88604
88605 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88606
88607         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
88608         open_by_handle_at.
88609         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
88610         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88611         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88612         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88614         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
88615         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88616
88617 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88618
88619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
88620         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88621         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
88622         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88623         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88624         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88625         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88626
88627         * io/Makefile: Compile fallocate.c, fallocate64.c, and
88628         sync_file_range.c with -fexceptions.
88629         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
88630         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
88631         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
88632         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
88633         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
88634         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
88635         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
88636         sync_file_range as cancellation point
88637         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
88638         now a wrapper around __call_sync_file_range with cancellation handling.
88639         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
88640         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
88641         function name to __call_sync_file_range.
88642         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
88643         Add call_sync_file_range.
88644
88645 2011-04-01  Andreas Schwab  <schwab@redhat.com>
88646
88647         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
88648         bits/timex.h.
88649
88650 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
88651
88652         * iconv/iconv.h: Fix typo in comment.
88653         * io/fcntl.h: Likewise.
88654         * libio/stdio.h: Likewise.
88655         * posix/spawn.h: Likewise.
88656         * posix/unistd.h: Likewise.
88657         * stdlib/stdlib.h: Likewise.
88658         * time/time.h: Likewise.
88659         * wcsmbs/wchar.h: Likewise.
88660
88661         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
88662         open_by_handle): Add.
88663         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
88664         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
88665         Augment a few comments.
88666         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
88667         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
88668         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
88669         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
88670         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
88671         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
88672         open_by_handle.
88673
88674         * io/fcntl.h (AT_EMPTY_PATH): Define.
88675
88676 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
88677
88678         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
88679         * sysdeps/unix/sysv/linux/bits/time.h: New file.
88680         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
88681         to...
88682         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
88683         * Versions.def: Add GLIBC_2.14.
88684         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
88685         Export.
88686
88687 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
88688
88689         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
88690         round counter.
88691         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88692
88693 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
88694
88695         [BZ #12597]
88696         * string/test-strncmp.c (do_page_test): New function.
88697         (check2): Likewise.
88698         (test_main): Call check2.
88699         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
88700
88701 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
88702
88703         [BZ #12587]
88704         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
88705         Handle cache information in CPU leaf 4.
88706         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
88707
88708 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
88709
88710         [BZ #12583]
88711         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
88712         character representation.
88713         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
88714
88715 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
88716
88717         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
88718         END(__isnan) to END(__isnanf) to match function entry point/label
88719         EALIGN(__isnanf,...).
88720
88721 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
88722
88723         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
88724
88725 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
88726
88727         [BZ #12510]
88728         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
88729         copy from the symbol referenced in the relocation to initialize the
88730         used variable.
88731         Patch by Piotr Bury <pbury@goahead.com>.
88732         * elf/Makefile: Add rules to build and tst-unique3.
88733         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
88734         * elf/tst-unique3.cc: New file.
88735         * elf/tst-unique3.h: New file.
88736         * elf/tst-unique3lib.cc: New file.
88737         * elf/tst-unique3lib2.cc: New file.
88738
88739         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
88740
88741 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
88742
88743         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
88744         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
88745         to _start.
88746
88747 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
88748
88749         * elf/dl-load.c (_dl_map_object): If we are looking for the first
88750         to-be-loaded object along a path to loader is ld.so.
88751
88752 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88753             Ulrich Drepper  <drepper@gmail.com>
88754
88755         * sysdeps/x86_64/memset.S: After aligning destination, code
88756         branches to different locations depending on the value of
88757         misalignment, when multiarch is enabled. Fix this.
88758
88759 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
88760
88761         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
88762         Set _x86_64_preferred_memory_instruction for AMD processsors.
88763         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88764         Set bit_Prefer_SSE_for_memop for AMD processors.
88765
88766 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
88767
88768         * libio/fmemopen.c (fmemopen): Optimize a bit.
88769
88770 2011-03-03  Andreas Schwab  <schwab@redhat.com>
88771
88772         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
88773
88774 2011-03-03  Roland McGrath  <roland@redhat.com>
88775
88776         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
88777
88778 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
88779
88780         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
88781         __bzero_ultra1 instead of __memset_ultra1.
88782
88783 2011-02-23  Andreas Schwab  <schwab@redhat.com>
88784             Ulrich Drepper  <drepper@gmail.com>
88785
88786         [BZ #12509]
88787         * include/link.h (struct link_map): Add l_orig_initfini.
88788         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
88789         returning unsuccessfully.
88790         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
88791         close of a file loaded at startup, restore the original l_initfini
88792         list.
88793         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
88794         list, store the pointer.
88795         * elf/Makefile ($(objpfx)noload-mem): New rule.
88796         (noload-ENV): Define.
88797         (tests): Add $(objpfx)noload-mem.
88798         * elf/noload.c: Include <memcheck.h>.
88799         (main): Call mtrace.  Close all opened handles.
88800
88801 2011-02-17  Andreas Schwab  <schwab@redhat.com>
88802
88803         [BZ #12454]
88804         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
88805         dependencies are missing.
88806
88807 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88808
88809         Fix __if_freereq crash: Unlike the generic version which uses free,
88810         Hurd needs munmap.
88811         * sysdeps/mach/hurd/ifreq.h: New file.
88812
88813 2011-01-27  Petr Baudis  <pasky@suse.cz>
88814             Ulrich Drepper  <drepper@gmail.com>
88815
88816         [BZ 12445]#
88817         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
88818         to extend_alloca().
88819         * stdio-common/bug23.c: New file.
88820         * stdio-common/Makefile (tests): Add bug23.
88821
88822 2010-09-28  Andreas Schwab  <schwab@redhat.com>
88823             Ulrich Drepper  <drepper@gmail.com>
88824
88825         [BZ #12489]
88826         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
88827         before performing relro protection.  At old place add assertion
88828         to make sure nothing changed.
88829
88830 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
88831             Glauber de Oliveira Costa  <glommer@gmail.com>
88832
88833         * elf/elf.h: Add new ARM TLS relocs.
88834
88835 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
88836
88837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
88838         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
88839         cast from r3.
88840         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
88841         'tests' variable.
88842         * sysdeps/wordsize-64/tst-writev.c: New file.
88843
88844 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
88845
88846         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
88847         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
88848         insns in _dl_start to prevent a TOC reference before relocs are
88849         resolved.
88850
88851 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
88852
88853         [BZ #12469]
88854         * Makeconfig: Remove RANLIB definition.
88855         * Makerules: Don't use RANLIB.
88856         * aclocal.m4: Remove ranlib test.
88857         * configure.in: No need to check for ranlib.
88858         * elf/rtld-Rules: Don't use RANLIB.
88859
88860 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88861
88862         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
88863         protection macro.
88864         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
88865         inclusion protection macro.
88866
88867         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
88868         SIGRTMIN and SIGRTMAX and print information in that case only when
88869         SIGRTMIN is defined.
88870
88871 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
88872
88873         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
88874         arginfo fn returning -1.
88875
88876         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
88877         and thousands string is zero terminated.
88878
88879 2011-02-03  Andreas Schwab  <schwab@redhat.com>
88880
88881         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
88882         sysdeps/unix/sysv/linux/bits/socket.h.
88883
88884 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
88885
88886         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
88887         (__CPU_COUNT): Remove old macros.
88888         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
88889         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
88890         (__CPU_ALLOC, __CPU_FREE): Add macros.
88891         (__sched_cpualloc, __sched_cpufree): Add declarations.
88892
88893 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
88894
88895         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
88896         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
88897         * nscd/aicache.c (addhstaiX): Return timeout of added value.
88898         (readdhstai): Return value of addhstaiX call.
88899         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
88900         (addgrbyX): Return value returned by cache_addgr.
88901         (readdgrbyname): Return value returned by addgrbyX.
88902         (readdgrbygid): Likewise.
88903         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
88904         (addpwbyX): Return value returned by cache_addpw.
88905         (readdpwbyname): Return value returned by addhstbyX.
88906         (readdpwbyuid): Likewise.
88907         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
88908         (addservbyX): Return value returned by cache_addserv.
88909         (readdservbyname): Return value returned by addservbyX:
88910         (readdservbyport): Likewise.
88911         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
88912         (addhstbyX): Return value returned by cache_addhst.
88913         (readdhstbyname): Return value returned by addhstbyX.
88914         (readdhstbyaddr): Likewise.
88915         (readdhstbynamev6): Likewise.
88916         (readdhstbyaddrv6): Likewise.
88917         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
88918         (readdinitgroups): Return value returned by addinitgroupsX.
88919         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
88920         (prune_cache): Keep track of timeout value of re-added entries.
88921         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
88922         * nscd/nscd.h: Adjust prototypes of readd* functions.
88923
88924 2011-02-04  Roland McGrath  <roland@redhat.com>
88925
88926         * nis/nis_server.c (nis_servstate): Use the right name for 0.
88927         (nis_stats): Likewise.
88928         * nis/nis_modify.c (nis_modify): Likewise.
88929         * nis/nis_remove.c (nis_remove): Likewise.
88930         * nis/nis_add.c (nis_add): Likewise.
88931
88932         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
88933
88934         * posix/fnmatch_loop.c: Add some consts.
88935
88936         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
88937
88938 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
88939
88940         [BZ #12460]
88941         * config.make.in (config-cflags-novzeroupper): Define.
88942         * configure.in: Substitute libc_cv_cc_novzeroupper.
88943         * elf/Makefile (AVX-CFLAGS): Define.
88944         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
88945         (CFLAGS-tst-auditmod4a.c): Likewise.
88946         (CFLAGS-tst-auditmod4b.c): Likewise.
88947         (CFLAGS-tst-auditmod6b.c): Likewise.
88948         (CFLAGS-tst-auditmod6c.c): Likewise.
88949         (CFLAGS-tst-auditmod7b.c): Likewise.
88950         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
88951
88952 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
88953
88954         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
88955         function to the callback.
88956         Patch partly by Jiri Olsa <jolsa@redhat.com>.
88957
88958 2011-02-02  Andreas Schwab  <schwab@redhat.com>
88959
88960         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
88961         of errno.
88962
88963 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
88964
88965         [BZ #11724]
88966         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
88967         of constructors.
88968         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
88969         of destructors.
88970         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
88971
88972         [BZ #11724]
88973         * elf/Makefile: Add rules to build and run new test.
88974         * elf/tst-initorder.c: New file.
88975         * elf/tst-initorder.exp: New file.
88976         * elf/tst-initordera1.c: New file.
88977         * elf/tst-initordera2.c: New file.
88978         * elf/tst-initordera3.c: New file.
88979         * elf/tst-initordera4.c: New file.
88980         * elf/tst-initorderb1.c: New file.
88981         * elf/tst-initorderb2.c: New file.
88982         * elf/tst-order-a1.c: New file.
88983         * elf/tst-order-a2.c: New file.
88984         * elf/tst-order-a3.c: New file.
88985         * elf/tst-order-a4.c: New file.
88986         * elf/tst-order-b1.c: New file.
88987         * elf/tst-order-b2.c: New file.
88988         * elf/tst-order-main.c: New file.
88989         New test case by George Gensure <werkt0@gmail.com>.
88990
88991 2010-10-01  Andreas Schwab  <schwab@redhat.com>
88992
88993         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
88994         decoding ACE if AI_CANONIDN.
88995
88996 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
88997
88998         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
88999
89000 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89001
89002         * version.h (RELEASE): Bump for 2.13 release.
89003         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89004
89005         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89006
89007         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89008         MADV_NOHUGEPAGE.
89009         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89010         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89011         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89012         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89013         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89014         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89015
89016         * posix/getconf.c: Update copyright year.
89017         * catgets/gencat.c: Likewise.
89018         * csu/version.c: Likewise.
89019         * debug/catchsegv.sh: Likewise.
89020         * debug/xtrace.sh: Likewise.
89021         * elf/ldconfig.c: Likewise.
89022         * elf/ldd.bash.in: Likewise.
89023         * elf/sprof.c (print_version): Likewise.
89024         * iconv/iconv_prog.c: Likewise.
89025         * iconv/iconvconfig.c: Likewise.
89026         * locale/programs/locale.c: Likewise.
89027         * locale/programs/localedef.c: Likewise.
89028         * malloc/memusage.sh: Likewise.
89029         * malloc/mtrace.pl: Likewise.
89030         * nscd/nscd.c (print_version): Likewise.
89031         * nss/getent.c: Likewise.
89032
89033         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89034         PF_CAIF, and PF_ALG.
89035         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89036
89037 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89038
89039         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89040         (modules-names): Use them.
89041         (ifunc-test-modules, ifunc-pie-tests): Define.
89042         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89043         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89044         (test-extras): Likewise.
89045         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89046         $(compile-command.c).
89047         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89048         (all-built-dso): Define.
89049         (check-textrel.out, check-execstack.out): Depend on it.
89050
89051         * configure.in: Don't override --enable-multi-arch.
89052
89053 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89054
89055         [BZ #6812]
89056         * nscd/hstcache.c (tryagain): Define.
89057         (cache_addhst): Return tryagain not notfound for temporary errors.
89058         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89059         failed.
89060
89061 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89062
89063         [BZ #10563]
89064         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89065         to make the syscall.
89066         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89067
89068         [BZ #12378]
89069         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89070         and fall back to matching as normal character if the string ends before
89071         the matching ']' is found.  This is what POSIX requires.
89072         * posix/testfnm.c: Adjust test result.
89073         * posix/globtest.sh: Adjust test result.  Add new test.
89074         * posix/tst-fnmatch.input: Likewise.
89075         * posix/tst-fnmatch2.c: Add new test.
89076
89077 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89078
89079         * elf/Makefile (check-execstack): Revert last change.  Depend on
89080         check-execstack.h.
89081         (check-execstack.h): New target.
89082         (generated): Add check-execstack.h.
89083         * elf/check-execstack.c: Include "check-execstack.h".
89084         (main): Revert last change.
89085         (handle_file): Return zero if GNU_STACK is absent and
89086         DEFAULT_STACK_PERMS doesn't include PF_X.
89087
89088 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89089
89090         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89091         in child fails because the descriptor is already closed.
89092         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89093         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89094         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89095
89096         [BZ #12397]
89097         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89098         syscall.
89099
89100         [BZ #10484]
89101         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89102         temporary buffer used to handle multi lookups locally.
89103         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89104
89105 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89106
89107         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89108         loader is ld.so.
89109
89110 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89111
89112         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89113         alignment for SSE2.
89114
89115 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89116
89117         [BZ #12394]
89118         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89119         characters.  When rounding increased number of integer digits recompute
89120         number of groups.
89121         * stdio-common/tst-grouping.c: New file.
89122         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89123
89124 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89125
89126         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89127         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89128
89129         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89130         void.
89131         * bits/select.h: Likewise.
89132
89133 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89134
89135         * po/ja.po: Update from translation team.
89136
89137 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89138
89139         [BZ #11155]
89140         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89141         implementation just like for lxstat, fxstatat, et al.
89142
89143 2010-12-27  Jim Meyering  <meyering@redhat.com>
89144
89145         [BZ #12348]
89146         * posix/regexec.c (build_trtable): Return failure indication upon
89147         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89148
89149 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89150
89151         [BZ #12201]
89152         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89153         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89154         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89155         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89156
89157         [BZ #12207]
89158         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89159
89160         [BZ #12204]
89161         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89162         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89163
89164 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89165
89166         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89167         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89168         script has SORT_BY_INIT_PRIORITY.
89169         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89170         NO_CTORS_DTORS_SECTIONS is defined.
89171         * elf/soinit.c: Likewise.
89172         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89173         NO_CTORS_DTORS_SECTIONS is defined.
89174         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89175         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89176         * sysdeps/sh/init-first.c: Likewise.
89177         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89178
89179 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89180
89181         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89182         always use the slow path.
89183
89184 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89185
89186         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89187         similar rule which adds the sysdep directories to the header search in
89188         order to pick up the correct platform stackinfo.h.
89189         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89190         perform test if it is, otherwise return successfully without testing.
89191         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89192         DEFAULT_STACK_PERMS define in stackinfo.h.
89193         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89194         defined in stackinfo.h.
89195         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89196         DEFAULT_STACK_PERMS defined in stackinfo.h.
89197         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89198         * sysdeps/ia64/stackinfo.h: Likewise.
89199         * sysdeps/s390/stackinfo.h: Likewise.
89200         * sysdeps/sh/stackinfo.h: Likewise.
89201         * sysdeps/sparc/stackinfo.h: Likewise.
89202         * sysdeps/x86_64/stackinfo.h: Likewise.
89203         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89204         PF_X for powerpc64.  Retain PF_X for powerpc32.
89205
89206 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89207
89208         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89209         accurately.
89210         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89211         GETDENTS_64BIT_ALIGNED.
89212
89213 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89214
89215         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89216
89217 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89218
89219         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89220         _GNU_SOURCE.
89221
89222         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89223         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89224         Remove __restrict.
89225         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89226         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89227
89228 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89229
89230         [BZ #11655]
89231         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89232         are initialized.
89233
89234 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89235
89236         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89237
89238 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89239
89240         * po/it.po: Update from translation team.
89241
89242 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89243
89244         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89245         unused codes.
89246
89247 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89248
89249         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89250
89251 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89252
89253         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89254         specially.
89255         (gaih_getanswer_slice): Likewise.
89256
89257 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89258
89259         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89260
89261 2010-05-31  Petr Baudis  <pasky@suse.cz>
89262
89263         [BZ #11149]
89264         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89265         silently even in the chroot mode.
89266
89267 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89268
89269         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89270         last patch a bit.  Pretty printing
89271
89272 2010-05-31  Petr Baudis <pasky@suse.cz>
89273
89274         [BZ #10085]
89275         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89276         initialization of skip_initgroups_dyn.
89277
89278 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89279
89280         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89281         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89282
89283 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89284
89285         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89286
89287 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89288
89289         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89290         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89291         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89292         ($(objpfx)tst-fnmatch-mem): New rule.
89293         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89294         * posix/tst-fnmatch.c (main): Call mtrace.
89295
89296 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89297
89298         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89299         Support Intel processor model 6 and model 0x2c.
89300
89301 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89302
89303         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89304           signed comparison.
89305
89306 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
89307
89308         [BZ #12205]
89309         * string/test-strncasecmp.c (check_result): New function.
89310         (do_one_test): Use it.
89311         (check1): New function.
89312         (test_main): Use it.
89313         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
89314         Support strcasecmp and strncasecmp.
89315
89316 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
89317
89318         [BZ #12194]
89319         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
89320         * sysdeps/x86_64/bits/byteswap.h: Likewise.
89321
89322 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
89323
89324         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
89325         IFUNC support.
89326         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89327         memset-x86-64.
89328         * sysdeps/x86_64/multiarch/bzero.S: New file.
89329         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
89330         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
89331         * sysdeps/x86_64/multiarch/memset.S: New file.
89332         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
89333         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89334         Set bit_Prefer_SSE_for_memop for Intel processors.
89335         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
89336         Define.
89337         (index_Prefer_SSE_for_memop): Define.
89338         (HAS_PREFER_SSE_FOR_MEMOP): Define.
89339
89340 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
89341
89342         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
89343         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
89344
89345 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
89346
89347         [BZ #12191]
89348         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89349         (__x86_64_raw_data_cache_size_half): Likewise.
89350         (__x86_64_raw_shared_cache_size): Likewise.
89351         (__x86_64_raw_shared_cache_size_half): Likewise.
89352
89353         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89354         (__x86_64_raw_data_cache_size_half): Likewise.
89355         (__x86_64_raw_shared_cache_size): Likewise.
89356         (__x86_64_raw_shared_cache_size_half): Likewise.
89357         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
89358         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
89359         and __x86_64_raw_shared_cache_size_half.  Round
89360         __x86_64_data_cache_size_half, __x86_64_data_cache_size
89361         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
89362         to multiple of 256 bytes.
89363
89364 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
89365
89366         [BZ #12167]
89367         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
89368         of inacessible symlinks.  Verify result of symlink before returning it.
89369         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
89370         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
89371
89372 2010-10-28  Erich Ritz  <erichritz@gmail.com>
89373
89374         * math/math.h (isinf): Fix typo in comment.
89375
89376 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
89377
89378         * po/da.po: Update from translation team.
89379
89380 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
89381
89382         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
89383         is added to the list.
89384
89385 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89386             Ulrich Drepper  <drepper@gmail.com>
89387
89388         * elf/dl-object.c (_dl_new_object): Don't append the new object to
89389         the global list here.  Move code to...
89390         (_dl_add_to_namespace_list): ...here.  New function.
89391         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
89392         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
89393         * elf/dl-load.c (lose): Don't remove the element from the list.
89394         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
89395         (_dl_map_object): Likewise.
89396
89397 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
89398
89399         [BZ #12159]
89400         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
89401         into all bytes of SSE register.
89402         Patch by Richard Li <richardpku@gmail.com>.
89403
89404 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
89405
89406         [BZ #12140]
89407         * malloc/malloc.c (_int_free): Fill correct number of bytes when
89408         perturbing.
89409
89410 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
89411
89412         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
89413         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
89414         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
89415         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
89416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
89417         submachine.
89418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
89419
89420 2010-10-22  Andreas Schwab  <schwab@redhat.com>
89421
89422         * include/dlfcn.h (__RTLD_SECURE): Define.
89423         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
89424         mode & __RTLD_SECURE instead.
89425         (open_path): Rename preloaded parameter to secure.
89426         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
89427         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
89428         * elf/dl-deps.c (openaux): Likewise.
89429         * elf/rtld.c (struct map_args): Remove is_preloaded.
89430         (map_doit): Don't use it.
89431         (dl_main): Likewise.
89432         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
89433         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
89434
89435 2010-09-09  Andreas Schwab  <schwab@redhat.com>
89436
89437         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
89438         (sysd-rules-targets): Remove duplicates.
89439         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
89440         rtld-%.$o dependency.
89441
89442 2010-10-18  Andreas Schwab  <schwab@redhat.com>
89443
89444         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
89445         _dl_map_object do it.
89446
89447 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
89448
89449         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
89450         fast fma builtins, define the macros in the C99 standard.
89451         (FP_FAST_FMAF): Likewise.
89452         (FP_FAST_FMAL): Likewise.
89453         * sysdeps/x86_64/bits/mathdef.h: Likewise.
89454
89455         * bits/mathdef.h: Update copyright year.
89456         * sysdeps/powerpc/bits/mathdef.h: Likewise.
89457
89458 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
89459
89460         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
89461         builtins, define the macros in the C99 standard.
89462         (FP_FAST_FMAF): Likewise.
89463         (FP_FAST_FMAL): Likewise.
89464         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
89465         multiply/add.
89466         (FP_FAST_FMAF): Likewise.
89467
89468 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
89469
89470         [BZ #3268]
89471         * math/libm-test.inc (fma_test): Some new testcases.
89472         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
89473         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
89474         y and infinite z.  Do multiplication by C already in long double.
89475         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
89476         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
89477         y and infinite z.  Do bitwise or of inexact bit into u.d.
89478         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
89479         * sysdeps/i386/fpu/s_fmaf.S: Removed.
89480         * sysdeps/i386/fpu/s_fma.S: Removed.
89481         * sysdeps/i386/fpu/s_fmal.S: Removed.
89482
89483 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
89484
89485         [BZ #3268]
89486         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
89487         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
89488         computation is not scheduled after fetestexcept.  Fix value
89489         of minimum denormal long double.
89490
89491 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
89492
89493         [BZ #3268]
89494         * math/libm-test.inc (fma_test): Add some more tests.
89495         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
89496         correctly.
89497
89498 2010-10-15  Andreas Schwab  <schwab@redhat.com>
89499
89500         * scripts/data/localplt-s390-linux-gnu.data: New file.
89501         * scripts/data/localplt-s390x-linux-gnu.data: New file.
89502
89503 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
89504
89505         [BZ #3268]
89506         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
89507         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
89508         instead of dbl-64.
89509         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
89510         inlines.
89511         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
89512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
89513         if one of x and y is very large and the other is subnormal.
89514         * sysdeps/s390/fpu/s_fmaf.c: New file.
89515         * sysdeps/s390/fpu/s_fma.c: New file.
89516         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
89517         * sysdeps/powerpc/fpu/s_fma.S: New file.
89518         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
89519         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
89520         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
89521
89522 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
89523
89524         [BZ #3268]
89525         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
89526         fma tests.
89527         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
89528         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
89529         * sysdeps/i386/i686/multiarch/s_fma.c: Include
89530         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
89531         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
89532         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
89533         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
89534
89535 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
89536
89537         [BZ #12078]
89538         * posix/regcomp.c (parse_branch): One more memory leak plugged.
89539         * posix/bug-regex31.input: Add test case.
89540
89541 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89542
89543         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
89544         * posix/bug-regex31.input: New file.
89545
89546         [BZ #12078]
89547         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
89548         (parse_sub_exp): Fix last change, use postorder.
89549
89550         * posix/bug-regex31.c: New file.
89551         * posix/Makefile: Add rules to build and run bug-regex31.
89552
89553         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
89554
89555         [BZ #12078]
89556         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
89557
89558         [BZ #12108]
89559         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
89560         to have entries in sys_siglist.
89561
89562         [BZ #12093]
89563         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
89564         be NULL.
89565
89566 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
89567
89568         [BZ #3268]
89569         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
89570         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
89571         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
89572         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
89573         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
89574         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
89575         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
89576         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
89577         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
89578         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
89579         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
89580         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
89581         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
89582         * math/ftestexcept.c (fetestexcept): Likewise.
89583         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
89584         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
89585         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
89586         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
89587         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
89588         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
89589         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
89590
89591 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
89592
89593         [BZ #12107]
89594         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
89595         newline.
89596
89597 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
89598
89599         * string/bug-strstr1.c: New file.
89600         * string/Makefile: Add rules to build and run bug-strstr1.
89601
89602 2010-10-05  Eric Blake  <eblake@redhat.com>
89603
89604         [BZ #12092]
89605         * string/str-two-way.h (two_way_long_needle): Always clear memory
89606         when skipping input due to the shift table.
89607
89608 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
89609
89610         [BZ #12005]
89611         * malloc/mcheck.c: Handle large requests.
89612
89613         [BZ #12077]
89614         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
89615         for strncmp and strncasecmp.
89616         * string/stratcliff.c: Add tests for strcmp and strncmp.
89617         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
89618
89619 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
89620
89621         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
89622         __set_fpscr.
89623
89624 2010-09-30  Andreas Jaeger  <aj@suse.de>
89625
89626         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
89627         (CGROUP_SUPER_MAGIC): Define.
89628         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
89629         Handle btrfs and cgroup file systems.
89630         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
89631         Likewise.
89632
89633 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
89634
89635         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
89636         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
89637
89638 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89639
89640         [BZ #12067]
89641         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
89642         trying to locate the ELF header.
89643
89644 2010-09-27  Andreas Schwab  <schwab@redhat.com>
89645
89646         [BZ #11611]
89647         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
89648         Mask out sign-bit copies when constructing f_fsid.
89649
89650 2010-09-24  Petr Baudis <pasky@suse.cz>
89651
89652         * debug/stack_chk_fail_local.c: Add missing licence exception.
89653         * debug/warning-nop.c: Likewise.
89654
89655 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
89656
89657         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
89658         implementing getdents64 using getdents syscall, set d_type if
89659         __ASSUME_GETDENTS32_D_TYPE.
89660
89661 2010-09-16  Andreas Schwab  <schwab@redhat.com>
89662
89663         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
89664         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
89665
89666 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
89667
89668         [BZ #12037]
89669         * posix/unistd.h: Undo change of feature selection for ftruncate from
89670         2010-01-11.
89671
89672 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
89673
89674         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
89675         detection.
89676
89677 2010-09-20  Andreas Schwab  <schwab@redhat.com>
89678
89679         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
89680         fanotify_mark.
89681         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
89682
89683 2010-09-14  Andreas Schwab  <schwab@redhat.com>
89684
89685         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
89686         variables after CHECK_SP call.
89687         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
89688
89689 2010-09-13  Andreas Schwab  <schwab@redhat.com>
89690             Ulrich Drepper  <drepper@redhat.com>
89691
89692         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
89693         re-relocationg ld.so.
89694         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
89695         _dl_init_paths call.
89696         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
89697         here anymore.
89698
89699 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
89700
89701         * resolv/res_init.c (__res_vinit): Count the default server we added.
89702
89703 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
89704             Ulrich Drepper  <drepper@redhat.com>
89705
89706         [BZ #11968]
89707         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
89708         (____longjmp_chk): Use %ebx for saving value across system call.
89709         Add unwind info.
89710
89711 2010-09-06  Andreas Schwab  <schwab@redhat.com>
89712
89713         * manual/Makefile: Don't mix pattern rules with normal rules.
89714
89715 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
89716
89717         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
89718         operation.
89719         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
89720         * libio/iofopncook.c (_IO_cookie_init): Likewise.
89721         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
89722         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
89723         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
89724         Likewise.
89725
89726 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
89727
89728         [BZ #11979]
89729         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
89730         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
89731
89732 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
89733
89734         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
89735         * sysdeps/x86_64/addmul_1.S: Likewise.
89736         * sysdeps/x86_64/lshift.S: Likewise.
89737         * sysdeps/x86_64/mul_1.S: Likewise.
89738         * sysdeps/x86_64/rshift.S: Likewise.
89739         * sysdeps/x86_64/sub_n.S: Likewise.
89740         * sysdeps/x86_64/submul_1.S: Likewise.
89741
89742 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89743
89744         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
89745         Define __sched_param instead of SCHED_* and sched_param when
89746         <bits/sched.h> is included with __need_schedparam defined.
89747         * bits/sched.h [__need_schedparam]
89748         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
89749         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
89750         (__defined_schedparam): Define to 1.
89751         (__sched_param): New structure, identical to sched_param.
89752         (__need_schedparam): Undefine.
89753
89754 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
89755
89756         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
89757         (epoll_create1): Declare.
89758
89759         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
89760
89761 2010-08-31  Andreas Schwab  <schwab@redhat.com>
89762
89763         [BZ #7066]
89764         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
89765         shifting retval into place.
89766
89767 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
89768
89769         * nis/rpcsvc/nis.h: Update copyright notice.
89770         * nis/rpcsvc/nis.x: Likewise.
89771         * nis/rpcsvc/nis_callback.h: Likewise.
89772         * nis/rpcsvc/nis_callback.x: Likewise.
89773         * nis/rpcsvc/nis_object.x: Likewise.
89774         * nis/rpcsvc/nis_tags.h: Likewise.
89775         * nis/rpcsvc/yp.h: Likewise.
89776         * nis/rpcsvc/yp.x: Likewise.
89777         * nis/rpcsvc/ypupd.h: Likewise.
89778         * nis/yp_xdr.c: Likewise.
89779         * nis/ypupdate_xdr.c: Likewise.
89780
89781         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
89782         mainly the body of pmap_getport.  Add parameters to specify timeouts.
89783         (pmap_getport): Use __libc_rpc_getport.
89784         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
89785         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
89786         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
89787
89788 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
89789
89790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
89791         fanotify_mark.
89792
89793 2010-08-27  Roland McGrath  <roland@redhat.com>
89794
89795         * sysdeps/i386/i686/multiarch/Makefile
89796         (CFLAGS-varshift.c): New variable.
89797
89798 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
89799
89800         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
89801         * sysdeps/i386/i686/multiarch/varshift.c: New file.
89802
89803         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
89804
89805         * sysdeps/x86_64/strlen.S: Minimal code improvement.
89806
89807 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
89808
89809         * sysdeps/x86_64/strlen.S: Unroll the loop.
89810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89811         strlen-sse2 strlen-sse2-bsf.
89812         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
89813         __strlen_no_bsf if bit_Slow_BSF is set.
89814         (__strlen_sse42): Removed.
89815         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
89816         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
89817
89818 2010-08-25  Roland McGrath  <roland@redhat.com>
89819
89820         * sysdeps/x86_64/multiarch/varshift.S: File removed.
89821         * sysdeps/x86_64/multiarch/varshift.c: New file.
89822         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
89823         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
89824         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
89825         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
89826
89827 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
89828
89829         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
89830         strlen-sse2 strlen-sse2-bsf.
89831         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
89832         __strlen_sse2_bsf if bit_Slow_BSF is unset.
89833         (__strlen_sse2): Removed.
89834         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
89835         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
89836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
89837         bit_Slow_BSF for Atom.
89838         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
89839         (index_Slow_BSF): Define.
89840         (HAS_SLOW_BSF): Define.
89841
89842 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
89843
89844         [BZ #10851]
89845         * resolv/res_init.c (__res_vinit): When no server address at all
89846         is given default to loopback.
89847
89848 2010-08-24  Roland McGrath  <roland@redhat.com>
89849
89850         * configure.in: Remove config-name.h generation.
89851         * configure: Regenerated.
89852         * config-name.in: File removed.
89853         * scripts/config-uname.sh: New file.
89854         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
89855         ($(objdir)config-name.h): New target.
89856
89857         * sunrpc/rpc_parse.h: Avoid nested comment.
89858
89859 2010-08-24  Richard Henderson  <rth@redhat.com>
89860             Ulrich Drepper  <drepper@redhat.com>
89861             H.J. Lu  <hongjiu.lu@intel.com>
89862
89863         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
89864         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
89865         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
89866         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
89867         _mm_alignr_epi8 with _mm_loadu_si128.
89868         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
89869         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
89870         (__m128i_shift_right): Removed.
89871         * sysdeps/i386/i686/multiarch/varshift.h: New file.
89872         * sysdeps/i386/i686/multiarch/varshift.S: New file.
89873         * sysdeps/x86_64/multiarch/varshift.h: New file.
89874         * sysdeps/x86_64/multiarch/varshift.S: New file.
89875
89876 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
89877
89878         * configure.in: Move assembler checks to before sysdep dir checking.
89879
89880 2010-08-20  Petr Baudis  <pasky@suse.cz>
89881
89882         * LICENSES: Sync the sunrpc license.
89883
89884 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
89885
89886         * sunrpc/auth_des.c: Update copyright notice once again.
89887         * sunrpc/auth_none.c: Likewise.
89888         * sunrpc/auth_unix.c: Likewise.
89889         * sunrpc/authdes_prot.c: Likewise.
89890         * sunrpc/authuxprot.c: Likewise.
89891         * sunrpc/bindrsvprt.c: Likewise.
89892         * sunrpc/clnt_gen.c: Likewise.
89893         * sunrpc/clnt_perr.c: Likewise.
89894         * sunrpc/clnt_raw.c: Likewise.
89895         * sunrpc/clnt_simp.c: Likewise.
89896         * sunrpc/clnt_tcp.c: Likewise.
89897         * sunrpc/clnt_udp.c: Likewise.
89898         * sunrpc/clnt_unix.c: Likewise.
89899         * sunrpc/des_crypt.c: Likewise.
89900         * sunrpc/des_soft.c: Likewise.
89901         * sunrpc/get_myaddr.c: Likewise.
89902         * sunrpc/getrpcport.c: Likewise.
89903         * sunrpc/key_call.c: Likewise.
89904         * sunrpc/key_prot.c: Likewise.
89905         * sunrpc/openchild.c: Likewise.
89906         * sunrpc/pm_getmaps.c: Likewise.
89907         * sunrpc/pm_getport.c: Likewise.
89908         * sunrpc/pmap_clnt.c: Likewise.
89909         * sunrpc/pmap_prot.c: Likewise.
89910         * sunrpc/pmap_prot2.c: Likewise.
89911         * sunrpc/pmap_rmt.c: Likewise.
89912         * sunrpc/rpc/auth.h: Likewise.
89913         * sunrpc/rpc/auth_unix.h: Likewise.
89914         * sunrpc/rpc/clnt.h: Likewise.
89915         * sunrpc/rpc/des_crypt.h: Likewise.
89916         * sunrpc/rpc/key_prot.h: Likewise.
89917         * sunrpc/rpc/netdb.h: Likewise.
89918         * sunrpc/rpc/pmap_clnt.h: Likewise.
89919         * sunrpc/rpc/pmap_prot.h: Likewise.
89920         * sunrpc/rpc/pmap_rmt.h: Likewise.
89921         * sunrpc/rpc/rpc.h: Likewise.
89922         * sunrpc/rpc/rpc_des.h: Likewise.
89923         * sunrpc/rpc/rpc_msg.h: Likewise.
89924         * sunrpc/rpc/svc.h: Likewise.
89925         * sunrpc/rpc/svc_auth.h: Likewise.
89926         * sunrpc/rpc/types.h: Likewise.
89927         * sunrpc/rpc/xdr.h: Likewise.
89928         * sunrpc/rpc_clntout.c: Likewise.
89929         * sunrpc/rpc_cmsg.c: Likewise.
89930         * sunrpc/rpc_common.c: Likewise.
89931         * sunrpc/rpc_cout.c: Likewise.
89932         * sunrpc/rpc_dtable.c: Likewise.
89933         * sunrpc/rpc_hout.c: Likewise.
89934         * sunrpc/rpc_main.c: Likewise.
89935         * sunrpc/rpc_parse.c: Likewise.
89936         * sunrpc/rpc_parse.h: Likewise.
89937         * sunrpc/rpc_prot.c: Likewise.
89938         * sunrpc/rpc_sample.c: Likewise.
89939         * sunrpc/rpc_scan.c: Likewise.
89940         * sunrpc/rpc_scan.h: Likewise.
89941         * sunrpc/rpc_svcout.c: Likewise.
89942         * sunrpc/rpc_tblout.c: Likewise.
89943         * sunrpc/rpc_util.c: Likewise.
89944         * sunrpc/rpc_util.h: Likewise.
89945         * sunrpc/rpcinfo.c: Likewise.
89946         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
89947         * sunrpc/rpcsvc/key_prot.x: Likewise.
89948         * sunrpc/rpcsvc/klm_prot.x: Likewise.
89949         * sunrpc/rpcsvc/mount.x: Likewise.
89950         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
89951         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
89952         * sunrpc/rpcsvc/rex.x: Likewise.
89953         * sunrpc/rpcsvc/rstat.x: Likewise.
89954         * sunrpc/rpcsvc/rusers.x: Likewise.
89955         * sunrpc/rpcsvc/sm_inter.x: Likewise.
89956         * sunrpc/rpcsvc/spray.x: Likewise.
89957         * sunrpc/rpcsvc/yppasswd.x: Likewise.
89958         * sunrpc/rtime.c: Likewise.
89959         * sunrpc/svc.c: Likewise.
89960         * sunrpc/svc_auth.c: Likewise.
89961         * sunrpc/svc_authux.c: Likewise.
89962         * sunrpc/svc_raw.c: Likewise.
89963         * sunrpc/svc_run.c: Likewise.
89964         * sunrpc/svc_simple.c: Likewise.
89965         * sunrpc/svc_tcp.c: Likewise.
89966         * sunrpc/svc_udp.c: Likewise.
89967         * sunrpc/svc_unix.c: Likewise.
89968         * sunrpc/svcauth_des.c: Likewise.
89969         * sunrpc/xcrypt.c: Likewise.
89970         * sunrpc/xdr.c: Likewise.
89971         * sunrpc/xdr_array.c: Likewise.
89972         * sunrpc/xdr_float.c: Likewise.
89973         * sunrpc/xdr_mem.c: Likewise.
89974         * sunrpc/xdr_rec.c: Likewise.
89975         * sunrpc/xdr_ref.c: Likewise.
89976         * sunrpc/xdr_sizeof.c: Likewise.
89977         * sunrpc/xdr_stdio.c: Likewise.
89978
89979         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
89980         handling.
89981
89982 2010-08-19  Andreas Schwab  <schwab@redhat.com>
89983
89984         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
89985
89986 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
89987
89988         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
89989         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
89990         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
89991         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
89992         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
89993         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
89994         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
89995         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
89996         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
89997         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
89998         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
89999         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90000         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90001         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90002
90003 2010-07-26  Anton Blanchard  <anton@samba.org>
90004
90005         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90006         * malloc/arena.c (heap_trim): Likewise.
90007
90008 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90009
90010         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90011         here.  Not...
90012         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90013         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90014
90015 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90016
90017         * sysdeps/i386/elf/Makefile: New file.
90018
90019 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90020
90021         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90022         from fanotify_init.
90023         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90024         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90025
90026 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90027
90028         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90029         of strncasecmp_l.
90030         * sysdeps/multiarch/strcmp.S: Likewise.
90031
90032 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90033
90034         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90035         strncase_l-nonascii.
90036         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90037         Add strncase_l-ssse3.
90038         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90039         * sysdeps/x86_64/strcmp.S: Likewise.
90040         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90041         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90042         * sysdeps/x86_64/strncase.S: New file.
90043         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90044         * sysdeps/x86_64/strncase_l.S: New file.
90045         * string/Makefile (strop-tests): Add strncasecmp.
90046         * string/test-strncasecmp.c: New file.
90047
90048         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90049         warning.
90050
90051         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90052         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90053
90054 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90055
90056         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90057
90058 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90059
90060         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90061         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90062         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90063
90064 2010-05-01  Alan Modra  <amodra@gmail.com>
90065
90066         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90067         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90068         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90069         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90070         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90071         tidying.  Don't tail-call __sigjmp_save for static lib.
90072         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90073         save location.
90074         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90075         (CALL_MCOUNT): Add eh info, and nop after bl.
90076         (TAIL_CALL_SYSCALL_ERROR): New macro.
90077         (PSEUDO_RET): Use it.
90078         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90079         Correct save location of integer regs and cr.
90080         (_dl_profile_resolve): Correct cr save location.  Delete nops
90081         after bl when SHARED.  Reduce cfi size a little by better
90082         placement of cfi directives.
90083         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90084         make a stack frame.  Instead use parm save area as a temp.
90085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90086         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90088         Don't make a stack frame for parent, use parm save area.
90089         Increase child stack frame to 112 bytes.  Don't save unused reg,
90090         and adjust reg usage.  Set up cfi on error recovery and
90091         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90093         (__makecontext): Add dummy nop after jump to exit.
90094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90095         Use correct parm save area and cr save, reduce stack frame.
90096         Correct cfi for possible PSEUDO_RET frame setup.
90097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90098         Branch to local label emitted by PSEUDO_RET rather than
90099         __syscall_error.
90100
90101 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90102
90103         [BZ #11904]
90104         * locale/programs/locale.c (print_assignment): New function.
90105         (show_locale_vars): Use it.
90106
90107 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90108
90109         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90110         field.
90111         (struct statfs64): Likewise.
90112         (_STATFS_F_FLAGS): Define.
90113         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90114         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90115         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90116         (ST_VALID): Define locally.
90117         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90118         __statvfs_getflags, use the provided value.
90119         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90120         __ASSUME_STATFS_F_FLAGS.
90121
90122         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90123
90124         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90125         Add sys/fanotify.h.
90126         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90127         fanotify_mask for GLIBC_2.13.
90128         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90129         fanotify_init and fanotify_mark.
90130         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90131         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90132
90133         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90134         Add prlimit.
90135         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90136         prlimit64 for GLIBC_2.13.
90137         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90138         prlimit64.
90139         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90140         syscall.
90141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90142         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90143         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90144         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90145         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90146         add prlimit alias.
90147         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90148
90149         [BZ #11903]
90150         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90151         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90152
90153         * nss/Makefile: Add rules to build and run tst-nss-test1.
90154         * shlib-versions: Add entry for libnss_test1.
90155         * nss/nss_test1.c: New file.
90156         * nss/tst-nss-test1.c: New file.
90157
90158         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90159         (__nss_configure_lookup): Set appropriate entry in
90160         __nss_configure_lookup to true.
90161         * nss/nsswitch.h: Define enum with indeces of databases in
90162         databases and __nss_database_custom arrays.  Declare
90163         __nss_database_custom.
90164         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90165         to avoid using nscd when custom rules are installed.
90166         * nss/getXXbyYY_r.c: Likewise.
90167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90168
90169         * nss/nss_files/files-parse.c: Whitespace fixes.
90170
90171 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90172
90173         [BZ #11883]
90174         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90175         * posix/fnmatch_loop.c: Likewise.
90176
90177 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90178
90179         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90180         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90181         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90182         * Versions.def [GLIBC_2.13]: Add.
90183
90184 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90185
90186         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90187         Also fail if tpwd after pwuid call is NULL.
90188
90189 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90190
90191         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90192         when converting to ms.
90193
90194 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90195
90196         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90197         EOPNOTSUPP errors with ENOTTY.
90198         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90199         EOPNOTSUPP errors with ENOTTY.
90200
90201 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90202
90203         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90204         Add strcasecmp_l-ssse3.
90205         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90206         strcasecmp.
90207         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90208         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90209         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90210
90211 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90212
90213         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90214
90215         * string/Makefile (strop-tests): Add strcasecmp.
90216         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90217         strcasecmp_l-nonascii.
90218         (gen-as-const-headers): Add locale-defines.sym.
90219         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90220         * sysdeps/x86_64/strcasecmp.S: New file.
90221         * sysdeps/x86_64/strcasecmp_l.S: New file.
90222         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90223         * sysdeps/x86_64/locale-defines.sym: New file.
90224         * string/test-strcasecmp.c: New file.
90225
90226         * string/test-strcasestr.c: Test both ends of the range of characters.
90227         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90228
90229 2010-07-29  Roland McGrath  <roland@redhat.com>
90230
90231         [BZ #11856]
90232         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90233
90234 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90235
90236         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90237         for ld.so.
90238
90239 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90240
90241         * manual/memory.texi (Malloc Tunable Parameters): Document
90242         M_PERTURB.
90243
90244 2010-07-26  Roland McGrath  <roland@redhat.com>
90245
90246         [BZ #11840]
90247         * configure.in (-fgnu89-inline check): Set and substitute
90248         gnu89_inline, not libc_cv_gnu89_inline.
90249         * configure: Regenerated.
90250         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90251
90252 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90253
90254         * string/test-strnlen.c: New file.
90255         * string/Makefile (strop-tests): Add strnlen.
90256         * string/tester.c (test_strnlen): Add a few more test cases.
90257         * string/tst-strlen.c: Better error reporting.
90258
90259         * sysdeps/x86_64/strnlen.S: New file.
90260
90261 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90262
90263         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90264         lower-latency instructions.
90265
90266 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90267
90268         * string/test-strcasestr.c: New file.
90269         * string/test-strstr.c: New file.
90270         * string/Makefile (strop-tests): Add strstr and strcasestr.
90271         * string/str-two-way.h: Don't undefine MAX.
90272         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90273
90274 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90275
90276         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90277         strcasestr-nonascii.
90278         (CFLAGS-strcasestr-nonascii.c): Define.
90279         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90280         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90281         Remove unused attribute.
90282
90283 2010-07-20  Roland McGrath  <roland@redhat.com>
90284
90285         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90286         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90287         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90288         like LD_HWCAP_MASK can disable hwcaps.
90289
90290 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90291
90292         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90293
90294 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90295
90296         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90297         call in strcasestr.
90298         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90299         __strcasestr_sse42_nonascii.
90300         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90301         strcasestr-nonascii.c.
90302         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90303
90304 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90305
90306         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
90307         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
90308         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
90309         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
90310
90311 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
90312
90313         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
90314         fcntl.
90315
90316 2010-07-06  Andreas Schwab  <schwab@redhat.com>
90317
90318         [BZ #11577]
90319         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
90320         dl_signal_cerror.
90321
90322 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
90323
90324         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
90325         _PC_PIPE_BUF using F_GETPIPE_SZ.
90326
90327 2010-07-05  Roland McGrath  <roland@redhat.com>
90328
90329         * manual/arith.texi (Rounding Functions): Fix rint description
90330         implicit in round description.
90331
90332 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
90333
90334         * elf/Makefile: Fix linking for a few tests to make recent linker
90335         happy.
90336
90337 2010-06-30  Andreas Schwab  <schwab@redhat.com>
90338
90339         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90340         $(common-objpfx)libc_nonshared.a.
90341
90342 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
90343
90344         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
90345         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
90346         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90347         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90348         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
90349         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
90350         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90351         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
90353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
90354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
90355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
90357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
90359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
90360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
90361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
90362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
90364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
90366         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
90367         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
90368         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
90369         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
90370         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
90371         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
90372         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
90373         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
90374         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
90375         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
90376         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
90377         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
90378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
90379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
90380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
90381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
90382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
90383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
90384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
90385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
90386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
90387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
90388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
90389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
90390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
90391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
90392
90393 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
90394
90395         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
90396         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
90397         * string/memmove.c (memmove): Renamed to ...
90398         (MEMMOVE): ...this.  Default to memmove.
90399         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
90400         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
90401         (END_CHK): Define.
90402         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90403         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
90404         mempcpy-ssse3-back memmove-ssse3-back.
90405         * sysdeps/x86_64/multiarch/bcopy.S: New file .
90406         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
90407         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
90408         * sysdeps/x86_64/multiarch/memcpy.S: New file.
90409         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
90410         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
90411         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
90412         * sysdeps/x86_64/multiarch/memmove.c: New file.
90413         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
90414         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
90415         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
90416         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
90417         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
90418         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
90419         Define.
90420         (index_Fast_Copy_Backward): Define.
90421         (HAS_ARCH_FEATURE): Define.
90422         (HAS_FAST_REP_STRING): Define.
90423         (HAS_FAST_COPY_BACKWARD): Define.
90424
90425 2010-06-21  Andreas Schwab  <schwab@redhat.com>
90426
90427         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90428         Restore proper fallback handling.
90429
90430 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
90431
90432         [BZ #11701]
90433         * posix/group_member.c (__group_member): Correct checking loop.
90434
90435         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
90436         OOM in getpwuid_r correctly.  Return error number when the caller
90437         should return, otherwise -1.
90438         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
90439         call returning > 0 value.
90440         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
90441
90442 2010-06-07  Andreas Schwab  <schwab@redhat.com>
90443
90444         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
90445         libc_nonshared.a from targets in modules-names.
90446
90447 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
90448
90449         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
90450         requires it.
90451
90452 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
90453
90454         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
90455         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
90456         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
90457         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
90458
90459 2010-06-02  Andreas Schwab  <schwab@redhat.com>
90460
90461         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
90462
90463 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
90464
90465         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
90466         and F_GETPIPE_SZ.
90467         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
90468         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
90469         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
90470         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
90471         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
90472         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
90473
90474 2010-06-14  Roland McGrath  <roland@redhat.com>
90475
90476         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
90477
90478 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
90479
90480         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
90481         __REDIRECT followed by __THROW.
90482         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
90483         * posix/getopt.h (getopt): Likewise.
90484
90485 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90486
90487         * hurd/lookup-at.c (__file_name_lookup_at): Accept
90488         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
90489         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
90490         in AT_FLAGS.
90491         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
90492         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
90493
90494 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
90495
90496         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
90497
90498 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
90499
90500         [BZ #11640]
90501         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90502         Properly check family and model.
90503
90504 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
90505
90506         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
90507
90508 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
90509
90510         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
90511
90512 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
90513
90514         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
90515         symbol reference.
90516
90517 2010-05-19  Andreas Schwab  <schwab@redhat.com>
90518
90519         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
90520         symbol reference.
90521
90522 2010-05-21  Andreas Schwab  <schwab@redhat.com>
90523
90524         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
90525         and internal_recvmmsg.
90526         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
90527         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
90528         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
90529         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
90530
90531         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
90532         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
90533         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
90534
90535 2010-05-20  Andreas Schwab  <schwab@redhat.com>
90536
90537         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
90538
90539 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
90540
90541         POWER7 optimizations.
90542         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
90543         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
90544
90545 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
90546
90547         * version.h: Update for 2.13 development version.
90548
90549 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
90550
90551         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
90552         exceptions.  Return 0.
90553
90554 2010-05-07  Roland McGrath  <roland@redhat.com>
90555
90556         * elf/ldconfig.c (main): Add a const.
90557
90558 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
90559
90560         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
90561         (args_options): Add no-idn option.
90562         (ahosts_keys_int): Add idn_flags to ai_flags.
90563         (parse_option): Handle 'i' option to clear idn_flags.
90564
90565         * malloc/malloc.c (_int_free): Possible race in the most recently
90566         added check.  Only act on the data if no current modification
90567         happened.
90568
90569 See ChangeLog.17 for earlier changes.